Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
3.1 KiB
displayed_sidebar
| displayed_sidebar |
|---|
| jsClientSidebar |
Class: AdminPostDiscountsDiscountConditions
internal.AdminPostDiscountsDiscountConditions
Schema
AdminPostDiscountsDiscountConditions type: object required:
- operator
properties:
operator:
description: "Operator of the condition.
inindicates that discountable resources are within the specified resources.not_inindicates that discountable resources are everything but the specified resources." type: string enum: [in, not_in] products: type: array description: list of product IDs if the condition's type isproducts. items: type: string product_types: type: array description: list of product type IDs if the condition's type isproduct_types. items: type: string product_collections: type: array description: list of product collection IDs if the condition's type isproduct_collections. items: type: string product_tags: type: array description: list of product tag IDs if the condition's type isproduct_tags. items: type: string customer_groups: type: array description: list of customer group IDs if the condition's type iscustomer_groups. items: type: string
Hierarchy
-
↳
AdminPostDiscountsDiscountConditions
Properties
customer_groups
• Optional customer_groups: string[]
Inherited from
AdminUpsertConditionsReq.customer_groups
Defined in
packages/medusa/dist/types/discount.d.ts:21
operator
• operator: DiscountConditionOperator
Defined in
packages/medusa/dist/api/routes/admin/discounts/create-condition.d.ts:113
product_collections
• Optional product_collections: string[]
Inherited from
AdminUpsertConditionsReq.product_collections
Defined in
packages/medusa/dist/types/discount.d.ts:18
product_tags
• Optional product_tags: string[]
Inherited from
AdminUpsertConditionsReq.product_tags
Defined in
packages/medusa/dist/types/discount.d.ts:20
product_types
• Optional product_types: string[]
Inherited from
AdminUpsertConditionsReq.product_types
Defined in
packages/medusa/dist/types/discount.d.ts:19
products
• Optional products: string[]
Inherited from
AdminUpsertConditionsReq.products
Defined in
packages/medusa/dist/types/discount.d.ts:17