voucherify 8.0.1 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +1 -1
  3. data/ENDPOINTS-COVERAGE.md +64 -60
  4. data/Gemfile.lock +4 -4
  5. data/README.md +11 -0
  6. data/docs/Campaign.md +2 -2
  7. data/docs/CampaignBase.md +2 -2
  8. data/docs/CampaignsApi.md +3 -3
  9. data/docs/CampaignsCreateRequestBody.md +1 -1
  10. data/docs/CampaignsCreateResponseBody.md +2 -2
  11. data/docs/CampaignsGetResponseBody.md +2 -2
  12. data/docs/CampaignsUpdateRequestBody.md +2 -2
  13. data/docs/CampaignsUpdateResponseBody.md +2 -2
  14. data/docs/ClientValidationsValidateResponseBodyRedeemablesItem.md +3 -2
  15. data/docs/Error.md +1 -0
  16. data/docs/ErrorError.md +8 -0
  17. data/docs/LoyaltiesCreateCampaignRequestBody.md +1 -1
  18. data/docs/LoyaltiesMembersBalanceUpdateResponseBody.md +1 -1
  19. data/docs/LoyaltiesMembersPointsExpirationListResponseBodyDataItem.md +9 -9
  20. data/docs/LoyaltiesMembersPointsExpirationListResponseBodyDataItemBucket.md +1 -1
  21. data/docs/LoyaltiesUpdateCampaignRequestBody.md +2 -2
  22. data/docs/LoyaltyCardTransaction.md +2 -2
  23. data/docs/LoyaltyCardTransactionDetailsBalance.md +5 -4
  24. data/docs/LoyaltyCardTransactionDetailsBalanceRelatedObject.md +1 -1
  25. data/docs/LoyaltyPointsBucket.md +16 -0
  26. data/docs/LoyaltyPointsBucketBucket.md +8 -0
  27. data/docs/Order.md +1 -1
  28. data/docs/OrderCalculated.md +1 -1
  29. data/docs/OrderCalculatedItem.md +1 -1
  30. data/docs/OrderCalculatedItemProduct.md +1 -1
  31. data/docs/OrderCalculatedItemSku.md +1 -0
  32. data/docs/OrderItem.md +1 -1
  33. data/docs/OrderItemProduct.md +1 -1
  34. data/docs/OrderItemSku.md +1 -0
  35. data/docs/OrdersCreateRequestBody.md +1 -1
  36. data/docs/OrdersCreateResponseBody.md +1 -1
  37. data/docs/OrdersGetResponseBody.md +1 -1
  38. data/docs/OrdersImportCreateRequestBodyItem.md +1 -1
  39. data/docs/OrdersUpdateRequestBody.md +1 -1
  40. data/docs/OrdersUpdateResponseBody.md +1 -1
  41. data/docs/Product.md +1 -1
  42. data/docs/ProductCollectionsProductsListResponseBodyDataItem.md +1 -1
  43. data/docs/ProductWithoutSkus.md +1 -1
  44. data/docs/ProductsCreateResponseBody.md +1 -1
  45. data/docs/ProductsGetResponseBody.md +1 -1
  46. data/docs/ProductsSkusCreateResponseBody.md +1 -1
  47. data/docs/ProductsSkusUpdateResponseBody.md +1 -1
  48. data/docs/ProductsUpdateResponseBody.md +1 -1
  49. data/docs/RedemptionEntryOrder.md +1 -1
  50. data/docs/RedemptionsGetResponseBodyOrder.md +1 -1
  51. data/docs/RedemptionsListResponseBodyRedemptionsItemOrder.md +1 -1
  52. data/docs/Sku.md +1 -1
  53. data/docs/SkusGetResponseBody.md +1 -1
  54. data/docs/TemplatesCampaignsCampaignSetupCreateRequestBody.md +1 -1
  55. data/docs/ValidationsRedeemableInapplicable.md +3 -2
  56. data/docs/ValidationsRedeemableSkipped.md +3 -2
  57. data/docs/ValidationsValidateResponseBodyRedeemablesItem.md +3 -2
  58. data/docs/VoucherBalance.md +14 -0
  59. data/docs/VoucherBalanceRelatedObject.md +9 -0
  60. data/docs/VoucherTransaction.md +2 -2
  61. data/docs/VoucherTransactionDetailsBalance.md +5 -4
  62. data/docs/VoucherTransactionDetailsBalanceRelatedObject.md +1 -1
  63. data/docs/VouchersApi.md +6 -6
  64. data/docs/VouchersBalanceUpdateResponseBody.md +1 -1
  65. data/lib/VoucherifySdk/api/campaigns_api.rb +4 -4
  66. data/lib/VoucherifySdk/api/vouchers_api.rb +10 -10
  67. data/lib/VoucherifySdk/models/access_settings_campaign_assignments_list.rb +1 -1
  68. data/lib/VoucherifySdk/models/campaign.rb +3 -3
  69. data/lib/VoucherifySdk/models/campaign_base.rb +3 -3
  70. data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +1 -1
  71. data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +3 -3
  72. data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +3 -3
  73. data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +2 -2
  74. data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +3 -3
  75. data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item.rb +18 -7
  76. data/lib/VoucherifySdk/models/error.rb +15 -5
  77. data/lib/VoucherifySdk/models/error_error.rb +210 -0
  78. data/lib/VoucherifySdk/models/loyalties_create_campaign_request_body.rb +1 -1
  79. data/lib/VoucherifySdk/models/loyalties_members_balance_update_response_body.rb +1 -0
  80. data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item.rb +27 -77
  81. data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item_bucket.rb +3 -9
  82. data/lib/VoucherifySdk/models/loyalties_update_campaign_request_body.rb +2 -2
  83. data/lib/VoucherifySdk/models/loyalty_card_transaction.rb +24 -31
  84. data/lib/VoucherifySdk/models/loyalty_card_transaction_details.rb +0 -1
  85. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_balance.rb +18 -19
  86. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_balance_related_object.rb +1 -7
  87. data/lib/VoucherifySdk/models/loyalty_points_bucket.rb +323 -0
  88. data/lib/VoucherifySdk/models/loyalty_points_bucket_bucket.rb +210 -0
  89. data/lib/VoucherifySdk/models/order.rb +1 -1
  90. data/lib/VoucherifySdk/models/order_calculated.rb +1 -1
  91. data/lib/VoucherifySdk/models/order_calculated_item.rb +1 -1
  92. data/lib/VoucherifySdk/models/order_calculated_item_product.rb +1 -1
  93. data/lib/VoucherifySdk/models/order_calculated_item_sku.rb +16 -5
  94. data/lib/VoucherifySdk/models/order_item.rb +1 -1
  95. data/lib/VoucherifySdk/models/order_item_product.rb +1 -1
  96. data/lib/VoucherifySdk/models/order_item_sku.rb +16 -5
  97. data/lib/VoucherifySdk/models/orders_create_request_body.rb +1 -1
  98. data/lib/VoucherifySdk/models/orders_create_response_body.rb +1 -1
  99. data/lib/VoucherifySdk/models/orders_get_response_body.rb +1 -1
  100. data/lib/VoucherifySdk/models/orders_import_create_request_body_item.rb +1 -1
  101. data/lib/VoucherifySdk/models/orders_update_request_body.rb +1 -1
  102. data/lib/VoucherifySdk/models/orders_update_response_body.rb +1 -1
  103. data/lib/VoucherifySdk/models/parameter_expand_list_campaigns.rb +2 -1
  104. data/lib/VoucherifySdk/models/product.rb +1 -1
  105. data/lib/VoucherifySdk/models/product_collections_products_list_response_body_data_item.rb +1 -1
  106. data/lib/VoucherifySdk/models/product_without_skus.rb +1 -1
  107. data/lib/VoucherifySdk/models/products_create_response_body.rb +1 -1
  108. data/lib/VoucherifySdk/models/products_get_response_body.rb +1 -1
  109. data/lib/VoucherifySdk/models/products_skus_create_response_body.rb +1 -1
  110. data/lib/VoucherifySdk/models/products_skus_update_response_body.rb +1 -1
  111. data/lib/VoucherifySdk/models/products_update_response_body.rb +1 -1
  112. data/lib/VoucherifySdk/models/redemption_entry_order.rb +1 -1
  113. data/lib/VoucherifySdk/models/redemptions_get_response_body_order.rb +1 -1
  114. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_order.rb +1 -1
  115. data/lib/VoucherifySdk/models/sku.rb +1 -1
  116. data/lib/VoucherifySdk/models/skus_get_response_body.rb +1 -1
  117. data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body.rb +1 -1
  118. data/lib/VoucherifySdk/models/validations_redeemable_inapplicable.rb +18 -7
  119. data/lib/VoucherifySdk/models/validations_redeemable_skipped.rb +18 -7
  120. data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item.rb +18 -7
  121. data/lib/VoucherifySdk/models/voucher_balance.rb +305 -0
  122. data/lib/VoucherifySdk/models/voucher_balance_related_object.rb +247 -0
  123. data/lib/VoucherifySdk/models/voucher_transaction.rb +27 -31
  124. data/lib/VoucherifySdk/models/voucher_transaction_details.rb +0 -1
  125. data/lib/VoucherifySdk/models/voucher_transaction_details_balance.rb +18 -19
  126. data/lib/VoucherifySdk/models/voucher_transaction_details_balance_related_object.rb +1 -7
  127. data/lib/VoucherifySdk/models/vouchers_balance_update_response_body.rb +1 -0
  128. data/lib/VoucherifySdk/version.rb +1 -1
  129. data/lib/VoucherifySdk.rb +5 -0
  130. metadata +12 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bd297998446deabcb68472b9af4b93458a303693214b65413e0f9e605d4355d
