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
@@ -33,7 +33,7 @@ module VoucherifySdk
33
33
  # The metadata object stores all custom attributes assigned to the reward. A set of key/value pairs that you can attach to a reward object. It can be useful for storing additional information about the reward in a structured format.
34
34
  attr_accessor :metadata
35
35
 
36
- # Reward type.
36
+ # Reward type. `LOYALTY_POINTS` credits points on a `v2/loyalties` (loyalty hub) card (for example from a referral tier).
37
37
  attr_accessor :type
38
38
 
39
39
  attr_accessor :parameters
@@ -194,7 +194,7 @@ module VoucherifySdk
194
194
  # @return true if the model is valid
195
195
  def valid?
196
196
  warn '[DEPRECATED] the `valid?` method is obsolete'
197
- type_validator = EnumAttributeValidator.new('String', ["CAMPAIGN", "COIN", "MATERIAL"])
197
+ type_validator = EnumAttributeValidator.new('String', ["CAMPAIGN", "COIN", "MATERIAL", "LOYALTY_POINTS"])
198
198
  return false unless type_validator.valid?(@type)
199
199
  return false if @object.nil?
200
200
  object_validator = EnumAttributeValidator.new('String', ["reward"])
@@ -31,10 +31,10 @@ module VoucherifySdk
31
31
  # The type of the object represented by the JSON. This object stores information about the reward assignment.
32
32
  attr_accessor :object
33
33
 
34
- # Related object ID to which the reward was assigned.
34
+ # Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID.
35
35
  attr_accessor :related_object_id
36
36
 
37
- # Related object type to which the reward was assigned.
37
+ # Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier.
38
38
  attr_accessor :related_object_type
39
39
 
40
40
  attr_accessor :parameters
@@ -167,7 +167,7 @@ module VoucherifySdk
167
167
  warn '[DEPRECATED] the `valid?` method is obsolete'
168
168
  object_validator = EnumAttributeValidator.new('String', ["reward_assignment"])
169
169
  return false unless object_validator.valid?(@object)
170
- related_object_type_validator = EnumAttributeValidator.new('String', ["campaign"])
170
+ related_object_type_validator = EnumAttributeValidator.new('String', ["campaign", "referral_tier"])
171
171
  return false unless related_object_type_validator.valid?(@related_object_type)
172
172
  true
173
173
  end
@@ -19,7 +19,7 @@ module VoucherifySdk
19
19
  # The number of points required to redeem the reward.
20
20
  attr_accessor :points
21
21
 
22
- # Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`.
22
+ # Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`.
23
23
  attr_accessor :auto_redeem
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,10 +31,10 @@ module VoucherifySdk
31
31
  # The type of the object represented by the JSON. This object stores information about the reward assignment.
32
32
  attr_accessor :object
33
33
 
34
- # Related object ID to which the reward was assigned.
34
+ # Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID.
35
35
  attr_accessor :related_object_id
36
36
 
37
- # Related object type to which the reward was assigned.
37
+ # Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier.
38
38
  attr_accessor :related_object_type
39
39
 
40
40
  attr_accessor :parameters
@@ -167,7 +167,7 @@ module VoucherifySdk
167
167
  warn '[DEPRECATED] the `valid?` method is obsolete'
168
168
  object_validator = EnumAttributeValidator.new('String', ["reward_assignment"])
169
169
  return false unless object_validator.valid?(@object)
170
- related_object_type_validator = EnumAttributeValidator.new('String', ["campaign"])
170
+ related_object_type_validator = EnumAttributeValidator.new('String', ["campaign", "referral_tier"])
171
171
  return false unless related_object_type_validator.valid?(@related_object_type)
172
172
  true
173
173
  end
@@ -19,7 +19,7 @@ module VoucherifySdk
19
19
  # The number of points required to redeem the reward.
20
20
  attr_accessor :points
21
21
 
22
- # Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`.
22
+ # Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`.
23
23
  attr_accessor :auto_redeem
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -19,7 +19,7 @@ module VoucherifySdk
19
19
  # Defines how many points are required to obtain the reward.
20
20
  attr_accessor :points
21
21
 
22
- # Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`.
22
+ # Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`.
23
23
  attr_accessor :auto_redeem
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,10 +31,10 @@ module VoucherifySdk
31
31
  # The type of the object represented by the JSON. This object stores information about the reward assignment.
32
32
  attr_accessor :object
33
33
 
