Skip to content

ECOM-17360: Orders/Cart: added shippingLimit field to DiscountInfo classes#558

Merged
hanna-ecwid merged 2 commits into
masterfrom
ECOM-17360
Jun 5, 2026
Merged

ECOM-17360: Orders/Cart: added shippingLimit field to DiscountInfo classes#558
hanna-ecwid merged 2 commits into
masterfrom
ECOM-17360

Conversation

@hanna-ecwid
Copy link
Copy Markdown
Contributor

This pull request adds support for a new type of discount coupon limit based on shipping methods across several data models related to orders and coupons. The main change is the introduction of the DiscountCouponShippingLimit data class, which allows specifying which shipping methods a discount coupon can be applied to. This new field is now included in the relevant order and coupon-related data classes.

Support for shipping method-based coupon limits:

  • Added a new data class DiscountCouponShippingLimit with a shippingMethods property to represent shipping method restrictions for discount coupons in OrderForCalculate, CalculateOrderDetailsResult, and FetchedOrder. [1] [2] [3]
  • Updated the OrderForCalculate, CalculateOrderDetailsResult, and FetchedOrder data classes to include a new optional shippingLimit field of type DiscountCouponShippingLimit. [1] [2] [3]

@hanna-ecwid hanna-ecwid marked this pull request as ready for review June 4, 2026 10:40
@hanna-ecwid hanna-ecwid requested a review from zont163 June 4, 2026 10:45
@hanna-ecwid hanna-ecwid merged commit a15e39f into master Jun 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants