-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change structure to domain and 0-level types
- Loading branch information
1 parent
2f6c6f4
commit 54db76d
Showing
3 changed files
with
94 additions
and
145 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 |
---|---|---|
@@ -1,19 +1,36 @@ | ||
--- | ||
'@voucherify/sdk': major | ||
'@voucherify/sdk': minor | ||
--- | ||
|
||
Added support for following endpoints: | ||
- GET /vouchers/{code}/transactions (client.vouchers.listTransactions(code, query)) | ||
- POST /vouchers/{code}/transactions/export (client.vouchers.exportGiftCardTransactions(code, body)) | ||
- POST /vouchers/{code}/transactions/export (client.vouchers.exportTransactions(code, body)) | ||
|
||
**New exported types/interfaces** | ||
Domain types: | ||
- GiftCardTransaction | ||
- GiftCardTransactionIdentity | ||
- GiftCardTransactionBase | ||
- GiftCardTransactionResponseData | ||
GiftCardTransactionDetails | ||
- GiftCardTransactionRedemptionDetails | ||
- GiftCardTransactionRefundDetails | ||
- GiftCardTransactionAdditionDetails | ||
- GiftCardTransactionRemovalDetails | ||
- VoucherTransaction | ||
- VoucherTransactionsExport | ||
- VoucherTransactionExportIdentity | ||
- VoucherTransactionExportBase | ||
- VoucherTransactionExportResponseData | ||
- VoucherTransactionsExportFields | ||
|
||
0-level types: | ||
- VouchersListTransactionsRequestQuery | ||
- VouchersListGiftCardTransactionsResponseBody | ||
- VouchersListGiftCardTransactionsType | ||
- VouchersListGiftCardTransactionsData | ||
- VouchersExportGiftCardTransactionsRequestBody | ||
- VouchersExportGiftCardTransactionsResponseBody | ||
- VouchersExportGiftCardTransactionsParams | ||
- VouchersExportGiftCardTransactionsFields | ||
- VouchersExportGiftCardTransactionsParamsFilters | ||
- VouchersListTransactionsResponseBody - | ||
- VouchersExportTransactionsRequestBody | ||
- VouchersExportTransactionsResponseBody | ||
|
||
**Other changes** | ||
- Use `VouchersExportTransactionsRequestBody` as `LoyaltiesExportCardTransactionsRequestBody` (these types are identical, both related to the export of loyalty card transactions) | ||
- Use `VouchersExportTransactionsResponseBody` as `LoyaltiesExportCardTransactionsResponseBody` ((these types are identical, both related to the export of loyalty card transactions)) | ||
|
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