34
- # Related object ID to which the reward was assigned.
34
+ # Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID.
35
35
  attr_accessor :related_object_id
36
36
 
37
- # Related object type to which the reward was assigned.
37
+ # Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier.
38
38
  attr_accessor :related_object_type
39
39
 
40
40
  attr_accessor :parameters
@@ -167,7 +167,7 @@ module VoucherifySdk
167
167
  warn '[DEPRECATED] the `valid?` method is obsolete'
168
168
  object_validator = EnumAttributeValidator.new('String', ["reward_assignment"])
169
169
  return false unless object_validator.valid?(@object)
170
- related_object_type_validator = EnumAttributeValidator.new('String', ["campaign"])
170
+ related_object_type_validator = EnumAttributeValidator.new('String', ["campaign", "referral_tier"])
171
171
  return false unless related_object_type_validator.valid?(@related_object_type)
172
172
  true
173
173
  end
@@ -19,7 +19,7 @@ module VoucherifySdk
19
19
  # The number of points required to redeem the reward.
20
20
  attr_accessor :points
21
21
 
22
- # Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`.
22
+ # Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`.
23
23
  attr_accessor :auto_redeem
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -22,7 +22,7 @@ module VoucherifySdk
22
22
  # Identifies the name of the attribute that contains the array of loyalty tier objects.
23
23
  attr_accessor :data_ref
24
24
 
25
- # This is an object representing a loyalty tier. Loyalty tiers are used to create a loyalty program with different levels of membership and varied earning rules and rewards based on customer's tiers.
25
+ # This is an object representing a loyalty tier. Loyalty tiers are used in a **legacy loyalty** campaign with different levels of membership and varied earning rules and rewards based on the customer's tiers.
26
26
  attr_accessor :data
27
27
 
28
28
  # Total number of loyalty tier objects.
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
+ # Request body for transferring points between **legacy loyalty** cards.
17
18
  class LoyaltiesTransferPoints
18
19
  # Unique loyalty card code from which the user wants to transfer loyalty points (source).
19
20
  attr_accessor :code
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # Request body schema for **PUT** `/loyalties/{campaignId}`.
17
+ # **Legacy loyalty.** Request body schema for **PUT** `/loyalties/{campaignId}`.
18
18
  class LoyaltiesUpdateCampaignRequestBody
19
19
  # Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is *inactive before* this date.
20
20
  attr_accessor :start_date
@@ -49,10 +49,10 @@ module VoucherifySdk
49
49
  # Defines the amount of time the vouchers will be active after publishing. The value is shown in the ISO 8601 format. For example, a voucher with the value of P24D will be valid for a duration of 24 days.
50
50
  attr_accessor :activity_duration_after_publishing
51
51
 
52
- # If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always `true` for loyalty campaigns and it cannot be changed in them.
52
+ # If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always `true` for **legacy loyalty** campaigns and it cannot be changed in them.
53
53
  attr_accessor :join_once
54
54
 
55
- # Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled.
55
+ # Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled.
56
56
  attr_accessor :auto_join
57
57
 
58
58
  # Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - `STATIC`: vouchers need to be manually published. If the `type` of the campaign is `STANDALONE`, the type cannot be changed. Also, the `type` cannot be changed to `STANDALONE`.
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # Response body schema for **PUT** `/loyalties/{campaignId}`.
17
+ # **Legacy loyalty.** Response body schema for **PUT** `/loyalties/{campaignId}`.
18
18
  class LoyaltiesUpdateCampaignResponseBody
19
19
  # Unique campaign ID, assigned by Voucherify.
20
20
  attr_accessor :id
@@ -33,10 +33,10 @@ module VoucherifySdk
33
33
 
34
34
  attr_accessor :voucher
35
35
 
36
- # Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled.
36
+ # Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled.
37
37
  attr_accessor :auto_join
38
38
 
39
- # Always set to `true` for loyalty campaigns, meaning customers can join the campaign only once. It can't be changed to `false`.
39
+ # Always set to `true` for **legacy loyalty** campaigns, meaning customers can join the campaign only once. It can't be changed to `false`.
40
40
  attr_accessor :join_once
41
41
 
42
42
  # Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema.
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
+ # Loyalty campaign object (**legacy loyalty**). Created and managed through `/v1/loyalties` and campaign endpoints with type `LOYALTY_PROGRAM`.
17
18
  class LoyaltyCampaign
18
19
  # Unique campaign ID, assigned by Voucherify.
19
20
  attr_accessor :id
@@ -32,10 +33,10 @@ module VoucherifySdk
32
33
 
33
34
  attr_accessor :voucher
34
35
 
35
- # Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled.
36
+ # Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled.
36
37
  attr_accessor :auto_join
37
38
 
38
- # Always set to `true` for loyalty campaigns, meaning customers can join the campaign only once. It can't be changed to `false`.
39
+ # Always set to `true` for **legacy loyalty** campaigns, meaning customers can join the campaign only once. It can't be changed to `false`.
39
40
  attr_accessor :join_once
40
41
 
41
42
  # Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema.
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # Schema model for a campaign voucher.
17
+ # **Legacy loyalty.** Schema model for a campaign voucher.
18
18
  class LoyaltyCampaignVoucher
19
19
  # Type of voucher.
20
20
  attr_accessor :type
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # Loyalty tier of the loyalty card holder at the moment when the transaction occurred. The loyalty tier is the tier in which the holder was before the loyalty point balance changed.
17
+ # Legacy loyalty tier of the loyalty card holder at the moment when the transaction occurred. The loyalty tier is the tier in which the holder was before the loyalty point balance changed.
18
18
  class LoyaltyCardTransactionDetailsHolderLoyaltyTier
19
19
  # Unique identifier of the loyalty tier, assigned by Voucherify.
20
20
  attr_accessor :id
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # Contains information about the loyalty tier that is mapped for the earning rule and used in the transaction.
17
+ # Contains information about the legacy loyalty tier that is mapped for the earning rule and used in the transaction.
18
18
  class LoyaltyCardTransactionDetailsLoyaltyTier
19
19
  # Unique identifier of the loyalty tier, assigned by Voucherify.
20
20
  attr_accessor :id
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # This is an object representing a loyalty member.
17
+ # **Legacy loyalty.** This is an object representing a loyalty member.
18
18
  class LoyaltyMember
19
19
  # Assigned by the Voucherify API, identifies the voucher.
20
20
  attr_accessor :id
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # Object representing loyalty card parameters. Child attributes are present only if `type` is `LOYALTY_CARD`. Defaults to `null`.
17
+ # Object representing legacy loyalty card parameters. Child attributes are present only if `type` is `LOYALTY_CARD`. Defaults to `null`.
18
18
  class LoyaltyMemberLoyaltyCard
19
19
  # Total number of points added to the loyalty card over its lifespan.
20
20
  attr_accessor :points
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # Loyalty tier of the loyalty card holder at the moment when the transaction occurred. The loyalty tier is the tier in which the holder was at the moment pending points were created.
17
+ # Legacy loyalty tier of the loyalty card holder at the moment when the transaction occurred. The loyalty tier is the tier in which the holder was at the moment pending points were created.
18
18
  class LoyaltyPendingPointsDetailsHolderLoyaltyTier
19
19
  # Unique identifier of the loyalty tier, assigned by Voucherify.
20
20
  attr_accessor :id
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
+ # Loyalty tier within a **legacy loyalty** campaign.
17
18
  class LoyaltyTier
18
19
  # Loyalty Tier name.
19
20
  attr_accessor :name
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # Defines the Loyalty Tiers Expiration.
17
+ # **Legacy loyalty.** Defines the Loyalty Tiers Expiration.
18
18
  class LoyaltyTiersExpirationAll
19
19
  # Tier qualification. `BALANCE`: Points balance is based on the customer's current points balance. Customers qualify for the tier if their points balance is in the points range of the tier. `POINTS_IN_PERIOD`: A customer qualifies for the tier only if the sum of the accumulated points in a **defined time interval** reaches the tier threshold.
20
20
  attr_accessor :qualification_type
@@ -16,7 +16,7 @@ require 'time'
16
16
  module VoucherifySdk
17
17
  # Limited stock configuration.
18
18
  class LoyaltyV2ActivityBenefitStockLimited
19
- # Available Remaining stock quantity. For responses, updates with each benefit purchase.
19
+ # Remaining stock quantity. On create, this is the starting quantity. Each benefit purchase decreases it by one.
20
20
  attr_accessor :quantity
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -19,7 +19,7 @@ module VoucherifySdk
19
19
  # Day of month (1-31; validated against the month length).
20
20
  attr_accessor :day
21
21
 
