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
@@ -20,7 +20,7 @@ module VoucherifySdk
20
20
  @api_client = api_client
21
21
  end
22
22
  # Activate pending point bucket
23
- # Activates a pending points bucket and creates a PENDING_POINTS_ACTIVATED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card.
23
+ # Activates a pending points bucket and creates a PENDING_POINTS_ACTIVATED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card. A successful call records no activity.
24
24
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
25
25
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
26
26
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -33,7 +33,7 @@ module VoucherifySdk
33
33
  end
34
34
 
35
35
  # Activate pending point bucket
36
- # Activates a pending points bucket and creates a PENDING_POINTS_ACTIVATED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card.
36
+ # Activates a pending points bucket and creates a PENDING_POINTS_ACTIVATED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card. A successful call records no activity.
37
37
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
38
38
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
39
39
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -85,7 +85,7 @@ module VoucherifySdk
85
85
  end
86
86
 
87
87
  # Activate program member
88
- # Moves an INACTIVE member to ACTIVE and sets updated_at. Records a vl.member.activated activity. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_state_transition when the member is already ACTIVE.
88
+ # Moves an INACTIVE member to ACTIVE and sets updated_at. Records a vl.member.activated activity. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_state_transition when the member is already ACTIVE. A successful call records [vl.member.activated](/api-reference/loyalty-activity/members/activated).
89
89
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
90
90
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
91
91
  # @param [Hash] opts the optional parameters
@@ -96,7 +96,7 @@ module VoucherifySdk
96
96
  end
97
97
 
98
98
  # Activate program member
99
- # Moves an INACTIVE member to ACTIVE and sets updated_at. Records a vl.member.activated activity. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_state_transition when the member is already ACTIVE.
99
+ # Moves an INACTIVE member to ACTIVE and sets updated_at. Records a vl.member.activated activity. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_state_transition when the member is already ACTIVE. A successful call records [vl.member.activated](/api-reference/loyalty-activity/members/activated).
100
100
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
101
101
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
102
102
  # @param [Hash] opts the optional parameters
@@ -146,7 +146,7 @@ module VoucherifySdk
146
146
  end
147
147
 
148
148
  # Adjust card points
149
- # Manually adjusts the points balance of the members card. A positive points value creates an ADMIN_CREDIT card transaction. The expiration date comes from the member tier when that tier defines its own points expiration. Otherwise the date comes from the card definition. expiration_date is null when points dont expire. A negative points value creates an ADMIN_DEBIT card transaction. When points is 0, no transaction is created and status is NO_CHANGE. The transaction is created with status PENDING and processed asynchronously. The program and the member must be ACTIVE. The program must also be inside its validity window. Otherwise the response is 423. The response is 404 when the program or the member doesnt exist, or when the card isnt assigned to that member.
149
+ # Manually adjusts the points balance of the members card. A positive points value creates an ADMIN_CREDIT card transaction. The expiration date comes from the member tier when that tier defines its own points expiration. Otherwise the date comes from the card definition. expiration_date is null when points dont expire. A negative points value creates an ADMIN_DEBIT card transaction. When points is 0, no transaction is created and status is NO_CHANGE. The transaction is created with status PENDING and processed asynchronously. The program and the member must be ACTIVE. The program must also be inside its validity window. Otherwise the response is 423. The response is 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. A successful call records no activity.
150
150
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
151
151
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
152
152
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -159,7 +159,7 @@ module VoucherifySdk
159
159
  end
160
160
 
161
161
  # Adjust card points
162
- # Manually adjusts the points balance of the members card. A positive points value creates an ADMIN_CREDIT card transaction. The expiration date comes from the member tier when that tier defines its own points expiration. Otherwise the date comes from the card definition. expiration_date is null when points dont expire. A negative points value creates an ADMIN_DEBIT card transaction. When points is 0, no transaction is created and status is NO_CHANGE. The transaction is created with status PENDING and processed asynchronously. The program and the member must be ACTIVE. The program must also be inside its validity window. Otherwise the response is 423. The response is 404 when the program or the member doesnt exist, or when the card isnt assigned to that member.
162
+ # Manually adjusts the points balance of the members card. A positive points value creates an ADMIN_CREDIT card transaction. The expiration date comes from the member tier when that tier defines its own points expiration. Otherwise the date comes from the card definition. expiration_date is null when points dont expire. A negative points value creates an ADMIN_DEBIT card transaction. When points is 0, no transaction is created and status is NO_CHANGE. The transaction is created with status PENDING and processed asynchronously. The program and the member must be ACTIVE. The program must also be inside its validity window. Otherwise the response is 423. The response is 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. A successful call records no activity.
163
163
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
164
164
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
165
165
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -216,7 +216,7 @@ module VoucherifySdk
216
216
  end
217
217
 
218
218
  # Batch create program members
219
- # Schedules creation of program members from a JSON array and returns 202 with async_action_id. The program must exist, be ACTIVE, and be inside its validity window. The body isnt checked before that response. Entries are processed in batches of 100. The raw body must be at most 10 MB. Each entry uses the same fields as [Create program member](/api-reference/programs/create-program-member). A failed entry is skipped. Its report row sets created to false and explains the failure in error. Skipped cases include an invalid customer_identification, an unknown customer, an invalid status, a duplicate customer in the batch (Duplicate customer ID), a customer who is already a member (Member already exists), metadata that doesnt match the vl_member schema, and entries past the loyalty members plan limit. Successful entries enroll the customer and create a loyalty card for each card definition on the program. Report columns are identification_type, customer_id, customer_source_id, program_id, member_id, created, and error. An empty array or a null entry fails the async action with invalid_request_payload. A body that isnt a JSON array fails it with top_level_object_should_be_an_array. Use [Get async action](/api-reference/async-actions/get-async-action) to read the status and the report. You can also open the result from Audit log, [Background tasks](/analyze/audit-logs#background-tasks).
219
+ # Schedules creation of program members from a JSON array and returns 202 with async_action_id. The program must exist, be ACTIVE, and be inside its validity window. The body isnt checked before that response. Entries are processed in batches of 100. The raw body must be at most 10 MB. Each entry uses the same fields as [Create program member](/api-reference/programs/create-program-member). A failed entry is skipped. Its report row sets created to false and explains the failure in error. Skipped cases include an invalid customer_identification, an unknown customer, an invalid status, a duplicate customer in the batch (Duplicate customer ID), a customer who is already a member (Member already exists), metadata that doesnt match the vl_member schema, and entries past the loyalty members plan limit. Successful entries enroll the customer and create a loyalty card for each card definition on the program. Report columns are identification_type, customer_id, customer_source_id, program_id, member_id, created, and error. An empty array or a null entry fails the async action with invalid_request_payload. A body that isnt a JSON array fails it with top_level_object_should_be_an_array. Use [Get async action](/api-reference/async-actions/get-async-action) to read the status and the report. You can also open the result from Audit log, [Background tasks](/analyze/audit-logs#background-tasks). A successful call records no activity; the scheduled batch records [vl.member.created](/api-reference/loyalty-activity/members/created) and, for each card, [vl.card.created](/api-reference/loyalty-activity/cards/created), [vl.card.assigned](/api-reference/loyalty-activity/cards/assigned), and [vl.member.card.assigned](/api-reference/loyalty-activity/members/card-assigned), and card code generation later records [vl.card.code_generation.succeeded](/api-reference/loyalty-activity/cards/code-generation-succeeded) or [vl.card.code_generation.failed](/api-reference/loyalty-activity/cards/code-generation-failed).
220
220
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
221
221
  # @param [Hash] opts the optional parameters
222
222
  # @option opts [Array<MemberCreate>] :member_create
@@ -227,7 +227,7 @@ module VoucherifySdk
227
227
  end
228
228
 
229
229
  # Batch create program members
230
- # Schedules creation of program members from a JSON array and returns 202 with async_action_id. The program must exist, be ACTIVE, and be inside its validity window. The body isnt checked before that response. Entries are processed in batches of 100. The raw body must be at most 10 MB. Each entry uses the same fields as [Create program member](/api-reference/programs/create-program-member). A failed entry is skipped. Its report row sets created to false and explains the failure in error. Skipped cases include an invalid customer_identification, an unknown customer, an invalid status, a duplicate customer in the batch (Duplicate customer ID), a customer who is already a member (Member already exists), metadata that doesnt match the vl_member schema, and entries past the loyalty members plan limit. Successful entries enroll the customer and create a loyalty card for each card definition on the program. Report columns are identification_type, customer_id, customer_source_id, program_id, member_id, created, and error. An empty array or a null entry fails the async action with invalid_request_payload. A body that isnt a JSON array fails it with top_level_object_should_be_an_array. Use [Get async action](/api-reference/async-actions/get-async-action) to read the status and the report. You can also open the result from Audit log, [Background tasks](/analyze/audit-logs#background-tasks).
230
+ # Schedules creation of program members from a JSON array and returns 202 with async_action_id. The program must exist, be ACTIVE, and be inside its validity window. The body isnt checked before that response. Entries are processed in batches of 100. The raw body must be at most 10 MB. Each entry uses the same fields as [Create program member](/api-reference/programs/create-program-member). A failed entry is skipped. Its report row sets created to false and explains the failure in error. Skipped cases include an invalid customer_identification, an unknown customer, an invalid status, a duplicate customer in the batch (Duplicate customer ID), a customer who is already a member (Member already exists), metadata that doesnt match the vl_member schema, and entries past the loyalty members plan limit. Successful entries enroll the customer and create a loyalty card for each card definition on the program. Report columns are identification_type, customer_id, customer_source_id, program_id, member_id, created, and error. An empty array or a null entry fails the async action with invalid_request_payload. A body that isnt a JSON array fails it with top_level_object_should_be_an_array. Use [Get async action](/api-reference/async-actions/get-async-action) to read the status and the report. You can also open the result from Audit log, [Background tasks](/analyze/audit-logs#background-tasks). A successful call records no activity; the scheduled batch records [vl.member.created](/api-reference/loyalty-activity/members/created) and, for each card, [vl.card.created](/api-reference/loyalty-activity/cards/created), [vl.card.assigned](/api-reference/loyalty-activity/cards/assigned), and [vl.member.card.assigned](/api-reference/loyalty-activity/members/card-assigned), and card code generation later records [vl.card.code_generation.succeeded](/api-reference/loyalty-activity/cards/code-generation-succeeded) or [vl.card.code_generation.failed](/api-reference/loyalty-activity/cards/code-generation-failed).
231
231
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
232
232
  # @param [Hash] opts the optional parameters
233
233
  # @option opts [Array<MemberCreate>] :member_create
@@ -282,7 +282,7 @@ module VoucherifySdk
282
282
  end
283
283
 
284
284
  # Cancel pending point bucket
285
- # Cancels a pending points bucket so its points arent activated. Creates a PENDING_POINTS_CANCELED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card.
285
+ # Cancels a pending points bucket so its points arent activated. Creates a PENDING_POINTS_CANCELED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card. A successful call records no activity.
286
286
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
287
287
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
288
288
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -295,7 +295,7 @@ module VoucherifySdk
295
295
  end
296
296
 
297
297
  # Cancel pending point bucket
298
- # Cancels a pending points bucket so its points arent activated. Creates a PENDING_POINTS_CANCELED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card.
298
+ # Cancels a pending points bucket so its points arent activated. Creates a PENDING_POINTS_CANCELED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card. A successful call records no activity.
299
299
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
300
300
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
301
301
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -347,7 +347,7 @@ module VoucherifySdk
347
347
  end
348
348
 
349
349
  # Pay for order with points
350
- # Pays for an order with points from the members card. The amount and points come from the card definitions pay-with-points exchange ratio, limited by the order total, the card balance, card spending caps, and the optional payment_limit. The binding cap is returned as details.spending_cap. The program and member must be ACTIVE, and the program must be inside its validity window. The card must belong to the member. The card definition must have pay-with-points enabled and an exchange-ratio formula. The order must already exist, identified by id or source_id. Modes: - TRANSACTION (default): creates a PENDING order transaction and a PENDING card transaction. Returns 202. The same order can be paid again; each call creates a new transaction. - DRY_RUN: simulates the payment and doesnt create a transaction. Returns 200 with status SIMULATED.
350
+ # Pays for an order with points from the members card. The amount and points come from the card definitions pay-with-points exchange ratio, limited by the order total, the card balance, card spending caps, and the optional payment_limit. The binding cap is returned as details.spending_cap. The program and member must be ACTIVE, and the program must be inside its validity window. The card must belong to the member. The card definition must have pay-with-points enabled and an exchange-ratio formula. The order must already exist, identified by id or source_id. Modes: - TRANSACTION (default): creates a PENDING order transaction and a PENDING card transaction. Returns 202. The same order can be paid again; each call creates a new transaction. - DRY_RUN: simulates the payment and doesnt create a transaction. Returns 200 with status SIMULATED. A successful call records no activity.
351
351
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
352
352
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
353
353
  # @param [Hash] opts the optional parameters
@@ -359,7 +359,7 @@ module VoucherifySdk
359
359
  end
360
360
 
361
361
  # Pay for order with points
362
- # Pays for an order with points from the members card. The amount and points come from the card definitions pay-with-points exchange ratio, limited by the order total, the card balance, card spending caps, and the optional payment_limit. The binding cap is returned as details.spending_cap. The program and member must be ACTIVE, and the program must be inside its validity window. The card must belong to the member. The card definition must have pay-with-points enabled and an exchange-ratio formula. The order must already exist, identified by id or source_id. Modes: - TRANSACTION (default): creates a PENDING order transaction and a PENDING card transaction. Returns 202. The same order can be paid again; each call creates a new transaction. - DRY_RUN: simulates the payment and doesnt create a transaction. Returns 200 with status SIMULATED.
362
+ # Pays for an order with points from the members card. The amount and points come from the card definitions pay-with-points exchange ratio, limited by the order total, the card balance, card spending caps, and the optional payment_limit. The binding cap is returned as details.spending_cap. The program and member must be ACTIVE, and the program must be inside its validity window. The card must belong to the member. The card definition must have pay-with-points enabled and an exchange-ratio formula. The order must already exist, identified by id or source_id. Modes: - TRANSACTION (default): creates a PENDING order transaction and a PENDING card transaction. Returns 202. The same order can be paid again; each call creates a new transaction. - DRY_RUN: simulates the payment and doesnt create a transaction. Returns 200 with status SIMULATED. A successful call records no activity.
363
363
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
364
364
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
365
365
  # @param [Hash] opts the optional parameters
@@ -415,7 +415,7 @@ module VoucherifySdk
415
415
  end
416
416
 
417
417
  # Create program member
418
- # Enrolls an existing customer as a member of the loyalty program and creates a loyalty card for each card definition assigned to the program. Card code generation is asynchronous, so code can be null right after creation. The program must be ACTIVE and inside its validity window, and the customer must already exist. A customer can be a member of a program only once. Identify the customer with customer_identification. status defaults to ACTIVE.
418
+ # Enrolls an existing customer as a member of the loyalty program and creates a loyalty card for each card definition assigned to the program. Card code generation is asynchronous, so code can be null right after creation. The program must be ACTIVE and inside its validity window, and the customer must already exist. A customer can be a member of a program only once. Identify the customer with customer_identification. status defaults to ACTIVE. A successful call records [vl.member.created](/api-reference/loyalty-activity/members/created) and, for each card, [vl.card.created](/api-reference/loyalty-activity/cards/created), [vl.card.assigned](/api-reference/loyalty-activity/cards/assigned), and [vl.member.card.assigned](/api-reference/loyalty-activity/members/card-assigned); card code generation later records [vl.card.code_generation.succeeded](/api-reference/loyalty-activity/cards/code-generation-succeeded) or [vl.card.code_generation.failed](/api-reference/loyalty-activity/cards/code-generation-failed).
419
419
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
420
420
  # @param [Hash] opts the optional parameters
421
421
  # @option opts [V2LoyaltiesProgramsMembersCreateRequestBody] :v2_loyalties_programs_members_create_request_body
@@ -426,7 +426,7 @@ module VoucherifySdk
426
426
  end
427
427
 
428
428
  # Create program member
429
- # Enrolls an existing customer as a member of the loyalty program and creates a loyalty card for each card definition assigned to the program. Card code generation is asynchronous, so code can be null right after creation. The program must be ACTIVE and inside its validity window, and the customer must already exist. A customer can be a member of a program only once. Identify the customer with customer_identification. status defaults to ACTIVE.
429
+ # Enrolls an existing customer as a member of the loyalty program and creates a loyalty card for each card definition assigned to the program. Card code generation is asynchronous, so code can be null right after creation. The program must be ACTIVE and inside its validity window, and the customer must already exist. A customer can be a member of a program only once. Identify the customer with customer_identification. status defaults to ACTIVE. A successful call records [vl.member.created](/api-reference/loyalty-activity/members/created) and, for each card, [vl.card.created](/api-reference/loyalty-activity/cards/created), [vl.card.assigned](/api-reference/loyalty-activity/cards/assigned), and [vl.member.card.assigned](/api-reference/loyalty-activity/members/card-assigned); card code generation later records [vl.card.code_generation.succeeded](/api-reference/loyalty-activity/cards/code-generation-succeeded) or [vl.card.code_generation.failed](/api-reference/loyalty-activity/cards/code-generation-failed).
430
430
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
431
431
  # @param [Hash] opts the optional parameters
432
432
  # @option opts [V2LoyaltiesProgramsMembersCreateRequestBody] :v2_loyalties_programs_members_create_request_body
@@ -481,7 +481,7 @@ module VoucherifySdk
481
481
  end
482
482
 
483
483
  # Deactivate program member
484
- # Moves an ACTIVE member to INACTIVE and sets updated_at. Records a vl.member.deactivated activity. An INACTIVE member cant earn or spend points. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_state_transition when the member is already INACTIVE.
484
+ # Moves an ACTIVE member to INACTIVE and sets updated_at. Records a vl.member.deactivated activity. An INACTIVE member cant earn or spend points. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_state_transition when the member is already INACTIVE. A successful call records [vl.member.deactivated](/api-reference/loyalty-activity/members/deactivated).
485
485
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
486
486
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
487
487
  # @param [Hash] opts the optional parameters
@@ -492,7 +492,7 @@ module VoucherifySdk
492
492
  end
493
493
 
494
494
  # Deactivate program member
495
- # Moves an ACTIVE member to INACTIVE and sets updated_at. Records a vl.member.deactivated activity. An INACTIVE member cant earn or spend points. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_state_transition when the member is already INACTIVE.
495
+ # Moves an ACTIVE member to INACTIVE and sets updated_at. Records a vl.member.deactivated activity. An INACTIVE member cant earn or spend points. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_state_transition when the member is already INACTIVE. A successful call records [vl.member.deactivated](/api-reference/loyalty-activity/members/deactivated).
496
496
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
497
497
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
498
498
  # @param [Hash] opts the optional parameters
@@ -542,7 +542,7 @@ module VoucherifySdk
542
542
  end
543
543
 
544
544
  # Delete program member
545
- # Deletes the member and sets status to DELETED. Removes the members card assignments in this program. Returns the member without a cards array. Delete doesnt change updated_at. Records a vl.member.deleted activity. Each unassigned card also records vl.member.card.unassigned and vl.card.unassigned. When an assignment has a tier, the delete records a LEFT tier transaction with origin member_card_deleted. The same customer can join the program again. The new member gets a new ID. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. Deleting a member that is already DELETED returns 404.
545
+ # Deletes the member and sets status to DELETED. Removes the members card assignments in this program. Returns the member without a cards array. Delete doesnt change updated_at. Each unassigned card also records vl.member.card.unassigned and vl.card.unassigned. When an assignment has a tier, the delete records a LEFT tier transaction with origin member_card_deleted. The same customer can join the program again. The new member gets a new ID. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. Deleting a member that is already DELETED returns 404. A successful call records [vl.member.card.unassigned](/api-reference/loyalty-activity/members/card-unassigned) and [vl.card.unassigned](/api-reference/loyalty-activity/cards/unassigned) for each assigned card, then [vl.member.deleted](/api-reference/loyalty-activity/members/deleted).
546
546
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
547
547
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
548
548
  # @param [Hash] opts the optional parameters
@@ -553,7 +553,7 @@ module VoucherifySdk
553
553
  end
554
554
 
555
555
  # Delete program member
556
- # Deletes the member and sets status to DELETED. Removes the members card assignments in this program. Returns the member without a cards array. Delete doesnt change updated_at. Records a vl.member.deleted activity. Each unassigned card also records vl.member.card.unassigned and vl.card.unassigned. When an assignment has a tier, the delete records a LEFT tier transaction with origin member_card_deleted. The same customer can join the program again. The new member gets a new ID. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. Deleting a member that is already DELETED returns 404.
556
+ # Deletes the member and sets status to DELETED. Removes the members card assignments in this program. Returns the member without a cards array. Delete doesnt change updated_at. Each unassigned card also records vl.member.card.unassigned and vl.card.unassigned. When an assignment has a tier, the delete records a LEFT tier transaction with origin member_card_deleted. The same customer can join the program again. The new member gets a new ID. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. Deleting a member that is already DELETED returns 404. A successful call records [vl.member.card.unassigned](/api-reference/loyalty-activity/members/card-unassigned) and [vl.card.unassigned](/api-reference/loyalty-activity/cards/unassigned) for each assigned card, then [vl.member.deleted](/api-reference/loyalty-activity/members/deleted).
557
557
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
558
558
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
559
559
  # @param [Hash] opts the optional parameters
@@ -603,7 +603,7 @@ module VoucherifySdk
603
603
  end
604
604
 
605
605
  # Expire point bucket
