Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Add write-only Invoice.couponIds #795

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

edmandiesamonte
Copy link
Contributor

Support for redeeming coupons to be used to a specific invoice.

@edmandiesamonte edmandiesamonte requested review from a team as code owners January 15, 2020 13:28
@edmandiesamonte edmandiesamonte self-assigned this Jan 15, 2020
This parameter respects the following logic:
- When not passed then applied coupons will not be changed.
- When empty array passed then all applied coupon redemptions will be canceled.
- When list of coupons is passed then not applied yet coupons will be applied, already applied coupons
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- When list of coupons is passed then not applied yet coupons will be applied, already applied coupons
- When list of coupons is passed then coupons will be redeemed (if not yet redeemed) and applied (if not yet applied). If already redeemed and applied, the state will not change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants