-
Notifications
You must be signed in to change notification settings - Fork 56
PROMO-1393 add number of codes use #1237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
add number of codes use fields
| - number_of_codes | ||
| - number_of_used_codes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the intention is to have those fields as optional, and we can query them in adhoc with "include" parameter, somethingg like "GET /promotions?include=number_of_codes,number_of_used_codes"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matt-evangelidis, atm we do have ?include=codes for our internal API usage right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably we can do the same for those number_of_codes and number_of_used_codes, make it available for internal usage for now ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if so, probably we don't need to update this swagger doc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i will implement as GET /promotions?include=number_of_codes,number_of_used_codes then
do we want to hide if promotion is automatic or maybe number of codes are 0 for automatic promotions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks ! @donald-nguyen-bc ill try with that in my implementation 👍

PROMO-1393
What changed?
add new field when get promotions
number_of_codes and number_of_used_codes
Release notes draft
Anything else?
ping {names}