22
- # Month number (1-12).
22
+ # Month number (1–12).
23
23
  attr_accessor :month
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,12 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # `value` is the month (1-12). Required when `type` is `END_OF_PARTICULAR_MONTH`. Absent for other rounding types. The API validates field combinations that this schema does not express.
17
+ # `value` is the month (1–12). Required when `type` is `END_OF_PARTICULAR_MONTH`. Absent for other rounding types. The API validates field combinations that this schema does not express.
18
18
  class LoyaltyV2ActivityEarningRuleEffectPointsExpirationRollingExpirationRounding
19
19
  # Rounding type.
20
20
  attr_accessor :type
21
21
 
22
- # Month number (1-12). Present only when `type` is `END_OF_PARTICULAR_MONTH`.
22
+ # Month number (1–12). Present only when `type` is `END_OF_PARTICULAR_MONTH`.
23
23
  attr_accessor :value
24
24
 
25
25
  class EnumAttributeValidator
@@ -16,7 +16,7 @@ require 'time'
16
16
  module VoucherifySdk
17
17
  # \"Every X gives Y points\" formula based on an amount.
18
18
  class LoyaltyV2ActivityEarningRulePointsProportionalEvery
19
- # The divisor – every this amount (e.g. in cents) awards `value` points.
19
+ # The divisor - every this amount (e.g. in cents) awards `value` points.
20
20
  attr_accessor :every
21
21
 
22
22
  # Points awarded per `every` unit.
@@ -16,7 +16,7 @@ require 'time'
16
16
  module VoucherifySdk
17
17
  # \"Every X gives Y points\" formula based on a numeric metadata property.
18
18
  class LoyaltyV2ActivityEarningRulePointsProportionalMetadata
19
- # The divisor – every this metadata value awards `value` points.
19
+ # The divisor - every this metadata value awards `value` points.
20
20
  attr_accessor :every
21
21
 
22
22
  # Points awarded per `every` unit.
@@ -16,10 +16,10 @@ require 'time'
16
16
  module VoucherifySdk
17
17
  # Contains details about the users who will be assigned to the project. Only the `id` and `role` or `login` and `role` should be provided in the request.
18
18
  class ManagementProjectsCreateRequestBodyUsersItem
19
- # The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member. **Required** with the `role` string. Do **not** use with the `login` string.
19
+ # The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member. Required with the `role` string. Do **not** use with the `login` string.
20
20
  attr_accessor :id
21
21
 
22
- # The login data of the user who will be assigned to the project. **Required** with the `role` string. Do **not** use with the `id` string.
22
+ # The login data of the user who will be assigned to the project. Required with the `role` string. Do **not** use with the `id` string.
23
23
  attr_accessor :login
24
24
 
25
25
  # The role of the user to be added. It can be one of the following predefined roles: `ADMIN`, `USER`, `VIEWER`, `MERCHANT` or an ID of a custom role.
@@ -15,10 +15,10 @@ require 'time'
15
15
 
16
16
  module VoucherifySdk
17
17
  class ManagementProjectsUsersAssignRequestBody
18
- # The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member. **Required** with the `role` string. Do **not** use with the `login` string.
18
+ # The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member. Required with the `role` string. Do **not** use with the `login` string.
19
19
  attr_accessor :id
20
20
 
21
- # The login data of the user who will be assigned to the project. **Required** with the `role` string. Do **not** use with the `id` string.
21
+ # The login data of the user who will be assigned to the project. Required with the `role` string. Do **not** use with the `id` string.
22
22
  attr_accessor :login
23
23
 
24
24
  # The role of the user to be added. It can be one of the following predefined roles: `ADMIN`, `USER`, `VIEWER`, `MERCHANT`, or an ID of a custom role.
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # This is an object representing member activity. This is a general object which presents moments from members' activity. There are all types of different events that members perform during their journey once they participate in a loyalty program. Events describe moments when the members redeem loyalty cards and earn points or rewards. The list of all types of activities is listed below. The details describing the activity are collected in an array property named `data`. In this object, software integrators can find all further information explaining the event context.
17
+ # This is an object representing member activity. This is a general object which presents moments from members' activity. There are all types of different events that members perform during their journey once they participate in a legacy loyalty campaign. Events describe moments when the members redeem loyalty cards and earn points or rewards. The list of all types of activities is listed below. The details describing the activity are collected in an array property named `data`. In this object, software integrators can find all further information explaining the event context.
18
18
  class MemberActivity
19
19
  # Unique event ID, assigned by Voucherify.
20
20
  attr_accessor :id
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # Type of the campaign. Allowed values: `DISCOUNT_COUPONS`, `REFERRAL_PROGRAM`, `GIFT_VOUCHERS`, `LOYALTY_PROGRAM`
17
+ # Type of the campaign. Allowed values: `DISCOUNT_COUPONS`, `REFERRAL_PROGRAM`, `GIFT_VOUCHERS`, `LOYALTY_PROGRAM` `LOYALTY_PROGRAM` is the campaign type for **legacy loyalty** (loyalty card campaigns). It does not refer to `v2/loyalties` programs.
18
18
  class ParameterFiltersListCustomerRedeemablesCampaignType
19
19
  attr_accessor :conditions
20
20
 
@@ -23,6 +23,8 @@ module VoucherifySdk
23
23
  # Defines a set of products for a `STATIC` product collection type.
24
24
  attr_accessor :products
25
25
 
26
+ attr_accessor :access_settings
27
+
26
28
  # Defines a set of criteria and boundary conditions for an `AUTO_UPDATE` product collection type.
27
29
  attr_accessor :filter
28
30
 
@@ -54,6 +56,7 @@ module VoucherifySdk
54
56
  :'type' => :'type',
55
57
  :'name' => :'name',
56
58
  :'products' => :'products',
59
+ :'access_settings' => :'access_settings',
57
60
  :'filter' => :'filter'
58
61
  }
59
62
  end
@@ -69,6 +72,7 @@ module VoucherifySdk
69
72
  :'type' => :'String',
70
73
  :'name' => :'String',
71
74
  :'products' => :'Array<ProductCollectionsCreateRequestBodyProductsItem>',
75
+ :'access_settings' => :'AccessSettings',
72
76
  :'filter' => :'Object'
73
77
  }
74
78
  end
@@ -105,6 +109,10 @@ module VoucherifySdk
105
109
  end
106
110
  end
107
111
 
112
+ if attributes.key?(:'access_settings')
113
+ self.access_settings = attributes[:'access_settings']
114
+ end
115
+
108
116
  if attributes.key?(:'filter')
109
117
  self.filter = attributes[:'filter']
110
118
  end
@@ -135,6 +143,7 @@ module VoucherifySdk
135
143
  type == o.type &&
136
144
  name == o.name &&
137
145
  products == o.products &&
146
+ access_settings == o.access_settings &&
138
147
  filter == o.filter
139
148
  end
140
149
 
@@ -147,7 +156,7 @@ module VoucherifySdk
147
156
  # Calculates hash code according to all attributes.
148
157
  # @return [Integer] Hash code
149
158
  def hash
150
- [type, name, products, filter].hash
159
+ [type, name, products, access_settings, filter].hash
151
160
  end
152
161
 
153
162
  # Builds the object from hash
@@ -34,6 +34,11 @@ module VoucherifySdk
34
34
  # Timestamp representing the date and time when the product collection was created. The value is shown in the ISO 8601 format.
35
35
  attr_accessor :created_at
36
36
 
37
+ # Indicates whether the product collection can only be read by the caller in the Areas and Stores enterprise feature. Returned only when area and store visibility rules apply to the caller. A read-only product collection can't be updated or deleted.
38
+ attr_accessor :readonly
39
+
40
+ attr_accessor :access_settings_assignments
41
+
37
42
  # The type of the object represented by JSON. This object stores information about the static product collection.
38
43
  attr_accessor :object
39
44
 
@@ -68,6 +73,8 @@ module VoucherifySdk
68
73
  :'filter' => :'filter',
69
74
  :'products' => :'products',
70
75
  :'created_at' => :'created_at',
76
+ :'readonly' => :'readonly',
77
+ :'access_settings_assignments' => :'access_settings_assignments',
71
78
  :'object' => :'object'
72
79
  }
73
80
  end
@@ -86,6 +93,8 @@ module VoucherifySdk
86
93
  :'filter' => :'Object',
87
94
  :'products' => :'Array<ProductCollectionsCreateResponseBodyProductsItem>',
88
95
  :'created_at' => :'Time',
96
+ :'readonly' => :'Boolean',
97
+ :'access_settings_assignments' => :'AccessSettingsProductCollectionAssignmentsList',
89
98
  :'object' => :'String'
90
99
  }
91
100
  end
@@ -99,6 +108,7 @@ module VoucherifySdk
99
108
  :'filter',
100
109
  :'products',
101
110
  :'created_at',
111
+ :'readonly',
102
112
  :'object'
103
113
  ])
104
114
  end
@@ -137,6 +147,14 @@ module VoucherifySdk
137
147
  self.created_at = attributes[:'created_at']
138
148
  end
139
149
 
150
+ if attributes.key?(:'readonly')
151
+ self.readonly = attributes[:'readonly']
152
+ end
153
+
154
+ if attributes.key?(:'access_settings_assignments')
155
+ self.access_settings_assignments = attributes[:'access_settings_assignments']
156
+ end
157
+
140
158
  if attributes.key?(:'object')
141
159
  self.object = attributes[:'object']
142
160
  else
@@ -174,6 +192,8 @@ module VoucherifySdk
174
192
  filter == o.filter &&
175
193
  products == o.products &&
176
194
  created_at == o.created_at &&
195
+ readonly == o.readonly &&
196
+ access_settings_assignments == o.access_settings_assignments &&
177
197
  object == o.object
178
198
  end
179
199
 
@@ -186,7 +206,7 @@ module VoucherifySdk
186
206
  # Calculates hash code according to all attributes.
187
207
  # @return [Integer] Hash code
188
208
  def hash
189
- [id, name, type, filter, products, created_at, object].hash
209
+ [id, name, type, filter, products, created_at, readonly, access_settings_assignments, object].hash
190
210
  end
191
211
 
192
212
  # Builds the object from hash
@@ -34,6 +34,11 @@ module VoucherifySdk
34
34
  # Timestamp representing the date and time when the product collection was created. The value is shown in the ISO 8601 format.
35
35
  attr_accessor :created_at
36
36
 
37
+ # Indicates whether the product collection can only be read by the caller in the Areas and Stores enterprise feature. Returned only when area and store visibility rules apply to the caller. A read-only product collection can't be updated or deleted.
38
+ attr_accessor :readonly
39
+
40
+ attr_accessor :access_settings_assignments
41
+
37
42
  # The type of the object represented by JSON. This object stores information about the static product collection.
38
43
  attr_accessor :object
39
44
 
@@ -68,6 +73,8 @@ module VoucherifySdk
68
73
  :'filter' => :'filter',
69
74
  :'products' => :'products',
70
75
  :'created_at' => :'created_at',
76
+ :'readonly' => :'readonly',
77
+ :'access_settings_assignments' => :'access_settings_assignments',
71
78
  :'object' => :'object'
72
79
  }
73
80
  end
@@ -86,6 +93,8 @@ module VoucherifySdk
86
93
  :'filter' => :'Object',
87
94
  :'products' => :'Array<ProductCollectionsGetResponseBodyProductsItem>',
88
95
  :'created_at' => :'Time',
96
+ :'readonly' => :'Boolean',
97
+ :'access_settings_assignments' => :'AccessSettingsProductCollectionAssignmentsList',
89
98
  :'object' => :'String'
90
99
  }
91
100
  end
@@ -99,6 +108,7 @@ module VoucherifySdk
99
108
  :'filter',
100
109
  :'products',
101
110
  :'created_at',
111
+ :'readonly',
102
112
  :'object'
103
113
  ])
104
114
  end
@@ -137,6 +147,14 @@ module VoucherifySdk
137
147
  self.created_at = attributes[:'created_at']
138
148
  end
139
149
 
150
+ if attributes.key?(:'readonly')
151
+ self.readonly = attributes[:'readonly']
152
+ end
153
+
154
+ if attributes.key?(:'access_settings_assignments')
155
+ self.access_settings_assignments = attributes[:'access_settings_assignments']
156
+ end
157
+
140
158
  if attributes.key?(:'object')
141
159
  self.object = attributes[:'object']
142
160
  else
@@ -174,6 +192,8 @@ module VoucherifySdk
174
192
  filter == o.filter &&
175
193
  products == o.products &&
176
194
  created_at == o.created_at &&
195
+ readonly == o.readonly &&
196
+ access_settings_assignments == o.access_settings_assignments &&
177
197
  object == o.object
178
198
  end
179
199
 
@@ -186,7 +206,7 @@ module VoucherifySdk
186
206
  # Calculates hash code according to all attributes.
187
207
  # @return [Integer] Hash code
188
208
  def hash
189
- [id, name, type, filter, products, created_at, object].hash
209
+ [id, name, type, filter, products, created_at, readonly, access_settings_assignments, object].hash
190
210
  end
191
211
 
192
212
  # Builds the object from hash