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
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
8
- | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
8
+ | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
9
9
 
@@ -10,7 +10,7 @@
10
10
  | **redeemed** | **Integer** | Defines the number of already invoked (successful) reward redemptions. | [optional] |
11
11
  | **attributes** | [**LoyaltiesRewardAssignmentsRewardGetResponseBodyAttributes**](LoyaltiesRewardAssignmentsRewardGetResponseBodyAttributes.md) | | [optional] |
12
12
  | **metadata** | **Object** | The metadata object stores all custom attributes assigned to the reward. A set of key/value pairs that you can attach to a reward object. It can be useful for storing additional information about the reward in a structured format. | [optional] |
13
- | **type** | **String** | Reward type. | [optional] |
13
+ | **type** | **String** | Reward type. `LOYALTY_POINTS` credits points on a `v2/loyalties` (loyalty hub) card (for example from a referral tier). | [optional] |
14
14
  | **parameters** | [**RewardType**](RewardType.md) | | [optional] |
15
15
  | **created_at** | **Time** | Timestamp representing the date and time when the reward was created. The value is shown in the ISO 8601 format. | [optional] |
16
16
  | **updated_at** | **Time** | Timestamp representing the date and time when the reward was updated. The value is shown in the ISO 8601 format. | [optional] |
@@ -9,7 +9,7 @@
9
9
  | **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
10
10
  | **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
11
11
  | **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to 'reward_assignment'] |
12
- | **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
13
- | **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to 'campaign'] |
12
+ | **related_object_id** | **String** | Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID. | [optional] |
13
+ | **related_object_type** | **String** | Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier. | [optional][default to 'campaign'] |
14
14
  | **parameters** | [**LoyaltiesRewardsCreateAssignmentResponseBodyParameters**](LoyaltiesRewardsCreateAssignmentResponseBodyParameters.md) | | [optional] |
15
15
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
8
- | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
8
+ | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
9
9
 
@@ -9,7 +9,7 @@
9
9
  | **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
10
10
  | **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
11
11
  | **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to 'reward_assignment'] |
12
- | **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
13
- | **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to 'campaign'] |
12
+ | **related_object_id** | **String** | Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID. | [optional] |
13
+ | **related_object_type** | **String** | Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier. | [optional][default to 'campaign'] |
14
14
  | **parameters** | [**LoyaltiesRewardsGetResponseBodyParameters**](LoyaltiesRewardsGetResponseBodyParameters.md) | | [optional] |
15
15
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
8
- | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
8
+ | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
9
9
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **points** | **Integer** | Defines how many points are required to obtain the reward. | [optional] |
8
- | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
8
+ | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
9
9
 
@@ -9,7 +9,7 @@
9
9
  | **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
10
10
  | **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
11
11
  | **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to 'reward_assignment'] |
12
- | **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
13
- | **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to 'campaign'] |
12
+ | **related_object_id** | **String** | Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID. | [optional] |
13
+ | **related_object_type** | **String** | Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier. | [optional][default to 'campaign'] |
14
14
  | **parameters** | [**LoyaltiesRewardsUpdateAssignmentResponseBodyParameters**](LoyaltiesRewardsUpdateAssignmentResponseBodyParameters.md) | | [optional] |
15
15
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
8
- | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
8
+ | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
9
9
 
@@ -6,6 +6,6 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **object** | **String** | The type of the object represented by JSON. This object stores information about loyalty tiers in a dictionary. | [optional][default to 'list'] |
8
8
  | **data_ref** | **String** | Identifies the name of the attribute that contains the array of loyalty tier objects. | [optional][default to 'data'] |
9
- | **data** | [**Array<LoyaltyTier>**](LoyaltyTier.md) | This is an object representing a loyalty tier. Loyalty tiers are used to create a loyalty program with different levels of membership and varied earning rules and rewards based on customer's tiers. | [optional] |
9
+ | **data** | [**Array<LoyaltyTier>**](LoyaltyTier.md) | This is an object representing a loyalty tier. Loyalty tiers are used in a **legacy loyalty** campaign with different levels of membership and varied earning rules and rewards based on the customer's tiers. | [optional] |
10
10
  | **total** | **Integer** | Total number of loyalty tier objects. | [optional] |
11
11
 
@@ -16,8 +16,8 @@
16
16
  | **category_id** | **String** | Unique category ID that this campaign belongs to. Either pass this parameter OR the `category`. | [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 `true`, customers will be able to join the campaign only once. It is always `false` for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always `true` 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 `true`, customers will be able to join the campaign only once. It is always `false` for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always `true` 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. - `AUTO_UPDATE`: 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). - `STATIC`: vouchers need to be manually published. If the `type` of the campaign is `STANDALONE`, the type cannot be changed. Also, the `type` cannot be changed to `STANDALONE`. | [optional] |
22
22
  | **loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional] |
23
23
  | **options** | [**LoyaltiesUpdateCampaignRequestBodyOptions**](LoyaltiesUpdateCampaignRequestBodyOptions.md) | | [optional] |
@@ -10,8 +10,8 @@
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional][default to 'LOYALTY_PROGRAM'] |
11
11
  | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published | [optional] |
