Skip to content

Commit a49358e

Browse files
committed
docs(promotions): PROMO-1368 update to coupon_overrides_other_promotions
update to coupon_overrides_other_promotions
1 parent 1c40926 commit a49358e

1 file changed

Lines changed: 28 additions & 7 deletions

File tree

reference/promotions.v3.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -510,14 +510,25 @@ components:
510510
properties:
511511
codes:
512512
$ref: '#/components/schemas/CouponCode'
513+
coupon_overrides_other_promotions:
514+
type: boolean
515+
example: false
516+
default: false
517+
description: |-
518+
This field only has effect when `can_be_used_with_other_promotions` is `false`:
519+
- When the property is set to `true`, the coupon will always override all applied promotions, including both automatic and coupon promotions.
520+
- When the property is set to `false`, the coupon will not be applied if any promotions are already applied.
521+
Trying to set the value of this field when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
513522
coupon_overrides_automatic_when_offering_higher_discounts:
523+
deprecated: true
514524
type: boolean
515525
example: false
516526
default: false
517527
description: |-
528+
This property has been deprecated and `coupon_overrides_other_promotions` should be used instead.
518529
This field only has effect when `can_be_used_with_other_promotions` is `false`:
519530
- 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.
531+
- When the property is set to `false`, the coupon will not be applied if automatic promotions are already applied.
521532
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.
522533
coupon_type:
523534
type: string
@@ -538,14 +549,25 @@ components:
538549
properties:
539550
codes:
540551
$ref: '#/components/schemas/CouponCode'
552+
coupon_overrides_other_promotions:
553+
type: boolean
554+
example: false
555+
default: false
556+
description: |-
557+
- When this property is set to `true`, the coupon will always override all applied promotions, including both automatic and coupon promotions.
558+
- When this property is set to `false`, the coupon will not be applied if any promotions are already applied.
559+
560+
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.
541561
coupon_overrides_automatic_when_offering_higher_discounts:
562+
deprecated: true
542563
type: boolean
543564
example: false
544565
default: false
545566
description: |-
567+
This property has been deprecated and `coupon_overrides_other_promotions` should be used instead.
546568
This field only has effect when `can_be_used_with_other_promotions` is `false`:
547569
- 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.
570+
- When the property is set to `false`, the coupon will not be applied if automatic promotions are already applied.
549571
Trying to set the value of this field when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
550572
redemption_type:
551573
type: string
@@ -585,11 +607,10 @@ components:
585607
example: false
586608
default: false
587609
description: |-
588-
This field only has effect when the `redemption_type` is `COUPON` and `can_be_used_with_other_promotions` is `false`:
589-
- 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-
592-
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.
610+
- When this property is set to `true`, the coupon will always override all applied promotions, including both automatic and coupon promotions.
611+
- When this property is set to `false`, the coupon will not be applied if any promotions are already applied.
612+
613+
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.
593614
redemption_type:
594615
type: string
595616
description: The type of the promotion. Promotions applied automatically have a value of `AUTOMATIC` whereas promotions requiring a coupon have a value of `COUPON`.

0 commit comments

Comments
 (0)