Skip to content

Commit 897958a

Browse files
bc-lukejpajar
authored andcommitted
PROMO-1050 Add shipping discount action
PROMO-1050 Add as_total field to shipping discount action PROMO-1050 Remove as_total field from shipping discount action PROMO-1050 Restrict count of shipping method IDs to 250 PROMO-1050 Add ShippingDiscountAction as valid action
1 parent b41df0b commit 897958a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

reference/promotions.v3.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,35 @@ components:
10761076
minimum: 1
10771077
required:
10781078
- zone_ids
1079+
ShippingDiscountAction:
1080+
title: Shipping Discount Action
1081+
type: object
1082+
description: |-
1083+
**Shipping Discount Action**
1084+
Discounts shipping, optionally restricted to specific shipping methods.
1085+
properties:
1086+
shipping_discount:
1087+
type: object
1088+
properties:
1089+
discount:
1090+
$ref: '#/components/schemas/Discount'
1091+
method_ids:
1092+
description: ''
1093+
oneOf:
1094+
- type: string
1095+
enum:
1096+
- '*'
1097+
description: All configured shipping methods.
1098+
- type: array
1099+
uniqueItems: true
1100+
description: List of shipping method IDs to which the shipping discount can apply.
1101+
items:
1102+
type: integer
1103+
minimum: 1
1104+
maximum: 250
1105+
required:
1106+
- method_ids
1107+
- discount
10791108
Discount:
10801109
title: Discount
10811110
description: '**Discount**'
@@ -1346,6 +1375,7 @@ components:
13461375
- $ref: '#/components/schemas/GiftItemAction'
13471376
- $ref: '#/components/schemas/FixedPriceSetAction'
13481377
- $ref: '#/components/schemas/ShippingAction'
1378+
- $ref: '#/components/schemas/ShippingDiscountAction'
13491379
ProductOptionsItemMatcher:
13501380
title: Product Options Item Matcher
13511381
type: object

0 commit comments

Comments
 (0)