4
- data.tar.gz: 3b7f692260b4a257027b108d65d72cabee75a327df907a6bff34f67418e0aa54
3
+ metadata.gz: c15c05945ed82f7bef1191b3186335aca48d3641d99bd9c002f6faa66866a63f
4
+ data.tar.gz: fbd696a83b34e8d9008f16182374db4295af439c14826d8dbaf7f47d532bba86
5
5
  SHA512:
6
- metadata.gz: 6f4382e4ac6de778adae258ae0a280fa1c40eb47a345a2e9b9eb756ab4116b85c4cb73b052895d804eba399a09dd79830c7526c179cd867e9e1802ac4b924171
7
- data.tar.gz: 68d777019060f235f3a16fb6d53906ace79b1907a2d0200458f7dda4654241bbffba39fcb467153a81210d9c3750b93bce3757de1077c0e309aab8e2d814d00e
6
+ metadata.gz: 6a24f0e608743dde0c27985b8b3c2ddc61b6db9a1341a03784d74bc38a73d17bad6588312abb27c0b61e87d31572842158926e7c93934ad3b4f6bc4650e37b42
7
+ data.tar.gz: ece2ba582e4243dacd844c4c9ef8418895592c62beed97901c3e9018836de72088d8d9f5ff77a2f24dbc3e0e524353d61a54d7b9798e95acd3668a95609f835d
data/Dockerfile CHANGED
@@ -5,7 +5,7 @@ WORKDIR /app
5
5
  COPY . .
6
6
 
7
7
  RUN gem build VoucherifySdk.gemspec
8
- RUN gem install voucherify-8.0.1.gem
8
+ RUN gem install voucherify-8.0.2.gem
9
9
  RUN gem install dotenv
10
10
  RUN gem install rspec
11
11
 
@@ -79,20 +79,22 @@
79
79
  | /v1/vouchers/{code}/sessions/{sessionKey} | delete | Release Validation Session | <font color='green'>supported</font> | |
80
80
  | /v1/vouchers/qualification | post | Examine Qualification [Deprecated] | | <font color='red'>deprecated</font> |
81
81
  ## Campaigns
82
- | endpoint | method | summary | is supported | is deprecated |
83
- | ------------------------------------------ | ------ | ------------------------------------------ | ------------------------------------ | ------------------------------------ |
84
- | /v1/campaigns | post | Create Campaign | <font color='green'>supported</font> | |
85
- | /v1/campaigns | get | List Campaigns | <font color='green'>supported</font> | |
86
- | /v1/campaigns/{campaignId} | get | Get Campaign | <font color='green'>supported</font> | |
87
- | /v1/campaigns/{campaignId} | put | Update Campaign | <font color='green'>supported</font> | |
88
- | /v1/campaigns/{campaignId} | delete | Delete Campaign | <font color='green'>supported</font> | |
89
- | /v1/campaigns/{campaignId}/vouchers | post | Add Vouchers to Campaign | <font color='green'>supported</font> | |
90
- | /v1/campaigns/{campaignId}/vouchers/{code} | post | Add Voucher with Specific Code to Campaign | <font color='green'>supported</font> | |
91
- | /v1/campaigns/{campaignId}/import | post | Import Vouchers to Campaign | <font color='green'>supported</font> | |
92
- | /v1/campaigns/{campaignId}/importCSV | post | Import Vouchers to Campaign by CSV | <font color='green'>supported</font> | |
93
- | /v1/campaigns/qualification | post | Examine Qualification [Deprecated] | | <font color='red'>deprecated</font> |
94
- | /v1/campaigns/{campaignId}/enable | post | Enable Campaign | <font color='green'>supported</font> | |
95
- | /v1/campaigns/{campaignId}/disable | post | Disable Campaign | <font color='green'>supported</font> | |
82
+ | endpoint | method | summary | is supported | is deprecated |
83
+ | ---------------------------------------------- | ------ | ------------------------------------------ | ------------------------------------ | ------------------------------------ |
84
+ | /v1/campaigns | post | Create Campaign | <font color='green'>supported</font> | |
85
+ | /v1/campaigns | get | List Campaigns | <font color='green'>supported</font> | |
86
+ | /v1/campaigns/{campaignId} | get | Get Campaign | <font color='green'>supported</font> | |
87
+ | /v1/campaigns/{campaignId} | put | Update Campaign | <font color='green'>supported</font> | |
88
+ | /v1/campaigns/{campaignId} | delete | Delete Campaign | <font color='green'>supported</font> | |
89
+ | /v1/campaigns/{campaignId}/vouchers | post | Add Vouchers to Campaign | <font color='green'>supported</font> | |
90
+ | /v1/campaigns/{campaignId}/vouchers/{code} | post | Add Voucher with Specific Code to Campaign | <font color='green'>supported</font> | |
91
+ | /v1/campaigns/{campaignId}/import | post | Import Vouchers to Campaign | <font color='green'>supported</font> | |
92
+ | /v1/campaigns/{campaignId}/importCSV | post | Import Vouchers to Campaign by CSV | <font color='green'>supported</font> | |
93
+ | /v1/campaigns/qualification | post | Examine Qualification [Deprecated] | | <font color='red'>deprecated</font> |
94
+ | /v1/campaigns/{campaignId}/enable | post | Enable Campaign | <font color='green'>supported</font> | |
95
+ | /v1/campaigns/{campaignId}/disable | post | Disable Campaign | <font color='green'>supported</font> | |
96
+ | /v1/campaigns/{campaignId}/transactions | get | List Campaign Transactions | | |
97
+ | /v1/campaigns/{campaignId}/transactions/export | post | Export Campaign Transactions | | |
96
98
  ## Promotions
97
99
  | endpoint | method | summary | is supported | is deprecated |
98
100
  | ---------------------------------------------- | ------ | ---------------------------------- | ------------------------------------ | ------------- |
@@ -124,52 +126,54 @@
124
126
  | /v1/rewards/{rewardId}/assignments/{assignmentId} | delete | Delete Reward Assignment | <font color='green'>supported</font> | |
125
127
  | /v1/rewards/{rewardId}/assignments/{assignmentId} | get | Get Reward Assignment | <font color='green'>supported</font> | |
126
128
  ## Loyalties
127
- | endpoint | method | summary | is supported | is deprecated |
128
- | ------------------------------------------------------------------- | ------ | ---------------------------------- | ------------------------------------ | ------------- |
129
- | /v1/loyalties | get | List Loyalty Campaigns | <font color='green'>supported</font> | |
130
- | /v1/loyalties | post | Create Loyalty Campaign | <font color='green'>supported</font> | |
131
- | /v1/loyalties/{campaignId} | get | Get Loyalty Campaign | <font color='green'>supported</font> | |
132
- | /v1/loyalties/{campaignId} | put | Update Loyalty Campaign | <font color='green'>supported</font> | |
133
- | /v1/loyalties/{campaignId} | delete | Delete Loyalty Campaign | <font color='green'>supported</font> | |
134
- | /v1/loyalties/{campaignId}/members | get | List Members | <font color='green'>supported</font> | |
135
- | /v1/loyalties/{campaignId}/members | post | Add Member | <font color='green'>supported</font> | |
136
- | /v1/loyalties/{campaignId}/members/{memberId} | get | Get Member | <font color='green'>supported</font> | |
137
- | /v1/loyalties/members/{memberId} | get | Get Member | <font color='green'>supported</font> | |
138
- | /v1/loyalties/{campaignId}/members/{memberId}/activity | get | List Member Activity | <font color='green'>supported</font> | |
139
- | /v1/loyalties/members/{memberId}/activity | get | List Member Activity | <font color='green'>supported</font> | |
140
- | /v1/loyalties/{campaignId}/members/{memberId}/balance | post | Add or Remove Loyalty Card Balance | <font color='green'>supported</font> | |
141
- | /v1/loyalties/members/{memberId}/balance | post | Add or Remove Loyalty Card Balance | <font color='green'>supported</font> | |
142
- | /v1/loyalties/{campaignId}/members/{memberId}/transfers | post | Transfer Loyalty Points | <font color='green'>supported</font> | |
143
- | /v1/loyalties/{campaignId}/members/{memberId}/transactions | get | List Loyalty Card Transactions | <font color='green'>supported</font> | |
144
- | /v1/loyalties/members/{memberId}/transactions | get | List Loyalty Card Transactions | <font color='green'>supported</font> | |
145
- | /v1/loyalties/members/{memberId}/transactions/export | post | Export Loyalty Card Transactions | <font color='green'>supported</font> | |
146
- | /v1/loyalties/{campaignId}/members/{memberId}/transactions/export | post | Export Loyalty Card Transactions | <font color='green'>supported</font> | |
147
- | /v1/loyalties/{campaignId}/members/{memberId}/points-expiration | get | Get Points Expiration | <font color='green'>supported</font> | |
148
- | /v1/loyalties/{campaignId}/points-expiration/export | post | Create Points Expiration Export | <font color='green'>supported</font> | |
149
- | /v1/loyalties/{campaignId}/earning-rules | get | List Earning Rules | <font color='green'>supported</font> | |
150
- | /v1/loyalties/{campaignId}/earning-rules | post | Create Earning Rule | <font color='green'>supported</font> | |
151
- | /v1/loyalties/{campaignId}/earning-rules/{earningRuleId} | get | Get Earning Rule | <font color='green'>supported</font> | |
152
- | /v1/loyalties/{campaignId}/earning-rules/{earningRuleId} | put | Update Earning Rule | <font color='green'>supported</font> | |
153
- | /v1/loyalties/{campaignId}/earning-rules/{earningRuleId} | delete | Delete Earning Rule | <font color='green'>supported</font> | |
154
- | /v1/loyalties/{campaignId}/earning-rules/{earningRuleId}/enable | post | Enable Earning Rule | <font color='green'>supported</font> | |
155
- | /v1/loyalties/{campaignId}/earning-rules/{earningRuleId}/disable | post | Disable Earning Rule | <font color='green'>supported</font> | |
156
- | /v1/loyalties/members/{memberId}/rewards | get | List Member Rewards | <font color='green'>supported</font> | |
157
- | /v1/loyalties/{campaignId}/reward-assignments/{assignmentId}/reward | get | Get Reward Details | <font color='green'>supported</font> | |
158
- | /v1/loyalties/{campaignId}/reward-assignments | get | List Reward Assignments | <font color='green'>supported</font> | |
159
- | /v1/loyalties/{campaignId}/rewards | get | List Reward Assignments | <font color='green'>supported</font> | |
160
- | /v1/loyalties/{campaignId}/rewards | post | Create Reward Assignment | <font color='green'>supported</font> | |
161
- | /v1/loyalties/{campaignId}/reward-assignments/{assignmentId} | get | Get Reward Assignment | <font color='green'>supported</font> | |
162
- | /v1/loyalties/{campaignId}/rewards/{assignmentId} | get | Get Reward Assignment | <font color='green'>supported</font> | |
163
- | /v1/loyalties/{campaignId}/rewards/{assignmentId} | put | Update Reward Assignment | <font color='green'>supported</font> | |
164
- | /v1/loyalties/{campaignId}/rewards/{assignmentId} | delete | Delete Reward Assignment | <font color='green'>supported</font> | |
165
- | /v1/loyalties/{campaignId}/members/{memberId}/redemption | post | Redeem Reward | <font color='green'>supported</font> | |
166
- | /v1/loyalties/members/{memberId}/redemption | post | Redeem Reward | <font color='green'>supported</font> | |
167
- | /v1/loyalties/{campaignId}/tiers | get | List Loyalty Tiers | <font color='green'>supported</font> | |
168
- | /v1/loyalties/{campaignId}/tiers | post | Create loyalty tiers | <font color='green'>supported</font> | |
169
- | /v1/loyalties/{campaignId}/tiers/{loyaltyTierId} | get | Get Loyalty Tier | <font color='green'>supported</font> | |
170
- | /v1/loyalties/members/{memberId}/tiers | get | List Member's Loyalty Tiers | <font color='green'>supported</font> | |
171
- | /v1/loyalties/{campaignId}/tiers/{loyaltyTierId}/earning-rules | get | List Loyalty Tier Earning Rules | <font color='green'>supported</font> | |
172
- | /v1/loyalties/{campaignId}/tiers/{loyaltyTierId}/rewards | get | List Loyalty Tier Rewards | <font color='green'>supported</font> | |
129
+ | endpoint | method | summary | is supported | is deprecated |
130
+ | ------------------------------------------------------------------- | ------ | ------------------------------------ | ------------------------------------ | ------------- |
131
+ | /v1/loyalties | get | List Loyalty Campaigns | <font color='green'>supported</font> | |
132
+ | /v1/loyalties | post | Create Loyalty Campaign | <font color='green'>supported</font> | |
133
+ | /v1/loyalties/{campaignId} | get | Get Loyalty Campaign | <font color='green'>supported</font> | |
134
+ | /v1/loyalties/{campaignId} | put | Update Loyalty Campaign | <font color='green'>supported</font> | |
135
+ | /v1/loyalties/{campaignId} | delete | Delete Loyalty Campaign | <font color='green'>supported</font> | |
136
+ | /v1/loyalties/{campaignId}/members | get | List Members | <font color='green'>supported</font> | |
137
+ | /v1/loyalties/{campaignId}/members | post | Add Member | <font color='green'>supported</font> | |
138
+ | /v1/loyalties/{campaignId}/members/{memberId} | get | Get Member | <font color='green'>supported</font> | |
139
+ | /v1/loyalties/members/{memberId} | get | Get Member | <font color='green'>supported</font> | |
140
+ | /v1/loyalties/{campaignId}/members/{memberId}/activity | get | List Member Activity | <font color='green'>supported</font> | |
141
+ | /v1/loyalties/members/{memberId}/activity | get | List Member Activity | <font color='green'>supported</font> | |
142
+ | /v1/loyalties/{campaignId}/members/{memberId}/balance | post | Add or Remove Loyalty Card Balance | <font color='green'>supported</font> | |
143
+ | /v1/loyalties/members/{memberId}/balance | post | Add or Remove Loyalty Card Balance | <font color='green'>supported</font> | |
144
+ | /v1/loyalties/{campaignId}/members/{memberId}/transfers | post | Transfer Loyalty Points | <font color='green'>supported</font> | |
145
+ | /v1/loyalties/{campaignId}/transactions | get | List Loyalty Campaign Transactions | | |
146
+ | /v1/loyalties/{campaignId}/transactions/export | post | Export Loyalty Campaign Transactions | | |
147
+ | /v1/loyalties/{campaignId}/members/{memberId}/transactions | get | List Loyalty Card Transactions | <font color='green'>supported</font> | |
148
+ | /v1/loyalties/members/{memberId}/transactions | get | List Loyalty Card Transactions | <font color='green'>supported</font> | |
149
+ | /v1/loyalties/members/{memberId}/transactions/export | post | Export Loyalty Card Transactions | <font color='green'>supported</font> | |
150
+ | /v1/loyalties/{campaignId}/members/{memberId}/transactions/export | post | Export Loyalty Card Transactions | <font color='green'>supported</font> | |
151
+ | /v1/loyalties/{campaignId}/members/{memberId}/points-expiration | get | Get Points Expiration | <font color='green'>supported</font> | |
152
+ | /v1/loyalties/{campaignId}/points-expiration/export | post | Create Points Expiration Export | <font color='green'>supported</font> | |
153
+ | /v1/loyalties/{campaignId}/earning-rules | get | List Earning Rules | <font color='green'>supported</font> | |
154
+ | /v1/loyalties/{campaignId}/earning-rules | post | Create Earning Rule | <font color='green'>supported</font> | |
155
+ | /v1/loyalties/{campaignId}/earning-rules/{earningRuleId} | get | Get Earning Rule | <font color='green'>supported</font> | |
156
+ | /v1/loyalties/{campaignId}/earning-rules/{earningRuleId} | put | Update Earning Rule | <font color='green'>supported</font> | |
157
+ | /v1/loyalties/{campaignId}/earning-rules/{earningRuleId} | delete | Delete Earning Rule | <font color='green'>supported</font> | |
158
+ | /v1/loyalties/{campaignId}/earning-rules/{earningRuleId}/enable | post | Enable Earning Rule | <font color='green'>supported</font> | |
159
+ | /v1/loyalties/{campaignId}/earning-rules/{earningRuleId}/disable | post | Disable Earning Rule | <font color='green'>supported</font> | |
160
+ | /v1/loyalties/members/{memberId}/rewards | get | List Member Rewards | <font color='green'>supported</font> | |
161
+ | /v1/loyalties/{campaignId}/reward-assignments/{assignmentId}/reward | get | Get Reward Details | <font color='green'>supported</font> | |
162
+ | /v1/loyalties/{campaignId}/reward-assignments | get | List Reward Assignments | <font color='green'>supported</font> | |
163
+ | /v1/loyalties/{campaignId}/rewards | get | List Reward Assignments | <font color='green'>supported</font> | |
164
+ | /v1/loyalties/{campaignId}/rewards | post | Create Reward Assignment | <font color='green'>supported</font> | |
165
+ | /v1/loyalties/{campaignId}/reward-assignments/{assignmentId} | get | Get Reward Assignment | <font color='green'>supported</font> | |
166
+ | /v1/loyalties/{campaignId}/rewards/{assignmentId} | get | Get Reward Assignment | <font color='green'>supported</font> | |
167
+ | /v1/loyalties/{campaignId}/rewards/{assignmentId} | put | Update Reward Assignment | <font color='green'>supported</font> | |
168
+ | /v1/loyalties/{campaignId}/rewards/{assignmentId} | delete | Delete Reward Assignment | <font color='green'>supported</font> | |
169
+ | /v1/loyalties/{campaignId}/members/{memberId}/redemption | post | Redeem Reward | <font color='green'>supported</font> | |
170
+ | /v1/loyalties/members/{memberId}/redemption | post | Redeem Reward | <font color='green'>supported</font> | |
171
+ | /v1/loyalties/{campaignId}/tiers | get | List Loyalty Tiers | <font color='green'>supported</font> | |
172
+ | /v1/loyalties/{campaignId}/tiers | post | Create loyalty tiers | <font color='green'>supported</font> | |
173
+ | /v1/loyalties/{campaignId}/tiers/{loyaltyTierId} | get | Get Loyalty Tier | <font color='green'>supported</font> | |
174
+ | /v1/loyalties/members/{memberId}/tiers | get | List Member's Loyalty Tiers | <font color='green'>supported</font> | |
175
+ | /v1/loyalties/{campaignId}/tiers/{loyaltyTierId}/earning-rules | get | List Loyalty Tier Earning Rules | <font color='green'>supported</font> | |
176
+ | /v1/loyalties/{campaignId}/tiers/{loyaltyTierId}/rewards | get | List Loyalty Tier Rewards | <font color='green'>supported</font> | |
173
177
  ## Customers
174
178
  | endpoint | method | summary | is supported | is deprecated |
175
179
  | --------------------------------------------- | ------ | ------------------------------------- | ------------------------------------ | ------------------------------------ |
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- voucherify (8.0.1)
4
+ voucherify (8.0.2)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -17,7 +17,7 @@ GEM
17
17
  jaro_winkler (1.5.6)
18
18
  method_source (1.1.0)
19
19
  parallel (1.26.3)
20
- parser (3.3.5.1)
20
+ parser (3.3.6.0)
21
21
  ast (~> 2.4.1)
22
22
  racc
23
23
  pry (0.14.2)
@@ -26,7 +26,7 @@ GEM
26
26
  pry-byebug (3.10.1)
27
27
  byebug (~> 11.0)
28
28
  pry (>= 0.13, < 0.15)
29
- psych (5.1.2)
29
+ psych (5.2.0)
30
30
  stringio
31
31
  racc (1.8.1)
32
32
  rainbow (3.1.1)
@@ -53,7 +53,7 @@ GEM
53
53
  ruby-progressbar (~> 1.7)
54
54
  unicode-display_width (>= 1.4.0, < 1.6)
55
55
  ruby-progressbar (1.13.0)
56
- stringio (3.1.1)
56
+ stringio (3.1.2)
57
57
  typhoeus (1.4.1)
58
58
  ethon (>= 0.9.0)
59
59
  unicode-display_width (1.5.0)
data/README.md CHANGED
@@ -113,6 +113,12 @@ Remember that this SDK is auto generated (except of the tests) so changes made h
113
113
 
114
114
  ## 📅 Changelog
115
115
 
116
+ - **2024-11-26** - `8.0.2`
117
+ - Added support for `STANDALONE` campaign type.
118
+ - Added optional `metadata` in `OrderCalculatedItemSku`
119
+ - New possible value of `ParameterExpandListCampaigns`
120
+ - New optional `error` parameter in `Error`
121
+ - Updated `LoyaltyCardTransactionDetailsBalance`
116
122
  - **2024-11-04** - `8.0.1`
117
123
  - Added support for returning `campaign_id` and `campaign_name` in stackable validation endpoint, when `redeemable` option is expanded
118
124
  - **2024-10-28** - `8.0.0`
@@ -618,6 +624,7 @@ Class | Method | HTTP request | Description
618
624
  - [VoucherifySdk::EarningRuleSegment](docs/EarningRuleSegment.md)
619
625
  - [VoucherifySdk::EarningRuleSource](docs/EarningRuleSource.md)
620
626
  - [VoucherifySdk::Error](docs/Error.md)
627
+ - [VoucherifySdk::ErrorError](docs/ErrorError.md)
621
628
  - [VoucherifySdk::EventsCreateRequestBody](docs/EventsCreateRequestBody.md)
622
629
  - [VoucherifySdk::EventsCreateRequestBodyLoyalty](docs/EventsCreateRequestBodyLoyalty.md)
623
630
  - [VoucherifySdk::EventsCreateRequestBodyReferral](docs/EventsCreateRequestBodyReferral.md)
@@ -903,6 +910,8 @@ Class | Method | HTTP request | Description
903
910
  - [VoucherifySdk::LoyaltyMemberLoyaltyCard](docs/LoyaltyMemberLoyaltyCard.md)
904
911
  - [VoucherifySdk::LoyaltyMemberPublish](docs/LoyaltyMemberPublish.md)
905
912
  - [VoucherifySdk::LoyaltyMemberRedemption](docs/LoyaltyMemberRedemption.md)
913
+ - [VoucherifySdk::LoyaltyPointsBucket](docs/LoyaltyPointsBucket.md)
914
+ - [VoucherifySdk::LoyaltyPointsBucketBucket](docs/LoyaltyPointsBucketBucket.md)
906
915
  - [VoucherifySdk::LoyaltyTier](docs/LoyaltyTier.md)
907
916
  - [VoucherifySdk::LoyaltyTierBase](docs/LoyaltyTierBase.md)
908
917
  - [VoucherifySdk::LoyaltyTierBasePoints](docs/LoyaltyTierBasePoints.md)
@@ -1520,6 +1529,8 @@ Class | Method | HTTP request | Description
1520
1529
  - [VoucherifySdk::VoucherAssets](docs/VoucherAssets.md)
1521
1530
  - [VoucherifySdk::VoucherAssetsBarcode](docs/VoucherAssetsBarcode.md)
1522
1531
  - [VoucherifySdk::VoucherAssetsQr](docs/VoucherAssetsQr.md)
1532
+ - [VoucherifySdk::VoucherBalance](docs/VoucherBalance.md)
1533
+ - [VoucherifySdk::VoucherBalanceRelatedObject](docs/VoucherBalanceRelatedObject.md)
1523
1534
  - [VoucherifySdk::VoucherGift](docs/VoucherGift.md)