606
- # Expires an ACTIVE points bucket. Creates an ADMIN_POINTS_EXPIRATION card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be ACTIVE, and its expiration_date must be on or after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program, the member, or the card definition doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card.
606
+ # Expires an ACTIVE points bucket. Creates an ADMIN_POINTS_EXPIRATION card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be ACTIVE, and its expiration_date must be on or after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program, the member, or the card definition doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card. A successful call records no activity.
607
607
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
608
608
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
609
609
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -616,7 +616,7 @@ module VoucherifySdk
616
616
  end
617
617
 
618
618
  # Expire point bucket
619
- # Expires an ACTIVE points bucket. Creates an ADMIN_POINTS_EXPIRATION card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be ACTIVE, and its expiration_date must be on or after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program, the member, or the card definition doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card.
619
+ # Expires an ACTIVE points bucket. Creates an ADMIN_POINTS_EXPIRATION card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be ACTIVE, and its expiration_date must be on or after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program, the member, or the card definition doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card. A successful call records no activity.
620
620
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
621
621
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
622
622
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -668,7 +668,7 @@ module VoucherifySdk
668
668
  end
669
669
 
670
670
  # List member earning-rule daily reports
671
- # Returns aggregated daily usage statistics for a specific earning rule and member over the given date range and resolution. Each entry sums successful earning-rule triggers recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the earning rule does not exist or is not assigned to the program.
671
+ # Returns aggregated daily usage statistics for a specific earning rule and member over the given date range and resolution. Each entry sums successful earning-rule triggers recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the earning rule does not exist or is not assigned to the program. A successful call records no activity.
672
672
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
673
673
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
674
674
  # @param earning_rule_id [String] Identifies the earning rule. Format lern_[a-f0-9]+.
@@ -683,7 +683,7 @@ module VoucherifySdk
683
683
  end
684
684
 
685
685
  # List member earning-rule daily reports
686
- # Returns aggregated daily usage statistics for a specific earning rule and member over the given date range and resolution. Each entry sums successful earning-rule triggers recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the earning rule does not exist or is not assigned to the program.
686
+ # Returns aggregated daily usage statistics for a specific earning rule and member over the given date range and resolution. Each entry sums successful earning-rule triggers recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the earning rule does not exist or is not assigned to the program. A successful call records no activity.
687
687
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
688
688
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
689
689
  # @param earning_rule_id [String] Identifies the earning rule. Format lern_[a-f0-9]+.
@@ -740,7 +740,7 @@ module VoucherifySdk
740
740
  end
741
741
 
742
742
  # Get program member
743
- # Returns one member of the program together with that members loyalty cards. Each card includes balance, lifetime_bucket, next_expiration, and next_activation. tier_progress is not included. Use [Get program membership](/api-reference/programs/get-program-membership) when you need tier progress. card.code can be null shortly after member creation, while code generation is still running. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first.
743
+ # Returns one member of the program together with that members loyalty cards. Each card includes balance, lifetime_bucket, next_expiration, and next_activation. tier_progress is not included. Use [Get program membership](/api-reference/programs/get-program-membership) when you need tier progress. card.code can be null shortly after member creation, while code generation is still running. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A successful call records no activity.
744
744
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
745
745
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
746
746
  # @param [Hash] opts the optional parameters
@@ -751,7 +751,7 @@ module VoucherifySdk
751
751
  end
752
752
 
753
753
  # Get program member
754
- # Returns one member of the program together with that members loyalty cards. Each card includes balance, lifetime_bucket, next_expiration, and next_activation. tier_progress is not included. Use [Get program membership](/api-reference/programs/get-program-membership) when you need tier progress. card.code can be null shortly after member creation, while code generation is still running. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first.
754
+ # Returns one member of the program together with that members loyalty cards. Each card includes balance, lifetime_bucket, next_expiration, and next_activation. tier_progress is not included. Use [Get program membership](/api-reference/programs/get-program-membership) when you need tier progress. card.code can be null shortly after member creation, while code generation is still running. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A successful call records no activity.
755
755
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
756
756
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
757
757
  # @param [Hash] opts the optional parameters
@@ -801,7 +801,7 @@ module VoucherifySdk
801
801
  end
802
802
 
803
803
  # Get program membership
804
- # Returns the membership for one customer in the program: the member, the program, and the members loyalty cards. A card includes tier_progress when its card definition has a tier structure and the member has a tier on that card. Otherwise tier_progress is omitted. identification_type chooses how customerId is read. It defaults to customer_id.
804
+ # Returns the membership for one customer in the program: the member, the program, and the members loyalty cards. A card includes tier_progress when its card definition has a tier structure and the member has a tier on that card. Otherwise tier_progress is omitted. identification_type chooses how customerId is read. It defaults to customer_id. A successful call records no activity.
805
805
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
806
806
  # @param customer_id [String] Identifies the customer or member. identification_type selects the value: a Voucherify customer ID (cust_...), a customer source_id, or a loyalty member ID (lmbr_...).
807
807
  # @param [Hash] opts the optional parameters
@@ -813,7 +813,7 @@ module VoucherifySdk
813
813
  end
814
814
 
815
815
  # Get program membership
816
- # Returns the membership for one customer in the program: the member, the program, and the members loyalty cards. A card includes tier_progress when its card definition has a tier structure and the member has a tier on that card. Otherwise tier_progress is omitted. identification_type chooses how customerId is read. It defaults to customer_id.
816
+ # Returns the membership for one customer in the program: the member, the program, and the members loyalty cards. A card includes tier_progress when its card definition has a tier structure and the member has a tier on that card. Otherwise tier_progress is omitted. identification_type chooses how customerId is read. It defaults to customer_id. A successful call records no activity.
817
817
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
818
818
  # @param customer_id [String] Identifies the customer or member. identification_type selects the value: a Voucherify customer ID (cust_...), a customer source_id, or a loyalty member ID (lmbr_...).
819
819
  # @param [Hash] opts the optional parameters
@@ -865,7 +865,7 @@ module VoucherifySdk
865
865
  end
866
866
 
867
867
  # List program points-earnings daily reports
868
- # Returns aggregated daily points-earnings statistics for the program over the given date range and resolution, optionally filtered by earning rule and card definition. Each entry sums earning operations recorded for one period, earning rule, earning item, and card definition. Periods without recorded activity are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
868
+ # Returns aggregated daily points-earnings statistics for the program over the given date range and resolution, optionally filtered by earning rule and card definition. Each entry sums earning operations recorded for one period, earning rule, earning item, and card definition. Periods without recorded activity are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
869
869
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
870
870
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
871
871
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -879,7 +879,7 @@ module VoucherifySdk
879
879
  end
880
880
 
881
881
  # List program points-earnings daily reports
882
- # Returns aggregated daily points-earnings statistics for the program over the given date range and resolution, optionally filtered by earning rule and card definition. Each entry sums earning operations recorded for one period, earning rule, earning item, and card definition. Periods without recorded activity are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
882
+ # Returns aggregated daily points-earnings statistics for the program over the given date range and resolution, optionally filtered by earning rule and card definition. Each entry sums earning operations recorded for one period, earning rule, earning item, and card definition. Periods without recorded activity are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
883
883
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
884
884
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
885
885
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -936,7 +936,7 @@ module VoucherifySdk
936
936
  end
937
937
 
938
938
  # List program points-earnings summary reports
939
- # Returns total points-earnings statistics for the program (all time), optionally filtered by earning rule or card definition. Each entry sums earning operations for one earning rule, earning item, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
939
+ # Returns total points-earnings statistics for the program (all time), optionally filtered by earning rule or card definition. Each entry sums earning operations for one earning rule, earning item, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
940
940
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
941
941
  # @param [Hash] opts the optional parameters
942
942
  # @option opts [PointsEarningsReportListFilters] :filters Filters the results. Pass a deep object, for example filters[earning_rule_id][conditions][$is] lern_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -947,7 +947,7 @@ module VoucherifySdk
947
947
  end
948
948
 
949
949
  # List program points-earnings summary reports
950
- # Returns total points-earnings statistics for the program (all time), optionally filtered by earning rule or card definition. Each entry sums earning operations for one earning rule, earning item, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
950
+ # Returns total points-earnings statistics for the program (all time), optionally filtered by earning rule or card definition. Each entry sums earning operations for one earning rule, earning item, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
951
951
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
952
952
  # @param [Hash] opts the optional parameters
953
953
  # @option opts [PointsEarningsReportListFilters] :filters Filters the results. Pass a deep object, for example filters[earning_rule_id][conditions][$is] lern_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -998,7 +998,7 @@ module VoucherifySdk
998
998
  end
999
999
 
1000
1000
  # List card activities
1001
- # Returns a cursor-paginated list of activities recorded for the members card. The card must still be assigned to that member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, when the member doesnt exist in that program, or when the card isnt currently assigned to that member. The program is checked first, then the member. A DELETED member returns 404 with resource_type member. A missing assignment and a missing or deleted card both return 404 with resource_type card. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program, member, and card lookup. A cursor that doesnt match ^lcrsacrd_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program, member, and card are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes.
1001
+ # Returns a cursor-paginated list of activities recorded for the members card. The card must still be assigned to that member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, when the member doesnt exist in that program, or when the card isnt currently assigned to that member. The program is checked first, then the member. A DELETED member returns 404 with resource_type member. A missing assignment and a missing or deleted card both return 404 with resource_type card. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program, member, and card lookup. A cursor that doesnt match ^lcrsacrd_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program, member, and card are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes. A successful call records no activity.
1002
1002
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1003
1003
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1004
1004
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -1014,7 +1014,7 @@ module VoucherifySdk
1014
1014
  end
1015
1015
 
1016
1016
  # List card activities
1017
- # Returns a cursor-paginated list of activities recorded for the members card. The card must still be assigned to that member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, when the member doesnt exist in that program, or when the card isnt currently assigned to that member. The program is checked first, then the member. A DELETED member returns 404 with resource_type member. A missing assignment and a missing or deleted card both return 404 with resource_type card. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program, member, and card lookup. A cursor that doesnt match ^lcrsacrd_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program, member, and card are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes.
1017
+ # Returns a cursor-paginated list of activities recorded for the members card. The card must still be assigned to that member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, when the member doesnt exist in that program, or when the card isnt currently assigned to that member. The program is checked first, then the member. A DELETED member returns 404 with resource_type member. A missing assignment and a missing or deleted card both return 404 with resource_type card. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program, member, and card lookup. A cursor that doesnt match ^lcrsacrd_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program, member, and card are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes. A successful call records no activity.
1018
1018
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1019
1019
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1020
1020
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -1073,7 +1073,7 @@ module VoucherifySdk
1073
1073
  end
1074
1074
 
1075
1075
  # List card expiring points buckets
