voucherify 7.0.0 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/EXAMPLES.md +3 -3
- data/Gemfile.lock +1 -1
- data/README.md +10 -5
- data/docs/CampaignsCreateRequestBody.md +1 -1
- data/docs/CampaignsImportVoucherItem.md +1 -1
- data/docs/CampaignsUpdateRequestBody.md +1 -1
- data/docs/ClientValidationsValidateResponseBodyRedeemablesItem.md +1 -1
- data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultDetails.md +1 -1
- data/docs/Discount.md +1 -1
- data/docs/DiscountProduct.md +10 -0
- data/docs/EarningRuleLoyalty.md +1 -1
- data/docs/ExportParameters.md +1 -1
- data/docs/ExportsCreateRequestBodyParameters.md +1 -1
- data/docs/ExportsCreateResponseBodyParameters.md +1 -1
- data/docs/ExportsGetResponseBodyParameters.md +1 -1
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItem.md +1 -1
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyalty.md +2 -2
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyalty.md +1 -1
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyalty.md +1 -1
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyalty.md +1 -1
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyalty.md +1 -1
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyalty.md +1 -1
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyalty.md +1 -1
- data/docs/ProductCollectionsProductsListResponseBodyDataItem.md +1 -1
- data/docs/PublicationsCreateRequestBody.md +1 -1
- data/docs/PublicationsCreateResponseBody.md +1 -1
- data/docs/RedemptionEntry.md +1 -1
- data/docs/RedemptionEntryCustomer.md +1 -1
- data/docs/RedemptionEntryOrder.md +2 -2
- data/docs/RedemptionEntryPromotionTier.md +1 -1
- data/docs/RedemptionEntryVoucher.md +1 -1
- data/docs/RedemptionsGetResponseBody.md +1 -1
- data/docs/RedemptionsGetResponseBodyCustomer.md +1 -1
- data/docs/RedemptionsGetResponseBodyOrder.md +2 -2
- data/docs/RedemptionsGetResponseBodyPromotionTier.md +1 -1
- data/docs/RedemptionsGetResponseBodyVoucher.md +1 -1
- data/docs/RedemptionsListResponseBodyRedemptionsItem.md +1 -1
- data/docs/RedemptionsListResponseBodyRedemptionsItemCustomer.md +1 -1
- data/docs/RedemptionsListResponseBodyRedemptionsItemOrder.md +2 -2
- data/docs/RedemptionsListResponseBodyRedemptionsItemPromotionTier.md +1 -1
- data/docs/RedemptionsListResponseBodyRedemptionsItemVoucher.md +1 -1
- data/docs/RewardsCreateRequestBody.md +1 -1
- data/docs/RewardsUpdateRequestBody.md +1 -1
- data/docs/ValidationsValidateResponseBodyRedeemablesItem.md +1 -1
- data/docs/ValidationsValidateResponseBodyRedeemablesItemResultDetails.md +1 -1
- data/docs/VouchersApi.md +2 -2
- data/docs/VouchersCreateRequestBody.md +27 -0
- data/docs/VouchersCreateRequestBodyRedemption.md +8 -0
- data/docs/VouchersCreateWithSpecificCodeRequestBody.md +1 -1
- data/docs/VouchersImportCreateItemRequestBody.md +1 -1
- data/docs/VouchersUpdateRequestBody.md +1 -1
- data/lib/VoucherifySdk/api/vouchers_api.rb +3 -3
- data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +1 -0
- data/lib/VoucherifySdk/models/campaigns_import_voucher_item.rb +1 -0
- data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +1 -0
- data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item.rb +2 -0
- data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_details.rb +13 -13
- data/lib/VoucherifySdk/models/discount.rb +2 -1
- data/lib/VoucherifySdk/models/{export_parameters_filters.rb → discount_product.rb} +26 -51
- data/lib/VoucherifySdk/models/earning_rule_loyalty.rb +17 -17
- data/lib/VoucherifySdk/models/export_parameters.rb +3 -2
- data/lib/VoucherifySdk/models/exports_create_request_body_parameters.rb +3 -2
- data/lib/VoucherifySdk/models/exports_create_response_body_parameters.rb +3 -2
- data/lib/VoucherifySdk/models/exports_get_response_body_parameters.rb +3 -2
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item.rb +2 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty.rb +22 -22
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty.rb +17 -17
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty.rb +17 -17
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty.rb +17 -17
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty.rb +17 -17
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty.rb +17 -17
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty.rb +17 -17
- data/lib/VoucherifySdk/models/product_collections_products_list_response_body_data_item.rb +1 -0
- data/lib/VoucherifySdk/models/publications_create_request_body.rb +1 -0
- data/lib/VoucherifySdk/models/publications_create_response_body.rb +1 -0
- data/lib/VoucherifySdk/models/redemption_entry.rb +1 -0
- data/lib/VoucherifySdk/models/redemption_entry_customer.rb +1 -0
- data/lib/VoucherifySdk/models/redemption_entry_order.rb +5 -2
- data/lib/VoucherifySdk/models/redemption_entry_promotion_tier.rb +1 -0
- data/lib/VoucherifySdk/models/redemption_entry_voucher.rb +1 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body.rb +1 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_customer.rb +1 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_order.rb +5 -2
- data/lib/VoucherifySdk/models/redemptions_get_response_body_promotion_tier.rb +1 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher.rb +1 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item.rb +2 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_customer.rb +2 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_order.rb +7 -2
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_promotion_tier.rb +2 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher.rb +2 -0
- data/lib/VoucherifySdk/models/rewards_create_request_body.rb +1 -0
- data/lib/VoucherifySdk/models/rewards_update_request_body.rb +1 -0
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item.rb +2 -0
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_details.rb +13 -13
- data/lib/VoucherifySdk/models/vouchers_create_request_body.rb +431 -0
- data/lib/VoucherifySdk/models/{exports_get_response_body_parameters_filters.rb → vouchers_create_request_body_redemption.rb} +10 -57
- data/lib/VoucherifySdk/models/vouchers_create_with_specific_code_request_body.rb +1 -0
- data/lib/VoucherifySdk/models/vouchers_import_create_item_request_body.rb +1 -0
- data/lib/VoucherifySdk/models/vouchers_update_request_body.rb +1 -0
- data/lib/VoucherifySdk/version.rb +1 -1
- data/lib/VoucherifySdk.rb +3 -4
- metadata +8 -10
- data/docs/ExportParametersFilters.md +0 -11
- data/docs/ExportsCreateRequestBodyParametersFilters.md +0 -11
- data/docs/ExportsCreateResponseBodyParametersFilters.md +0 -11
- data/docs/ExportsGetResponseBodyParametersFilters.md +0 -11
- data/lib/VoucherifySdk/models/exports_create_request_body_parameters_filters.rb +0 -256
- data/lib/VoucherifySdk/models/exports_create_response_body_parameters_filters.rb +0 -256
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cfa860ad1a89bbecdb001167c8535db422362f08463cc3b0defe52df109d373
|
4
|
+
data.tar.gz: 74e3d7ebc8493c06057d33b3127987816f131e2094a92135338ee4ecac3ac384
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1016d225a183845e3c020dbad2ed4ac09c40c1268486d91984ce7b002d0e247ed554f9d81fe3ac8298e261192069caff1a1408d5313aa3fcb448dcfa09521c5d
|
7
|
+
data.tar.gz: c091f4cd61e42bbf982effb3b52e4017e7fc1e10e4d13f07c8570d8c82fdcfd7aa90cdd5009a4479238a256b65cf15c01adffbb9d6cdc4128d2ec7c022155971
|
data/Dockerfile
CHANGED
data/EXAMPLES.md
CHANGED
@@ -67,15 +67,15 @@ gem build VoucherifySdk.gemspec
|
|
67
67
|
Then either install the gem locally:
|
68
68
|
|
69
69
|
```shell
|
70
|
-
gem install ./VoucherifySdk-
|
70
|
+
gem install ./VoucherifySdk-8.0.0.gem
|
71
71
|
```
|
72
72
|
|
73
|
-
(for development, run `gem install --dev ./VoucherifySdk-
|
73
|
+
(for development, run `gem install --dev ./VoucherifySdk-8.0.0.gem` to install the development dependencies)
|
74
74
|
|
75
75
|
Add this to the Gemfile:
|
76
76
|
|
77
77
|
```shell
|
78
|
-
gem 'VoucherifySdk', '~>
|
78
|
+
gem 'VoucherifySdk', '~> 8.0.0'
|
79
79
|
```
|
80
80
|
|
81
81
|
Then install dependencies with bundler
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -113,7 +113,13 @@ Remember that this SDK is auto generated (except of the tests) so changes made h
|
|
113
113
|
|
114
114
|
## 📅 Changelog
|
115
115
|
|
116
|
-
- **2024-10-28** - `
|
116
|
+
- **2024-10-28** - `8.0.0`
|
117
|
+
- Added missing `enums` in few filters models
|
118
|
+
- !!! BREAKING CHANGES !!!
|
119
|
+
- VouchersApi.generateRandomCode now requires `VouchersCreateResponseBody` instead of plain `object`
|
120
|
+
- property `product` in model `Discount` now uses `DiscountProduct` instead of `SimpleProductDiscountUnit`
|
121
|
+
- property `filters` of model `ExportsCreateRequestBodyParameters` now uses plain `object` instead of `ExportsCreateRequestBodyParametersFilters`
|
122
|
+
- **2024-10-25** - `7.0.0`
|
117
123
|
- Fix object parsing in query. For example `filters` while listing redemptions.
|
118
124
|
- !!! BREAKING CHANGES !!!
|
119
125
|
- Remove support for `/v1/customers/{customerId}/consents` - put `Update Customer's consents [Deprecated]`
|
@@ -589,6 +595,7 @@ Class | Method | HTTP request | Description
|
|
589
595
|
- [VoucherifySdk::CustomersUpdateResponseBodyAddress](docs/CustomersUpdateResponseBodyAddress.md)
|
590
596
|
- [VoucherifySdk::CustomersUpdateResponseBodyAssets](docs/CustomersUpdateResponseBodyAssets.md)
|
591
597
|
- [VoucherifySdk::Discount](docs/Discount.md)
|
598
|
+
- [VoucherifySdk::DiscountProduct](docs/DiscountProduct.md)
|
592
599
|
- [VoucherifySdk::DiscountUnitMultipleOneUnit](docs/DiscountUnitMultipleOneUnit.md)
|
593
600
|
- [VoucherifySdk::EarningRule](docs/EarningRule.md)
|
594
601
|
- [VoucherifySdk::EarningRuleCustomEvent](docs/EarningRuleCustomEvent.md)
|
@@ -617,20 +624,16 @@ Class | Method | HTTP request | Description
|
|
617
624
|
- [VoucherifySdk::ExportOrderFields](docs/ExportOrderFields.md)
|
618
625
|
- [VoucherifySdk::ExportOrderOrder](docs/ExportOrderOrder.md)
|
619
626
|
- [VoucherifySdk::ExportParameters](docs/ExportParameters.md)
|
620
|
-
- [VoucherifySdk::ExportParametersFilters](docs/ExportParametersFilters.md)
|
621
627
|
- [VoucherifySdk::ExportResult](docs/ExportResult.md)
|
622
628
|
- [VoucherifySdk::ExportVoucherTransactionsFields](docs/ExportVoucherTransactionsFields.md)
|
623
629
|
- [VoucherifySdk::ExportVoucherTransactionsFilters](docs/ExportVoucherTransactionsFilters.md)
|
624
630
|
- [VoucherifySdk::ExportVoucherTransactionsOrder](docs/ExportVoucherTransactionsOrder.md)
|
625
631
|
- [VoucherifySdk::ExportsCreateRequestBody](docs/ExportsCreateRequestBody.md)
|
626
632
|
- [VoucherifySdk::ExportsCreateRequestBodyParameters](docs/ExportsCreateRequestBodyParameters.md)
|
627
|
-
- [VoucherifySdk::ExportsCreateRequestBodyParametersFilters](docs/ExportsCreateRequestBodyParametersFilters.md)
|
628
633
|
- [VoucherifySdk::ExportsCreateResponseBody](docs/ExportsCreateResponseBody.md)
|
629
634
|
- [VoucherifySdk::ExportsCreateResponseBodyParameters](docs/ExportsCreateResponseBodyParameters.md)
|
630
|
-
- [VoucherifySdk::ExportsCreateResponseBodyParametersFilters](docs/ExportsCreateResponseBodyParametersFilters.md)
|
631
635
|
- [VoucherifySdk::ExportsGetResponseBody](docs/ExportsGetResponseBody.md)
|
632
636
|
- [VoucherifySdk::ExportsGetResponseBodyParameters](docs/ExportsGetResponseBodyParameters.md)
|
633
|
-
- [VoucherifySdk::ExportsGetResponseBodyParametersFilters](docs/ExportsGetResponseBodyParametersFilters.md)
|
634
637
|
- [VoucherifySdk::ExportsGetResponseBodyResult](docs/ExportsGetResponseBodyResult.md)
|
635
638
|
- [VoucherifySdk::ExportsListResponseBody](docs/ExportsListResponseBody.md)
|
636
639
|
- [VoucherifySdk::FieldConditions](docs/FieldConditions.md)
|
@@ -1547,6 +1550,8 @@ Class | Method | HTTP request | Description
|
|
1547
1550
|
- [VoucherifySdk::VouchersBalanceUpdateRequestBody](docs/VouchersBalanceUpdateRequestBody.md)
|
1548
1551
|
- [VoucherifySdk::VouchersBalanceUpdateResponseBody](docs/VouchersBalanceUpdateResponseBody.md)
|
1549
1552
|
- [VoucherifySdk::VouchersBalanceUpdateResponseBodyRelatedObject](docs/VouchersBalanceUpdateResponseBodyRelatedObject.md)
|
1553
|
+
- [VoucherifySdk::VouchersCreateRequestBody](docs/VouchersCreateRequestBody.md)
|
1554
|
+
- [VoucherifySdk::VouchersCreateRequestBodyRedemption](docs/VouchersCreateRequestBodyRedemption.md)
|
1550
1555
|
- [VoucherifySdk::VouchersCreateResponseBody](docs/VouchersCreateResponseBody.md)
|
1551
1556
|
- [VoucherifySdk::VouchersCreateResponseBodyGift](docs/VouchersCreateResponseBodyGift.md)
|
1552
1557
|
- [VoucherifySdk::VouchersCreateResponseBodyLoyaltyCard](docs/VouchersCreateResponseBodyLoyaltyCard.md)
|
@@ -19,7 +19,7 @@
|
|
19
19
|
| **activity_duration_after_publishing** | **String** | Defines the amount of time the vouchers will be active after publishing. The value is shown in the ISO 8601 format. For example, a voucher with the value of P24D will be valid for a duration of 24 days. | [optional] |
|
20
20
|
| **category_id** | **String** | Unique category ID that this campaign belongs to. Either pass this parameter OR the `category`. | [optional] |
|
21
21
|
| **category** | **String** | The category assigned to the campaign. Either pass this parameter OR the `category_id`. | [optional] |
|
22
|
-
| **metadata** | **Object** |
|
22
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the campaign. A set of key/value pairs that you can attach to a campaign object. It can be useful for storing additional information about the campaign in a structured format. | [optional] |
|
23
23
|
| **validation_rules** | **Array<String>** | Array containing the ID of the validation rule associated with the promotion tier. | [optional] |
|
24
24
|
| **campaign_type** | **String** | | [optional] |
|
25
25
|
| **voucher** | [**CampaignsCreateRequestBodyVoucher**](CampaignsCreateRequestBodyVoucher.md) | | [optional] |
|
@@ -7,7 +7,7 @@
|
|
7
7
|
| **code** | **String** | Value representing the imported code. | [optional] |
|
8
8
|
| **redemption** | [**CampaignsImportVoucherItemRedemption**](CampaignsImportVoucherItemRedemption.md) | | [optional] |
|
9
9
|
| **active** | **Boolean** | A flag to toggle the voucher on or off. You can disable a voucher even though it's within the active period defined by the `start_date` and `expiration_date`. - `true` indicates an *active* voucher - `false` indicates an *inactive* voucher | [optional] |
|
10
|
-
| **metadata** | **Object** |
|
10
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the code. A set of key/value pairs that you can attach to a voucher object. It can be useful for storing additional information about the voucher in a structured format. | [optional] |
|
11
11
|
| **category** | **String** | Tag defining the category that this voucher belongs to. Useful when listing vouchers using the [List Vouchers](ref:list-vouchers) endpoint. | [optional] |
|
12
12
|
| **start_date** | **Time** | Activation timestamp presented in the ISO 8601 format. Voucher is *inactive before* this date. Start date defines when the code starts to be active. Allowed date formats are: - YYYY-MM-DD - YYYY-MM-DDTHH - YYYY-MM-DDTHH:mm - YYYY-MM-DDTHH:mm:ss - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ss.SSSZ | [optional] |
|
13
13
|
| **expiration_date** | **Time** | Expiration date defines when the code expires. Expiration timestamp is presented in the ISO 8601 format. Voucher is *inactive after* this date. Allowed date formats are: - YYYY-MM-DD - YYYY-MM-DDTHH - YYYY-MM-DDTHH:mm - YYYY-MM-DDTHH:mm:ss - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ss.SSSZ | [optional] |
|
@@ -11,7 +11,7 @@
|
|
11
11
|
| **validity_hours** | [**ValidityHours**](ValidityHours.md) | | [optional] |
|
12
12
|
| **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
|
13
13
|
| **category** | **String** | The category assigned to the campaign. Either pass this parameter OR the `category_id`. | [optional] |
|
14
|
-
| **metadata** | **Object** |
|
14
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the campaign. A set of key/value pairs that you can attach to a campaign object. It can be useful for storing additional information about the campaign in a structured format. | [optional] |
|
15
15
|
| **unset_metadata_fields** | **Array<String>** | Determine which metadata should be removed from campaign. | [optional] |
|
16
16
|
| **category_id** | **String** | Unique category ID that this campaign belongs to. Either pass this parameter OR the `category`. | [optional] |
|
17
17
|
| **activity_duration_after_publishing** | **String** | Defines the amount of time the vouchers will be active after publishing. The value is shown in the ISO 8601 format. For example, a voucher with the value of P24D will be valid for a duration of 24 days. | [optional] |
|
@@ -11,6 +11,6 @@
|
|
11
11
|
| **applicable_to** | [**ApplicableToResultList**](ApplicableToResultList.md) | | [optional] |
|
12
12
|
| **inapplicable_to** | [**InapplicableToResultList**](InapplicableToResultList.md) | | [optional] |
|
13
13
|
| **result** | [**ClientValidationsValidateResponseBodyRedeemablesItemResult**](ClientValidationsValidateResponseBodyRedeemablesItemResult.md) | | [optional] |
|
14
|
-
| **metadata** | **Object** |
|
14
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes in the form of key/value pairs assigned to the redeemable. | [optional] |
|
15
15
|
| **categories** | [**Array<CategoryWithStackingRulesType>**](CategoryWithStackingRulesType.md) | | [optional] |
|
16
16
|
|
data/docs/Discount.md
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
| **unit_off** | **Integer** | Number of units to be granted a full value discount. | [optional] |
|
14
14
|
| **unit_off_formula** | **String** | | [optional] |
|
15
15
|
| **unit_type** | **String** | The product deemed as free, chosen from product inventory (e.g. time, items). | [optional] |
|
16
|
-
| **product** | [**
|
16
|
+
| **product** | [**DiscountProduct**](DiscountProduct.md) | | [optional] |
|
17
17
|
| **sku** | [**SimpleSkuDiscountUnit**](SimpleSkuDiscountUnit.md) | | [optional] |
|
18
18
|
| **units** | [**Array<DiscountUnitMultipleOneUnit>**](DiscountUnitMultipleOneUnit.md) | | [optional] |
|
19
19
|
| **percent_off** | **Float** | The percent discount that the customer will receive. | [optional] |
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# VoucherifySdk::DiscountProduct
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | Unique product ID, assigned by Voucherify. | [optional] |
|
8
|
+
| **source_id** | **String** | Product's source ID. | [optional] |
|
9
|
+
| **name** | **String** | Product name. | [optional] |
|
10
|
+
|
data/docs/EarningRuleLoyalty.md
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **type** | **String** | | [optional] |
|
8
|
+
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
8
9
|
| **calculation_type** | **String** | | [optional] |
|
9
10
|
| **order** | [**EarningRuleLoyaltyOrder**](EarningRuleLoyaltyOrder.md) | | [optional] |
|
10
11
|
| **order_items** | [**EarningRuleLoyaltyOrderItems**](EarningRuleLoyaltyOrderItems.md) | | [optional] |
|
11
12
|
| **customer** | [**EarningRuleLoyaltyCustomer**](EarningRuleLoyaltyCustomer.md) | | [optional] |
|
12
13
|
| **custom_event** | [**EarningRuleLoyaltyCustomEvent**](EarningRuleLoyaltyCustomEvent.md) | | [optional] |
|
13
|
-
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
14
14
|
|
data/docs/ExportParameters.md
CHANGED
@@ -6,5 +6,5 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **order** | **String** | | [optional] |
|
8
8
|
| **fields** | **Array<String>** | Array of strings containing the data in the export. These fields define the headers in the CSV file. | [optional] |
|
9
|
-
| **filters** |
|
9
|
+
| **filters** | **Object** | Allowed additional properties must start with \"metadata.\" or \"redemption.\" and Allowed additional properties must start with \"metadata.\" and Allowed additional properties must start with \"metadata.\" or \"address.\" or \"summary.\" or \"loyalty.\" or \"loyalty_tier.\" or \"loyalty_points.\" or \"system_metadata.\" | [optional] |
|
10
10
|
|
@@ -6,5 +6,5 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **order** | **String** | | [optional] |
|
8
8
|
| **fields** | **Array<String>** | Array of strings containing the data in the export. These fields define the headers in the CSV file. | [optional] |
|
9
|
-
| **filters** |
|
9
|
+
| **filters** | **Object** | Allowed additional properties must start with \"metadata.\" or \"redemption.\" and Allowed additional properties must start with \"metadata.\" and Allowed additional properties must start with \"metadata.\" or \"address.\" or \"summary.\" or \"loyalty.\" or \"loyalty_tier.\" or \"loyalty_points.\" or \"system_metadata.\" | [optional] |
|
10
10
|
|
@@ -6,5 +6,5 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **order** | **String** | | [optional] |
|
8
8
|
| **fields** | **Array<String>** | Array of strings containing the data in the export. These fields define the headers in the CSV file. | [optional] |
|
9
|
-
| **filters** |
|
9
|
+
| **filters** | **Object** | Allowed additional properties must start with \"metadata.\" or \"redemption.\" and Allowed additional properties must start with \"metadata.\" and Allowed additional properties must start with \"metadata.\" or \"address.\" or \"summary.\" or \"loyalty.\" or \"loyalty_tier.\" or \"loyalty_points.\" or \"system_metadata.\" | [optional] |
|
10
10
|
|
@@ -6,5 +6,5 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **order** | **String** | | [optional] |
|
8
8
|
| **fields** | **Array<String>** | Array of strings containing the data in the export. These fields define the headers in the CSV file. | [optional] |
|
9
|
-
| **filters** |
|
9
|
+
| **filters** | **Object** | Allowed additional properties must start with \"metadata.\" or \"redemption.\" and Allowed additional properties must start with \"metadata.\" and Allowed additional properties must start with \"metadata.\" or \"address.\" or \"summary.\" or \"loyalty.\" or \"loyalty_tier.\" or \"loyalty_points.\" or \"system_metadata.\" | [optional] |
|
10
10
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
| **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
|
15
15
|
| **validity_day_of_week** | **Array<Integer>** | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
|
16
16
|
| **validity_hours** | [**ValidityHours**](ValidityHours.md) | | [optional] |
|
17
|
-
| **metadata** | **Object** |
|
17
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the earning rule. A set of key/value pairs that you can attach to an earning rule object. It can be useful for storing additional information about the earning rule in a structured format. | [optional] |
|
18
18
|
| **segment** | [**LoyaltiesEarningRulesCreateRequestBodyItemSegment**](LoyaltiesEarningRulesCreateRequestBodyItemSegment.md) | | [optional] |
|
19
19
|
| **custom_event** | [**LoyaltiesEarningRulesCreateRequestBodyItemCustomEvent**](LoyaltiesEarningRulesCreateRequestBodyItemCustomEvent.md) | | [optional] |
|
20
20
|
| **loyalty_tier** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyTier**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyTier.md) | | [optional] |
|
@@ -7,8 +7,8 @@
|
|
7
7
|
| **type** | **String** | | [optional] |
|
8
8
|
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
9
9
|
| **calculation_type** | **String** | | [optional] |
|
10
|
-
| **custom_event** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEvent**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEvent.md) | | [optional] |
|
11
|
-
| **order_items** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItems**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItems.md) | | [optional] |
|
12
10
|
| **order** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrder**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrder.md) | | [optional] |
|
11
|
+
| **order_items** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItems**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItems.md) | | [optional] |
|
13
12
|
| **customer** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomer**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomer.md) | | [optional] |
|
13
|
+
| **custom_event** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEvent**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEvent.md) | | [optional] |
|
14
14
|
|
@@ -5,10 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **type** | **String** | | [optional] |
|
8
|
+
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
8
9
|
| **calculation_type** | **String** | | [optional] |
|
9
10
|
| **order** | [**LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrder**](LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrder.md) | | [optional] |
|
10
11
|
| **order_items** | [**LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItems**](LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItems.md) | | [optional] |
|
11
12
|
| **customer** | [**LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomer**](LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomer.md) | | [optional] |
|
12
13
|
| **custom_event** | [**LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomEvent**](LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomEvent.md) | | [optional] |
|
13
|
-
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
14
14
|
|
@@ -5,10 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **type** | **String** | | [optional] |
|
8
|
+
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
8
9
|
| **calculation_type** | **String** | | [optional] |
|
9
10
|
| **order** | [**LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrder**](LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrder.md) | | [optional] |
|
10
11
|
| **order_items** | [**LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItems**](LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItems.md) | | [optional] |
|
11
12
|
| **customer** | [**LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomer**](LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomer.md) | | [optional] |
|
12
13
|
| **custom_event** | [**LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomEvent**](LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomEvent.md) | | [optional] |
|
13
|
-
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
14
14
|
|
@@ -5,10 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **type** | **String** | | [optional] |
|
8
|
+
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
8
9
|
| **calculation_type** | **String** | | [optional] |
|
9
10
|
| **order** | [**LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrder**](LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrder.md) | | [optional] |
|
10
11
|
| **order_items** | [**LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItems**](LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItems.md) | | [optional] |
|
11
12
|
| **customer** | [**LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomer**](LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomer.md) | | [optional] |
|
12
13
|
| **custom_event** | [**LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomEvent**](LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomEvent.md) | | [optional] |
|
13
|
-
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
14
14
|
|
@@ -5,10 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **type** | **String** | | [optional] |
|
8
|
+
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
8
9
|
| **calculation_type** | **String** | | [optional] |
|
9
10
|
| **order** | [**LoyaltiesEarningRulesGetResponseBodyLoyaltyOrder**](LoyaltiesEarningRulesGetResponseBodyLoyaltyOrder.md) | | [optional] |
|
10
11
|
| **order_items** | [**LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItems**](LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItems.md) | | [optional] |
|
11
12
|
| **customer** | [**LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomer**](LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomer.md) | | [optional] |
|
12
13
|
| **custom_event** | [**LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomEvent**](LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomEvent.md) | | [optional] |
|
13
|
-
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
14
14
|
|
@@ -5,10 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **type** | **String** | | [optional] |
|
8
|
+
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
8
9
|
| **calculation_type** | **String** | | [optional] |
|
9
10
|
| **order** | [**LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrder**](LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrder.md) | | [optional] |
|
10
11
|
| **order_items** | [**LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItems**](LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItems.md) | | [optional] |
|
11
12
|
| **customer** | [**LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomer**](LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomer.md) | | [optional] |
|
12
13
|
| **custom_event** | [**LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomEvent**](LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomEvent.md) | | [optional] |
|
13
|
-
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
14
14
|
|
@@ -5,10 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **type** | **String** | | [optional] |
|
8
|
+
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
8
9
|
| **calculation_type** | **String** | | [optional] |
|
9
10
|
| **order** | [**LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrder**](LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrder.md) | | [optional] |
|
10
11
|
| **order_items** | [**LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItems**](LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItems.md) | | [optional] |
|
11
12
|
| **customer** | [**LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomer**](LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomer.md) | | [optional] |
|
12
13
|
| **custom_event** | [**LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomEvent**](LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomEvent.md) | | [optional] |
|
13
|
-
| **points** | **Integer** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional] |
|
14
14
|
|
@@ -9,7 +9,7 @@
|
|
9
9
|
| **name** | **String** | Unique user-defined product name. | [optional] |
|
10
10
|
| **price** | **Integer** | Unit price. It is represented by a value multiplied by 100 to accurately reflect 2 decimal places, such as `$100.00` being expressed as `10000`. | [optional] |
|
11
11
|
| **attributes** | **Array<String>** | A list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`. Each child SKU can have a unique value for a given attribute. | [optional] |
|
12
|
-
| **metadata** | **Object** |
|
12
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. and The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format. | [optional] |
|
13
13
|
| **image_url** | **String** | | [optional] |
|
14
14
|
| **created_at** | **String** | | [optional] |
|
15
15
|
| **updated_at** | **String** | | [optional] |
|
@@ -7,7 +7,7 @@
|
|
7
7
|
| **voucher** | **String** | Code of the voucher being published. | [optional] |
|
8
8
|
| **source_id** | **String** | The merchant's publication ID if it is different from the Voucherify publication ID. It's an optional tracking identifier of a publication. It is really useful in case of an integration between multiple systems. It can be a publication ID from a CRM system, database or 3rd-party service. If `source_id` is provided only 1 voucher can be published per request. | [optional] |
|
9
9
|
| **customer** | [**Customer**](Customer.md) | | [optional] |
|
10
|
-
| **metadata** | **Object** |
|
10
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the publication. A set of key/value pairs that you can attach to a publication object. It can be useful for storing additional information about the publication in a structured format. | [optional] |
|
11
11
|
| **channel** | **String** | Specify the distribution channel. | [optional] |
|
12
12
|
| **campaign** | [**CreatePublicationCampaign**](CreatePublicationCampaign.md) | | [optional] |
|
13
13
|
|
@@ -9,7 +9,7 @@
|
|
9
9
|
| **created_at** | **Time** | Timestamp representing the date and time when the publication was created. The value is shown in the ISO 8601 format. | [optional] |
|
10
10
|
| **customer_id** | **String** | Unique customer ID of the customer receiving the publication. | [optional] |
|
11
11
|
| **tracking_id** | **String** | Customer's `source_id`. | [optional] |
|
12
|
-
| **metadata** | **Object** |
|
12
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the publication. A set of key/value pairs that you can attach to a publication object. It can be useful for storing additional information about the publication in a structured format. | [optional] |
|
13
13
|
| **channel** | **String** | How the publication was originated. It can be your own custom channel or an example value provided here. | [optional][default to 'API'] |
|
14
14
|
| **source_id** | **String** | The merchant's publication ID if it is different from the Voucherify publication ID. It's an optional tracking identifier of a publication. It is really useful in case of an integration between multiple systems. It can be a publication ID from a CRM system, database or 3rd-party service. | [optional] |
|
15
15
|
| **result** | **String** | Status of the publication attempt. | [optional][default to 'SUCCESS'] |
|
data/docs/RedemptionEntry.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
| **date** | **Time** | Timestamp representing the date and time when the object was created. The value is shown in the ISO 8601 format. | [optional] |
|
10
10
|
| **customer_id** | **String** | Unique customer ID of the redeeming customer. | [optional] |
|
11
11
|
| **tracking_id** | **String** | Hashed customer source ID. | [optional] |
|
12
|
-
| **metadata** | **Object** |
|
12
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the redemption. | [optional] |
|
13
13
|
| **amount** | **Integer** | For gift cards, this is a positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the number of redeemed credits. For loyalty cards, this is the number of loyalty points used in the transaction. and For gift cards, this represents the number of the credits restored to the card in the rolledback redemption. The number is a negative integer in the smallest currency unit, e.g. -100 cents for $1.00 added back to the card. For loyalty cards, this represents the number of loyalty points restored to the card in the rolledback redemption. The number is a negative integer. | [optional] |
|
14
14
|
| **redemption** | **String** | Unique redemption ID of the parent redemption. | [optional] |
|
15
15
|
| **result** | **String** | Redemption result. | [optional] |
|
@@ -8,6 +8,6 @@
|
|
8
8
|
| **name** | **String** | Customer's first and last name. | [optional] |
|
9
9
|
| **email** | **String** | Customer's email address. | [optional] |
|
10
10
|
| **source_id** | **String** | A unique identifier of the customer. It can be a customer ID or email from a CRM system, database, or a third-party service. | [optional] |
|
11
|
-
| **metadata** | **Object** |
|
11
|
+
| **metadata** | **Object** | A set of custom key/value pairs that are attached to the customer. It stores all custom attributes assigned to the customer. | [optional] |
|
12
12
|
| **object** | **String** | The type of the object represented by JSON. | [optional][default to 'customer'] |
|
13
13
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
| **items_applied_discount_amount** | **Integer** | Sum of all product-specific discounts applied in a particular request. `sum(items, i => i.applied_discount_amount)` | [optional] |
|
18
18
|
| **total_applied_discount_amount** | **Integer** | Sum of all order-level AND all product-specific discounts applied in a particular request. `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount` | [optional] |
|
19
19
|
| **items** | [**Array<OrderCalculatedItem>**](OrderCalculatedItem.md) | Array of items applied to the order. It can include up 500 items. | [optional] |
|
20
|
-
| **metadata** | **Object** |
|
20
|
+
| **metadata** | **Object** | A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format. | [optional] |
|
21
21
|
| **object** | **String** | The type of the object represented by JSON. | [optional][default to 'order'] |
|
22
22
|
| **created_at** | **Time** | Timestamp representing the date and time when the order was created. The value is shown in the ISO 8601 format. | [optional] |
|
23
23
|
| **updated_at** | **Time** | Timestamp representing the date and time when the order was last updated in ISO 8601 format. | [optional] |
|
@@ -25,5 +25,5 @@
|
|
25
25
|
| **referrer_id** | **String** | Unique referrer ID. | [optional] |
|
26
26
|
| **customer** | [**RedemptionEntryOrderCustomer**](RedemptionEntryOrderCustomer.md) | | [optional] |
|
27
27
|
| **referrer** | [**RedemptionEntryOrderReferrer**](RedemptionEntryOrderReferrer.md) | | [optional] |
|
28
|
-
| **redemptions** | **
|
28
|
+
| **redemptions** | [**Hash<String, OrderRedemptionsEntry>**](OrderRedemptionsEntry.md) | | [optional] |
|
29
29
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
| **name** | **String** | Name of the promotion tier. | [optional] |
|
11
11
|
| **banner** | **String** | Text to be displayed to your customers on your website. | [optional] |
|
12
12
|
| **action** | [**RedemptionEntryPromotionTierAction**](RedemptionEntryPromotionTierAction.md) | | [optional] |
|
13
|
-
| **metadata** | **Object** |
|
13
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the promotion tier. A set of key/value pairs that you can attach to a promotion tier object. It can be useful for storing additional information about the promotion tier in a structured format. | [optional] |
|
14
14
|
| **hierarchy** | **Integer** | The promotions hierarchy defines the order in which the discounts from different tiers will be applied to a customer's order. If a customer qualifies for discounts from more than one tier, discounts will be applied in the order defined in the hierarchy. | [optional] |
|
15
15
|
| **promotion_id** | **String** | Promotion unique ID. | [optional] |
|
16
16
|
| **campaign** | [**RedemptionEntryPromotionTierCampaign**](RedemptionEntryPromotionTierCampaign.md) | | [optional] |
|
@@ -21,7 +21,7 @@
|
|
21
21
|
| **validity_hours** | [**ValidityHours**](ValidityHours.md) | | [optional] |
|
22
22
|
| **active** | **Boolean** | A flag to toggle the voucher on or off. You can disable a voucher even though it's within the active period defined by the `start_date` and `expiration_date`. - `true` indicates an *active* voucher - `false` indicates an *inactive* voucher | [optional] |
|
23
23
|
| **additional_info** | **String** | An optional field to keep any extra textual information about the code such as a code description and details. | [optional] |
|
24
|
-
| **metadata** | **Object** |
|
24
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the code. A set of key/value pairs that you can attach to a voucher object. It can be useful for storing additional information about the voucher in a structured format. | [optional] |
|
25
25
|
| **assets** | [**VoucherAssets**](VoucherAssets.md) | | [optional] |
|
26
26
|
| **is_referral_code** | **Boolean** | Flag indicating whether this voucher is a referral code; `true` for campaign type `REFERRAL_PROGRAM`. | [optional] |
|
27
27
|
| **created_at** | **Time** | Timestamp representing the date and time when the voucher was created. The value is shown in the ISO 8601 format. | [optional] |
|
@@ -9,7 +9,7 @@
|
|
9
9
|
| **date** | **Time** | Timestamp representing the date and time when the object was created. The value is shown in the ISO 8601 format. | [optional] |
|
10
10
|
| **customer_id** | **String** | Unique customer ID of the redeeming customer. | [optional] |
|
11
11
|
| **tracking_id** | **String** | Hashed customer source ID. | [optional] |
|
12
|
-
| **metadata** | **Object** |
|
12
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the redemption. | [optional] |
|
13
13
|
| **amount** | **Integer** | For gift cards, this is a positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the number of redeemed credits. For loyalty cards, this is the number of loyalty points used in the transaction. and For gift cards, this represents the number of the credits restored to the card in the rolledback redemption. The number is a negative integer in the smallest currency unit, e.g. -100 cents for $1.00 added back to the card. For loyalty cards, this represents the number of loyalty points restored to the card in the rolledback redemption. The number is a negative integer. | [optional] |
|
14
14
|
| **redemption** | **String** | Unique redemption ID of the parent redemption. | [optional] |
|
15
15
|
| **result** | **String** | Redemption result. | [optional] |
|
@@ -8,6 +8,6 @@
|
|
8
8
|
| **name** | **String** | Customer's first and last name. | [optional] |
|
9
9
|
| **email** | **String** | Customer's email address. | [optional] |
|
10
10
|
| **source_id** | **String** | A unique identifier of the customer. It can be a customer ID or email from a CRM system, database, or a third-party service. | [optional] |
|
11
|
-
| **metadata** | **Object** |
|
11
|
+
| **metadata** | **Object** | A set of custom key/value pairs that are attached to the customer. It stores all custom attributes assigned to the customer. | [optional] |
|
12
12
|
| **object** | **String** | The type of the object represented by JSON. | [optional][default to 'customer'] |
|
13
13
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
| **items_applied_discount_amount** | **Integer** | Sum of all product-specific discounts applied in a particular request. `sum(items, i => i.applied_discount_amount)` | [optional] |
|
18
18
|
| **total_applied_discount_amount** | **Integer** | Sum of all order-level AND all product-specific discounts applied in a particular request. `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount` | [optional] |
|
19
19
|
| **items** | [**Array<OrderCalculatedItem>**](OrderCalculatedItem.md) | Array of items applied to the order. It can include up 500 items. | [optional] |
|
20
|
-
| **metadata** | **Object** |
|
20
|
+
| **metadata** | **Object** | A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format. | [optional] |
|
21
21
|
| **object** | **String** | The type of the object represented by JSON. | [optional][default to 'order'] |
|
22
22
|
| **created_at** | **Time** | Timestamp representing the date and time when the order was created. The value is shown in the ISO 8601 format. | [optional] |
|
23
23
|
| **updated_at** | **Time** | Timestamp representing the date and time when the order was last updated in ISO 8601 format. | [optional] |
|
@@ -25,5 +25,5 @@
|
|
25
25
|
| **referrer_id** | **String** | Unique referrer ID. | [optional] |
|
26
26
|
| **customer** | [**RedemptionsGetResponseBodyOrderCustomer**](RedemptionsGetResponseBodyOrderCustomer.md) | | [optional] |
|
27
27
|
| **referrer** | [**RedemptionsGetResponseBodyOrderReferrer**](RedemptionsGetResponseBodyOrderReferrer.md) | | [optional] |
|
28
|
-
| **redemptions** | **
|
28
|
+
| **redemptions** | [**Hash<String, OrderRedemptionsEntry>**](OrderRedemptionsEntry.md) | | [optional] |
|
29
29
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
| **name** | **String** | Name of the promotion tier. | [optional] |
|
11
11
|
| **banner** | **String** | Text to be displayed to your customers on your website. | [optional] |
|
12
12
|
| **action** | [**RedemptionsGetResponseBodyPromotionTierAction**](RedemptionsGetResponseBodyPromotionTierAction.md) | | [optional] |
|
13
|
-
| **metadata** | **Object** |
|
13
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the promotion tier. A set of key/value pairs that you can attach to a promotion tier object. It can be useful for storing additional information about the promotion tier in a structured format. | [optional] |
|
14
14
|
| **hierarchy** | **Integer** | The promotions hierarchy defines the order in which the discounts from different tiers will be applied to a customer's order. If a customer qualifies for discounts from more than one tier, discounts will be applied in the order defined in the hierarchy. | [optional] |
|
15
15
|
| **promotion_id** | **String** | Promotion unique ID. | [optional] |
|
16
16
|
| **campaign** | [**RedemptionsGetResponseBodyPromotionTierCampaign**](RedemptionsGetResponseBodyPromotionTierCampaign.md) | | [optional] |
|
@@ -21,7 +21,7 @@
|
|
21
21
|
| **validity_hours** | [**ValidityHours**](ValidityHours.md) | | [optional] |
|
22
22
|
| **active** | **Boolean** | A flag to toggle the voucher on or off. You can disable a voucher even though it's within the active period defined by the `start_date` and `expiration_date`. - `true` indicates an *active* voucher - `false` indicates an *inactive* voucher | [optional] |
|
23
23
|
| **additional_info** | **String** | An optional field to keep any extra textual information about the code such as a code description and details. | [optional] |
|
24
|
-
| **metadata** | **Object** |
|
24
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the code. A set of key/value pairs that you can attach to a voucher object. It can be useful for storing additional information about the voucher in a structured format. | [optional] |
|
25
25
|
| **assets** | [**VoucherAssets**](VoucherAssets.md) | | [optional] |
|
26
26
|
| **is_referral_code** | **Boolean** | Flag indicating whether this voucher is a referral code; `true` for campaign type `REFERRAL_PROGRAM`. | [optional] |
|
27
27
|
| **created_at** | **Time** | Timestamp representing the date and time when the voucher was created. The value is shown in the ISO 8601 format. | [optional] |
|
@@ -9,7 +9,7 @@
|
|
9
9
|
| **date** | **Time** | Timestamp representing the date and time when the object was created. The value is shown in the ISO 8601 format. | [optional] |
|
10
10
|
| **customer_id** | **String** | Unique customer ID of the redeeming customer. | [optional] |
|
11
11
|
| **tracking_id** | **String** | Hashed customer source ID. | [optional] |
|
12
|
-
| **metadata** | **Object** |
|
12
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the redemption. | [optional] |
|
13
13
|
| **amount** | **Integer** | For gift cards, this is a positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the number of redeemed credits. For loyalty cards, this is the number of loyalty points used in the transaction. and For gift cards, this represents the number of the credits restored to the card in the rolledback redemption. The number is a negative integer in the smallest currency unit, e.g. -100 cents for $1.00 added back to the card. For loyalty cards, this represents the number of loyalty points restored to the card in the rolledback redemption. The number is a negative integer. | [optional] |
|
14
14
|
| **redemption** | **String** | Unique redemption ID of the parent redemption. | [optional] |
|
15
15
|
| **result** | **String** | Redemption result. | [optional] |
|
@@ -8,6 +8,6 @@
|
|
8
8
|
| **name** | **String** | Customer's first and last name. | [optional] |
|
9
9
|
| **email** | **String** | Customer's email address. | [optional] |
|
10
10
|
| **source_id** | **String** | A unique identifier of the customer. It can be a customer ID or email from a CRM system, database, or a third-party service. | [optional] |
|
11
|
-
| **metadata** | **Object** |
|
11
|
+
| **metadata** | **Object** | A set of custom key/value pairs that are attached to the customer. It stores all custom attributes assigned to the customer. | [optional] |
|
12
12
|
| **object** | **String** | The type of the object represented by JSON. | [optional][default to 'customer'] |
|
13
13
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
| **items_applied_discount_amount** | **Integer** | Sum of all product-specific discounts applied in a particular request. `sum(items, i => i.applied_discount_amount)` | [optional] |
|
18
18
|
| **total_applied_discount_amount** | **Integer** | Sum of all order-level AND all product-specific discounts applied in a particular request. `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount` | [optional] |
|
19
19
|
| **items** | [**Array<OrderCalculatedItem>**](OrderCalculatedItem.md) | Array of items applied to the order. It can include up 500 items. | [optional] |
|
20
|
-
| **metadata** | **Object** |
|
20
|
+
| **metadata** | **Object** | A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format. | [optional] |
|
21
21
|
| **object** | **String** | The type of the object represented by JSON. | [optional][default to 'order'] |
|
22
22
|
| **created_at** | **Time** | Timestamp representing the date and time when the order was created. The value is shown in the ISO 8601 format. | [optional] |
|
23
23
|
| **updated_at** | **Time** | Timestamp representing the date and time when the order was last updated in ISO 8601 format. | [optional] |
|
@@ -25,5 +25,5 @@
|
|
25
25
|
| **referrer_id** | **String** | Unique referrer ID. | [optional] |
|
26
26
|
| **customer** | [**RedemptionsListResponseBodyRedemptionsItemOrderCustomer**](RedemptionsListResponseBodyRedemptionsItemOrderCustomer.md) | | [optional] |
|
27
27
|
| **referrer** | [**RedemptionsListResponseBodyRedemptionsItemOrderReferrer**](RedemptionsListResponseBodyRedemptionsItemOrderReferrer.md) | | [optional] |
|
28
|
-
| **redemptions** | **
|
28
|
+
| **redemptions** | [**Hash<String, OrderRedemptionsEntry>**](OrderRedemptionsEntry.md) | | [optional] |
|
29
29
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
| **name** | **String** | Name of the promotion tier. | [optional] |
|
11
11
|
| **banner** | **String** | Text to be displayed to your customers on your website. | [optional] |
|
12
12
|
| **action** | [**RedemptionsListResponseBodyRedemptionsItemPromotionTierAction**](RedemptionsListResponseBodyRedemptionsItemPromotionTierAction.md) | | [optional] |
|
13
|
-
| **metadata** | **Object** |
|
13
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the promotion tier. A set of key/value pairs that you can attach to a promotion tier object. It can be useful for storing additional information about the promotion tier in a structured format. | [optional] |
|
14
14
|
| **hierarchy** | **Integer** | The promotions hierarchy defines the order in which the discounts from different tiers will be applied to a customer's order. If a customer qualifies for discounts from more than one tier, discounts will be applied in the order defined in the hierarchy. | [optional] |
|
15
15
|
| **promotion_id** | **String** | Promotion unique ID. | [optional] |
|
16
16
|
| **campaign** | [**RedemptionsListResponseBodyRedemptionsItemPromotionTierCampaign**](RedemptionsListResponseBodyRedemptionsItemPromotionTierCampaign.md) | | [optional] |
|
@@ -21,7 +21,7 @@
|
|
21
21
|
| **validity_hours** | [**ValidityHours**](ValidityHours.md) | | [optional] |
|
22
22
|
| **active** | **Boolean** | A flag to toggle the voucher on or off. You can disable a voucher even though it's within the active period defined by the `start_date` and `expiration_date`. - `true` indicates an *active* voucher - `false` indicates an *inactive* voucher | [optional] |
|
23
23
|
| **additional_info** | **String** | An optional field to keep any extra textual information about the code such as a code description and details. | [optional] |
|
24
|
-
| **metadata** | **Object** |
|
24
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the code. A set of key/value pairs that you can attach to a voucher object. It can be useful for storing additional information about the voucher in a structured format. | [optional] |
|
25
25
|
| **assets** | [**VoucherAssets**](VoucherAssets.md) | | [optional] |
|
26
26
|
| **is_referral_code** | **Boolean** | Flag indicating whether this voucher is a referral code; `true` for campaign type `REFERRAL_PROGRAM`. | [optional] |
|
27
27
|
| **created_at** | **Time** | Timestamp representing the date and time when the voucher was created. The value is shown in the ISO 8601 format. | [optional] |
|
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **name** | **String** | Reward name. | [optional] |
|
8
8
|
| **parameters** | [**RewardsCreateRequestBodyParameters**](RewardsCreateRequestBodyParameters.md) | | [optional] |
|
9
|
-
| **metadata** | **Object** |
|
9
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the reward. A set of key/value pairs that you can attach to a reward object. It can be useful for storing additional information about the reward in a structured format. | [optional] |
|
10
10
|
| **stock** | **Integer** | The number of units of the product that you want to share as a reward. | [optional] |
|
11
11
|
| **attributes** | [**RewardsCreateRequestBodyAttributes**](RewardsCreateRequestBodyAttributes.md) | | [optional] |
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **name** | **String** | Reward name. | [optional] |
|
8
8
|
| **parameters** | [**RewardsUpdateRequestBodyParameters**](RewardsUpdateRequestBodyParameters.md) | | [optional] |
|
9
|
-
| **metadata** | **Object** |
|
9
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the reward. A set of key/value pairs that you can attach to a reward object. It can be useful for storing additional information about the reward in a structured format. | [optional] |
|
10
10
|
| **stock** | **Integer** | The number of units of the product that you want to share as a reward. | [optional] |
|
11
11
|
| **attributes** | [**RewardsUpdateRequestBodyAttributes**](RewardsUpdateRequestBodyAttributes.md) | | [optional] |
|
12
12
|
|
@@ -11,6 +11,6 @@
|
|
11
11
|
| **applicable_to** | [**ApplicableToResultList**](ApplicableToResultList.md) | | [optional] |
|
12
12
|
| **inapplicable_to** | [**InapplicableToResultList**](InapplicableToResultList.md) | | [optional] |
|
13
13
|
| **result** | [**ValidationsValidateResponseBodyRedeemablesItemResult**](ValidationsValidateResponseBodyRedeemablesItemResult.md) | | [optional] |
|
14
|
-
| **metadata** | **Object** |
|
14
|
+
| **metadata** | **Object** | The metadata object stores all custom attributes in the form of key/value pairs assigned to the redeemable. | [optional] |
|
15
15
|
| **categories** | [**Array<CategoryWithStackingRulesType>**](CategoryWithStackingRulesType.md) | | [optional] |
|
16
16
|
|