12
12
  | **voucher** | [**LoyaltyCampaignVoucher**](LoyaltyCampaignVoucher.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** | Always set to `true` for loyalty campaigns, meaning customers can join the campaign only once. It can't be changed to `false`. | [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** | Always set to `true` for **legacy loyalty** campaigns, meaning customers can join the campaign only once. It can't be changed to `false`. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher'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<Integer>** | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
@@ -10,8 +10,8 @@
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional][default to 'LOYALTY_PROGRAM'] |
11
11
  | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published | [optional] |
12
12
  | **voucher** | [**LoyaltyCampaignVoucher**](LoyaltyCampaignVoucher.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** | Always set to `true` for loyalty campaigns, meaning customers can join the campaign only once. It can't be changed to `false`. | [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** | Always set to `true` for **legacy loyalty** campaigns, meaning customers can join the campaign only once. It can't be changed to `false`. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher'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<Integer>** | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
@@ -4,5 +4,5 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **quantity** | **Integer** | Available Remaining stock quantity. For responses, updates with each benefit purchase. | [optional] |
7
+ | **quantity** | **Integer** | Remaining stock quantity. On create, this is the starting quantity. Each benefit purchase decreases it by one. | [optional] |
8
8
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **day** | **Integer** | Day of month (1-31; validated against the month length). | [optional] |
8
- | **month** | **Integer** | Month number (1-12). | [optional] |
8
+ | **month** | **Integer** | Month number (1–12). | [optional] |
9
9
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **type** | **String** | Rounding type. | [optional] |
8
- | **value** | **Integer** | Month number (1-12). Present only when `type` is `END_OF_PARTICULAR_MONTH`. | [optional] |
8
+ | **value** | **Integer** | Month number (1–12). Present only when `type` is `END_OF_PARTICULAR_MONTH`. | [optional] |
9
9
 
@@ -4,6 +4,6 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **every** | **Integer** | The divisor – every this amount (e.g. in cents) awards `value` points. | [optional] |
7
+ | **every** | **Integer** | The divisor - every this amount (e.g. in cents) awards `value` points. | [optional] |
8
8
  | **value** | **Float** | Points awarded per `every` unit. | [optional] |
9
9
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **every** | **Integer** | The divisor – every this metadata value awards `value` points. | [optional] |
7
+ | **every** | **Integer** | The divisor - every this metadata value awards `value` points. | [optional] |
8
8
  | **value** | **Float** | Points awarded per `every` unit. | [optional] |
9
9
  | **property** | **String** | Metadata property name holding the numeric value. | [optional] |
10
10
 
@@ -236,7 +236,7 @@ end
236
236
 
237
237
  Create Metadata Schema
238
238
 
239
- Creates a new metadata (custom attribute) schema for a given resource. The schema consists of a set of key-value pairs to customize Voucherify resources. You can nest your object within a standard metadata schema, e.g. within a campaign or customer schema. However, your nested object cant include another nested object. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward Use this endpoint to define a metadata schema of a given resource for the first time. Once you configure a metadata schema for a given related_object, use the PUT [Update metadata schema](/api-reference/management/update-metadata-schema) endpoint to either update or add new metadata key-value pairs. For example, use this endpoint to define a metadata schema for related_object: campaign for the first time. If you want define a new metadata property for campaign, use the [PUT Update metadata schema](/api-reference/management/update-metadata-schema) endpoint. <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note>
239
+ Creates a new metadata (custom attribute) schema for a given resource. The schema consists of a set of key-value pairs to customize Voucherify resources. You can nest your object within a standard metadata schema, e.g. within a campaign or customer schema. However, your nested object cant include another nested object. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward Use this endpoint to define a metadata schema of a given resource for the first time. Once you configure a metadata schema for a given related_object, use the PUT [Update metadata schema](/api-reference/management/update-metadata-schema) endpoint to either update or add new metadata key-value pairs. For example, use this endpoint to define a metadata schema for related_object: campaign for the first time. If you want define a new metadata property for campaign, use the [PUT Update metadata schema](/api-reference/management/update-metadata-schema) endpoint. <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note> loyalty_tier / Loyalty Tier and earning_rule / Earning rule metadata schemas apply to **legacy loyalty** campaigns. Loyalty hub resources use Loyalty v2 metadata where configured.
240
240
 
241
241
  ### Examples
242
242
 
@@ -600,7 +600,7 @@ nil (empty response body)
600
600
 
601
601
  Delete Metadata Schema
602
602
 
603
- Deletes permanently the metadata schema. In standard metadata schemas, this endpoint removes permanently all definitions. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward If you want to delete only one definition, use the [Update Metadata Schema](/api-reference/management/update-metadata-schema) endpoint. In the request, provide the deleted: true pair in the definition object. This definition will be moved to Removed definitions. If you want to create a new standard metadata schema, use the [Create Metadata Schema](/api-reference/management/create-metadata-schema) endpoint. <Warning> <Badge color yellow>Metadata Purging</Badge> This endpoint deletes permanently the metadata schemas only. However, it does not purge the metadata from associated entities, so the metadata added to those entities will remain. If you want to purge metadata from the entities: 1. Remove all the definitions you want to purge. You can do this either in Voucherify Project Settings > Metadata Schema tab or with the [Update Metadata Schema](/api-reference/management/update-metadata-schema) endpoint. 2. In Voucherify Project Settings > Metadata Schema tab, go to the relevant metadata schema. 3. In Removed definitions, click the bin button next to the definitions whose metadata you want to purge from entities. Note: - This is an asynchronous action. You will be notified when it has been completed. - You cannot purge metadata for the Redemption and Publication schemas. 4. Use the Delete Metadata Schema request to delete the metadata schema from Voucherify. </Warning> <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note>
603
+ Deletes permanently the metadata schema. In standard metadata schemas, this endpoint removes permanently all definitions. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward If you want to delete only one definition, use the [Update Metadata Schema](/api-reference/management/update-metadata-schema) endpoint. In the request, provide the deleted: true pair in the definition object. This definition will be moved to Removed definitions. If you want to create a new standard metadata schema, use the [Create Metadata Schema](/api-reference/management/create-metadata-schema) endpoint. <Warning> <Badge color yellow>Metadata Purging</Badge> This endpoint deletes permanently the metadata schemas only. However, it does not purge the metadata from associated entities, so the metadata added to those entities will remain. If you want to purge metadata from the entities: 1. Remove all the definitions you want to purge. You can do this either in Voucherify Project Settings > Metadata Schema tab or with the [Update Metadata Schema](/api-reference/management/update-metadata-schema) endpoint. 2. In Voucherify Project Settings > Metadata Schema tab, go to the relevant metadata schema. 3. In Removed definitions, click the bin button next to the definitions whose metadata you want to purge from entities. Note: - This is an asynchronous action. You will be notified when it has been completed. - You cannot purge metadata for the Redemption and Publication schemas. 4. Use the Delete Metadata Schema request to delete the metadata schema from Voucherify. </Warning> <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note> loyalty_tier / Loyalty Tier and earning_rule / Earning rule metadata schemas apply to **legacy loyalty** campaigns. Loyalty hub resources use Loyalty v2 metadata where configured.
604
604
 
605
605
  ### Examples
606
606
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | The unique identifier of the user who will be assigned to the project. It can be found in Team Settings &gt; Team &gt; Edit member. **Required** with the &#x60;role&#x60; string. Do **not** use with the &#x60;login&#x60; string. | [optional] |
8
- | **login** | **String** | The login data of the user who will be assigned to the project. **Required** with the &#x60;role&#x60; string. Do **not** use with the &#x60;id&#x60; string. | [optional] |
7
+ | **id** | **String** | The unique identifier of the user who will be assigned to the project. It can be found in Team Settings &gt; Team &gt; Edit member. Required with the &#x60;role&#x60; string. Do **not** use with the &#x60;login&#x60; string. | [optional] |
8
+ | **login** | **String** | The login data of the user who will be assigned to the project. Required with the &#x60;role&#x60; string. Do **not** use with the &#x60;id&#x60; string. | [optional] |
9
9
  | **role** | **String** | The role of the user to be added. It can be one of the following predefined roles: &#x60;ADMIN&#x60;, &#x60;USER&#x60;, &#x60;VIEWER&#x60;, &#x60;MERCHANT&#x60; or an ID of a custom role. | |
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | The unique identifier of the user who will be assigned to the project. It can be found in Team Settings &gt; Team &gt; Edit member. **Required** with the &#x60;role&#x60; string. Do **not** use with the &#x60;login&#x60; string. | [optional] |
8
- | **login** | **String** | The login data of the user who will be assigned to the project. **Required** with the &#x60;role&#x60; string. Do **not** use with the &#x60;id&#x60; string. | [optional] |
7
+ | **id** | **String** | The unique identifier of the user who will be assigned to the project. It can be found in Team Settings &gt; Team &gt; Edit member. Required with the &#x60;role&#x60; string. Do **not** use with the &#x60;login&#x60; string. | [optional] |
8
+ | **login** | **String** | The login data of the user who will be assigned to the project. Required with the &#x60;role&#x60; string. Do **not** use with the &#x60;id&#x60; string. | [optional] |
9
9
  | **role** | **String** | The role of the user to be added. It can be one of the following predefined roles: &#x60;ADMIN&#x60;, &#x60;USER&#x60;, &#x60;VIEWER&#x60;, &#x60;MERCHANT&#x60;, or an ID of a custom role. | [optional] |
10
10
 
@@ -14,7 +14,7 @@ All URIs are relative to *https://api.voucherify.io*
14
14
 
15
15
  Get Metadata Schema
16
16
 
17
- Retrieves a metadata schema per resource type. # Resource types ## Standard You can retrieve metadata schemas for the standard metadata schema definitions listed below. Add one of these types as the resource path parameter. - campaign - customer - earning_rule - loyalty_tier - order - order_item - product - promotion_tier - publication - redemption - reward - voucher ## Custom If you have defined a [custom metadata schema](/prepare/metadata#add-metadata), provide its name in the resource field to retrieve its details. <Note> <Badge color blue>Management API</Badge> If you have Management API enabled, you can also use the [Get Metadata Schemas](/api-reference/management/get-metadata-schema) endpoint to retrieve a metadata schema using its ID. </Note>
17
+ Retrieves a metadata schema per resource type. # Resource types ## Standard You can retrieve metadata schemas for the standard metadata schema definitions listed below. Add one of these types as the resource path parameter. - campaign - customer - earning_rule - loyalty_tier - order - order_item - product - promotion_tier - publication - redemption - reward - voucher ## Custom If you have defined a [custom metadata schema](/prepare/metadata#add-metadata), provide its name in the resource field to retrieve its details. <Note> <Badge color blue>Management API</Badge> If you have Management API enabled, you can also use the [Get Metadata Schemas](/api-reference/management/get-metadata-schema) endpoint to retrieve a metadata schema using its ID. </Note> loyalty_tier / Loyalty Tier and earning_rule / Earning rule metadata schemas apply to **legacy loyalty** campaigns. Loyalty hub resources use Loyalty v2 metadata where configured.
18
18
 
19
19
  ### Examples
20
20
 
@@ -17,7 +17,7 @@ All URIs are relative to *https://api.voucherify.io*
17
17
 
18
18
  Create Product Collection
19
19
 
20
- This method creates a new product collection.
20
+ Creates a new product collection. To assign the collection to areas, stores, or all stores, send access_settings with assign. Assignments are available only when the Areas and Stores enterprise feature is enabled for product collections. <Note>A restricted user must assign the new collection to at least one area or store. Areas and stores that the restricted user isnt assigned to are ignored. If none are left, the request fails with a 400 error. A restricted user is a user with the Restricted user role, or with a custom role that has the Join areas and stores permission. An API key with the Restricted user role is also restricted. Users who cant join areas and stores can assign any area or store.</Note>
21
21
 
22
22
  ### Examples
23
23
 
@@ -77,7 +77,7 @@ end
77
77
 
78
78
  Delete Product Collection
79
79
 
80
- Deletes a product collection. <Warning>This endpoint performs database-heavy operations. It is not designed for highly frequent use.</Warning>
80
+ Deletes a product collection. <Note>If the Areas and Stores enterprise feature is enabled for product collections, the area and store assignments of the product collection are deleted with it. A restricted user cant delete a product collection that is read-only for them or that is not assigned to their areas and stores. Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.</Note> <Warning>This endpoint performs database-heavy operations. It is not designed for highly frequent use.</Warning>
81
81
 
82
82
  ### Examples
83
83
 
@@ -134,7 +134,7 @@ nil (empty response body)
134
134
 
135
135
  Get Product Collection
136
136
 
137
- Retrieves the product collection.
137
+ Retrieves the product collection. <Note>If the Areas and Stores enterprise feature is enabled for product collections, a restricted user receives a forbidden error when the product collection is not assigned to their areas and stores. Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.</Note>
138
138
 
139
139
  ### Examples
140
140
 
@@ -192,7 +192,7 @@ end
192
192
 
193
193
  List Product Collections
194
194
 
195
- This method returns a list of product collections.
195
+ This method returns a list of product collections. <Note>A restricted user sees only the product collections assigned to their areas and stores. A restricted user is a user with the Restricted user role, or with a custom role that has the Join areas and stores permission. An API key with the Restricted user role is also restricted.</Note>
196
196
 
197
197
  ### Examples
198
198
 
@@ -7,5 +7,6 @@
7
7
  | **type** | **String** | | [optional] |
8
8
  | **name** | **String** | Unique user-defined product collection name. | [optional] |
9
9
  | **products** | [**Array&lt;ProductCollectionsCreateRequestBodyProductsItem&gt;**](ProductCollectionsCreateRequestBodyProductsItem.md) | Defines a set of products for a &#x60;STATIC&#x60; product collection type. | [optional] |
10
+ | **access_settings** | [**AccessSettings**](AccessSettings.md) | | [optional] |
10
11
  | **filter** | **Object** | Defines a set of criteria and boundary conditions for an &#x60;AUTO_UPDATE&#x60; product collection type. | [optional] |
11
12
 
@@ -10,5 +10,7 @@
10
10
  | **filter** | **Object** | Defines a set of criteria and boundary conditions for an &#x60;AUTO_UPDATE&#x60; product collection type. | [optional] |
11
11
  | **products** | [**Array&lt;ProductCollectionsCreateResponseBodyProductsItem&gt;**](ProductCollectionsCreateResponseBodyProductsItem.md) | Defines a set of products for a &#x60;STATIC&#x60; product collection type. | [optional] |
12
12
  | **created_at** | **Time** | Timestamp representing the date and time when the product collection was created. The value is shown in the ISO 8601 format. | [optional] |
13
+ | **readonly** | **Boolean** | Indicates whether the product collection can only be read by the caller in the Areas and Stores enterprise feature. Returned only when area and store visibility rules apply to the caller. A read-only product collection can&#39;t be updated or deleted. | [optional] |
14
+ | **access_settings_assignments** | [**AccessSettingsProductCollectionAssignmentsList**](AccessSettingsProductCollectionAssignmentsList.md) | | [optional] |
13
15
  | **object** | **String** | The type of the object represented by JSON. This object stores information about the static product collection. | [optional][default to &#39;products_collection&#39;] |
14
16
 
@@ -10,5 +10,7 @@
10
10
  | **filter** | **Object** | Defines a set of criteria and boundary conditions for an &#x60;AUTO_UPDATE&#x60; product collection type. | [optional] |
11
11
  | **products** | [**Array&lt;ProductCollectionsGetResponseBodyProductsItem&gt;**](ProductCollectionsGetResponseBodyProductsItem.md) | Defines a set of products for a &#x60;STATIC&#x60; product collection type. | [optional] |
12
12
  | **created_at** | **Time** | Timestamp representing the date and time when the product collection was created. The value is shown in the ISO 8601 format. | [optional] |
13
+ | **readonly** | **Boolean** | Indicates whether the product collection can only be read by the caller in the Areas and Stores enterprise feature. Returned only when area and store visibility rules apply to the caller. A read-only product collection can&#39;t be updated or deleted. | [optional] |
14
+ | **access_settings_assignments** | [**AccessSettingsProductCollectionAssignmentsList**](AccessSettingsProductCollectionAssignmentsList.md) | | [optional] |
13
15
  | **object** | **String** | The type of the object represented by JSON. This object stores information about the static product collection. | [optional][default to &#39;products_collection&#39;] |
14
16
 
@@ -10,5 +10,7 @@
10
10
  | **filter** | **Object** | Defines a set of criteria and boundary conditions for an &#x60;AUTO_UPDATE&#x60; product collection type. | [optional] |
11
11
  | **products** | [**Array&lt;ProductCollectionsItemProductsItem&gt;**](ProductCollectionsItemProductsItem.md) | Defines a set of products for a &#x60;STATIC&#x60; product collection type. | [optional] |
12
12
  | **created_at** | **Time** | Timestamp representing the date and time when the product collection was created. The value is shown in the ISO 8601 format. | [optional] |
13
+ | **readonly** | **Boolean** | Indicates whether the product collection can only be read by the caller in the Areas and Stores enterprise feature. Returned only when area and store visibility rules apply to the caller. A read-only product collection can&#39;t be updated or deleted. | [optional] |
14
+ | **access_settings_assignments** | [**AccessSettingsProductCollectionAssignmentsList**](AccessSettingsProductCollectionAssignmentsList.md) | | [optional] |
13
15
  | **object** | **String** | The type of the object represented by JSON. This object stores information about the static product collection. | [optional][default to &#39;products_collection&#39;] |
14
16
 
@@ -6,6 +6,6 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **object** | **String** | The type of the object represented by JSON. This object stores information about product collections. | [optional][default to &#39;list&#39;] |
8
8
  | **data_ref** | **String** | Identifies the name of the JSON property that contains the array of product collections. | [optional][default to &#39;data&#39;] |
9
- | **data** | [**Array&lt;ProductCollectionsItem&gt;**](ProductCollectionsItem.md) | A dictionary that contains an array of product collections and their details. | [optional] |
9
+ | **data** | [**Array&lt;ProductCollectionsItem&gt;**](ProductCollectionsItem.md) | A dictionary that contains an array of product collections and their details. &lt;Note&gt;If the Areas and Stores enterprise feature is enabled for product collections, this list does not return &#x60;access_settings_assignments&#x60;. To get the areas and stores to which a product collection is assigned, use [GET Product Collection](/api-reference/product-collections/get-product-collection). Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.&lt;/Note&gt; | [optional] |
10
10
  | **total** | **Integer** | Total number of product collections. | [optional] |
11
11
 
data/docs/ProductsApi.md CHANGED
@@ -448,7 +448,7 @@ end
448
448
 
449
449
  Import SKUs using CSV
450
450
 
451
- Import SKUs into the repository using a CSV file. The CSV file has to include headers in the first line. All properties which cannot be mapped to standard SKU fields will be added to the metadata object. You can find an example template [here](https://s3.amazonaws.com/helpscout.net/docs/assets/5902f1c12c7d3a057f88a36d/attachments/627b98d08c9b585083488a4c/Import_SKUS_template.csv). <Warning> <Badge color yellow>Import sequence</Badge> First import products using the [dedicated endpoint](/api-reference/products/import-products-using-csv), then import SKUs using this endpoint to properly match SKUs to products. </Warning> <Note> <Badge color blue>Standard SKU fields mapping</Badge> - **Required** fields are source_id and product_id. - Supported CSV file headers: product_id,sku,source_id,price,image_url,attributes - SKU **source_id** must be unique in the entire product catalog, no duplicates are allowed. - SKU attributes need to be in the form of a stringy-fied json, i.e.{color:blue}. These attributes must be defined in the **product** beforehand so you can import them to the SKU. - You can use this method to update the following parameters in bulk: **sku** and the sku **price**. - Columns that cannot be mapped to standard fields will be mapped to Custom attributes and added as product metadata. There is no limit on the number of custom attributes that you can import as metadata. </Note> This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this [API request](/api-reference/async-actions/get-async-action).
451
+ Import SKUs into the repository using a CSV file. The CSV file has to include headers in the first line. All properties which cannot be mapped to standard SKU fields will be added to the metadata object. You can find an example template [here](https://s3.amazonaws.com/helpscout.net/docs/assets/5902f1c12c7d3a057f88a36d/attachments/627b98d08c9b585083488a4c/Import_SKUS_template.csv). <Warning> <Badge color yellow>Import sequence</Badge> First import products using the [dedicated endpoint](/api-reference/products/import-products-using-csv), then import SKUs using this endpoint to properly match SKUs to products. </Warning> <Note> <Badge color blue>Standard SKU fields mapping</Badge> - Required fields are source_id and product_id. - Supported CSV file headers: product_id,sku,source_id,price,image_url,attributes - SKU **source_id** must be unique in the entire product catalog, no duplicates are allowed. - SKU attributes need to be in the form of a stringy-fied json, i.e.{color:blue}. These attributes must be defined in the **product** beforehand so you can import them to the SKU. - You can use this method to update the following parameters in bulk: **sku** and the sku **price**. - Columns that cannot be mapped to standard fields will be mapped to Custom attributes and added as product metadata. There is no limit on the number of custom attributes that you can import as metadata. </Note> This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this [API request](/api-reference/async-actions/get-async-action).
452
452
 
453
453
  ### Examples
454
454
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **channel_id** | **String** | Unique channel ID of the user performing the redemption. This is either a user ID from a user using the Voucherify Dashboard or an X-APP-Id of a user using the API. For &#x60;AUTO_REDEEM&#x60;, it is the reward assignment ID. | [optional] |
8
- | **channel_type** | **String** | The source of the channel for the redemption. A &#x60;USER&#x60; corresponds to the Voucherify Dashboard, &#x60;API&#x60; corresponds to the API, and &#x60;AUTO_REDEEM&#x60; corresponds to a loyalty campaign reward that has been redeemed automatically. | [optional] |
8
+ | **channel_type** | **String** | The source of the channel for the redemption. A &#x60;USER&#x60; corresponds to the Voucherify Dashboard, &#x60;API&#x60; corresponds to the API, and &#x60;AUTO_REDEEM&#x60; corresponds to a **legacy loyalty** campaign reward that has been redeemed automatically. | [optional] |
9
9
 
@@ -17,5 +17,5 @@
17
17
  | **updated_at** | **Time** | Timestamp in ISO 8601 format indicating when the reward was updated. | [optional] |
18
18
  | **parameters** | [**RedemptionRewardResultParameters**](RedemptionRewardResultParameters.md) | | [optional] |
19
19
  | **metadata** | **Object** | A set of custom key/value pairs that you can attach to a reward. The metadata object stores all custom attributes assigned to the reward. | [optional] |
20
- | **type** | **String** | Reward type. | [optional] |
20
+ | **type** | **String** | Reward type. &#x60;LOYALTY_POINTS&#x60; credits points on a &#x60;v2/loyalties&#x60; (loyalty hub) card (for example from a referral tier). | [optional] |
21
21
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **exchange_ratio** | **Float** | The cash equivalent of the points defined in the &#x60;points_ratio&#x60; property. | [optional] |
8
- | **points_ratio** | **Integer** | The number of loyalty points that will map to the predefined cash amount defined by the &#x60;exchange_ratio&#x60; property. | [optional] |
8
+ | **points_ratio** | **Integer** | The number of loyalty points (**legacy loyalty**) that will map to the predefined cash amount defined by the &#x60;exchange_ratio&#x60; property. | [optional] |
9
9
 
data/docs/Reward.md CHANGED
@@ -10,7 +10,7 @@
10
10
  | **redeemed** | **Integer** | Defines the number of already invoked (successful) reward redemptions. | [optional] |
11
11
  | **attributes** | [**RewardAttributes**](RewardAttributes.md) | | [optional] |
12
12
  | **metadata** | **Object** | The metadata object stores all custom attributes assigned to the reward. A set of key/value pairs that you can attach to a reward object. It can be useful for storing additional information about the reward in a structured format. | [optional] |
13
- | **type** | **String** | Reward type. | [optional] |
13
+ | **type** | **String** | Reward type. &#x60;LOYALTY_POINTS&#x60; credits points on a &#x60;v2/loyalties&#x60; (loyalty hub) card (for example from a referral tier). | [optional] |
14
14
  | **parameters** | [**RewardType**](RewardType.md) | | [optional] |
15
15
  | **created_at** | **Time** | Timestamp representing the date and time when the reward was created. The value is shown in the ISO 8601 format. | [optional] |
16
16
  | **updated_at** | **Time** | Timestamp representing the date and time when the reward was updated. The value is shown in the ISO 8601 format. | [optional] |
@@ -9,7 +9,7 @@
9
9
  | **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
10
10
  | **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
11
11
  | **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to &#39;reward_assignment&#39;] |
12
- | **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
13
- | **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to &#39;campaign&#39;] |
12
+ | **related_object_id** | **String** | Related object ID to which the reward was assigned. For &#x60;related_object_type&#x60; &#x60;campaign&#x60;, this is the campaign ID. For &#x60;referral_tier&#x60;, this is the referral tier ID. | [optional] |
13
+ | **related_object_type** | **String** | Related object type to which the reward was assigned. Use &#x60;campaign&#x60; for **legacy loyalty** campaign rewards. Use &#x60;referral_tier&#x60; for &#x60;LOYALTY_POINTS&#x60; rewards that credit a &#x60;v2/loyalties&#x60; (loyalty hub) card from a referral tier. A &#x60;LOYALTY_POINTS&#x60; reward can only be assigned to a referral tier. | [optional][default to &#39;campaign&#39;] |
14
14
  | **parameters** | [**RewardAssignmentParameters**](RewardAssignmentParameters.md) | | [optional] |
15
15
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
8
- | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value &#x60;true&#x60; means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value &#x60;true&#x60;. | [optional] |
8
+ | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value &#x60;true&#x60; means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value &#x60;true&#x60;. | [optional] |
9
9
 
data/docs/RewardType.md CHANGED
@@ -7,4 +7,5 @@
7
7
  | **campaign** | [**RewardTypeCampaign**](RewardTypeCampaign.md) | | [optional] |
8
8
  | **coin** | [**RewardTypeCoin**](RewardTypeCoin.md) | | [optional] |
9
9
  | **product** | [**RewardTypeProduct**](RewardTypeProduct.md) | | [optional] |
10
+ | **loyalty_points** | [**RewardTypeLoyaltyPoints**](RewardTypeLoyaltyPoints.md) | | [optional] |
10
11
 
@@ -4,6 +4,6 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **exchange_ratio** | **Float** | The cash equivalent of the points defined in the points_ratio property. | [optional] |
8
- | **points_ratio** | **Integer** | The number of loyalty points that will map to the predefined cash amount defined by the exchange_ratio property. | [optional] |
7
+ | **exchange_ratio** | **Float** | The cash equivalent of the points defined in the &#x60;points_ratio&#x60; property. | [optional] |
8
+ | **points_ratio** | **Integer** | The number of loyalty points (**legacy loyalty**) that will map to the predefined cash amount defined by the &#x60;exchange_ratio&#x60; property. | [optional] |
9
9
 
@@ -0,0 +1,11 @@
1
+ # VoucherifySdk::RewardTypeLoyaltyPoints
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **points** | **Integer** | Number of points to credit. Must be greater than &#x60;0&#x60;. | [optional] |
8
+ | **program_id** | **String** | Unique &#x60;v2/loyalties&#x60; (loyalty hub) program ID, assigned by Voucherify. | [optional] |
9
+ | **card_definition_id** | **String** | Unique card definition ID of the &#x60;v2/loyalties&#x60; (loyalty hub) card that receives the points. | [optional] |
10
+ | **on_missing_member** | **String** | Action when the customer is not a member of the program. &#x60;ENROLL&#x60; enrolls the customer and credits the points. &#x60;REJECT&#x60; rejects the award and the customer is not enrolled. | [optional] |
11
+
data/docs/RewardsApi.md CHANGED
@@ -22,7 +22,7 @@ All URIs are relative to *https://api.voucherify.io*
22
22
 
23
23
  Create Reward
24
24
 
25
- Create a new reward.
25
+ Create a new reward. Use this endpoint for campaign-linked rewards (referral campaigns and **legacy loyalty**) and for LOYALTY_POINTS rewards that credit a v2/loyalties (loyalty hub) card from a referral tier. For Loyalty hub program rewards (a different resource), use POST /v2/loyalties/rewards.
26
26
 
27
27
  ### Examples
28
28
 
@@ -82,7 +82,7 @@ end
82
82
 
83
83
  Create Reward Assignment
84
84
 
85
- Assigns a reward to a specified loyalty campaign.
85
+ Assigns a reward to a related object. For **legacy loyalty** and digital or material rewards, send campaign with a loyalty or referral campaign ID. For a LOYALTY_POINTS reward (credits a v2/loyalties (loyalty hub) card), send related_object_type referral_tier and related_object_id set to the referral tier ID. A LOYALTY_POINTS reward cannot be assigned to a campaign. Assigning it with campaign (or any non-referral_tier related object) returns 400 with invalid_related_to. POST /v1/loyalties/{campaignId}/rewards also cannot assign a LOYALTY_POINTS reward to a campaign. For Loyalty hub program rewards, use /v2/loyalties reward endpoints.
86
86
 
87
87
  ### Examples
88
88
 
@@ -105,7 +105,7 @@ end
105
105
  api_instance = VoucherifySdk::RewardsApi.new
106
106
  reward_id = 'reward_id_example' # String | A unique reward ID.
107
107
  opts = {
108
- rewards_assignments_create_request_body: VoucherifySdk::RewardsAssignmentsCreateRequestBody.new # RewardsAssignmentsCreateRequestBody | Provide the campaign ID of the campaign to which the reward is to be assigned and define the cost of the reward in terms of loyalty points.
108
+ rewards_assignments_create_request_body: VoucherifySdk::RewardsAssignmentsCreateRequestBody.new # RewardsAssignmentsCreateRequestBody | For digital, material, and pay-with-points rewards, provide the campaign ID and, when required, the loyalty points cost. For a LOYALTY_POINTS reward, provide related_object_type referral_tier and the referral tier ID.
109
109
  }
110
110
 
111
111
  begin
@@ -122,7 +122,7 @@ end
122
122
  | Name | Type | Description | Notes |
123
123
  | ---- | ---- | ----------- | ----- |
124
124
  | **reward_id** | **String** | A unique reward ID. | |
125
- | **rewards_assignments_create_request_body** | [**RewardsAssignmentsCreateRequestBody**](RewardsAssignmentsCreateRequestBody.md) | Provide the campaign ID of the campaign to which the reward is to be assigned and define the cost of the reward in terms of loyalty points. | [optional] |
125
+ | **rewards_assignments_create_request_body** | [**RewardsAssignmentsCreateRequestBody**](RewardsAssignmentsCreateRequestBody.md) | For digital, material, and pay-with-points rewards, provide the campaign ID and, when required, the loyalty points cost. For a LOYALTY_POINTS reward, provide related_object_type referral_tier and the referral tier ID. | [optional] |
126
126
 
127
127
  ### Return type
128
128
 
@@ -442,7 +442,7 @@ end
442
442
 
443
443
  List Rewards
444
444
 
445
- Retrieve rewards.
445
+ Retrieve campaign-linked rewards (referral campaigns and **legacy loyalty**). For Loyalty hub rewards, use GET /v2/loyalties/rewards.
446
446
 
447
447
  ### Examples
448
448
 
@@ -5,6 +5,8 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **campaign** | **String** | The campaign ID of the campaign to which the reward is to be assigned. | [optional] |
8
+ | **related_object_type** | **String** | | [optional] |
8
9
  | **parameters** | [**RewardsAssignmentsCreateRequestBodyParameters**](RewardsAssignmentsCreateRequestBodyParameters.md) | | [optional] |
9
10
  | **validation_rules** | **Array&lt;String&gt;** | | [optional] |
11
+ | **related_object_id** | **String** | Unique referral tier ID, assigned by Voucherify. | [optional] |
10
12
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **points** | **Integer** | Number of points that will be subtracted from the loyalty card points balance if the reward is redeemed. Must be positive integer. | [optional] |
8
- | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value &#x60;true&#x60; means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value &#x60;true&#x60;. | [optional] |
8
+ | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value &#x60;true&#x60; means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value &#x60;true&#x60;. | [optional] |
9
9
 
@@ -9,7 +9,7 @@
9
9
  | **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
10
10
  | **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
11
11
  | **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to &#39;reward_assignment&#39;] |
12
- | **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
13
- | **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to &#39;campaign&#39;] |
12
+ | **related_object_id** | **String** | Related object ID to which the reward was assigned. For &#x60;related_object_type&#x60; &#x60;campaign&#x60;, this is the campaign ID. For &#x60;referral_tier&#x60;, this is the referral tier ID. | [optional] |
13
+ | **related_object_type** | **String** | Related object type to which the reward was assigned. Use &#x60;campaign&#x60; for **legacy loyalty** campaign rewards. Use &#x60;referral_tier&#x60; for &#x60;LOYALTY_POINTS&#x60; rewards that credit a &#x60;v2/loyalties&#x60; (loyalty hub) card from a referral tier. A &#x60;LOYALTY_POINTS&#x60; reward can only be assigned to a referral tier. | [optional][default to &#39;campaign&#39;] |
14
14
  | **parameters** | [**RewardsAssignmentsCreateResponseBodyParameters**](RewardsAssignmentsCreateResponseBodyParameters.md) | | [optional] |
15
15
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
8
- | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value &#x60;true&#x60; means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value &#x60;true&#x60;. | [optional] |
8
+ | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value &#x60;true&#x60; means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value &#x60;true&#x60;. | [optional] |
9
9
 
@@ -9,7 +9,7 @@
9
9
  | **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
10
10
  | **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
11
11
  | **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to &#39;reward_assignment&#39;] |
12
- | **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
13
- | **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to &#39;campaign&#39;] |
12
+ | **related_object_id** | **String** | Related object ID to which the reward was assigned. For &#x60;related_object_type&#x60; &#x60;campaign&#x60;, this is the campaign ID. For &#x60;referral_tier&#x60;, this is the referral tier ID. | [optional] |
13
+ | **related_object_type** | **String** | Related object type to which the reward was assigned. Use &#x60;campaign&#x60; for **legacy loyalty** campaign rewards. Use &#x60;referral_tier&#x60; for &#x60;LOYALTY_POINTS&#x60; rewards that credit a &#x60;v2/loyalties&#x60; (loyalty hub) card from a referral tier. A &#x60;LOYALTY_POINTS&#x60; reward can only be assigned to a referral tier. | [optional][default to &#39;campaign&#39;] |
14
14
  | **parameters** | [**RewardsAssignmentsGetResponseBodyParameters**](RewardsAssignmentsGetResponseBodyParameters.md) | | [optional] |
15
15
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
8
- | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value &#x60;true&#x60; means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value &#x60;true&#x60;. | [optional] |
8
+ | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value &#x60;true&#x60; means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value &#x60;true&#x60;. | [optional] |
9
9
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **points** | **Integer** | Defines how many points are required to obtain the reward. | [optional] |
8
- | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value &#x60;true&#x60; means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value &#x60;true&#x60;. | [optional] |
8
+ | **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value &#x60;true&#x60; means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value &#x60;true&#x60;. | [optional] |
9
9