You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference/promotions.v3.yml
+24-4Lines changed: 24 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -510,14 +510,24 @@ components:
510
510
properties:
511
511
codes:
512
512
$ref: '#/components/schemas/CouponCode'
513
+
coupon_overrides_other_promotions:
514
+
type: boolean
515
+
example: false
516
+
default: false
517
+
description: |-
518
+
- When the property is set to `true`, the coupon will always override all applied promotions, including both automatic and coupon promotions.
519
+
- When the property is set to `false`, the coupon will not be applied if any promotions are already applied.
520
+
N.B.: This field only has effect when `can_be_used_with_other_promotions` is `false`. Trying to set the value of this field when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
This property has been deprecated and `coupon_overrides_other_promotions` should be used instead.
518
528
This field only has effect when `can_be_used_with_other_promotions` is `false`:
519
529
- When the property is set to `true`, the coupon will override the applied automatic promotions if it provides a greater discount.
520
-
- When the property is set to `fasle`, the coupon will not be applied if automatic promotions are already applied.
530
+
- When the property is set to `false`, the coupon will not be applied if automatic promotions are already applied.
521
531
Trying to set the value of this field to `true` when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
522
532
coupon_type:
523
533
type: string
@@ -538,14 +548,25 @@ components:
538
548
properties:
539
549
codes:
540
550
$ref: '#/components/schemas/CouponCode'
551
+
coupon_overrides_other_promotions:
552
+
type: boolean
553
+
example: false
554
+
default: false
555
+
description: |-
556
+
- When this property is set to `true`, the coupon will always override all applied promotions, including both automatic and coupon promotions.
557
+
- When this property is set to `false`, the coupon will not be applied if any promotions are already applied.
558
+
559
+
N.B.: This field only has effect when `can_be_used_with_other_promotions` is `false`. Trying to set the value of this field when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
This property has been deprecated and `coupon_overrides_other_promotions` should be used instead.
546
567
This field only has effect when `can_be_used_with_other_promotions` is `false`:
547
568
- When the property is set to `true`, the coupon will override the applied automatic promotions if it provides a greater discount.
548
-
- When the property is set to `fasle`, the coupon will not be applied if automatic promotions are already applied.
569
+
- When the property is set to `false`, the coupon will not be applied if automatic promotions are already applied.
549
570
Trying to set the value of this field when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
550
571
redemption_type:
551
572
type: string
@@ -587,8 +608,7 @@ components:
587
608
description: |-
588
609
This field only has effect when the `redemption_type` is `COUPON` and `can_be_used_with_other_promotions` is `false`:
589
610
- When the property is set to `true`, the coupon will override the applied automatic promotions if it provides a greater discount.
590
-
- When the property is set to `fasle`, the coupon will not be applied if automatic promotions are already applied.
591
-
611
+
- When the property is set to `false`, the coupon will not be applied if automatic promotions are already applied.
592
612
Trying to set the value of this field to `true` when the `redemption_type` is not `COUPON`, or when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
0 commit comments