1076
- # Returns a cursor-paginated list of ACTIVE point expiration buckets for the members card. Each bucket groups points that share an expiration date and expiration type, including points from separate transactions. The list starts on the current project day. Earlier buckets are omitted. Results can be filtered by card definition ID and expiration date, and ordered by expiration_date. Returns an empty list when the card has no matching buckets. Returns 400 when the query is invalid or the cursor is invalid, expired, or doesnt match the query. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member.
1076
+ # Returns a cursor-paginated list of ACTIVE point expiration buckets for the members card. Each bucket groups points that share an expiration date and expiration type, including points from separate transactions. The list starts on the current project day. Earlier buckets are omitted. Results can be filtered by card definition ID and expiration date, and ordered by expiration_date. Returns an empty list when the card has no matching buckets. Returns 400 when the query is invalid or the cursor is invalid, expired, or doesnt match the query. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. A successful call records no activity.
1077
1077
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1078
1078
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1079
1079
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -1089,7 +1089,7 @@ module VoucherifySdk
1089
1089
  end
1090
1090
 
1091
1091
  # List card expiring points buckets
1092
- # Returns a cursor-paginated list of ACTIVE point expiration buckets for the members card. Each bucket groups points that share an expiration date and expiration type, including points from separate transactions. The list starts on the current project day. Earlier buckets are omitted. Results can be filtered by card definition ID and expiration date, and ordered by expiration_date. Returns an empty list when the card has no matching buckets. Returns 400 when the query is invalid or the cursor is invalid, expired, or doesnt match the query. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member.
1092
+ # Returns a cursor-paginated list of ACTIVE point expiration buckets for the members card. Each bucket groups points that share an expiration date and expiration type, including points from separate transactions. The list starts on the current project day. Earlier buckets are omitted. Results can be filtered by card definition ID and expiration date, and ordered by expiration_date. Returns an empty list when the card has no matching buckets. Returns 400 when the query is invalid or the cursor is invalid, expired, or doesnt match the query. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. A successful call records no activity.
1093
1093
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1094
1094
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1095
1095
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -1148,7 +1148,7 @@ module VoucherifySdk
1148
1148
  end
1149
1149
 
1150
1150
  # List card pending point buckets
1151
- # Returns a cursor-paginated list of pending point buckets for the members card. Every bucket has status PENDING. Pending points wait for activation (PERIOD_BASED, FIXED_DATES, or EVENT_BASED), following the card definition. The list starts on the next project day. The current days bucket is omitted because its still accumulating. Results can be filtered by card definition ID and ordered by date. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. Bucket IDs from this list are the bucketId for [Activate pending point bucket](/api-reference/programs/activate-pending-point-bucket) and [Cancel pending point bucket](/api-reference/programs/cancel-pending-point-bucket).
1151
+ # Returns a cursor-paginated list of pending point buckets for the members card. Every bucket has status PENDING. Pending points wait for activation (PERIOD_BASED, FIXED_DATES, or EVENT_BASED), following the card definition. The list starts on the next project day. The current days bucket is omitted because its still accumulating. Results can be filtered by card definition ID and ordered by date. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. Bucket IDs from this list are the bucketId for [Activate pending point bucket](/api-reference/programs/activate-pending-point-bucket) and [Cancel pending point bucket](/api-reference/programs/cancel-pending-point-bucket). A successful call records no activity.
1152
1152
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1153
1153
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1154
1154
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -1164,7 +1164,7 @@ module VoucherifySdk
1164
1164
  end
1165
1165
 
1166
1166
  # List card pending point buckets
1167
- # Returns a cursor-paginated list of pending point buckets for the members card. Every bucket has status PENDING. Pending points wait for activation (PERIOD_BASED, FIXED_DATES, or EVENT_BASED), following the card definition. The list starts on the next project day. The current days bucket is omitted because its still accumulating. Results can be filtered by card definition ID and ordered by date. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. Bucket IDs from this list are the bucketId for [Activate pending point bucket](/api-reference/programs/activate-pending-point-bucket) and [Cancel pending point bucket](/api-reference/programs/cancel-pending-point-bucket).
1167
+ # Returns a cursor-paginated list of pending point buckets for the members card. Every bucket has status PENDING. Pending points wait for activation (PERIOD_BASED, FIXED_DATES, or EVENT_BASED), following the card definition. The list starts on the next project day. The current days bucket is omitted because its still accumulating. Results can be filtered by card definition ID and ordered by date. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. Bucket IDs from this list are the bucketId for [Activate pending point bucket](/api-reference/programs/activate-pending-point-bucket) and [Cancel pending point bucket](/api-reference/programs/cancel-pending-point-bucket). A successful call records no activity.
1168
1168
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1169
1169
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1170
1170
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -1223,7 +1223,7 @@ module VoucherifySdk
1223
1223
  end
1224
1224
 
1225
1225
  # List card transactions
1226
- # Returns a cursor-paginated list of transactions on the members card. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Returns 404 when the program, member, or card doesnt exist. The program is checked first, then the member, then the card. A member of another program, or a card that isnt assigned to this member, is not found.
1226
+ # Returns a cursor-paginated list of transactions on the members card. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Returns 404 when the program, member, or card doesnt exist. The program is checked first, then the member, then the card. A member of another program, or a card that isnt assigned to this member, is not found. A successful call records no activity.
1227
1227
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1228
1228
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1229
1229
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -1239,7 +1239,7 @@ module VoucherifySdk
1239
1239
  end
1240
1240
 
1241
1241
  # List card transactions
1242
- # Returns a cursor-paginated list of transactions on the members card. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Returns 404 when the program, member, or card doesnt exist. The program is checked first, then the member, then the card. A member of another program, or a card that isnt assigned to this member, is not found.
1242
+ # Returns a cursor-paginated list of transactions on the members card. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Returns 404 when the program, member, or card doesnt exist. The program is checked first, then the member, then the card. A member of another program, or a card that isnt assigned to this member, is not found. A successful call records no activity.
1243
1243
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1244
1244
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1245
1245
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -1298,7 +1298,7 @@ module VoucherifySdk
1298
1298
  end
1299
1299
 
1300
1300
  # List member benefit transactions
1301
- # Lists benefit transactions (benefit fulfillments) for a given program member, with cursor-based pagination. Supports filtering by benefit ID and creation date.
1301
+ # Lists benefit transactions (benefit fulfillments) for a given program member, with cursor-based pagination. Supports filtering by benefit ID and creation date. A successful call records no activity.
1302
1302
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1303
1303
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1304
1304
  # @param [Hash] opts the optional parameters
@@ -1313,7 +1313,7 @@ module VoucherifySdk
1313
1313
  end
1314
1314
 
1315
1315
  # List member benefit transactions
1316
- # Lists benefit transactions (benefit fulfillments) for a given program member, with cursor-based pagination. Supports filtering by benefit ID and creation date.
1316
+ # Lists benefit transactions (benefit fulfillments) for a given program member, with cursor-based pagination. Supports filtering by benefit ID and creation date. A successful call records no activity.
1317
1317
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1318
1318
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1319
1319
  # @param [Hash] opts the optional parameters
@@ -1371,7 +1371,7 @@ module VoucherifySdk
1371
1371
  end
1372
1372
 
1373
1373
  # List card daily points reports
1374
- # Returns aggregated points statistics for a members loyalty card over the given date range and resolution. Each entry sums the point operations recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the card does not exist or is not assigned to the member in the program.
1374
+ # Returns aggregated points statistics for a members loyalty card over the given date range and resolution. Each entry sums the point operations recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the card does not exist or is not assigned to the member in the program. A successful call records no activity.
1375
1375
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1376
1376
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1377
1377
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -1386,7 +1386,7 @@ module VoucherifySdk
1386
1386
  end
1387
1387
 
1388
1388
  # List card daily points reports
1389
- # Returns aggregated points statistics for a members loyalty card over the given date range and resolution. Each entry sums the point operations recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the card does not exist or is not assigned to the member in the program.
1389
+ # Returns aggregated points statistics for a members loyalty card over the given date range and resolution. Each entry sums the point operations recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the card does not exist or is not assigned to the member in the program. A successful call records no activity.
1390
1390
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1391
1391
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1392
1392
  # @param card_id [String] Identifies the loyalty card. Format lcrd_[a-f0-9]+.
@@ -1443,7 +1443,7 @@ module VoucherifySdk
1443
1443
  end
1444
1444
 
1445
1445
  # List member order payments
1446
- # Lists stored PAY_WITH_POINTS order transactions for the program member, with cursor pagination. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Dry-run (SIMULATED) results arent stored and dont appear. Returns 404 when the program or the member doesnt exist. The program is checked first.
1446
+ # Lists stored PAY_WITH_POINTS order transactions for the program member, with cursor pagination. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Dry-run (SIMULATED) results arent stored and dont appear. Returns 404 when the program or the member doesnt exist. The program is checked first. A successful call records no activity.
1447
1447
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1448
1448
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1449
1449
  # @param [Hash] opts the optional parameters
@@ -1458,7 +1458,7 @@ module VoucherifySdk
1458
1458
  end
1459
1459
 
1460
1460
  # List member order payments
1461
- # Lists stored PAY_WITH_POINTS order transactions for the program member, with cursor pagination. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Dry-run (SIMULATED) results arent stored and dont appear. Returns 404 when the program or the member doesnt exist. The program is checked first.
1461
+ # Lists stored PAY_WITH_POINTS order transactions for the program member, with cursor pagination. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Dry-run (SIMULATED) results arent stored and dont appear. Returns 404 when the program or the member doesnt exist. The program is checked first. A successful call records no activity.
1462
1462
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1463
1463
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1464
1464
  # @param [Hash] opts the optional parameters
@@ -1516,7 +1516,7 @@ module VoucherifySdk
1516
1516
  end
1517
1517
 
1518
1518
  # List member reward purchases
1519
- # Lists stored PURCHASE reward transactions for the program member, with cursor pagination. Filter by id, reward_id, card_definition_id, and created_at. Order by id (default -id, newest first). Purchases rejected before a transaction is stored dont appear. A purchase accepted with 202 that later fails is stored as REJECTED with details.rejection. Returns 404 when the program or the member doesnt exist. The program is checked first.
1519
+ # Lists stored PURCHASE reward transactions for the program member, with cursor pagination. Filter by id, reward_id, card_definition_id, and created_at. Order by id (default -id, newest first). Purchases rejected before a transaction is stored dont appear. A purchase accepted with 202 that later fails is stored as REJECTED with details.rejection. Returns 404 when the program or the member doesnt exist. The program is checked first. A successful call records no activity.
1520
1520
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1521
1521
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1522
1522
  # @param [Hash] opts the optional parameters
@@ -1531,7 +1531,7 @@ module VoucherifySdk
1531
1531
  end
1532
1532
 
1533
1533
  # List member reward purchases
