-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[patch] Add support for endpoint for listing customer's redeemables (#…
…268) * Added list redeemables endpoint. * Added CustomerRedeemablesListQueryParams * Fixed listRedeemables url * Added Redeemable statuses. * Added tests for customer redeemable. Fixed formatting. * Changeset for customer redeemable * fix - drop 'page' param from 'CustomerRedeemablesListQueryParams' interface as it is not available * fix - appropiate enum values for 'voucher_type' field in 'CustomerRedeemable' * fix - add explicit enum values for 'type' field in 'Redeemable' * fix - add dedicated type for Voucher Redeemable in Customers's Redeemabel List since it is not the same as Voucher type * fix - data field in 'CustomerRedeemablesListResponse' is plain array, not Record. Add more fields to 'RedeemableContainerVoucher' * fix - add missing fields 'has_more' and 'more_starting_after' to 'CustomerRedeemablesListResponse' * fixes for CustomerRedeemables endpoint: - types names following CONTRIBUTING.md - add missing voucher.gift.effect - adding missing voucher.loyalty_card.next_expiration_date and voucher.loyalty_card.next_expiration_points - adding missing voucher.redemption.redeemed_points - voucher.active as optional field * Change NOT_ACTIVE validity status to NOT_ACTIVE_YET --------- Co-authored-by: jkaliszuk <[email protected]> Co-authored-by: Marcin Slezak <[email protected]>
- Loading branch information
1 parent
b5c096c
commit 3d23881
Showing
5 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@voucherify/sdk': patch | ||
--- | ||
|
||
New endpoint support - `customer-redeemable` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters