voucherify 8.2.0 → 8.3.0

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 (252) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +1 -1
  3. data/ENDPOINTS-COVERAGE.md +17 -15
  4. data/Gemfile.lock +9 -9
  5. data/README.md +12 -0
  6. data/__tests__/lib/campaigns.rb +2 -2
  7. data/__tests__/spec/snapshots/campaigns/created_validation_rule_applicable_to.snap +1 -1
  8. data/__tests__/spec/snapshots/campaigns/created_validation_rule_more_than.snap +1 -1
  9. data/docs/AccessSettingsAssign.md +3 -3
  10. data/docs/AccessSettingsProductCollectionAssignmentsList.md +11 -0
  11. data/docs/AccessSettingsUnassign.md +3 -3
  12. data/docs/ApplicableTo.md +1 -1
  13. data/docs/AreaStoreProductCollectionAssignment.md +14 -0
  14. data/docs/Campaign.md +2 -2
  15. data/docs/CampaignBase.md +2 -2
  16. data/docs/CampaignsApi.md +4 -4
  17. data/docs/CampaignsCreateRequestBody.md +2 -2
  18. data/docs/CampaignsCreateResponseBody.md +2 -2
  19. data/docs/CampaignsGetResponseBody.md +2 -2
  20. data/docs/CampaignsUpdateRequestBody.md +2 -2
  21. data/docs/CampaignsUpdateResponseBody.md +2 -2
  22. data/docs/CardDailyReportEntry.md +3 -1
  23. data/docs/CardLifetimeBucketPoints.md +2 -0
  24. data/docs/CustomerLoyalty.md +2 -2
  25. data/docs/CustomerLoyaltyCampaignsEntry.md +1 -1
  26. data/docs/CustomersApi.md +4 -4
  27. data/docs/InapplicableTo.md +1 -1
  28. data/docs/LV2BenefitsApi.md +1 -1
  29. data/docs/LV2EarningRulesApi.md +1 -1
  30. data/docs/LV2ExamineApi.md +2 -2
  31. data/docs/LV2ProgramsApi.md +44 -44
  32. data/docs/LV2RewardsApi.md +1 -1
  33. data/docs/ListPublicationsItemVoucher.md +1 -1
  34. data/docs/LoyaltiesApi.md +6 -6
  35. data/docs/LoyaltiesCreateCampaignRequestBody.md +2 -2
  36. data/docs/LoyaltiesCreateCampaignResponseBody.md +2 -2
  37. data/docs/LoyaltiesGetCampaignResponseBody.md +2 -2
  38. data/docs/LoyaltiesListMembersResponseBody.md +1 -1
  39. data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyChannel.md +1 -1
  40. data/docs/LoyaltiesRewardAssignmentsGetResponseBody.md +2 -2
  41. data/docs/LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty.md +1 -1
  42. data/docs/LoyaltiesRewardAssignmentsRewardGetResponseBody.md +1 -1
  43. data/docs/LoyaltiesRewardsCreateAssignmentResponseBody.md +2 -2
  44. data/docs/LoyaltiesRewardsCreateAssignmentResponseBodyParametersLoyalty.md +1 -1
  45. data/docs/LoyaltiesRewardsGetResponseBody.md +2 -2
  46. data/docs/LoyaltiesRewardsGetResponseBodyParametersLoyalty.md +1 -1
  47. data/docs/LoyaltiesRewardsUpdateAssignmentRequestBodyParametersLoyalty.md +1 -1
  48. data/docs/LoyaltiesRewardsUpdateAssignmentResponseBody.md +2 -2
  49. data/docs/LoyaltiesRewardsUpdateAssignmentResponseBodyParametersLoyalty.md +1 -1
  50. data/docs/LoyaltiesTiersListResponseBody.md +1 -1
  51. data/docs/LoyaltiesUpdateCampaignRequestBody.md +2 -2
  52. data/docs/LoyaltiesUpdateCampaignResponseBody.md +2 -2
  53. data/docs/LoyaltyCampaign.md +2 -2
  54. data/docs/LoyaltyV2ActivityBenefitStockLimited.md +1 -1
  55. data/docs/LoyaltyV2ActivityEarningRuleEffectPointsExpirationCalendarExpirationDate.md +1 -1
  56. data/docs/LoyaltyV2ActivityEarningRuleEffectPointsExpirationRollingExpirationRounding.md +1 -1
  57. data/docs/LoyaltyV2ActivityEarningRulePointsProportionalEvery.md +1 -1
  58. data/docs/LoyaltyV2ActivityEarningRulePointsProportionalMetadata.md +1 -1
  59. data/docs/ManagementApi.md +2 -2
  60. data/docs/ManagementProjectsCreateRequestBodyUsersItem.md +2 -2
  61. data/docs/ManagementProjectsUsersAssignRequestBody.md +2 -2
  62. data/docs/MetadataSchemasApi.md +1 -1
  63. data/docs/ProductCollectionsApi.md +4 -4
  64. data/docs/ProductCollectionsCreateRequestBody.md +1 -0
  65. data/docs/ProductCollectionsCreateResponseBody.md +2 -0
  66. data/docs/ProductCollectionsGetResponseBody.md +2 -0
  67. data/docs/ProductCollectionsItem.md +2 -0
  68. data/docs/ProductCollectionsListResponseBody.md +1 -1
  69. data/docs/ProductsApi.md +1 -1
  70. data/docs/RedemptionChannel.md +1 -1
  71. data/docs/RedemptionRewardResult.md +1 -1
  72. data/docs/RedemptionRewardResultParametersCoin.md +1 -1
  73. data/docs/Reward.md +1 -1
  74. data/docs/RewardAssignment.md +2 -2
  75. data/docs/RewardAssignmentParametersLoyalty.md +1 -1
  76. data/docs/RewardType.md +1 -0
  77. data/docs/RewardTypeCoin.md +2 -2
  78. data/docs/RewardTypeLoyaltyPoints.md +11 -0
  79. data/docs/RewardsApi.md +5 -5
  80. data/docs/RewardsAssignmentsCreateRequestBody.md +2 -0
  81. data/docs/RewardsAssignmentsCreateRequestBodyParametersLoyalty.md +1 -1
  82. data/docs/RewardsAssignmentsCreateResponseBody.md +2 -2
  83. data/docs/RewardsAssignmentsCreateResponseBodyParametersLoyalty.md +1 -1
  84. data/docs/RewardsAssignmentsGetResponseBody.md +2 -2
  85. data/docs/RewardsAssignmentsGetResponseBodyParametersLoyalty.md +1 -1
  86. data/docs/RewardsAssignmentsUpdateRequestBodyParametersLoyalty.md +1 -1
  87. data/docs/RewardsAssignmentsUpdateResponseBody.md +2 -2
  88. data/docs/RewardsAssignmentsUpdateResponseBodyParametersLoyalty.md +1 -1
  89. data/docs/RewardsCreateRequestBody.md +1 -0
  90. data/docs/RewardsCreateRequestBodyParameters.md +1 -0
  91. data/docs/RewardsCreateRequestBodyParametersCoin.md +1 -1
  92. data/docs/RewardsCreateRequestBodyParametersLoyaltyPoints.md +11 -0
  93. data/docs/RewardsCreateResponseBody.md +1 -1
  94. data/docs/RewardsUpdateRequestBodyParameters.md +1 -0
  95. data/docs/RewardsUpdateRequestBodyParametersCoin.md +1 -1
  96. data/docs/RewardsUpdateRequestBodyParametersLoyaltyPoints.md +11 -0
  97. data/docs/RewardsUpdateResponseBody.md +1 -1
  98. data/docs/TemplatesApi.md +1 -1
  99. data/docs/TemplatesCampaignsCampaignSetupCreateRequestBody.md +2 -2
  100. data/docs/V2LoyaltiesBenefitsGetResponseBody.md +1 -1
  101. data/docs/V2LoyaltiesBenefitsGetResponseBodyPoints.md +1 -1
  102. data/docs/V2LoyaltiesBenefitsGetResponseBodyPointsProportional.md +2 -2
  103. data/docs/V2LoyaltiesEarningRulesGetResponseBody.md +1 -1
  104. data/docs/VouchersApi.md +6 -6
  105. data/lib/VoucherifySdk/api/campaigns_api.rb +6 -6
  106. data/lib/VoucherifySdk/api/customers_api.rb +4 -4
  107. data/lib/VoucherifySdk/api/loyalties_api.rb +8 -8
  108. data/lib/VoucherifySdk/api/lv2_benefits_api.rb +2 -2
  109. data/lib/VoucherifySdk/api/lv2_earning_rules_api.rb +2 -2
  110. data/lib/VoucherifySdk/api/lv2_examine_api.rb +4 -4
  111. data/lib/VoucherifySdk/api/lv2_programs_api.rb +88 -88
  112. data/lib/VoucherifySdk/api/lv2_rewards_api.rb +2 -2
  113. data/lib/VoucherifySdk/api/management_api.rb +4 -4
  114. data/lib/VoucherifySdk/api/metadata_schemas_api.rb +2 -2
  115. data/lib/VoucherifySdk/api/product_collections_api.rb +8 -8
  116. data/lib/VoucherifySdk/api/products_api.rb +2 -2
  117. data/lib/VoucherifySdk/api/rewards_api.rb +8 -8
  118. data/lib/VoucherifySdk/api/templates_api.rb +2 -2
  119. data/lib/VoucherifySdk/api/vouchers_api.rb +12 -12
  120. data/lib/VoucherifySdk/models/access_settings.rb +1 -1
  121. data/lib/VoucherifySdk/models/access_settings_assign.rb +4 -4
  122. data/lib/VoucherifySdk/models/access_settings_product_collection_assignments_list.rb +280 -0
  123. data/lib/VoucherifySdk/models/access_settings_unassign.rb +4 -4
  124. data/lib/VoucherifySdk/models/applicable_to.rb +1 -1
  125. data/lib/VoucherifySdk/models/area_store_product_collection_assignment.rb +302 -0
  126. data/lib/VoucherifySdk/models/benefit_points_proportional_custom_event_metadata.rb +1 -1
  127. data/lib/VoucherifySdk/models/benefit_points_proportional_customer_metadata.rb +1 -1
  128. data/lib/VoucherifySdk/models/benefit_points_proportional_order_amount.rb +1 -1
  129. data/lib/VoucherifySdk/models/benefit_points_proportional_order_metadata.rb +1 -1
  130. data/lib/VoucherifySdk/models/benefit_points_proportional_order_total_amount.rb +1 -1
  131. data/lib/VoucherifySdk/models/campaign.rb +2 -2
  132. data/lib/VoucherifySdk/models/campaign_base.rb +2 -2
  133. data/lib/VoucherifySdk/models/campaign_loyalty_card.rb +1 -1
  134. data/lib/VoucherifySdk/models/campaign_loyalty_card_expiration_rules.rb +1 -1
  135. data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +2 -2
  136. data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +2 -2
  137. data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +2 -2
  138. data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +2 -2
  139. data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +2 -2
  140. data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_loyalty_card.rb +1 -1
  141. data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_loyalty_card.rb +1 -1
  142. data/lib/VoucherifySdk/models/card_daily_report_entry.rb +24 -2
  143. data/lib/VoucherifySdk/models/card_lifetime_bucket_points.rb +31 -5
  144. data/lib/VoucherifySdk/models/card_transaction.rb +1 -1
  145. data/lib/VoucherifySdk/models/client_events_create_request_body_loyalty.rb +1 -1
  146. data/lib/VoucherifySdk/models/customer_loyalty.rb +3 -2
  147. data/lib/VoucherifySdk/models/customer_loyalty_campaigns_entry.rb +2 -2
  148. data/lib/VoucherifySdk/models/customer_summary_redemptions_loyalty_card.rb +1 -1
  149. data/lib/VoucherifySdk/models/earning_rule.rb +1 -0
  150. data/lib/VoucherifySdk/models/events_create_request_body_loyalty.rb +1 -1
  151. data/lib/VoucherifySdk/models/inapplicable_to.rb +1 -1
  152. data/lib/VoucherifySdk/models/list_publications_item_voucher.rb +1 -1
  153. data/lib/VoucherifySdk/models/loyalties_create_campaign_request_body.rb +3 -3
  154. data/lib/VoucherifySdk/models/loyalties_create_campaign_response_body.rb +3 -3
  155. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_custom_event.rb +1 -1
  156. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_segment.rb +1 -1
  157. data/lib/VoucherifySdk/models/loyalties_earning_rules_list_response_body.rb +1 -1
  158. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body.rb +1 -0
  159. data/lib/VoucherifySdk/models/loyalties_get_campaign_response_body.rb +3 -3
  160. data/lib/VoucherifySdk/models/loyalties_list_campaigns_response_body.rb +1 -1
  161. data/lib/VoucherifySdk/models/loyalties_list_members_response_body.rb +1 -1
  162. data/lib/VoucherifySdk/models/loyalties_loyalty_tier_reward.rb +1 -1
  163. data/lib/VoucherifySdk/models/loyalties_members_create_response_body_loyalty_card.rb +1 -1
  164. data/lib/VoucherifySdk/models/loyalties_members_get_response_body_loyalty_card.rb +1 -1
  165. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_channel.rb +1 -1
  166. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_loyalty_card.rb +1 -1
  167. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_loyalty_card.rb +1 -1
  168. data/lib/VoucherifySdk/models/loyalties_programs_members_benefits_transactions_list_request_query_benefit_id.rb +1 -1
  169. data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body.rb +3 -3
  170. data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body_parameters_loyalty.rb +1 -1
  171. data/lib/VoucherifySdk/models/loyalties_reward_assignments_reward_get_response_body.rb +2 -2
  172. data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_response_body.rb +3 -3
  173. data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_response_body_parameters_loyalty.rb +1 -1
  174. data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body.rb +3 -3
  175. data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body_parameters_loyalty.rb +1 -1
  176. data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_request_body_parameters_loyalty.rb +1 -1
  177. data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_response_body.rb +3 -3
  178. data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_response_body_parameters_loyalty.rb +1 -1
  179. data/lib/VoucherifySdk/models/loyalties_tiers_list_response_body.rb +1 -1
  180. data/lib/VoucherifySdk/models/loyalties_transfer_points.rb +1 -0
  181. data/lib/VoucherifySdk/models/loyalties_update_campaign_request_body.rb +3 -3
  182. data/lib/VoucherifySdk/models/loyalties_update_campaign_response_body.rb +3 -3
  183. data/lib/VoucherifySdk/models/loyalty_campaign.rb +3 -2
  184. data/lib/VoucherifySdk/models/loyalty_campaign_voucher.rb +1 -1
  185. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_holder_loyalty_tier.rb +1 -1
  186. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_loyalty_tier.rb +1 -1
  187. data/lib/VoucherifySdk/models/loyalty_member.rb +1 -1
  188. data/lib/VoucherifySdk/models/loyalty_member_loyalty_card.rb +1 -1
  189. data/lib/VoucherifySdk/models/loyalty_pending_points_details_holder_loyalty_tier.rb +1 -1
  190. data/lib/VoucherifySdk/models/loyalty_tier.rb +1 -0
  191. data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all.rb +1 -1
  192. data/lib/VoucherifySdk/models/loyalty_v2_activity_benefit_stock_limited.rb +1 -1
  193. data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_effect_points_expiration_calendar_expiration_date.rb +1 -1
  194. data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_effect_points_expiration_rolling_expiration_rounding.rb +2 -2
  195. data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_points_proportional_every.rb +1 -1
  196. data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_points_proportional_metadata.rb +1 -1
  197. data/lib/VoucherifySdk/models/management_projects_create_request_body_users_item.rb +2 -2
  198. data/lib/VoucherifySdk/models/management_projects_users_assign_request_body.rb +2 -2
  199. data/lib/VoucherifySdk/models/member_activity.rb +1 -1
  200. data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_campaign_type.rb +1 -1
  201. data/lib/VoucherifySdk/models/product_collections_create_request_body.rb +10 -1
  202. data/lib/VoucherifySdk/models/product_collections_create_response_body.rb +21 -1
  203. data/lib/VoucherifySdk/models/product_collections_get_response_body.rb +21 -1
  204. data/lib/VoucherifySdk/models/product_collections_item.rb +21 -1
  205. data/lib/VoucherifySdk/models/product_collections_list_response_body.rb +1 -1
  206. data/lib/VoucherifySdk/models/redeemable_voucher_loyalty_card.rb +1 -1
  207. data/lib/VoucherifySdk/models/redemption_channel.rb +1 -1
  208. data/lib/VoucherifySdk/models/redemption_reward_result.rb +2 -2
  209. data/lib/VoucherifySdk/models/redemption_reward_result_parameters_coin.rb +2 -2
  210. data/lib/VoucherifySdk/models/redemption_voucher_loyalty_card.rb +1 -1
  211. data/lib/VoucherifySdk/models/reward.rb +2 -2
  212. data/lib/VoucherifySdk/models/reward_assignment.rb +3 -3
  213. data/lib/VoucherifySdk/models/reward_assignment_parameters_loyalty.rb +1 -1
  214. data/lib/VoucherifySdk/models/reward_type.rb +15 -5
  215. data/lib/VoucherifySdk/models/reward_type_coin.rb +3 -3
  216. data/lib/VoucherifySdk/models/reward_type_loyalty_points.rb +284 -0
  217. data/lib/VoucherifySdk/models/rewards_assignments_create_request_body.rb +50 -5
  218. data/lib/VoucherifySdk/models/rewards_assignments_create_request_body_parameters_loyalty.rb +1 -1
  219. data/lib/VoucherifySdk/models/rewards_assignments_create_response_body.rb +3 -3
  220. data/lib/VoucherifySdk/models/rewards_assignments_create_response_body_parameters_loyalty.rb +1 -1
  221. data/lib/VoucherifySdk/models/rewards_assignments_get_response_body.rb +3 -3
  222. data/lib/VoucherifySdk/models/rewards_assignments_get_response_body_parameters_loyalty.rb +1 -1
  223. data/lib/VoucherifySdk/models/rewards_assignments_update_request_body_parameters_loyalty.rb +1 -1
  224. data/lib/VoucherifySdk/models/rewards_assignments_update_response_body.rb +3 -3
  225. data/lib/VoucherifySdk/models/rewards_assignments_update_response_body_parameters_loyalty.rb +1 -1
  226. data/lib/VoucherifySdk/models/rewards_create_request_body.rb +35 -1
  227. data/lib/VoucherifySdk/models/rewards_create_request_body_parameters.rb +15 -5
  228. data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_coin.rb +2 -2
  229. data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_loyalty_points.rb +284 -0
  230. data/lib/VoucherifySdk/models/rewards_create_response_body.rb +2 -2
  231. data/lib/VoucherifySdk/models/rewards_update_request_body_parameters.rb +15 -5
  232. data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_coin.rb +2 -2
  233. data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_loyalty_points.rb +284 -0
  234. data/lib/VoucherifySdk/models/rewards_update_response_body.rb +2 -2
  235. data/lib/VoucherifySdk/models/simple_loyalty_card.rb +1 -1
  236. data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body.rb +2 -2
  237. data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body.rb +1 -1
  238. data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body_points.rb +1 -1
  239. data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body_points_proportional.rb +3 -3
  240. data/lib/VoucherifySdk/models/v2_loyalties_earning_rules_get_response_body.rb +2 -2
  241. data/lib/VoucherifySdk/models/voucher_loyalty_card.rb +1 -1
  242. data/lib/VoucherifySdk/models/voucher_transaction_details_holder_loyalty_tier.rb +1 -1
  243. data/lib/VoucherifySdk/models/voucher_transaction_details_loyalty_tier.rb +1 -1
  244. data/lib/VoucherifySdk/models/voucher_with_categories_loyalty_card.rb +1 -1
  245. data/lib/VoucherifySdk/models/vouchers_create_response_body_loyalty_card.rb +1 -1
  246. data/lib/VoucherifySdk/models/vouchers_disable_response_body_loyalty_card.rb +1 -1
  247. data/lib/VoucherifySdk/models/vouchers_enable_response_body_loyalty_card.rb +1 -1
  248. data/lib/VoucherifySdk/models/vouchers_get_response_body_loyalty_card.rb +1 -1
  249. data/lib/VoucherifySdk/models/vouchers_update_response_body_loyalty_card.rb +1 -1
  250. data/lib/VoucherifySdk/version.rb +1 -1
  251. data/lib/VoucherifySdk.rb +5 -0
  252. metadata +39 -29
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49400a94ad13c7c9c4dac0a6c86a73288bf4e51a639b8c44ef20ada5ddff0554
4
- data.tar.gz: 18d1a233e680597be6f6404e1bf7565b95ea61470ff5aba847ce959281ab2ac7
3
+ metadata.gz: 4411a9ccb69c30498019653d665d22482db21182b35a65c70e9e01caca220697
4
+ data.tar.gz: c1975fc87f25d9a57eaaa95a9696530109f942301bfaebfedb7967c765ac0d08
5
5
  SHA512:
6
- metadata.gz: 5e23f99c44035c512b2895935ce7f45d70f14a124dfbce8c658af504f466f95b9463d0f11bb2089e209335127d551204a197bb8110c097ac209ededdeca8346e
7
- data.tar.gz: 3bdbc453c555bc4e59772cb950cf52b66b7ff4ae200b5ebacdbc992a8456e2381b14e45afc7103e6d40991fdba0c4452e8bad39aa1e996360cd8c114a56bc9b2
6
+ metadata.gz: ce9351a1513978e65ad78c183a5e650da746045d18e334c5878213a098ad67bcbc0e1a6adbba8b0e7902b4b97bc989e86972e9b78146bdef6709de51f438cf07
7
+ data.tar.gz: 89945cab063ce685847a5b673c1e557c98c40447dd4a49e653d53d930e4bc1294ae40e689ae434257ea62d573addc1ab5bdd6cbc794c97ebf7e643949ee08eb1
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.2.0.gem
8
+ RUN gem install voucherify-8.3.0.gem
9
9
  RUN gem install dotenv
10
10
  RUN gem install rspec
11
11
 
@@ -433,6 +433,7 @@
433
433
  | /v2/loyalties/programs/{programId}/reports/rewards/summary | get | List program rewards summary reports | <font color='green'>supported</font> | |
434
434
  | /v2/loyalties/programs/{programId}/reports/rewards/spendings/daily | get | List program rewards spendings daily reports | <font color='green'>supported</font> | |
435
435
  | /v2/loyalties/programs/{programId}/reports/rewards/spendings/summary | get | List program rewards spendings summary reports | <font color='green'>supported</font> | |
436
+ | /v2/loyalties/programs/{programId}/reports/daily-tasks/daily | get | List program daily task reports | | |
436
437
  | /v2/loyalties/programs/{programId}/reports/members/daily | get | List program members daily reports | <font color='green'>supported</font> | |
437
438
  | /v2/loyalties/programs/{programId}/reports/members/summary | get | List program members summary reports | <font color='green'>supported</font> | |
438
439
  | /v2/loyalties/programs/{programId}/reports/points-earnings/daily | get | List program points-earnings daily reports | <font color='green'>supported</font> | |
@@ -463,21 +464,22 @@
463
464
  | /v2/loyalties/earning-rules/{earningRuleId}/draft | post | Move earning rule to draft | | |
464
465
  | /v2/loyalties/earning-rules/{earningRuleId}/activities | get | List earning rule activities | | |
465
466
  ## LV2-Tier Structures
466
- | endpoint | method | summary | is supported | is deprecated |
467
- | -------------------------------------------------------------- | ------ | ------------------------------ | ------------ | ------------- |
468
- | /v2/loyalties/tier-structures | post | Create tier structure | | |
469
- | /v2/loyalties/tier-structures | get | List tier structures | | |
470
- | /v2/loyalties/tier-structures/{tierStructureId} | get | Get tier structure | | |
471
- | /v2/loyalties/tier-structures/{tierStructureId} | put | Update tier structure | | |
472
- | /v2/loyalties/tier-structures/{tierStructureId} | delete | Delete tier structure | | |
473
- | /v2/loyalties/tier-structures/{tierStructureId}/activate | post | Activate tier structure | | |
474
- | /v2/loyalties/tier-structures/{tierStructureId}/deactivate | post | Deactivate tier structure | | |
475
- | /v2/loyalties/tier-structures/{tierStructureId}/draft | post | Move tier structure to draft | | |
476
- | /v2/loyalties/tier-structures/{tierStructureId}/tiers | post | Create tier | | |
477
- | /v2/loyalties/tier-structures/{tierStructureId}/tiers | get | List tiers | | |
478
- | /v2/loyalties/tier-structures/{tierStructureId}/tiers/{tierId} | put | Update tier | | |
479
- | /v2/loyalties/tier-structures/{tierStructureId}/tiers/{tierId} | delete | Delete tier | | |
480
- | /v2/loyalties/tier-structures/{tierStructureId}/activities | get | List tier structure activities | | |
467
+ | endpoint | method | summary | is supported | is deprecated |
468
+ | -------------------------------------------------------------- | ------ | -------------------------------------- | ------------ | ------------- |
469
+ | /v2/loyalties/tier-structures | post | Create tier structure | | |
470
+ | /v2/loyalties/tier-structures | get | List tier structures | | |
471
+ | /v2/loyalties/tier-structures/{tierStructureId} | get | Get tier structure | | |
472
+ | /v2/loyalties/tier-structures/{tierStructureId} | put | Update tier structure | | |
473
+ | /v2/loyalties/tier-structures/{tierStructureId} | delete | Delete tier structure | | |
474
+ | /v2/loyalties/tier-structures/{tierStructureId}/activate | post | Activate tier structure | | |
475
+ | /v2/loyalties/tier-structures/{tierStructureId}/deactivate | post | Deactivate tier structure | | |
476
+ | /v2/loyalties/tier-structures/{tierStructureId}/draft | post | Move tier structure to draft | | |
477
+ | /v2/loyalties/tier-structures/{tierStructureId}/tiers | post | Create tier | | |
478
+ | /v2/loyalties/tier-structures/{tierStructureId}/tiers | get | List tiers | | |
479
+ | /v2/loyalties/tier-structures/{tierStructureId}/tiers/{tierId} | put | Update tier | | |
480
+ | /v2/loyalties/tier-structures/{tierStructureId}/tiers/{tierId} | delete | Delete tier | | |
481
+ | /v2/loyalties/tier-structures/{tierStructureId}/tiers/batch | post | Batch create, update, and remove tiers | | |
482
+ | /v2/loyalties/tier-structures/{tierStructureId}/activities | get | List tier structure activities | | |
481
483
  ## LV2-Benefits
482
484
  | endpoint | method | summary | is supported | is deprecated |
483
485
  | --------------------------------------------- | ------ | ----------------------- | ------------------------------------ | ------------- |
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- voucherify (8.2.0)
4
+ voucherify (8.3.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -12,7 +12,7 @@ GEM
12
12
  coderay (1.1.3)
13
13
  date (3.6.0)
14
14
  diff-lcs (1.6.2)
15
- ethon (0.19.1)
15
+ ethon (0.19.2)
16
16
  ffi (>= 1.15.0)
17
17
  logger
18
18
  ffi (1.17.4)
@@ -20,7 +20,7 @@ GEM
20
20
  logger (1.7.0)
21
21
  method_source (1.1.0)
22
22
  parallel (1.28.0)
23
- parser (3.3.13.0)
23
+ parser (3.3.14.0)
24
24
  ast (~> 2.4.1)
25
25
  racc
26
26
  pry (0.14.2)
@@ -39,15 +39,15 @@ GEM
39
39
  rspec-core (~> 3.13.0)
40
40
  rspec-expectations (~> 3.13.0)
41
41
  rspec-mocks (~> 3.13.0)
42
- rspec-core (3.13.6)
42
+ rspec-core (3.13.7)
43
43
  rspec-support (~> 3.13.0)
44
- rspec-expectations (3.13.5)
44
+ rspec-expectations (3.13.6)
45
45
  diff-lcs (>= 1.2.0, < 2.0)
46
46
  rspec-support (~> 3.13.0)
47
- rspec-mocks (3.13.8)
47
+ rspec-mocks (3.13.9)
48
48
  diff-lcs (>= 1.2.0, < 2.0)
49
49
  rspec-support (~> 3.13.0)
50
- rspec-support (3.13.7)
50
+ rspec-support (3.13.8)
51
51
  rubocop (0.66.0)
52
52
  jaro_winkler (~> 1.5.1)
53
53
  parallel (~> 1.10)
@@ -58,8 +58,8 @@ GEM
58
58
  unicode-display_width (>= 1.4.0, < 1.6)
59
59
  ruby-progressbar (1.13.0)
60
60
  stringio (3.2.0)
61
- typhoeus (1.7.1)
62
- ethon (>= 0.19.1, < 0.20.0)
61
+ typhoeus (1.8.0)
62
+ ethon (>= 0.19.2, < 0.20.0)
63
63
  unicode-display_width (1.5.0)
64
64
 
65
65
  PLATFORMS
data/README.md CHANGED
@@ -197,6 +197,13 @@ end
197
197
  - **Location**: HTTP header
198
198
 
199
199
  ## 📅 Changelog
200
+ - **2026-11-23** - `8.3.0`
201
+ - Added Loyalty referral fields: `referrer_points_earned` and `referee_points_earned` on `CardDailyReportEntry`, `referrer_earned` and `referee_earned` on `CardLifetimeBucketPoints`, the transaction types `REFERRER_POINTS_EARNED` and `REFEREE_POINTS_EARNED` on `CardTransaction`, and the status `DELETED` on `V2LoyaltiesEarningRulesGetResponseBody`.
202
+ - Added `referral_tier` as `related_object_type` on reward assignment models. `RewardsAssignmentsCreateRequestBody` accepts optional `related_object_type` (`campaign` or `referral_tier`) and `related_object_id` for assigning a `LOYALTY_POINTS` reward to a referral tier. The SDK does not set `related_object_type` by default, so assigning a reward to a campaign with `campaign` works as before.
203
+ - Added the `LOYALTY_POINTS` reward type: the `LOYALTY_POINTS` value on reward `type` fields, and `parameters.loyalty_points` (`points`, `program_id`, `card_definition_id`, `on_missing_member`) on `RewardType`, `RewardsCreateRequestBodyParameters`, and `RewardsUpdateRequestBodyParameters`.
204
+ - Added optional `type` on `RewardsCreateRequestBody` (`CAMPAIGN`, `MATERIAL`, `COIN`, `LOYALTY_POINTS`). The SDK does not set it by default and Voucherify infers the type from `parameters`, so creating a campaign, product, or pay-with-points reward without `type` works as before.
205
+ - Fixed: `price_formula` in `ApplicableTo` and `InapplicableTo` is typed as `String` (was `Float`). The API expects a formula expression string such as `IF(ORDER_AMOUNT > 300;ORDER_ITEM_PRICE * 0.8;ORDER_ITEM_PRICE)`.
206
+ - Added Product Collection fields: `access_settings` on `ProductCollectionsCreateRequestBody`; `readonly` and `access_settings_assignments` on `ProductCollectionsItem`, `ProductCollectionsCreateResponseBody`, and `ProductCollectionsGetResponseBody`; new models `AccessSettingsProductCollectionAssignmentsList` and `AreaStoreProductCollectionAssignment`.
200
207
  - **2026-10-14** - `8.2.0`
201
208
  - Added Loyalty v2 API methods under `/v2/loyalties` for member create and batch create, update, delete, activate, and deactivate; card point adjustments, pending-points activate and cancel, and points-bucket expiration; order payments; reward purchase and refund; plus memberships, cards, examine, reports, and reads for a benefit, an earning rule, and a reward.
202
209
  - Added `loyalty_memberships` on customer summary models.
@@ -639,6 +646,7 @@ Class | Method | HTTP request | Description
639
646
  - [VoucherifySdk::AccessSettings](docs/AccessSettings.md)
640
647
  - [VoucherifySdk::AccessSettingsAssign](docs/AccessSettingsAssign.md)
641
648
  - [VoucherifySdk::AccessSettingsCampaignAssignmentsList](docs/AccessSettingsCampaignAssignmentsList.md)
649
+ - [VoucherifySdk::AccessSettingsProductCollectionAssignmentsList](docs/AccessSettingsProductCollectionAssignmentsList.md)
642
650
  - [VoucherifySdk::AccessSettingsUnassign](docs/AccessSettingsUnassign.md)
643
651
  - [VoucherifySdk::ActivitySource](docs/ActivitySource.md)
644
652
  - [VoucherifySdk::ActivitySourceApiKey](docs/ActivitySourceApiKey.md)
@@ -649,6 +657,7 @@ Class | Method | HTTP request | Description
649
657
  - [VoucherifySdk::ApplicableToResultList](docs/ApplicableToResultList.md)
650
658
  - [VoucherifySdk::ApplicationDetailsItem](docs/ApplicationDetailsItem.md)
651
659
  - [VoucherifySdk::AreaStoreCampaignAssignment](docs/AreaStoreCampaignAssignment.md)
660
+ - [VoucherifySdk::AreaStoreProductCollectionAssignment](docs/AreaStoreProductCollectionAssignment.md)
652
661
  - [VoucherifySdk::AsyncActionBase](docs/AsyncActionBase.md)
653
662
  - [VoucherifySdk::AsyncActionGetResponseBody](docs/AsyncActionGetResponseBody.md)
654
663
  - [VoucherifySdk::AsyncActionsListResponseBody](docs/AsyncActionsListResponseBody.md)
@@ -1925,6 +1934,7 @@ Class | Method | HTTP request | Description
1925
1934
  - [VoucherifySdk::RewardType](docs/RewardType.md)
1926
1935
  - [VoucherifySdk::RewardTypeCampaign](docs/RewardTypeCampaign.md)
1927
1936
  - [VoucherifySdk::RewardTypeCoin](docs/RewardTypeCoin.md)
1937
+ - [VoucherifySdk::RewardTypeLoyaltyPoints](docs/RewardTypeLoyaltyPoints.md)
1928
1938
  - [VoucherifySdk::RewardTypeProduct](docs/RewardTypeProduct.md)
1929
1939
  - [VoucherifySdk::RewardValidityHoursResponse](docs/RewardValidityHoursResponse.md)
1930
1940
  - [VoucherifySdk::RewardsAssignmentsCreateRequestBody](docs/RewardsAssignmentsCreateRequestBody.md)
@@ -1948,6 +1958,7 @@ Class | Method | HTTP request | Description
1948
1958
  - [VoucherifySdk::RewardsCreateRequestBodyParameters](docs/RewardsCreateRequestBodyParameters.md)
1949
1959
  - [VoucherifySdk::RewardsCreateRequestBodyParametersCampaign](docs/RewardsCreateRequestBodyParametersCampaign.md)
1950
1960
  - [VoucherifySdk::RewardsCreateRequestBodyParametersCoin](docs/RewardsCreateRequestBodyParametersCoin.md)
1961
+ - [VoucherifySdk::RewardsCreateRequestBodyParametersLoyaltyPoints](docs/RewardsCreateRequestBodyParametersLoyaltyPoints.md)
1951
1962
  - [VoucherifySdk::RewardsCreateRequestBodyParametersProduct](docs/RewardsCreateRequestBodyParametersProduct.md)
1952
1963
  - [VoucherifySdk::RewardsCreateResponseBody](docs/RewardsCreateResponseBody.md)
1953
1964
  - [VoucherifySdk::RewardsCreateResponseBodyAttributes](docs/RewardsCreateResponseBodyAttributes.md)
@@ -1969,6 +1980,7 @@ Class | Method | HTTP request | Description
1969
1980
  - [VoucherifySdk::RewardsUpdateRequestBodyParameters](docs/RewardsUpdateRequestBodyParameters.md)
1970
1981
  - [VoucherifySdk::RewardsUpdateRequestBodyParametersCampaign](docs/RewardsUpdateRequestBodyParametersCampaign.md)
1971
1982
  - [VoucherifySdk::RewardsUpdateRequestBodyParametersCoin](docs/RewardsUpdateRequestBodyParametersCoin.md)
1983
+ - [VoucherifySdk::RewardsUpdateRequestBodyParametersLoyaltyPoints](docs/RewardsUpdateRequestBodyParametersLoyaltyPoints.md)
1972
1984
  - [VoucherifySdk::RewardsUpdateRequestBodyParametersProduct](docs/RewardsUpdateRequestBodyParametersProduct.md)
1973
1985
  - [VoucherifySdk::RewardsUpdateResponseBody](docs/RewardsUpdateResponseBody.md)
1974
1986
  - [VoucherifySdk::RewardsUpdateResponseBodyAttributes](docs/RewardsUpdateResponseBodyAttributes.md)
@@ -14,7 +14,7 @@ def create_validation_rule_applicable_to(validation_rules_api_instance, product_
14
14
  id: product_id
15
15
  })]
16
16
  }),
17
- type:"basic",
17
+ type:"expression",
18
18
  })
19
19
  })
20
20
 
@@ -38,7 +38,7 @@ def create_validation_rule_more_than(validation_rules_api_instance, product_id)
38
38
  rules: {}
39
39
  }
40
40
  },
41
- type:"basic",
41
+ type:"expression",
42
42
  })
43
43
  })
44
44
 
@@ -1 +1 @@
1
- {:name=>"4XrEHjbW57", :rules=>{}, :applicable_to=>{:included=>[{:object=>"product", :id=>"prod_0f1975b6e5461bd5ea", :strict=>false, :effect=>"APPLY_TO_EVERY"}], :included_all=>false}, :type=>"basic", :context_type=>"global", :id=>"val_xGjBfc7Hp9el", :created_at=>2024-07-23 09:23:38.887 UTC, :object=>"validation_rules"}
1
+ {:name=>"4XrEHjbW57", :rules=>{}, :applicable_to=>{:included=>[{:object=>"product", :id=>"prod_0f1975b6e5461bd5ea", :strict=>false, :effect=>"APPLY_TO_EVERY"}], :included_all=>false}, :type=>"expression", :context_type=>"global", :id=>"val_xGjBfc7Hp9el", :created_at=>2024-07-23 09:23:38.887 UTC, :object=>"validation_rules"}
@@ -1 +1 @@
1
- {:name=>"MkEByYoDCk", :rules=>{:"1"=>{:name=>"order.amount", :conditions=>{:$more_than=>[500000]}, :rules=>{}}, :logic=>"1"}, :applicable_to=>nil, :type=>"basic", :context_type=>"global", :id=>"val_4rLTA7TWP5qv", :created_at=>2024-07-23 10:56:50.122 UTC, :object=>"validation_rules"}
1
+ {:name=>"MkEByYoDCk", :rules=>{:"1"=>{:name=>"order.amount", :conditions=>{:$more_than=>[500000]}, :rules=>{}}, :logic=>"1"}, :applicable_to=>nil, :type=>"expression", :context_type=>"global", :id=>"val_4rLTA7TWP5qv", :created_at=>2024-07-23 10:56:50.122 UTC, :object=>"validation_rules"}
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **areas_ids** | **Array&lt;String&gt;** | List all area IDs to which the campaign will be assigned. | [optional] |
8
- | **area_stores_ids** | **Array&lt;String&gt;** | List all store IDs to which the campaign will be assigned. | [optional] |
9
- | **area_all_stores_ids** | **Array&lt;String&gt;** | List all area IDs where the campaign is assigned to all stores in the area. This assignment is not equal to the assignment to all &#x60;area_stores_ids&#x60; listed separately. | [optional] |
7
+ | **areas_ids** | **Array&lt;String&gt;** | List all area IDs to which the resource will be assigned. | [optional] |
8
+ | **area_stores_ids** | **Array&lt;String&gt;** | List all store IDs to which the resource will be assigned. | [optional] |
9
+ | **area_all_stores_ids** | **Array&lt;String&gt;** | List all area IDs where the resource is assigned to all stores in the area. This assignment is not equal to the assignment to all &#x60;area_stores_ids&#x60; listed separately. | [optional] |
10
10
 
@@ -0,0 +1,11 @@
1
+ # VoucherifySdk::AccessSettingsProductCollectionAssignmentsList
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **object** | **String** | The type of the object represented by JSON. Default is &#x60;list&#x60;. This object stores information about product collection assignments to areas and stores | [optional][default to &#39;list&#39;] |
8
+ | **data_ref** | **String** | Identifies the name of the attribute that contains the array of product collection assignments. | [optional][default to &#39;data&#39;] |
9
+ | **data** | [**Array&lt;AreaStoreProductCollectionAssignment&gt;**](AreaStoreProductCollectionAssignment.md) | Contains an array of product collection assignments. | [optional] |
10
+ | **total** | **Integer** | Total number of areas and stores to which the product collection is assigned. | [optional] |
11
+
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **areas_ids** | **Array&lt;String&gt;** | List all area IDs from which the campaign will be unassigned. | [optional] |
8
- | **area_stores_ids** | **Array&lt;String&gt;** | List all store IDs from which the campaign will be unassigned. | [optional] |
9
- | **area_all_stores_ids** | **Array&lt;String&gt;** | List all area IDs where the campaign will be unassigned from all stores in the area. This unassignment is not equal to the unassignment from all &#x60;area_stores_ids&#x60; listed separately. | [optional] |
7
+ | **areas_ids** | **Array&lt;String&gt;** | List all area IDs from which the resource will be unassigned. | [optional] |
8
+ | **area_stores_ids** | **Array&lt;String&gt;** | List all store IDs from which the resource will be unassigned. | [optional] |
9
+ | **area_all_stores_ids** | **Array&lt;String&gt;** | List all area IDs where the resource will be unassigned from all stores in the area. This unassignment is not equal to the unassignment from all &#x60;area_stores_ids&#x60; listed separately. | [optional] |
10
10
 
data/docs/ApplicableTo.md CHANGED
@@ -10,7 +10,7 @@
10
10
  | **product_id** | **String** | Parent product&#39;s unique ID assigned by Voucherify. | [optional] |
11
11
  | **product_source_id** | **String** | Parent product&#39;s source ID from your inventory system. | [optional] |
12
12
  | **price** | **Float** | New fixed price of an item. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $10 price is written as 1000. In case of the fixed price being calculated by the formula, i.e. the price_formula parameter is present in the fixed price definition, this value becomes the fallback value. Such that in a case where the formula cannot be calculated due to missing metadata, for example, this value will be used as the fixed price. | [optional] |
13
- | **price_formula** | **Float** | Formula used to dynamically calculate the discounted price of an item. | [optional] |
13
+ | **price_formula** | **String** | Formula used to dynamically calculate the discounted price of an item. | [optional] |
14
14
  | **effect** | [**ApplicableToEffect**](ApplicableToEffect.md) | | |
15
15
  | **quantity_limit** | **Integer** | The maximum number of units allowed to be discounted per order line item. | [optional] |
16
16
  | **aggregated_quantity_limit** | **Integer** | The maximum number of units allowed to be discounted combined across all matched order line items. | [optional] |
@@ -0,0 +1,14 @@
1
+ # VoucherifySdk::AreaStoreProductCollectionAssignment
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique identifier of the product collection assignment. | [optional] |
8
+ | **area_id** | **String** | Unique identifier of the area to which the product collection is assigned. | [optional] |
9
+ | **all_stores** | **Boolean** | Determines if the product collection is assigned to all of the stores in the area, i.e. if an area ID is passed in the &#x60;access_settings.assign.area_all_stores_ids&#x60; in the request. | [optional] |
10
+ | **area_store_id** | **String** | Unique identifier of the store to which the product collection is assigned. Not returned when the product collection is assigned to the whole area or to all stores in the area. | [optional] |
11
+ | **created_at** | **Time** | Timestamp representing the date and time when the assignment was created. The value is shown in the ISO 8601 format. | [optional] |
12
+ | **updated_at** | **Time** | Timestamp representing the date and time when the assignment was last updated. The value is shown in the ISO 8601 format. | [optional] |
13
+ | **object** | **String** | The type of the object represented by JSON. | [optional][default to &#39;area_store_product_collection_assignment&#39;] |
14
+
data/docs/Campaign.md CHANGED
@@ -10,8 +10,8 @@
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
11
  | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (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
- | **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. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for loyalty campaigns and it cannot be changed in them. | [optional] |
13
+ | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy 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. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for **legacy loyalty** 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
@@ -10,8 +10,8 @@
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
11
  | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (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
- | **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. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for loyalty campaigns and it cannot be changed in them. | [optional] |
13
+ | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy 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. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for **legacy loyalty** 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
@@ -176,7 +176,7 @@ end
176
176
 
177
177
  api_instance = VoucherifySdk::CampaignsApi.new
178
178
  opts = {
179
- campaigns_create_request_body: VoucherifySdk::CampaignsCreateRequestBody.new # CampaignsCreateRequestBody | Specify the details of the campaign that you would like to create.
179
+ campaigns_create_request_body: VoucherifySdk::CampaignsCreateRequestBody.new # CampaignsCreateRequestBody | Specify the details of the campaign that you would like to create. For loyalty campaigns, this creates a **legacy loyalty** campaign (campaign type LOYALTY_PROGRAM). For loyalty programs in the Loyalty hub, use /v2/loyalties/programs.
180
180
  }
181
181
 
182
182
  begin
@@ -192,7 +192,7 @@ end
192
192
 
193
193
  | Name | Type | Description | Notes |
194
194
  | ---- | ---- | ----------- | ----- |
195
- | **campaigns_create_request_body** | [**CampaignsCreateRequestBody**](CampaignsCreateRequestBody.md) | Specify the details of the campaign that you would like to create. | [optional] |
195
+ | **campaigns_create_request_body** | [**CampaignsCreateRequestBody**](CampaignsCreateRequestBody.md) | Specify the details of the campaign that you would like to create. For loyalty campaigns, this creates a **legacy loyalty** campaign (campaign type LOYALTY_PROGRAM). For loyalty programs in the Loyalty hub, use /v2/loyalties/programs. | [optional] |
196
196
 
197
197
  ### Return type
198
198
 
@@ -392,7 +392,7 @@ end
392
392
 
393
393
  Export Campaign Transactions
394
394
 
395
- Export transactions is an asynchronous process that generates a CSV file with the data about credit movements on all gift cards or point movements on all loyalty cards in a given campaign. To export transactions: 1. In the export request, use parameters to select which fields will be exported, in what order, and which data will be filtered. 2. Use the returned id to track the export status with the [GET Export](/api-reference/exports/get-export) method. 3. In the GET Export method, when the returned status field has the DONE value, the export file has been generated. 4. Use the URL in the result property to download the file. You must be logged to your Voucherify account on a given cluster in the browser to be able to download the file. An export request will almost always result in a single file being generated by the system. However, when the data volume is large, the system may split the results into multiple files. An example export file can look as follows: <Tip> <Badge color green>Export Loyalty Campaign Transactions</Badge> For loyalty campaigns, this method works in the same way the [POST Export Loyalty Campaign Transactions](/api-reference/loyalties/export-loyalty-campaign-transactions) does. </Tip>
395
+ Export transactions is an asynchronous process that generates a CSV file with the data about credit movements on all gift cards or point movements on all loyalty cards (**legacy loyalty**) in a given campaign. To export transactions: 1. In the export request, use parameters to select which fields will be exported, in what order, and which data will be filtered. 2. Use the returned id to track the export status with the [GET Export](/api-reference/exports/get-export) method. 3. In the GET Export method, when the returned status field has the DONE value, the export file has been generated. 4. Use the URL in the result property to download the file. You must be logged to your Voucherify account on a given cluster in the browser to be able to download the file. An export request will almost always result in a single file being generated by the system. However, when the data volume is large, the system may split the results into multiple files. An example export file can look as follows: <Tip> <Badge color green>Export Loyalty Campaign Transactions</Badge> For **legacy loyalty** campaigns, this method works in the same way the [POST Export Loyalty Campaign Transactions](/api-reference/loyalties/export-loyalty-campaign-transactions) does. </Tip>
396
396
 
397
397
  ### Examples
398
398
 
@@ -700,7 +700,7 @@ end
700
700
 
701
701
  List Campaign Transactions
702
702
 
703
- Retrieves all transactions for the campaign with the given campaign ID or campaign name. The id filter denotes the unique transaction identifier. <Warning> The endpoint works only for gift card and loyalty campaigns. </Warning>
703
+ Retrieves all transactions for the campaign with the given campaign ID or campaign name. The id filter denotes the unique transaction identifier. <Warning> The endpoint works only for gift card and **legacy loyalty** campaigns. </Warning>
704
704
 
705
705
  ### Examples
706
706
 
@@ -7,8 +7,8 @@
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
9
  | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (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;: the campaign is a generic (standalone) one with a single voucher for public use (only for discount and gift card campaigns) | [optional] |
10
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. For loyalty campaigns, it&#39;s forced to &#x60;true&#x60;, even if &#x60;join_once: false&#x60; is passed in the request. | [optional] |
11
- | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
10
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. For **legacy loyalty** campaigns, it&#39;s forced to &#x60;true&#x60;, even if &#x60;join_once: false&#x60; is passed in the request. | [optional] |
11
+ | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy 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] |
13
13
  | **vouchers_count** | **Integer** | Total number of unique vouchers in campaign (size of campaign). | [optional] |
14
14
  | **start_date** | **Time** | Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is *inactive before* this date. | [optional] |
@@ -10,8 +10,8 @@
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
11
  | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (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
- | **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. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for loyalty campaigns and it cannot be changed in them. | [optional] |
13
+ | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy 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. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for **legacy loyalty** 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] |
@@ -10,8 +10,8 @@
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
11
  | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (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
- | **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. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for loyalty campaigns and it cannot be changed in them. | [optional] |
13
+ | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy 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. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for **legacy loyalty** 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] |
@@ -16,8 +16,8 @@
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
  | **access_settings** | [**AccessSettings**](AccessSettings.md) | | [optional] |
18
18
  | **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] |
19
- | **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 generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for loyalty campaigns and it cannot be changed in them. | [optional] |
20
- | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
19
+ | **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 generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for **legacy loyalty** campaigns and it cannot be changed in them. | [optional] |
20
+ | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled. | [optional] |
21
21
  | **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] |
22
22
  | **discount** | [**Discount**](Discount.md) | | [optional] |
23
23
  | **referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional] |
@@ -10,8 +10,8 @@
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
11
  | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (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
- | **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. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for loyalty campaigns and it cannot be changed in them. | [optional] |
13
+ | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy 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. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for **legacy loyalty** 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] |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **date** | **Date** | Identifies the start of the truncated aggregation period (&#x60;YYYY-MM-DD&#x60;). For &#x60;week&#x60; this is Monday. For &#x60;month&#x60; this is the first day. For &#x60;quarter&#x60; this is the quarter start. | [optional] |
8
- | **points_total** | **Float** | Points credited to the card in the period. Sums &#x60;points_earned&#x60;, &#x60;points_added&#x60;, and &#x60;points_purchased&#x60;. Points spent, expired, subtracted, refunded, returned, or reversed are not deducted. | [optional] |
8
+ | **points_total** | **Float** | Points credited to the card in the period. Sums &#x60;points_earned&#x60;, &#x60;points_added&#x60;, &#x60;points_purchased&#x60;, &#x60;referrer_points_earned&#x60;, and &#x60;referee_points_earned&#x60;. Points spent, expired, subtracted, refunded, returned, or reversed are not deducted. | [optional] |
9
9
  | **points_earned** | **Float** | Points earned through earning rules in the period. Includes pending points activated in the period. | [optional] |
10
10
  | **points_added** | **Float** | Points added manually in the period. | [optional] |
11
11
  | **points_purchased** | **Float** | Points purchased (e.g. via loyalty-card-points rewards) in the period. | [optional] |
@@ -17,6 +17,8 @@
17
17
  | **points_returned** | **Float** | Points returned in the period. | [optional] |
18
18
  | **points_locked** | **Float** | Points locked in the period. | [optional] |
19
19
  | **points_unlocked** | **Float** | Points unlocked in the period. Includes points released when a spending transaction is approved (also counted in &#x60;points_spent&#x60;) or rejected. | [optional] |
20
+ | **referrer_points_earned** | **Float** | Points credited from referral referrer awards in the period (&#x60;REFERRER_POINTS_EARNED&#x60; card transactions, for example a &#x60;LOYALTY_POINTS&#x60; reward assigned to a referrer tier). Also counted in &#x60;points_total&#x60;. Not counted in &#x60;points_earned&#x60;. | [optional] |
21
+ | **referee_points_earned** | **Float** | Points credited from referral referee awards in the period (&#x60;REFEREE_POINTS_EARNED&#x60; card transactions, for example a &#x60;LOYALTY_POINTS&#x60; reward assigned to a referee tier). Also counted in &#x60;points_total&#x60;. Not counted in &#x60;points_earned&#x60;. | [optional] |
20
22
  | **pending_points_total** | **Float** | Pending points added in the period. Activated and canceled pending points are not deducted. | [optional] |
21
23
  | **pending_points_activated** | **Float** | Pending points activated in the period. Also counted in &#x60;points_earned&#x60; and &#x60;points_total&#x60;. | [optional] |
22
24
  | **pending_points_canceled** | **Float** | Pending points canceled in the period. | [optional] |
@@ -16,4 +16,6 @@
16
16
  | **returned** | **Float** | Total returned points (by returning a purchased reward). | [optional][default to 0] |
17
17
  | **locked** | **Float** | Total locked points (by locking a purchased reward). | [optional][default to 0] |
18
18
  | **unlocked** | **Float** | Total unlocked points (by unlocking a purchased reward). | [optional][default to 0] |
19
+ | **referrer_earned** | **Float** | Total points credited as a referrer from a &#x60;LOYALTY_POINTS&#x60; referral reward. Already included in &#x60;total&#x60;, not in &#x60;earned&#x60;. | [optional][default to 0] |
20
+ | **referee_earned** | **Float** | Total points credited as a referee from a &#x60;LOYALTY_POINTS&#x60; referral reward. Already included in &#x60;total&#x60;, not in &#x60;earned&#x60;. | [optional][default to 0] |
19
21
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **points** | **Integer** | Customer&#39;s loyalty points minus expired for all loyalty cards which the customer has. | [optional] |
7
+ | **points** | **Integer** | Customer&#39;s loyalty points minus expired points for all loyalty cards (**legacy loyalty**) which the customer has. | [optional] |
8
8
  | **referred_customers** | **Integer** | Total number of customers referred by the customer. | [optional] |
9
- | **campaigns** | [**Hash&lt;String, CustomerLoyaltyCampaignsEntry&gt;**](CustomerLoyaltyCampaignsEntry.md) | Contains campaigns with details about point balances and how many customers were referred by the customer. | [optional] |
9
+ | **campaigns** | [**Hash&lt;String, CustomerLoyaltyCampaignsEntry&gt;**](CustomerLoyaltyCampaignsEntry.md) | Contains **legacy loyalty** and referral campaigns with details about point balances and how many customers were referred by the customer. | [optional] |
10
10
 
@@ -5,6 +5,6 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **points** | **Integer** | Remaining point balance in campaign. | [optional] |
8
- | **loyalty_tier** | **String** | Customer&#39;s loyalty tier within the campaign. | [optional] |
8
+ | **loyalty_tier** | **String** | Customer&#39;s loyalty tier within the **legacy loyalty** campaign. | [optional] |
9
9
  | **referred_customers** | **Integer** | Number of customers referred by the customer in campaign. | [optional] |
10
10
 
data/docs/CustomersApi.md CHANGED
@@ -345,7 +345,7 @@ opts = {
345
345
  order: VoucherifySdk::ParameterOrder::CREATED_AT, # ParameterOrder | Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
346
346
  starting_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | A cursor for pagination. starting_after is a date-time value that defines your place in the list based on created_at property from the activity object. For instance, if you make a list request and receive 100 objects, ending with an object created at 2020-05-24T13:43:09.024Z, your subsequent call can include starting_after 2020-05-24T13:43:09.024Z in order to fetch the next page of the list.
347
347
  starting_after_id: 'starting_after_id_example', # String | A cursor for pagination. It retrieves the events starting after an event with the given ID.
348
- campaign_type: VoucherifySdk::ParameterCampaignType::PROMOTION, # ParameterCampaignType | Through this parameter you can control a type of campaign by which Voucherify will filter related customers activity. API will return only records related to that given type. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM
348
+ campaign_type: VoucherifySdk::ParameterCampaignType::PROMOTION, # ParameterCampaignType | Through this parameter you can control a type of campaign by which Voucherify will filter related customers activity. API will return only records related to that given type. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM LOYALTY_PROGRAM is the campaign type for **legacy loyalty** (loyalty card campaigns), not v2/loyalties programs.
349
349
  campaign_id: 'campaign_id_example', # String | By applying this parameter you request only events related to specific campaign identified by its ID.
350
350
  product_id: 'product_id_example', # String | By applying this parameter you request only events related to specific product identified by its ID.
351
351
  start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Timestamp representing the date and time which results must end on. Represented in ISO 8601 format.
@@ -370,7 +370,7 @@ end
370
370
  | **order** | [**ParameterOrder**](.md) | Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. | [optional] |
371
371
  | **starting_after** | **Time** | A cursor for pagination. starting_after is a date-time value that defines your place in the list based on created_at property from the activity object. For instance, if you make a list request and receive 100 objects, ending with an object created at 2020-05-24T13:43:09.024Z, your subsequent call can include starting_after 2020-05-24T13:43:09.024Z in order to fetch the next page of the list. | [optional] |
372
372
  | **starting_after_id** | **String** | A cursor for pagination. It retrieves the events starting after an event with the given ID. | [optional] |
373
- | **campaign_type** | [**ParameterCampaignType**](.md) | Through this parameter you can control a type of campaign by which Voucherify will filter related customers activity. API will return only records related to that given type. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM | [optional] |
373
+ | **campaign_type** | [**ParameterCampaignType**](.md) | Through this parameter you can control a type of campaign by which Voucherify will filter related customers activity. API will return only records related to that given type. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM LOYALTY_PROGRAM is the campaign type for **legacy loyalty** (loyalty card campaigns), not v2/loyalties programs. | [optional] |
374
374
  | **campaign_id** | **String** | By applying this parameter you request only events related to specific campaign identified by its ID. | [optional] |
375
375
  | **product_id** | **String** | By applying this parameter you request only events related to specific product identified by its ID. | [optional] |
376
376
  | **start_date** | **Time** | Timestamp representing the date and time which results must end on. Represented in ISO 8601 format. | [optional] |
@@ -425,7 +425,7 @@ opts = {
425
425
  start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Timestamp representing the date and time which results must begin on. Represented in ISO 8601 format.
426
426
  end_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Timestamp representing the date and time which results must end on. Represented in ISO 8601 format.
427
427
  campaign_id: 'campaign_id_example', # String | Requests only events related to specific campaign identified by its ID.
428
- campaign_type: VoucherifySdk::ParameterCampaignType::PROMOTION, # ParameterCampaignType | Filters related customers activity for the selected campaign types. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM.
428
+ campaign_type: VoucherifySdk::ParameterCampaignType::PROMOTION, # ParameterCampaignType | Filters related customers activity for the selected campaign types. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM. LOYALTY_PROGRAM is the campaign type for **legacy loyalty** (loyalty card campaigns), not v2/loyalties programs.
429
429
  category: VoucherifySdk::ParameterActivityCategory::ACTION, # ParameterActivityCategory | Filters activities for actions or effects. Allowed values: ACTION, EFFECT.
430
430
  type: 'type_example' # String | Event name of the customer event.
431
431
  }
@@ -450,7 +450,7 @@ end
450
450
  | **start_date** | **Time** | Timestamp representing the date and time which results must begin on. Represented in ISO 8601 format. | [optional] |
451
451
  | **end_date** | **Time** | Timestamp representing the date and time which results must end on. Represented in ISO 8601 format. | [optional] |
452
452
  | **campaign_id** | **String** | Requests only events related to specific campaign identified by its ID. | [optional] |
453
- | **campaign_type** | [**ParameterCampaignType**](.md) | Filters related customers activity for the selected campaign types. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM. | [optional] |
453
+ | **campaign_type** | [**ParameterCampaignType**](.md) | Filters related customers activity for the selected campaign types. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM. LOYALTY_PROGRAM is the campaign type for **legacy loyalty** (loyalty card campaigns), not v2/loyalties programs. | [optional] |
454
454
  | **category** | [**ParameterActivityCategory**](.md) | Filters activities for actions or effects. Allowed values: ACTION, EFFECT. | [optional] |
455
455
  | **type** | **String** | Event name of the customer event. | [optional] |
456
456
 
@@ -10,7 +10,7 @@
10
10
  | **product_id** | **String** | Parent product&#39;s unique ID assigned by Voucherify. | [optional] |
11
11
  | **product_source_id** | **String** | Parent product&#39;s source ID from your inventory system. | [optional] |
12
12
  | **price** | **Float** | New fixed price of an item. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $10 price is written as 1000. In case of the fixed price being calculated by the formula, i.e. the price_formula parameter is present in the fixed price definition, this value becomes the fallback value. Such that in a case where the formula cannot be calculated due to missing metadata, for example, this value will be used as the fixed price. | [optional] |
13
- | **price_formula** | **Float** | Formula used to dynamically calculate the discounted price of an item. | [optional] |
13
+ | **price_formula** | **String** | Formula used to dynamically calculate the discounted price of an item. | [optional] |
14
14
  | **effect** | [**ApplicableToEffect**](ApplicableToEffect.md) | | |
15
15
  | **quantity_limit** | **Integer** | The maximum number of units allowed to be discounted per order line item. | [optional] |
16
16
  | **aggregated_quantity_limit** | **Integer** | The maximum number of units allowed to be discounted combined across all matched order line items. | [optional] |
@@ -13,7 +13,7 @@ All URIs are relative to *https://api.voucherify.io*
13
13
 
14
14
  Get benefit
15
15
 
16
- Returns a single benefit by its ID.
16
+ Returns a single benefit by its ID. A successful call records no activity.
17
17
 
18
18
  ### Examples
19
19
 
@@ -13,7 +13,7 @@ All URIs are relative to *https://api.voucherify.io*
13
13
 
14
14
  Get earning rule
15
15
 
16
- Returns a single earning rule by its ID.
16
+ Returns a single earning rule by its ID. A successful call records no activity.
17
17
 
18
18
  ### Examples
19
19
 
@@ -14,7 +14,7 @@ All URIs are relative to *https://api.voucherify.io*
14
14
 
15
15
  Examine earning rules
16
16
 
17
- Estimates earning opportunities for a customer without triggering any actual earning for loyalty v2 earning rules. The trigger selects whether all trigger events or one specific event is examined. When a specific event is selected, exactly one matching context object is required: customer_order_paid for customer.order.paid, customer_segment_entered for customer.segment.entered, and customer_custom_event for customer.custom_event. The other context objects must not be present. This endpoint can examine earning rules for all loyalty programs the customer belongs to by using customer_identification with customer_id or customer_source_id. To examine earning rules only for one program, use member_id in customer_identification, as member_id is loyalty program-specific. A customer who exists but has no active membership returns 200 with an empty memberships array.
17
+ Estimates earning opportunities for a customer without triggering any actual earning for loyalty v2 earning rules. The trigger selects whether all trigger events or one specific event is examined. When a specific event is selected, exactly one matching context object is required: customer_order_paid for customer.order.paid, customer_segment_entered for customer.segment.entered, and customer_custom_event for customer.custom_event. The other context objects must not be present. This endpoint can examine earning rules for all loyalty programs the customer belongs to by using customer_identification with customer_id or customer_source_id. To examine earning rules only for one program, use member_id in customer_identification, as member_id is loyalty program-specific. A customer who exists but has no active membership returns 200 with an empty memberships array. A successful call records no activity.
18
18
 
19
19
  ### Examples
20
20
 
@@ -74,7 +74,7 @@ end
74
74
 
75
75
  Examine rewards
76
76
 
77
- Evaluates rewards assigned to a customers active Loyalty v2 program memberships. Applies temporary customer and member metadata overrides without updating stored data. Returns reward availability by card, including points costs and applicable unavailability reasons. Omits a reward when it is inactive, out of stock, has no matching cost, or the member has no card for that cost. This endpoint can examine rewards for all loyalty programs the customer belongs to by using customer_identification with customer_id or customer_source_id. To examine rewards only for one program, use member_id in customer_identification, as member_id is loyalty program-specific. A customer who exists but has no active membership returns 200 with an empty memberships array.
77
+ Evaluates rewards assigned to a customers active Loyalty v2 program memberships. Applies temporary customer and member metadata overrides without updating stored data. Returns reward availability by card, including points costs and applicable unavailability reasons. Omits a reward when it is inactive, out of stock, has no matching cost, or the member has no card for that cost. This endpoint can examine rewards for all loyalty programs the customer belongs to by using customer_identification with customer_id or customer_source_id. To examine rewards only for one program, use member_id in customer_identification, as member_id is loyalty program-specific. A customer who exists but has no active membership returns 200 with an empty memberships array. A successful call records no activity.
78
78
 
79
79
  ### Examples
80
80