1534
- # Lists stored PURCHASE reward transactions for the program member, with cursor pagination. Filter by id, reward_id, card_definition_id, and created_at. Order by id (default -id, newest first). Purchases rejected before a transaction is stored dont appear. A purchase accepted with 202 that later fails is stored as REJECTED with details.rejection. Returns 404 when the program or the member doesnt exist. The program is checked first.
1534
+ # Lists stored PURCHASE reward transactions for the program member, with cursor pagination. Filter by id, reward_id, card_definition_id, and created_at. Order by id (default -id, newest first). Purchases rejected before a transaction is stored dont appear. A purchase accepted with 202 that later fails is stored as REJECTED with details.rejection. Returns 404 when the program or the member doesnt exist. The program is checked first. A successful call records no activity.
1535
1535
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1536
1536
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1537
1537
  # @param [Hash] opts the optional parameters
@@ -1589,7 +1589,7 @@ module VoucherifySdk
1589
1589
  end
1590
1590
 
1591
1591
  # List member tier transactions
1592
- # Lists tier transactions for the member: joins, leaves, upgrades, downgrades, expiration changes, and evaluation refreshes. Results use cursor pagination. Default order is -id, newest first. Filters are card_id, card_definition_id, and created_at. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. order must be id or -id. An array that orders by both directions is rejected. A cursor that doesnt match ^lcrsttx_[a-f0-9]+$ fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes.
1592
+ # Lists tier transactions for the member: joins, leaves, upgrades, downgrades, expiration changes, and evaluation refreshes. Results use cursor pagination. Default order is -id, newest first. Filters are card_id, card_definition_id, and created_at. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. order must be id or -id. An array that orders by both directions is rejected. A cursor that doesnt match ^lcrsttx_[a-f0-9]+$ fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes. A successful call records no activity.
1593
1593
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1594
1594
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1595
1595
  # @param [Hash] opts the optional parameters
@@ -1604,7 +1604,7 @@ module VoucherifySdk
1604
1604
  end
1605
1605
 
1606
1606
  # List member tier transactions
1607
- # Lists tier transactions for the member: joins, leaves, upgrades, downgrades, expiration changes, and evaluation refreshes. Results use cursor pagination. Default order is -id, newest first. Filters are card_id, card_definition_id, and created_at. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. order must be id or -id. An array that orders by both directions is rejected. A cursor that doesnt match ^lcrsttx_[a-f0-9]+$ fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes.
1607
+ # Lists tier transactions for the member: joins, leaves, upgrades, downgrades, expiration changes, and evaluation refreshes. Results use cursor pagination. Default order is -id, newest first. Filters are card_id, card_definition_id, and created_at. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. order must be id or -id. An array that orders by both directions is rejected. A cursor that doesnt match ^lcrsttx_[a-f0-9]+$ fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes. A successful call records no activity.
1608
1608
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1609
1609
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1610
1610
  # @param [Hash] opts the optional parameters
@@ -1662,7 +1662,7 @@ module VoucherifySdk
1662
1662
  end
1663
1663
 
1664
1664
  # List program earning rule assignments
1665
- # Returns a cursor-paginated list of earning rules assigned to the program.
1665
+ # Returns a cursor-paginated list of earning rules assigned to the program. A successful call records no activity.
1666
1666
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1667
1667
  # @param [Hash] opts the optional parameters
1668
1668
  # @option opts [String] :limit Limits the page size to an integer from 1 to 100. Defaults to 10. A numeric string is accepted and rounded to the nearest integer. (default to '10')
@@ -1675,7 +1675,7 @@ module VoucherifySdk
1675
1675
  end
1676
1676
 
1677
1677
  # List program earning rule assignments
1678
- # Returns a cursor-paginated list of earning rules assigned to the program.
1678
+ # Returns a cursor-paginated list of earning rules assigned to the program. A successful call records no activity.
1679
1679
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1680
1680
  # @param [Hash] opts the optional parameters
1681
1681
  # @option opts [String] :limit Limits the page size to an integer from 1 to 100. Defaults to 10. A numeric string is accepted and rounded to the nearest integer. (default to '10')
@@ -1730,7 +1730,7 @@ module VoucherifySdk
1730
1730
  end
1731
1731
 
1732
1732
  # List program earning-rules daily reports
1733
- # Returns aggregated daily earning-rule evaluation statistics for the program over the given date range and resolution, optionally filtered by earning rule. Each entry counts eligibility checks for one period and earning rule. Periods without recorded activity are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
1733
+ # Returns aggregated daily earning-rule evaluation statistics for the program over the given date range and resolution, optionally filtered by earning rule. Each entry counts eligibility checks for one period and earning rule. Periods without recorded activity are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
1734
1734
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1735
1735
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
1736
1736
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -1744,7 +1744,7 @@ module VoucherifySdk
1744
1744
  end
1745
1745
 
1746
1746
  # List program earning-rules daily reports
1747
- # Returns aggregated daily earning-rule evaluation statistics for the program over the given date range and resolution, optionally filtered by earning rule. Each entry counts eligibility checks for one period and earning rule. Periods without recorded activity are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
1747
+ # Returns aggregated daily earning-rule evaluation statistics for the program over the given date range and resolution, optionally filtered by earning rule. Each entry counts eligibility checks for one period and earning rule. Periods without recorded activity are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
1748
1748
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1749
1749
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
1750
1750
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -1801,7 +1801,7 @@ module VoucherifySdk
1801
1801
  end
1802
1802
 
1803
1803
  # List program earning-rules summary reports
1804
- # Returns total earning-rule evaluation statistics for the program (all time), optionally filtered by earning rule. Includes success and failure counts with a failures breakdown. Each entry counts eligibility checks for one earning rule. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
1804
+ # Returns total earning-rule evaluation statistics for the program (all time), optionally filtered by earning rule. Includes success and failure counts with a failures breakdown. Each entry counts eligibility checks for one earning rule. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
1805
1805
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1806
1806
  # @param [Hash] opts the optional parameters
1807
1807
  # @option opts [EarningRulesReportListFilters] :filters Filters the results. Pass a deep object, for example filters[earning_rule_id][conditions][$is] lern_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -1812,7 +1812,7 @@ module VoucherifySdk
1812
1812
  end
1813
1813
 
1814
1814
  # List program earning-rules summary reports
1815
- # Returns total earning-rule evaluation statistics for the program (all time), optionally filtered by earning rule. Includes success and failure counts with a failures breakdown. Each entry counts eligibility checks for one earning rule. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
1815
+ # Returns total earning-rule evaluation statistics for the program (all time), optionally filtered by earning rule. Includes success and failure counts with a failures breakdown. Each entry counts eligibility checks for one earning rule. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
1816
1816
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1817
1817
  # @param [Hash] opts the optional parameters
1818
1818
  # @option opts [EarningRulesReportListFilters] :filters Filters the results. Pass a deep object, for example filters[earning_rule_id][conditions][$is] lern_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -1863,7 +1863,7 @@ module VoucherifySdk
1863
1863
  end
1864
1864
 
1865
1865
  # List program member activities
1866
- # Returns a cursor-paginated list of lifecycle and card-assignment activities recorded for the member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. A cursor that doesnt match ^lcrsambr_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes.
1866
+ # Returns a cursor-paginated list of lifecycle and card-assignment activities recorded for the member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. A cursor that doesnt match ^lcrsambr_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes. A successful call records no activity.
1867
1867
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1868
1868
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1869
1869
  # @param [Hash] opts the optional parameters
@@ -1878,7 +1878,7 @@ module VoucherifySdk
1878
1878
  end
1879
1879
 
1880
1880
  # List program member activities
1881
- # Returns a cursor-paginated list of lifecycle and card-assignment activities recorded for the member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. A cursor that doesnt match ^lcrsambr_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes.
1881
+ # Returns a cursor-paginated list of lifecycle and card-assignment activities recorded for the member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. A cursor that doesnt match ^lcrsambr_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes. A successful call records no activity.
1882
1882
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1883
1883
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
1884
1884
  # @param [Hash] opts the optional parameters
@@ -1936,7 +1936,7 @@ module VoucherifySdk
1936
1936
  end
1937
1937
 
1938
1938
  # List program members
1939
- # Returns a cursor-paginated list of members of the program. Deleted members are omitted. Results can be filtered by ID, status, customer ID and creation date. Results can be ordered by creation date, status, or customer ID (ascending or descending). The same field cannot be ordered both ascending and descending at the same time. Returns 404 when the program does not exist. List items do not include the cards array. Use the following endpoints to retrieve cards for a given member: - [Get customer memberships](/api-reference/programs/get-customer-memberships), - [Get program member](/api-reference/programs/get-program-member), - [Get program membership](/api-reference/programs/get-program-membership).
1939
+ # Returns a cursor-paginated list of members of the program. Deleted members are omitted. Results can be filtered by ID, status, customer ID and creation date. Results can be ordered by creation date, status, or customer ID (ascending or descending). The same field cannot be ordered both ascending and descending at the same time. Returns 404 when the program does not exist. List items do not include the cards array. Use the following endpoints to retrieve cards for a given member: - [Get customer memberships](/api-reference/programs/get-customer-memberships), - [Get program member](/api-reference/programs/get-program-member), - [Get program membership](/api-reference/programs/get-program-membership). A successful call records no activity.
1940
1940
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1941
1941
  # @param [Hash] opts the optional parameters
1942
1942
  # @option opts [Integer] :limit Limits the page size to an integer from 1 to 100. Defaults to 10. A numeric string is accepted and rounded to the nearest integer. (default to 10)
@@ -1950,7 +1950,7 @@ module VoucherifySdk
1950
1950
  end
1951
1951
 
1952
1952
  # List program members
1953
- # Returns a cursor-paginated list of members of the program. Deleted members are omitted. Results can be filtered by ID, status, customer ID and creation date. Results can be ordered by creation date, status, or customer ID (ascending or descending). The same field cannot be ordered both ascending and descending at the same time. Returns 404 when the program does not exist. List items do not include the cards array. Use the following endpoints to retrieve cards for a given member: - [Get customer memberships](/api-reference/programs/get-customer-memberships), - [Get program member](/api-reference/programs/get-program-member), - [Get program membership](/api-reference/programs/get-program-membership).
1953
+ # Returns a cursor-paginated list of members of the program. Deleted members are omitted. Results can be filtered by ID, status, customer ID and creation date. Results can be ordered by creation date, status, or customer ID (ascending or descending). The same field cannot be ordered both ascending and descending at the same time. Returns 404 when the program does not exist. List items do not include the cards array. Use the following endpoints to retrieve cards for a given member: - [Get customer memberships](/api-reference/programs/get-customer-memberships), - [Get program member](/api-reference/programs/get-program-member), - [Get program membership](/api-reference/programs/get-program-membership). A successful call records no activity.
1954
1954
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
1955
1955
  # @param [Hash] opts the optional parameters
1956
1956
  # @option opts [Integer] :limit Limits the page size to an integer from 1 to 100. Defaults to 10. A numeric string is accepted and rounded to the nearest integer. (default to 10)
@@ -2007,7 +2007,7 @@ module VoucherifySdk
2007
2007
  end
2008
2008
 
2009
2009
  # List program members daily reports
2010
- # Returns member and card changes for the program over the given date range and resolution. Each row covers one period with recorded activity. Periods without activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2010
+ # Returns member and card changes for the program over the given date range and resolution. Each row covers one period with recorded activity. Periods without activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2011
2011
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2012
2012
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
2013
2013
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -2020,7 +2020,7 @@ module VoucherifySdk
2020
2020
  end
2021
2021
 
2022
2022
  # List program members daily reports
2023
- # Returns member and card changes for the program over the given date range and resolution. Each row covers one period with recorded activity. Periods without activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2023
+ # Returns member and card changes for the program over the given date range and resolution. Each row covers one period with recorded activity. Periods without activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2024
2024
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2025
2025
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
2026
2026
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -2075,7 +2075,7 @@ module VoucherifySdk
2075
2075
  end
2076
2076
 
2077
2077
  # List program members summary reports
2078
- # Returns all-time member and card totals for the program. The response contains one row when activity was recorded, and an empty data array otherwise. limit and order are not query parameters. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2078
+ # Returns all-time member and card totals for the program. The response contains one row when activity was recorded, and an empty data array otherwise. limit and order are not query parameters. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2079
2079
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2080
2080
  # @param [Hash] opts the optional parameters
2081
2081
  # @return [LoyaltiesProgramsReportsMembersSummaryListResponseBody]
@@ -2085,7 +2085,7 @@ module VoucherifySdk
2085
2085
  end
2086
2086
 
2087
2087
  # List program members summary reports
2088
- # Returns all-time member and card totals for the program. The response contains one row when activity was recorded, and an empty data array otherwise. limit and order are not query parameters. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2088
+ # Returns all-time member and card totals for the program. The response contains one row when activity was recorded, and an empty data array otherwise. limit and order are not query parameters. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2089
2089
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2090
2090
  # @param [Hash] opts the optional parameters
2091
2091
  # @return [Array<(LoyaltiesProgramsReportsMembersSummaryListResponseBody, Integer, Hash)>] LoyaltiesProgramsReportsMembersSummaryListResponseBody data, response status code and response headers
@@ -2134,7 +2134,7 @@ module VoucherifySdk
2134
2134
  end
2135
2135
 
2136
2136
  # List program reward assignments
2137
- # Returns a cursor-paginated list of rewards assigned to the program, including their stock configuration and redemption counters.
2137
+ # Returns a cursor-paginated list of rewards assigned to the program, including their stock configuration and redemption counters. A successful call records no activity.
2138
2138
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2139
2139
  # @param [Hash] opts the optional parameters
2140
2140
  # @option opts [String] :limit Limits the page size to an integer from 1 to 100. Defaults to 10. A numeric string is accepted and rounded to the nearest integer. (default to '10')
@@ -2147,7 +2147,7 @@ module VoucherifySdk
2147
2147
  end
2148
2148
 
2149
2149
  # List program reward assignments
2150
- # Returns a cursor-paginated list of rewards assigned to the program, including their stock configuration and redemption counters.
2150
+ # Returns a cursor-paginated list of rewards assigned to the program, including their stock configuration and redemption counters. A successful call records no activity.
2151
2151
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2152
2152
  # @param [Hash] opts the optional parameters
2153
2153
  # @option opts [String] :limit Limits the page size to an integer from 1 to 100. Defaults to 10. A numeric string is accepted and rounded to the nearest integer. (default to '10')
@@ -2202,7 +2202,7 @@ module VoucherifySdk
2202
2202
  end
2203
2203
 
2204
2204
  # List program rewards daily reports
2205
- # Returns aggregated reward-purchase statistics for the program over the given date range and resolution, optionally filtered by reward. Each row covers one reward and one period with recorded purchases. Periods without recorded purchases are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2205
+ # Returns aggregated reward-purchase statistics for the program over the given date range and resolution, optionally filtered by reward. Each row covers one reward and one period with recorded purchases. Periods without recorded purchases are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2206
2206
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2207
2207
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
2208
2208
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -2216,7 +2216,7 @@ module VoucherifySdk
2216
2216
  end
2217
2217
 
2218
2218
  # List program rewards daily reports
2219
- # Returns aggregated reward-purchase statistics for the program over the given date range and resolution, optionally filtered by reward. Each row covers one reward and one period with recorded purchases. Periods without recorded purchases are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2219
+ # Returns aggregated reward-purchase statistics for the program over the given date range and resolution, optionally filtered by reward. Each row covers one reward and one period with recorded purchases. Periods without recorded purchases are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2220
2220
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2221
2221
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
2222
2222
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -2273,7 +2273,7 @@ module VoucherifySdk
2273
2273
  end
2274
2274
 
2275
2275
  # List program rewards spendings daily reports
2276
- # Returns aggregated points spent on reward purchases for the program over the given date range and resolution. Each row covers one reward, reward cost, reward spending, card definition, and period with an approved point spend. Periods without an approved point spend are omitted. Optionally filters by reward, cost, spending, and card definition. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2276
+ # Returns aggregated points spent on reward purchases for the program over the given date range and resolution. Each row covers one reward, reward cost, reward spending, card definition, and period with an approved point spend. Periods without an approved point spend are omitted. Optionally filters by reward, cost, spending, and card definition. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2277
2277
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2278
2278
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
2279
2279
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -2287,7 +2287,7 @@ module VoucherifySdk
2287
2287
  end
2288
2288
 
2289
2289
  # List program rewards spendings daily reports
2290
- # Returns aggregated points spent on reward purchases for the program over the given date range and resolution. Each row covers one reward, reward cost, reward spending, card definition, and period with an approved point spend. Periods without an approved point spend are omitted. Optionally filters by reward, cost, spending, and card definition. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2290
+ # Returns aggregated points spent on reward purchases for the program over the given date range and resolution. Each row covers one reward, reward cost, reward spending, card definition, and period with an approved point spend. Periods without an approved point spend are omitted. Optionally filters by reward, cost, spending, and card definition. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2291
2291
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2292
2292
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
2293
2293
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -2344,7 +2344,7 @@ module VoucherifySdk
2344
2344
  end
2345
2345
 
2346
2346
  # List program rewards spendings summary reports
2347
- # Returns all-time points spent on reward purchases for the program. Each row covers one reward, reward cost, reward spending, and card definition with an approved point spend. Filters rows by reward, cost, spending, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2347
+ # Returns all-time points spent on reward purchases for the program. Each row covers one reward, reward cost, reward spending, and card definition with an approved point spend. Filters rows by reward, cost, spending, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2348
2348
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2349
2349
  # @param [Hash] opts the optional parameters
2350
2350
  # @option opts [RewardsSpendingsReportListFilters] :filters Filters the results. Pass a deep object, for example filters[reward_id][conditions][$is] lrew_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -2355,7 +2355,7 @@ module VoucherifySdk
2355
2355
  end
2356
2356
 
2357
2357
  # List program rewards spendings summary reports
2358
- # Returns all-time points spent on reward purchases for the program. Each row covers one reward, reward cost, reward spending, and card definition with an approved point spend. Filters rows by reward, cost, spending, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2358
+ # Returns all-time points spent on reward purchases for the program. Each row covers one reward, reward cost, reward spending, and card definition with an approved point spend. Filters rows by reward, cost, spending, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2359
2359
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2360
2360
  # @param [Hash] opts the optional parameters
2361
2361
  # @option opts [RewardsSpendingsReportListFilters] :filters Filters the results. Pass a deep object, for example filters[reward_id][conditions][$is] lrew_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -2406,7 +2406,7 @@ module VoucherifySdk
2406
2406
  end
2407
2407
 
2408
2408
  # List program rewards summary reports
2409
- # Returns all-time reward-purchase totals for the program, one row per reward with a recorded purchase attempt. Filters rows with filters[reward_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2409
+ # Returns all-time reward-purchase totals for the program, one row per reward with a recorded purchase attempt. Filters rows with filters[reward_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2410
2410
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2411
2411
  # @param [Hash] opts the optional parameters
2412
2412
  # @option opts [RewardsReportListFilters] :filters Filters the results. Pass a deep object, for example filters[reward_id][conditions][$is] lrew_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -2417,7 +2417,7 @@ module VoucherifySdk
2417
2417
  end
2418
2418
 
2419
2419
  # List program rewards summary reports
2420
- # Returns all-time reward-purchase totals for the program, one row per reward with a recorded purchase attempt. Filters rows with filters[reward_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2420
+ # Returns all-time reward-purchase totals for the program, one row per reward with a recorded purchase attempt. Filters rows with filters[reward_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2421
2421
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2422
2422
  # @param [Hash] opts the optional parameters
2423
2423
  # @option opts [RewardsReportListFilters] :filters Filters the results. Pass a deep object, for example filters[reward_id][conditions][$is] lrew_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -2468,7 +2468,7 @@ module VoucherifySdk
2468
2468
  end
2469
2469
 
2470
2470
  # List program spending daily reports
2471
- # Returns aggregated points-spending statistics for the program over the given date range and resolution. Each row covers one card definition and one period with recorded spending. Periods without recorded spending are omitted. Optionally filters by card definition. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2471
+ # Returns aggregated points-spending statistics for the program over the given date range and resolution. Each row covers one card definition and one period with recorded spending. Periods without recorded spending are omitted. Optionally filters by card definition. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2472
2472
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2473
2473
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
2474
2474
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -2482,7 +2482,7 @@ module VoucherifySdk
2482
2482
  end
2483
2483
 
2484
2484
  # List program spending daily reports
2485
- # Returns aggregated points-spending statistics for the program over the given date range and resolution. Each row covers one card definition and one period with recorded spending. Periods without recorded spending are omitted. Optionally filters by card definition. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2485
+ # Returns aggregated points-spending statistics for the program over the given date range and resolution. Each row covers one card definition and one period with recorded spending. Periods without recorded spending are omitted. Optionally filters by card definition. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2486
2486
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2487
2487
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
2488
2488
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -2539,7 +2539,7 @@ module VoucherifySdk
2539
2539
  end
2540
2540
 
2541
2541
  # List program spending summary reports
2542
- # Returns all-time point-spending totals for the program, one row per card definition that has recorded spending. Filters rows with filters[card_definition_id]. Returns at most 10 rows (max number of card definitions per program), ordered by id descending. limit and order are not query parameters. Returns 200 with an empty data array when no spending is recorded. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2542
+ # Returns all-time point-spending totals for the program, one row per card definition that has recorded spending. Filters rows with filters[card_definition_id]. Returns at most 10 rows (max number of card definitions per program), ordered by id descending. limit and order are not query parameters. Returns 200 with an empty data array when no spending is recorded. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2543
2543
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2544
2544
  # @param [Hash] opts the optional parameters
2545
2545
  # @option opts [SpendingReportListFilters] :filters Filters the results. Pass a deep object, for example filters[card_definition_id][conditions][$is] lcdef_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -2550,7 +2550,7 @@ module VoucherifySdk
2550
2550
  end
2551
2551
 
2552
2552
  # List program spending summary reports
2553
- # Returns all-time point-spending totals for the program, one row per card definition that has recorded spending. Filters rows with filters[card_definition_id]. Returns at most 10 rows (max number of card definitions per program), ordered by id descending. limit and order are not query parameters. Returns 200 with an empty data array when no spending is recorded. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2553
+ # Returns all-time point-spending totals for the program, one row per card definition that has recorded spending. Filters rows with filters[card_definition_id]. Returns at most 10 rows (max number of card definitions per program), ordered by id descending. limit and order are not query parameters. Returns 200 with an empty data array when no spending is recorded. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2554
2554
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2555
2555
  # @param [Hash] opts the optional parameters
2556
2556
  # @option opts [SpendingReportListFilters] :filters Filters the results. Pass a deep object, for example filters[card_definition_id][conditions][$is] lcdef_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -2601,7 +2601,7 @@ module VoucherifySdk
2601
2601
  end
2602
2602
 
2603
2603
  # List program tier structure assignments
2604
- # Returns a cursor-paginated list of tier structures assigned to the program. Currently, a program can have only one tier structure assigned.
2604
+ # Returns a cursor-paginated list of tier structures assigned to the program. Currently, a program can have only one tier structure assigned. A successful call records no activity.
2605
2605
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2606
2606
  # @param [Hash] opts the optional parameters
2607
2607
  # @option opts [String] :limit Limits the page size to an integer from 1 to 100. Defaults to 10. A numeric string is accepted and rounded to the nearest integer. (default to '10')
@@ -2614,7 +2614,7 @@ module VoucherifySdk
2614
2614
  end
2615
2615
 
2616
2616
  # List program tier structure assignments
2617
- # Returns a cursor-paginated list of tier structures assigned to the program. Currently, a program can have only one tier structure assigned.
2617
+ # Returns a cursor-paginated list of tier structures assigned to the program. Currently, a program can have only one tier structure assigned. A successful call records no activity.
2618
2618
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2619
2619
  # @param [Hash] opts the optional parameters
2620
2620
  # @option opts [String] :limit Limits the page size to an integer from 1 to 100. Defaults to 10. A numeric string is accepted and rounded to the nearest integer. (default to '10')
@@ -2669,7 +2669,7 @@ module VoucherifySdk
2669
2669
  end
2670
2670
 
2671
2671
  # List program tiers daily reports
2672
- # Returns aggregated tier-movement statistics for the program over the given date range and resolution, optionally filtered by tier structure and tier. Each row covers one tier structure, one tier, and one period with recorded movement. Periods without recorded movement are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2672
+ # Returns aggregated tier-movement statistics for the program over the given date range and resolution, optionally filtered by tier structure and tier. Each row covers one tier structure, one tier, and one period with recorded movement. Periods without recorded movement are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2673
2673
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2674
2674
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
2675
2675
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -2683,7 +2683,7 @@ module VoucherifySdk
2683
2683
  end
2684
2684
 
2685
2685
  # List program tiers daily reports
2686
- # Returns aggregated tier-movement statistics for the program over the given date range and resolution, optionally filtered by tier structure and tier. Each row covers one tier structure, one tier, and one period with recorded movement. Periods without recorded movement are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2686
+ # Returns aggregated tier-movement statistics for the program over the given date range and resolution, optionally filtered by tier structure and tier. Each row covers one tier structure, one tier, and one period with recorded movement. Periods without recorded movement are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2687
2687
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2688
2688
  # @param start_date [Date] Sets the inclusive start of the report date range. Format YYYY-MM-DD.
2689
2689
  # @param end_date [Date] Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
@@ -2740,7 +2740,7 @@ module VoucherifySdk
2740
2740
  end
2741
2741
 
2742
2742
  # List program tiers summary reports
2743
- # Returns all-time tier-movement totals for the program, one row per tier structure and tier that has recorded movement. Filters rows with filters[tier_structure_id] and filters[tier_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2743
+ # Returns all-time tier-movement totals for the program, one row per tier structure and tier that has recorded movement. Filters rows with filters[tier_structure_id] and filters[tier_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2744
2744
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2745
2745
  # @param [Hash] opts the optional parameters
2746
2746
  # @option opts [TiersReportListFilters] :filters Filters the results. Pass a deep object, for example filters[tier_id][conditions][$is] lt_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -2751,7 +2751,7 @@ module VoucherifySdk
2751
2751
  end
2752
2752
 
2753
2753
  # List program tiers summary reports
2754
- # Returns all-time tier-movement totals for the program, one row per tier structure and tier that has recorded movement. Filters rows with filters[tier_structure_id] and filters[tier_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2754
+ # Returns all-time tier-movement totals for the program, one row per tier structure and tier that has recorded movement. Filters rows with filters[tier_structure_id] and filters[tier_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2755
2755
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2756
2756
  # @param [Hash] opts the optional parameters
2757
2757
  # @option opts [TiersReportListFilters] :filters Filters the results. Pass a deep object, for example filters[tier_id][conditions][$is] lt_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
@@ -2802,7 +2802,7 @@ module VoucherifySdk
2802
2802
  end
2803
2803
 
2804
2804
  # Purchase reward with points
2805
- # Purchases a reward for the program member by spending points from the members card. The card comes from the matching reward costs card definition. The program, reward, and member must be ACTIVE. The program and reward must be inside their validity windows. The reward must be assigned to the program with stock available, a cost must match the customer, and the purchase must stay inside frequency, cooldown, balance, and spending limits. Modes: - TRANSACTION (default): creates a PENDING reward transaction and a PENDING card transaction. Returns 202. - DRY_RUN: simulates the purchase and doesnt create a transaction. Returns 200 with status SIMULATED.
2805
+ # Purchases a reward for the program member by spending points from the members card. The card comes from the matching reward costs card definition. The program, reward, and member must be ACTIVE. The program and reward must be inside their validity windows. The reward must be assigned to the program with stock available, a cost must match the customer, and the purchase must stay inside frequency, cooldown, balance, and spending limits. Modes: - TRANSACTION (default): creates a PENDING reward transaction and a PENDING card transaction. Returns 202. - DRY_RUN: simulates the purchase and doesnt create a transaction. Returns 200 with status SIMULATED. A successful call records no activity.
2806
2806
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2807
2807
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
2808
2808
  # @param [Hash] opts the optional parameters
@@ -2814,7 +2814,7 @@ module VoucherifySdk
2814
2814
  end
2815
2815
 
2816
2816
  # Purchase reward with points
2817
- # Purchases a reward for the program member by spending points from the members card. The card comes from the matching reward costs card definition. The program, reward, and member must be ACTIVE. The program and reward must be inside their validity windows. The reward must be assigned to the program with stock available, a cost must match the customer, and the purchase must stay inside frequency, cooldown, balance, and spending limits. Modes: - TRANSACTION (default): creates a PENDING reward transaction and a PENDING card transaction. Returns 202. - DRY_RUN: simulates the purchase and doesnt create a transaction. Returns 200 with status SIMULATED.
2817
+ # Purchases a reward for the program member by spending points from the members card. The card comes from the matching reward costs card definition. The program, reward, and member must be ACTIVE. The program and reward must be inside their validity windows. The reward must be assigned to the program with stock available, a cost must match the customer, and the purchase must stay inside frequency, cooldown, balance, and spending limits. Modes: - TRANSACTION (default): creates a PENDING reward transaction and a PENDING card transaction. Returns 202. - DRY_RUN: simulates the purchase and doesnt create a transaction. Returns 200 with status SIMULATED. A successful call records no activity.
2818
2818
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2819
2819
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
2820
2820
  # @param [Hash] opts the optional parameters
@@ -2870,7 +2870,7 @@ module VoucherifySdk
2870
2870
  end
2871
2871
 
2872
2872
  # Refund reward purchase
2873
- # Refunds an APPROVED reward purchase made by a program member. The purchase transaction is marked REFUNDED, a new REFUND reward transaction is created with status APPROVED, and the points spent on the purchase are returned to the members card. The request body is optional and an empty payload is allowed. Policies default to refund: DEFAULT and stock: DEFAULT. The endpoint responds with 202 before the card balance changes. A POINTS_RETURNED card transaction is created for the members card and processed shortly after the response. When the members tier or the card definition expires points, returned points receive a new expiration date from that setting. They dont inherit the expiration of the originally spent points. A NO_EXPIRATION setting leaves the returned points without an expiration date. Card earning limits dont block the refund. For a LOYALTY_CARD_POINTS reward, the points credited to the target card are also reversed, with a POINTS_PURCHASE_REVERSED card transaction on that card. That transaction is processed shortly after the response. Its expiration is copied from the original points-purchased transaction. A DISCOUNT_COUPONS refund deletes the issued vouchers. details.result.digital.discount_coupons[].result is DELETED, or SKIPPED when the voucher isnt deleted. A GIFT_VOUCHERS refund subtracts the credited amount. details.result.digital.gift_vouchers[].result is CREDITS_SUBTRACTED, or SKIPPED when the balance update is rejected. The refund reverses that purchase in the rewards purchase limits for the project-local day of the original purchase. A day whose purchases are all refunded no longer counts as the members last purchase. Only rewards whose refunds.type is REFUNDABLE can be refunded. Any other reward is rejected with 423 and key reward_refund_policy_does_not_allow_refunds. policies.refund set to ALLOW refunds it anyway. The program must exist, and the reward transaction must belong to that program. Otherwise the request fails with 404. The program is checked first. The request is rejected with 423 when: - The program isnt ACTIVE (non_active_program) or is outside its validity window (program_outside_validity_window), - The transaction isnt a purchase (non_purchase_reward_transaction) or isnt APPROVED (non_approved_reward_transaction); refunding the same purchase twice fails here, - The reward no longer exists (reward_not_found), isnt assigned to the program (refund_reward_not_assigned_to_program), the members card is gone (refund_card_not_found), or the card definition is gone (refund_card_definition_not_found), - The reward type isnt supported (reward_type_not_supported_for_refunds), - For a LOYALTY_CARD_POINTS reward, the purchase result is missing (loyalty_card_points_purchase_result_not_found), the target card is gone (loyalty_card_points_target_card_not_found), the points-purchased card transaction is missing (loyalty_card_points_purchase_not_found), the target cards available balance is lower than the purchased points (loyalty_card_points_insufficient_balance), or the target card definition is gone (loyalty_card_points_target_card_definition_not_found).
2873
+ # Refunds an APPROVED reward purchase made by a program member. The purchase transaction is marked REFUNDED, a new REFUND reward transaction is created with status APPROVED, and the points spent on the purchase are returned to the members card. The request body is optional and an empty payload is allowed. Policies default to refund: DEFAULT and stock: DEFAULT. The endpoint responds with 202 before the card balance changes. A POINTS_RETURNED card transaction is created for the members card and processed shortly after the response. When the members tier or the card definition expires points, returned points receive a new expiration date from that setting. They dont inherit the expiration of the originally spent points. A NO_EXPIRATION setting leaves the returned points without an expiration date. Card earning limits dont block the refund. For a legacy LOYALTY_CARD_POINTS reward, the points credited to the target card are also reversed, with a POINTS_PURCHASE_REVERSED card transaction on that card. That transaction is processed shortly after the response. Its expiration is copied from the original points-purchased transaction. A DISCOUNT_COUPONS refund deletes the issued vouchers. details.result.digital.discount_coupons[].result is DELETED, or SKIPPED when the voucher isnt deleted. A GIFT_VOUCHERS refund subtracts the credited amount. details.result.digital.gift_vouchers[].result is CREDITS_SUBTRACTED, or SKIPPED when the balance update is rejected. The refund reverses that purchase in the rewards purchase limits for the project-local day of the original purchase. A day whose purchases are all refunded no longer counts as the members last purchase. Only rewards whose refunds.type is REFUNDABLE can be refunded. Any other reward is rejected with 423 and key reward_refund_policy_does_not_allow_refunds. policies.refund set to ALLOW refunds it anyway. The program must exist, and the reward transaction must belong to that program. Otherwise the request fails with 404. The program is checked first. The request is rejected with 423 when: - The program isnt ACTIVE (non_active_program) or is outside its validity window (program_outside_validity_window), - The transaction isnt a purchase (non_purchase_reward_transaction) or isnt APPROVED (non_approved_reward_transaction); refunding the same purchase twice fails here, - The reward no longer exists (reward_not_found), isnt assigned to the program (refund_reward_not_assigned_to_program), the members card is gone (refund_card_not_found), or the card definition is gone (refund_card_definition_not_found), - The reward type isnt supported (reward_type_not_supported_for_refunds), - For a legacy LOYALTY_CARD_POINTS reward, the purchase result is missing (loyalty_card_points_purchase_result_not_found), the target card is gone (loyalty_card_points_target_card_not_found), the points-purchased card transaction is missing (loyalty_card_points_purchase_not_found), the target cards available balance is lower than the purchased points (loyalty_card_points_insufficient_balance), or the target card definition is gone (loyalty_card_points_target_card_definition_not_found). A successful call records no activity.
2874
2874
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2875
2875
  # @param reward_transaction_id [String] Identifies the reward transaction of the purchase to refund. Format lrtx_[a-f0-9]+.
