This PR holds all generated DML JSON files for the upcoming release. --- > [!NOTE] > Updates generated DML JSONs with new fields and a renamed relation across fulfillment, notification, order, and promotion modules. > > - **Fulfillment**: > - `ShippingOptionType`: rename `shipping_option` to `shipping_options` (expandable). > - **Notification**: > - `Notification`: add `from` and `provider_data` fields. > - **Order**: > - `OrderLineItemAdjustment`: add `version`. > - `Order`: add `custom_display_id`. > - `OrderChange`: add `carry_over_promotions` (since v2.12.0). > - **Promotion**: > - `Promotion`: add `limit`, `used`, and `metadata` (since v2.12.0). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 4494c93c2d7bc05cfec47fb1b77f7c4c16383f2b. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
114 lines
5.3 KiB
JSON
114 lines
5.3 KiB
JSON
{
|
|
"CampaignBudget": {
|
|
"filePath": "packages/modules/promotion/src/models/campaign-budget.ts",
|
|
"properties": {
|
|
"id": "The ID of the campaign budget.",
|
|
"type": "The type of the campaign budget",
|
|
"currency_code": "The currency code of the campaign budget.\n\n@example usd",
|
|
"limit": "The limit of the campaign budget",
|
|
"used": "How much of the budget has been used. if the `limit` is `spend`, this property holds the total amount discounted so far. if the `limit` is `usage`, it holds the number of times the campaign's promotions have been used so far.",
|
|
"campaign": "The associated campaign.\n\n@expandable",
|
|
"attribute": "The attribute of the campaign budget\n\n@since 2.11.0",
|
|
"usages": "The associated usages.\n\n@expandable\n\n@since 2.11.0"
|
|
},
|
|
"deprecated": {
|
|
"is_deprecated": false
|
|
}
|
|
},
|
|
"Campaign": {
|
|
"filePath": "packages/modules/promotion/src/models/campaign.ts",
|
|
"properties": {
|
|
"id": "The ID of the campaign.",
|
|
"name": "The name of the campaign",
|
|
"description": "The description of the campaign",
|
|
"campaign_identifier": "The campaign's identifier, such as a Google Tag ID.",
|
|
"starts_at": "The date that the campaign starts.",
|
|
"ends_at": "The date that the campaign ends.",
|
|
"budget": "The associated budget.\n\n@expandable",
|
|
"promotions": "The associated promotions.\n\n@expandable"
|
|
},
|
|
"deprecated": {
|
|
"is_deprecated": false
|
|
}
|
|
},
|
|
"PromotionRuleValue": {
|
|
"filePath": "packages/modules/promotion/src/models/promotion-rule-value.ts",
|
|
"properties": {
|
|
"id": "The ID of the promotion rule value.",
|
|
"value": "The value of the promotion rule.",
|
|
"promotion_rule": "The associated promotion rule.\n\n@expandable"
|
|
},
|
|
"deprecated": {
|
|
"is_deprecated": false
|
|
}
|
|
},
|
|
"PromotionRule": {
|
|
"filePath": "packages/modules/promotion/src/models/promotion-rule.ts",
|
|
"properties": {
|
|
"id": "The ID of the promotion rule.",
|
|
"description": "The description of the promotion rule",
|
|
"attribute": "The attribute of the promotion rule.\n\n@example customer_group_id",
|
|
"operator": "The operator of the promotion rule.\n\n@example in",
|
|
"values": "The associated values.\n\n@expandable",
|
|
"promotions": "The associated promotions.\n\n@expandable",
|
|
"method_target_rules": "The associated method target rules.\n\n@expandable",
|
|
"method_buy_rules": "The associated method buy rules.\n\n@expandable"
|
|
},
|
|
"deprecated": {
|
|
"is_deprecated": false
|
|
}
|
|
},
|
|
"Promotion": {
|
|
"filePath": "packages/modules/promotion/src/models/promotion.ts",
|
|
"properties": {
|
|
"id": "The ID of the promotion.",
|
|
"code": "The code of the promotion",
|
|
"is_automatic": "Whether the promotion is applied automatic. If disabled, the customer must enter the code during checkout.",
|
|
"type": "The type of the promotion",
|
|
"campaign": "The associated campaign.\n\n@expandable",
|
|
"application_method": "The associated application method.\n\n@expandable",
|
|
"rules": "The associated rules.\n\n@expandable",
|
|
"status": "The status of the promotion",
|
|
"is_tax_inclusive": "Whether the promotion is tax inclusive.",
|
|
"limit": "The limit of the promotion\n\n@since v2.12.0",
|
|
"used": "How much of the limit has been used.\n\n@since v2.12.0",
|
|
"metadata": "Holds custom data in key-value pairs.\n\n@since v2.12.0"
|
|
},
|
|
"deprecated": {
|
|
"is_deprecated": false
|
|
}
|
|
},
|
|
"ApplicationMethod": {
|
|
"filePath": "packages/modules/promotion/src/models/application-method.ts",
|
|
"properties": {
|
|
"id": "The ID of the application method.",
|
|
"value": "The value of the application method",
|
|
"currency_code": "The currency code of the application method.\n\n@example usd",
|
|
"max_quantity": "The max quantity allowed in the cart for the associated promotion to be applied.",
|
|
"apply_to_quantity": "The quantity that results from matching the `buyget` promotion's condition. For example, if the promotion is a \"Buy 2 shirts get 1 free\", the value of this attribute is `1`.",
|
|
"buy_rules_min_quantity": "The minimum quantity required for a `buyget` promotion to be applied. For example, if the promotion is a \"Buy 2 shirts get 1 free\", the value of this attribute is `2`.",
|
|
"type": "The application method's type. If it's `fixed`, the promotion discounts a fixed amount. If it's `percentage`, the promotion discounts a percentage.",
|
|
"target_type": "Which item does the promotion apply to. `items` mean the promotion applies to the cart's items; `shipping_methods` means the promotion applies to the cart's shipping methods; `order` means the promotion applies on the entire order.",
|
|
"allocation": "How is the promotion amount discounted. `each` means the discounted amount is applied on each applicable item; `across` means the discounted amount is split accross the applicable items.",
|
|
"promotion": "The associated promotion.\n\n@expandable",
|
|
"target_rules": "The associated target rules.\n\n@expandable",
|
|
"buy_rules": "The associated buy rules.\n\n@expandable"
|
|
},
|
|
"deprecated": {
|
|
"is_deprecated": false
|
|
}
|
|
},
|
|
"CampaignBudgetUsage": {
|
|
"filePath": "packages/modules/promotion/src/models/campaign-budget-usage.ts",
|
|
"properties": {
|
|
"id": "The ID of the campaign budget usage.",
|
|
"attribute_value": "The attribute value of the campaign budget usage",
|
|
"used": "The used of the campaign budget usage",
|
|
"budget": "The associated budget.\n\n@expandable"
|
|
},
|
|
"since": "2.11.0",
|
|
"deprecated": {
|
|
"is_deprecated": false
|
|
}
|
|
}
|
|
} |