1524
1535
  - [VoucherifySdk::VoucherLoyaltyCard](docs/VoucherLoyaltyCard.md)
1525
1536
  - [VoucherifySdk::VoucherPublish](docs/VoucherPublish.md)
data/docs/Campaign.md CHANGED
@@ -8,10 +8,10 @@
8
8
  | **name** | **String** | Campaign name. | [optional] |
9
9
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published | [optional] |
11
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published - &#x60;STANDALONE&#x60;: campaign for single vouchers | [optional] |
12
12
  | **voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional] |
13
13
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
14
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. | [optional] |
14
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. It is always &#x60;false&#x60; for standalone voucher campaigns and it cannot be changed in them. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
16
16
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
17
17
  | **validity_day_of_week** | **Array&lt;Integer&gt;** | Integer array corresponding to the particular days of the week in which the voucher is valid. - &#x60;0&#x60; Sunday - &#x60;1&#x60; Monday - &#x60;2&#x60; Tuesday - &#x60;3&#x60; Wednesday - &#x60;4&#x60; Thursday - &#x60;5&#x60; Friday - &#x60;6&#x60; Saturday | [optional] |
data/docs/CampaignBase.md CHANGED
@@ -8,10 +8,10 @@
8
8
  | **name** | **String** | Campaign name. | [optional] |
9
9
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published | [optional] |
11
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published - &#x60;STANDALONE&#x60;: campaign for single vouchers | [optional] |
12
12
  | **voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional] |
13
13
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
14
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. | [optional] |
14
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. It is always &#x60;false&#x60; for standalone voucher campaigns and it cannot be changed in them. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
16
16
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
17
17
  | **validity_day_of_week** | **Array&lt;Integer&gt;** | Integer array corresponding to the particular days of the week in which the voucher is valid. - &#x60;0&#x60; Sunday - &#x60;1&#x60; Monday - &#x60;2&#x60; Tuesday - &#x60;3&#x60; Wednesday - &#x60;4&#x60; Thursday - &#x60;5&#x60; Friday - &#x60;6&#x60; Saturday | [optional] |
data/docs/CampaignsApi.md CHANGED
@@ -151,7 +151,7 @@ end
151
151
 
152
152
  Create Campaign
153
153
 
154
- Method to create a batch of vouchers aggregated in one campaign. You can choose a variety of voucher types and define a unique pattern for generating codes. 📘 Global uniqueness All campaign codes are unique across the whole project. Voucherify will not allow you to generate 2 campaigns with the same coupon code. 🚧 Code generation status This is an asynchronous action; you cant read or modify a newly created campaign until the code generation is completed. See the creation_status field in the campaign object description.
154
+ Method to create a batch of vouchers aggregated in one campaign. You can choose a variety of voucher types and define a unique pattern for generating codes. 📘 Global uniqueness All campaign codes are unique across the whole project. Voucherify will not allow you to generate 2 campaigns with the same coupon code. 🚧 Code generation status This is an asynchronous action; you cant read or modify a newly created campaign until the code generation is completed. See the creation_status field in the campaign object description. 🚧 Standalone Vouchers and Campaigns In version [v20241004](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004), standalone vouchers created through the Voucherify dashboard create a campaign for that voucher. However, you cannot create a standalone discount or gift voucher campaign with the type: STANDALONE through the API. Voucherify developers work on adding that feature. Follow the [Voucherify Release Notes](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004) for more details about released features.
155
155
 
156
156
  ### Examples
157
157
 
@@ -596,7 +596,7 @@ opts = {
596
596
  limit: 56, # Integer | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
597
597
  page: 56, # Integer | Which page of results to return. The lowest value is 1.
598
598
  campaign_type: VoucherifySdk::ParameterCampaignType::PROMOTION, # ParameterCampaignType | This attribute allows filtering by campaign type.
599
- expand: VoucherifySdk::ParameterExpandListCampaigns::CATEGORY, # ParameterExpandListCampaigns | Include an expanded categories object in the response.
599
+ expand: VoucherifySdk::ParameterExpandListCampaigns::CATEGORY, # ParameterExpandListCampaigns | Includes an expanded categories object in the response. If the [Areas and Stores](https://support.voucherify.io/article/623-areas-and-stores) Enterprise feature is enabled, add access_settings_assignments to return assigned areas and stores.
600
600
  order: VoucherifySdk::ParameterOrderListCampaigns::CREATED_AT, # ParameterOrderListCampaigns | Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
601
601
  filters: VoucherifySdk::ParameterFiltersListCampaigns.new # ParameterFiltersListCampaigns | Filters the results by campaign status or whether the campaign is a referral campaign.
602
602
  }
@@ -617,7 +617,7 @@ end
617
617
  | **limit** | **Integer** | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items. | [optional] |
618
618
  | **page** | **Integer** | Which page of results to return. The lowest value is 1. | [optional] |
619
619
  | **campaign_type** | [**ParameterCampaignType**](.md) | This attribute allows filtering by campaign type. | [optional] |
620
- | **expand** | [**ParameterExpandListCampaigns**](.md) | Include an expanded categories object in the response. | [optional][default to &#39;category&#39;] |
620
+ | **expand** | [**ParameterExpandListCampaigns**](.md) | Includes an expanded categories object in the response. If the [Areas and Stores](https://support.voucherify.io/article/623-areas-and-stores) Enterprise feature is enabled, add access_settings_assignments to return assigned areas and stores. | [optional] |
621
621
  | **order** | [**ParameterOrderListCampaigns**](.md) | Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. | [optional] |
622
622
  | **filters** | [**ParameterFiltersListCampaigns**](.md) | Filters the results by campaign status or whether the campaign is a referral campaign. | [optional] |
623
623
 
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | Campaign name. | [optional] |
8
8
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
9
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - &#x60;STATIC&#x60;: vouchers need to be manually published. | [optional] |
9
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published | [optional] |
10
10
  | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. | [optional] |
11
11
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
12
12
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
@@ -8,10 +8,10 @@
8
8
  | **name** | **String** | Campaign name. | [optional] |
9
9
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published | [optional] |
11
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published - &#x60;STANDALONE&#x60;: campaign for single vouchers | [optional] |
12
12
  | **voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional] |
13
13
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
14
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. | [optional] |
14
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. It is always &#x60;false&#x60; for standalone voucher campaigns and it cannot be changed in them. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
16
16
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
17
17
  | **validity_day_of_week** | **Array&lt;Integer&gt;** | Integer array corresponding to the particular days of the week in which the voucher is valid. - &#x60;0&#x60; Sunday - &#x60;1&#x60; Monday - &#x60;2&#x60; Tuesday - &#x60;3&#x60; Wednesday - &#x60;4&#x60; Thursday - &#x60;5&#x60; Friday - &#x60;6&#x60; Saturday | [optional] |
@@ -8,10 +8,10 @@
8
8
  | **name** | **String** | Campaign name. | [optional] |
9
9
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published | [optional] |
11
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published - &#x60;STANDALONE&#x60;: campaign for single vouchers | [optional] |
12
12
  | **voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional] |
13
13
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
14
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. | [optional] |
14
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. It is always &#x60;false&#x60; for standalone voucher campaigns and it cannot be changed in them. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
16
16
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
17
17
  | **validity_day_of_week** | **Array&lt;Integer&gt;** | Integer array corresponding to the particular days of the week in which the voucher is valid. - &#x60;0&#x60; Sunday - &#x60;1&#x60; Monday - &#x60;2&#x60; Tuesday - &#x60;3&#x60; Wednesday - &#x60;4&#x60; Thursday - &#x60;5&#x60; Friday - &#x60;6&#x60; Saturday | [optional] |
@@ -15,9 +15,9 @@
15
15
  | **unset_metadata_fields** | **Array&lt;String&gt;** | 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 &#x60;category&#x60;. | [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] |
18
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. | [optional] |
18
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. It is always &#x60;false&#x60; for standalone voucher campaigns and it cannot be changed in them. | [optional] |
19
19
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
20
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - &#x60;STATIC&#x60;: vouchers need to be manually published. | [optional] |
20
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - &#x60;STATIC&#x60;: vouchers need to be manually published. If the &#x60;type&#x60; of the campaign is &#x60;STANDALONE&#x60;, the type cannot be changed. Also, the &#x60;type&#x60; cannot be changed to &#x60;STANDALONE&#x60;. | [optional] |
21
21
  | **discount** | [**Discount**](Discount.md) | | [optional] |
22
22
  | **referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional] |
23
23
  | **gift** | [**Gift**](Gift.md) | | [optional] |
@@ -8,10 +8,10 @@
8
8
  | **name** | **String** | Campaign name. | [optional] |
9
9
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published | [optional] |
11
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published - &#x60;STANDALONE&#x60;: campaign for single vouchers | [optional] |
12
12
  | **voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional] |
13
13
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
14
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. | [optional] |
14
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. It is always &#x60;false&#x60; for standalone voucher campaigns and it cannot be changed in them. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
16
16
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
17
17
  | **validity_day_of_week** | **Array&lt;Integer&gt;** | Integer array corresponding to the particular days of the week in which the voucher is valid. - &#x60;0&#x60; Sunday - &#x60;1&#x60; Monday - &#x60;2&#x60; Tuesday - &#x60;3&#x60; Wednesday - &#x60;4&#x60; Thursday - &#x60;5&#x60; Friday - &#x60;6&#x60; Saturday | [optional] |
@@ -13,6 +13,7 @@
13
13
  | **result** | [**ClientValidationsValidateResponseBodyRedeemablesItemResult**](ClientValidationsValidateResponseBodyRedeemablesItemResult.md) | | [optional] |
14
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&lt;CategoryWithStackingRulesType&gt;**](CategoryWithStackingRulesType.md) | | [optional] |
16
- | **campaign_name** | **String** | Campaign name | [optional] |
17
- | **campaign_id** | **String** | Unique campaign ID assigned by Voucherify. | [optional] |
16
+ | **campaign_name** | **String** | Campaign name. Displayed only if the &#x60;options.expand&#x60; is passed with a &#x60;redeemable&#x60; value in the validation request body. | [optional] |
17
+ | **campaign_id** | **String** | Unique campaign ID assigned by Voucherify. Displayed only if the &#x60;options.expand&#x60; is passed with a &#x60;redeemable&#x60; value in the validation request body. | [optional] |
18
+ | **name** | **String** | Name of the promotion tier. Displayed only if the &#x60;options.expand&#x60; is passed with a &#x60;redeemable&#x60; value in the validation request body. | [optional] |
18
19
 
data/docs/Error.md CHANGED
@@ -11,4 +11,5 @@
11
11
  | **request_id** | **String** | This ID is useful when troubleshooting and/or finding the root cause of an error response by our support team. | [optional] |
12
12
  | **resource_id** | **String** | Unique resource ID that can be used in another endpoint to get more details. | [optional] |
13
13
  | **resource_type** | **String** | The resource type. | [optional] |
14
+ | **error** | [**ErrorError**](ErrorError.md) | | [optional] |
14
15
 
@@ -0,0 +1,8 @@
1
+ # VoucherifySdk::ErrorError
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | The message configured by the user in a validation rule. | [optional] |
8
+
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | Campaign name. | [optional] |
8
8
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
9
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - &#x60;STATIC&#x60;: vouchers need to be manually published. | [optional] |
9
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published | [optional] |
10
10
  | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. | [optional] |
11
11
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
12
12
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
@@ -10,5 +10,5 @@
10
10
  | **type** | **String** | The type of voucher being modified. | [optional] |
11
11
  | **object** | **String** | The type of the object represented by JSON. Default is balance. | [optional][default to &#39;balance&#39;] |
12
12
  | **related_object** | [**LoyaltiesMembersBalanceUpdateResponseBodyRelatedObject**](LoyaltiesMembersBalanceUpdateResponseBodyRelatedObject.md) | | [optional] |
13
- | **operation_type** | **String** | | [optional] |
13
+ | **operation_type** | **String** | The type of operation being performed. | [optional] |
14
14
 
@@ -4,13 +4,13 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | Unique loyalty points bucket ID. | |
8
- | **voucher_id** | **String** | Unique parent loyalty card ID. | |
9
- | **campaign_id** | **String** | Unique parent campaign ID. | |
10
- | **bucket** | [**LoyaltiesMembersPointsExpirationListResponseBodyDataItemBucket**](LoyaltiesMembersPointsExpirationListResponseBodyDataItemBucket.md) | | |
11
- | **created_at** | **Time** | Timestamp representing the date and time when the loyalty points bucket object was created. The value is shown in the ISO 8601 format. | |
12
- | **status** | **String** | Loyalty points bucket point status. | |
13
- | **expires_at** | **Time** | Date when the number of points defined in the bucket object are due to expire. | |
14
- | **updated_at** | **Time** | Timestamp representing the date and time when the loyalty points bucket object was updated. The value is shown in the ISO 8601 format. | [optional] |
15
- | **object** | **String** | The type of the object represented by JSON. This object stores information about the loyalty points bucket. | [default to &#39;loyalty_points_bucket&#39;] |
7
+ | **id** | **String** | Unique identifier of the loyalty points bucket. | [optional] |
8
+ | **voucher_id** | **String** | Unique identifier of the parent loyalty card. | [optional] |
9
+ | **campaign_id** | **String** | Unique identifier of the parent campaign. | [optional] |
10
+ | **bucket** | [**LoyaltiesMembersPointsExpirationListResponseBodyDataItemBucket**](LoyaltiesMembersPointsExpirationListResponseBodyDataItemBucket.md) | | [optional] |
11
+ | **status** | **String** | Loyalty point point bucket status. | [optional] |
12
+ | **expires_at** | **Time** | Date when the number of points defined in the bucket object are due to expire. | [optional] |
13
+ | **created_at** | **Time** | Timestamp representing the date and time when the loyalty point bucket object was created in ISO 8601 format. | [optional] |
14
+ | **updated_at** | **Time** | Timestamp representing the date and time when the loyalty point bucket object was updated in ISO 8601 format. | [optional] |
15
+ | **object** | **String** | The type of the object represented by JSON. This object stores information about the loyalty point bucket. | [optional][default to &#39;loyalty_points_bucket&#39;] |
16
16
 
@@ -4,5 +4,5 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **total_points** | **Integer** | Total number of points in the loyalty points bucket. | |
7
+ | **total_points** | **Integer** | Total number of points in the loyalty point bucket. | [optional] |
8
8
 
@@ -15,9 +15,9 @@
15
15
  | **unset_metadata_fields** | **Array&lt;String&gt;** | 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 &#x60;category&#x60;. | [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] |
18
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. | [optional] |
18
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. It is always &#x60;false&#x60; for standalone voucher campaigns and it cannot be changed in them. | [optional] |
19
19
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
20
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - &#x60;STATIC&#x60;: vouchers need to be manually published. | [optional] |
20
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - &#x60;STATIC&#x60;: vouchers need to be manually published. If the &#x60;type&#x60; of the campaign is &#x60;STANDALONE&#x60;, the type cannot be changed. Also, the &#x60;type&#x60; cannot be changed to &#x60;STANDALONE&#x60;. | [optional] |
21
21
  | **loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional] |
22
22
  | **options** | [**LoyaltiesUpdateCampaignRequestBodyOptions**](LoyaltiesUpdateCampaignRequestBodyOptions.md) | | [optional] |
23
23
 
@@ -10,8 +10,8 @@
10
10
  | **campaign_id** | **String** | Unqiue campaign ID of the voucher&#39;s parent campaign if it is part of campaign that generates bulk codes. | [optional] |
11
11
  | **source** | **String** | The channel through which the transaction took place, whether through the API or the the Dashboard. In case of a redemption, this value is null. | [optional] |
12
12
  | **reason** | **String** | Reason why the transaction occurred. In case of a redemption, this value is null. | [optional] |
13
- | **type** | [**LoyaltyCardTransactionsType**](LoyaltyCardTransactionsType.md) | | |
14
- | **details** | [**LoyaltyCardTransactionDetails**](LoyaltyCardTransactionDetails.md) | | [optional] |
15
13
  | **related_transaction_id** | **String** | The related transaction ID on the receiving card. | [optional] |
16
14
  | **created_at** | **Time** | Timestamp representing the date and time when the transaction was created. The value is shown in the ISO 8601 format. | [optional] |
15
+ | **details** | [**LoyaltyCardTransactionDetails**](LoyaltyCardTransactionDetails.md) | | [optional] |
16
+ | **type** | [**LoyaltyCardTransactionsType**](LoyaltyCardTransactionsType.md) | | [optional] |
17
17
 
@@ -4,10 +4,11 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **type** | **String** | The type of voucher whose balance is being adjusted due to the transaction. | [optional][default to &#39;loyalty_card&#39;] |
8
- | **total** | **Integer** | The number of all points accumulated on the card as affected by add or subtract operations. | [optional] |
7
+ | **type** | **String** | The type of voucher whose balance is being adjusted due to the transaction. | [optional] |
8
+ | **total** | **Integer** | The number of all points or credits accumulated on the card as affected by add or subtract operations. | [optional] |
9
9
  | **object** | **String** | The type of the object represented by the JSON. | [optional][default to &#39;balance&#39;] |
10
- | **points** | **Integer** | Points added or subtracted in the transaction. | [optional] |
11
- | **balance** | **Integer** | The available points on the card after the transaction as affected by redemption or rollback. | [optional] |
10
+ | **points** | **Integer** | Points added or subtracted in the transaction of a loyalty card. | [optional] |
11
+ | **balance** | **Integer** | The available points or credits on the card after the transaction as affected by redemption or rollback. | [optional] |
12
+ | **operation_type** | **String** | The type of the operation being performed. The operation type is &#x60;AUTOMATIC&#x60; if it is an automatic redemption. | [optional] |
12
13
  | **related_object** | [**LoyaltyCardTransactionDetailsBalanceRelatedObject**](LoyaltyCardTransactionDetailsBalanceRelatedObject.md) | | [optional] |
13
14
 
@@ -4,6 +4,6 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | Identifies the voucher that is being modified, this is the ID that was assigned by the Voucherify API. | [optional] |
7
+ | **id** | **String** | Identifies the voucher that is being modified. The ID is assigned by the Voucherify API. | [optional] |
8
8
  | **type** | **String** | The object being modified, i.e. voucher. | [optional][default to &#39;voucher&#39;] |
9
9
 
@@ -0,0 +1,16 @@
1
+ # VoucherifySdk::LoyaltyPointsBucket
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique identifier of the loyalty points bucket. | [optional] |
8
+ | **voucher_id** | **String** | Unique identifier of the parent loyalty card. | [optional] |
9
+ | **campaign_id** | **String** | Unique identifier of the parent campaign. | [optional] |
10
+ | **bucket** | [**LoyaltyPointsBucketBucket**](LoyaltyPointsBucketBucket.md) | | [optional] |
11
+ | **status** | **String** | Loyalty point point bucket status. | [optional] |
12
+ | **expires_at** | **Time** | Date when the number of points defined in the bucket object are due to expire. | [optional] |
13
+ | **created_at** | **Time** | Timestamp representing the date and time when the loyalty point bucket object was created in ISO 8601 format. | [optional] |
14
+ | **updated_at** | **Time** | Timestamp representing the date and time when the loyalty point bucket object was updated in ISO 8601 format. | [optional] |
15
+ | **object** | **String** | The type of the object represented by JSON. This object stores information about the loyalty point bucket. | [optional][default to &#39;loyalty_points_bucket&#39;] |
16
+
@@ -0,0 +1,8 @@
1
+ # VoucherifySdk::LoyaltyPointsBucketBucket
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total_points** | **Integer** | Total number of points in the loyalty point bucket. | [optional] |
8
+