2876
2876
  # @param [Hash] opts the optional parameters
@@ -2882,7 +2882,7 @@ module VoucherifySdk
2882
2882
  end
2883
2883
 
2884
2884
  # Refund reward purchase
2885
- # Refunds an APPROVED reward purchase made by a program member. The purchase transaction is marked REFUNDED, a new REFUND reward transaction is created with status APPROVED, and the points spent on the purchase are returned to the members card. The request body is optional and an empty payload is allowed. Policies default to refund: DEFAULT and stock: DEFAULT. The endpoint responds with 202 before the card balance changes. A POINTS_RETURNED card transaction is created for the members card and processed shortly after the response. When the members tier or the card definition expires points, returned points receive a new expiration date from that setting. They dont inherit the expiration of the originally spent points. A NO_EXPIRATION setting leaves the returned points without an expiration date. Card earning limits dont block the refund. For a LOYALTY_CARD_POINTS reward, the points credited to the target card are also reversed, with a POINTS_PURCHASE_REVERSED card transaction on that card. That transaction is processed shortly after the response. Its expiration is copied from the original points-purchased transaction. A DISCOUNT_COUPONS refund deletes the issued vouchers. details.result.digital.discount_coupons[].result is DELETED, or SKIPPED when the voucher isnt deleted. A GIFT_VOUCHERS refund subtracts the credited amount. details.result.digital.gift_vouchers[].result is CREDITS_SUBTRACTED, or SKIPPED when the balance update is rejected. The refund reverses that purchase in the rewards purchase limits for the project-local day of the original purchase. A day whose purchases are all refunded no longer counts as the members last purchase. Only rewards whose refunds.type is REFUNDABLE can be refunded. Any other reward is rejected with 423 and key reward_refund_policy_does_not_allow_refunds. policies.refund set to ALLOW refunds it anyway. The program must exist, and the reward transaction must belong to that program. Otherwise the request fails with 404. The program is checked first. The request is rejected with 423 when: - The program isnt ACTIVE (non_active_program) or is outside its validity window (program_outside_validity_window), - The transaction isnt a purchase (non_purchase_reward_transaction) or isnt APPROVED (non_approved_reward_transaction); refunding the same purchase twice fails here, - The reward no longer exists (reward_not_found), isnt assigned to the program (refund_reward_not_assigned_to_program), the members card is gone (refund_card_not_found), or the card definition is gone (refund_card_definition_not_found), - The reward type isnt supported (reward_type_not_supported_for_refunds), - For a LOYALTY_CARD_POINTS reward, the purchase result is missing (loyalty_card_points_purchase_result_not_found), the target card is gone (loyalty_card_points_target_card_not_found), the points-purchased card transaction is missing (loyalty_card_points_purchase_not_found), the target cards available balance is lower than the purchased points (loyalty_card_points_insufficient_balance), or the target card definition is gone (loyalty_card_points_target_card_definition_not_found).
2885
+ # Refunds an APPROVED reward purchase made by a program member. The purchase transaction is marked REFUNDED, a new REFUND reward transaction is created with status APPROVED, and the points spent on the purchase are returned to the members card. The request body is optional and an empty payload is allowed. Policies default to refund: DEFAULT and stock: DEFAULT. The endpoint responds with 202 before the card balance changes. A POINTS_RETURNED card transaction is created for the members card and processed shortly after the response. When the members tier or the card definition expires points, returned points receive a new expiration date from that setting. They dont inherit the expiration of the originally spent points. A NO_EXPIRATION setting leaves the returned points without an expiration date. Card earning limits dont block the refund. For a legacy LOYALTY_CARD_POINTS reward, the points credited to the target card are also reversed, with a POINTS_PURCHASE_REVERSED card transaction on that card. That transaction is processed shortly after the response. Its expiration is copied from the original points-purchased transaction. A DISCOUNT_COUPONS refund deletes the issued vouchers. details.result.digital.discount_coupons[].result is DELETED, or SKIPPED when the voucher isnt deleted. A GIFT_VOUCHERS refund subtracts the credited amount. details.result.digital.gift_vouchers[].result is CREDITS_SUBTRACTED, or SKIPPED when the balance update is rejected. The refund reverses that purchase in the rewards purchase limits for the project-local day of the original purchase. A day whose purchases are all refunded no longer counts as the members last purchase. Only rewards whose refunds.type is REFUNDABLE can be refunded. Any other reward is rejected with 423 and key reward_refund_policy_does_not_allow_refunds. policies.refund set to ALLOW refunds it anyway. The program must exist, and the reward transaction must belong to that program. Otherwise the request fails with 404. The program is checked first. The request is rejected with 423 when: - The program isnt ACTIVE (non_active_program) or is outside its validity window (program_outside_validity_window), - The transaction isnt a purchase (non_purchase_reward_transaction) or isnt APPROVED (non_approved_reward_transaction); refunding the same purchase twice fails here, - The reward no longer exists (reward_not_found), isnt assigned to the program (refund_reward_not_assigned_to_program), the members card is gone (refund_card_not_found), or the card definition is gone (refund_card_definition_not_found), - The reward type isnt supported (reward_type_not_supported_for_refunds), - For a legacy LOYALTY_CARD_POINTS reward, the purchase result is missing (loyalty_card_points_purchase_result_not_found), the target card is gone (loyalty_card_points_target_card_not_found), the points-purchased card transaction is missing (loyalty_card_points_purchase_not_found), the target cards available balance is lower than the purchased points (loyalty_card_points_insufficient_balance), or the target card definition is gone (loyalty_card_points_target_card_definition_not_found). A successful call records no activity.
2886
2886
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2887
2887
  # @param reward_transaction_id [String] Identifies the reward transaction of the purchase to refund. Format lrtx_[a-f0-9]+.
2888
2888
  # @param [Hash] opts the optional parameters
@@ -2938,7 +2938,7 @@ module VoucherifySdk
2938
2938
  end
2939
2939
 
2940
2940
  # Update program member
2941
- # Updates a program members metadata. Provided object keys are merged into the existing metadata; omitted keys are preserved. Pass metadata: null to clear all metadata (sets it to an empty object). This endpoint cannot change status. Use [Activate program member](/api-reference/programs/activate-program-member) or [Deactivate program member](/api-reference/programs/deactivate-program-member) for status transitions. Records a vl.member.updated activity. Returns the updated member without the cards array. Returns 404 when the program or member does not exist. Returns 400 when the request body fails validation or the project vl_member metadata schema rejects the payload.
2941
+ # Updates a program members metadata. Provided object keys are merged into the existing metadata; omitted keys are preserved. Pass metadata: null to clear all metadata (sets it to an empty object). This endpoint cannot change status. Use [Activate program member](/api-reference/programs/activate-program-member) or [Deactivate program member](/api-reference/programs/deactivate-program-member) for status transitions. Returns the updated member without the cards array. Returns 404 when the program or member does not exist. Returns 400 when the request body fails validation or the project vl_member metadata schema rejects the payload. A successful call records [vl.member.updated](/api-reference/loyalty-activity/members/updated).
2942
2942
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2943
2943
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
2944
2944
  # @param [Hash] opts the optional parameters
@@ -2950,7 +2950,7 @@ module VoucherifySdk
2950
2950
  end
2951
2951
 
2952
2952
  # Update program member
2953
- # Updates a program members metadata. Provided object keys are merged into the existing metadata; omitted keys are preserved. Pass metadata: null to clear all metadata (sets it to an empty object). This endpoint cannot change status. Use [Activate program member](/api-reference/programs/activate-program-member) or [Deactivate program member](/api-reference/programs/deactivate-program-member) for status transitions. Records a vl.member.updated activity. Returns the updated member without the cards array. Returns 404 when the program or member does not exist. Returns 400 when the request body fails validation or the project vl_member metadata schema rejects the payload.
2953
+ # Updates a program members metadata. Provided object keys are merged into the existing metadata; omitted keys are preserved. Pass metadata: null to clear all metadata (sets it to an empty object). This endpoint cannot change status. Use [Activate program member](/api-reference/programs/activate-program-member) or [Deactivate program member](/api-reference/programs/deactivate-program-member) for status transitions. Returns the updated member without the cards array. Returns 404 when the program or member does not exist. Returns 400 when the request body fails validation or the project vl_member metadata schema rejects the payload. A successful call records [vl.member.updated](/api-reference/loyalty-activity/members/updated).
2954
2954
  # @param program_id [String] Identifies the loyalty program. Format lprg_[a-f0-9]+.
2955
2955
  # @param member_id [String] Identifies the member. Format lmbr_[a-f0-9]+.
2956
2956
  # @param [Hash] opts the optional parameters