voucherify 8.0.1 → 8.0.3

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 (289) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +1 -1
  3. data/ENDPOINTS-COVERAGE.md +69 -60
  4. data/Gemfile.lock +9 -7
  5. data/README.md +55 -2
  6. data/__tests__/spec/12_validation_rules_spec.rb +1 -15
  7. data/docs/AccessSettings.md +9 -0
  8. data/docs/AccessSettingsAssign.md +10 -0
  9. data/docs/AccessSettingsUnassign.md +10 -0
  10. data/docs/ApplicableTo.md +3 -2
  11. data/docs/ApplicableToOrderItemUnitsItem.md +9 -0
  12. data/docs/ApplicationDetailsItem.md +14 -0
  13. data/docs/AreaStoreCampaignAssignment.md +1 -0
  14. data/docs/BinApi.md +4 -4
  15. data/docs/Campaign.md +3 -3
  16. data/docs/CampaignBase.md +3 -2
  17. data/docs/CampaignsApi.md +3 -3
  18. data/docs/CampaignsCreateRequestBody.md +2 -1
  19. data/docs/CampaignsCreateResponseBody.md +3 -3
  20. data/docs/CampaignsGetResponseBody.md +3 -3
  21. data/docs/CampaignsUpdateRequestBody.md +3 -2
  22. data/docs/CampaignsUpdateResponseBody.md +3 -3
  23. data/docs/CampaignsVouchersCreateCombinedResponseBodyLoyaltyCard.md +2 -1
  24. data/docs/CampaignsVouchersCreateResponseBodyLoyaltyCard.md +2 -1
  25. data/docs/ClientValidationsValidateResponseBodyRedeemablesItem.md +3 -2
  26. data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultDiscount.md +1 -1
  27. data/docs/CustomerLoyalty.md +1 -1
  28. data/docs/Discount.md +1 -1
  29. data/docs/DiscountUnitMultipleOneUnit.md +1 -1
  30. data/docs/EarningRule.md +1 -0
  31. data/docs/EarningRulePendingPoints.md +9 -0
  32. data/docs/Error.md +1 -0
  33. data/docs/ErrorError.md +8 -0
  34. data/docs/EventSource.md +10 -0
  35. data/docs/EventSourceApiKey.md +9 -0
  36. data/docs/EventSourceUser.md +8 -0
  37. data/docs/InapplicableTo.md +3 -2
  38. data/docs/InapplicableToOrderItemUnitsItem.md +9 -0
  39. data/docs/LoyaltiesApi.md +334 -10
  40. data/docs/LoyaltiesCreateCampaignRequestBody.md +2 -1
  41. data/docs/LoyaltiesEarningRulesCreateResponseBody.md +1 -0
  42. data/docs/LoyaltiesEarningRulesCreateResponseBodyPendingPoints.md +9 -0
  43. data/docs/LoyaltiesEarningRulesDisableResponseBody.md +1 -0
  44. data/docs/LoyaltiesEarningRulesDisableResponseBodyPendingPoints.md +9 -0
  45. data/docs/LoyaltiesEarningRulesEnableResponseBody.md +1 -0
  46. data/docs/LoyaltiesEarningRulesEnableResponseBodyPendingPoints.md +9 -0
  47. data/docs/LoyaltiesEarningRulesGetResponseBody.md +1 -0
  48. data/docs/LoyaltiesEarningRulesGetResponseBodyPendingPoints.md +9 -0
  49. data/docs/LoyaltiesEarningRulesUpdateResponseBody.md +1 -0
  50. data/docs/LoyaltiesEarningRulesUpdateResponseBodyPendingPoints.md +9 -0
  51. data/docs/LoyaltiesMembersBalanceUpdateResponseBody.md +1 -1
  52. data/docs/LoyaltiesMembersCreateResponseBodyLoyaltyCard.md +2 -1
  53. data/docs/LoyaltiesMembersGetResponseBodyLoyaltyCard.md +2 -1
  54. data/docs/LoyaltiesMembersPendingPointsActivateResponseBody.md +14 -0
  55. data/docs/LoyaltiesMembersPendingPointsActivateResponseBodyRelatedObject.md +9 -0
  56. data/docs/LoyaltiesMembersPendingPointsListResponseBody.md +12 -0
  57. data/docs/LoyaltiesMembersPointsExpirationListResponseBodyDataItem.md +9 -9
  58. data/docs/LoyaltiesMembersPointsExpirationListResponseBodyDataItemBucket.md +1 -1
  59. data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard.md +2 -1
  60. data/docs/LoyaltiesMembersTransfersCreateResponseBodyLoyaltyCard.md +2 -1
  61. data/docs/LoyaltiesPendingPointsListResponseBody.md +12 -0
  62. data/docs/LoyaltiesUpdateCampaignRequestBody.md +3 -2
  63. data/docs/LoyaltyCardTransaction.md +2 -2
  64. data/docs/LoyaltyCardTransactionDetails.md +2 -0
  65. data/docs/LoyaltyCardTransactionDetailsBalance.md +5 -4
  66. data/docs/LoyaltyCardTransactionDetailsBalanceRelatedObject.md +1 -1
  67. data/docs/LoyaltyCardTransactionDetailsEarningRule.md +1 -1
  68. data/docs/LoyaltyCardTransactionDetailsHolderLoyaltyTier.md +9 -0
  69. data/docs/LoyaltyCardTransactionDetailsLoyaltyTier.md +2 -2
  70. data/docs/LoyaltyMemberLoyaltyCard.md +2 -1
  71. data/docs/LoyaltyPendingPoints.md +17 -0
  72. data/docs/LoyaltyPendingPointsDetails.md +12 -0
  73. data/docs/LoyaltyPendingPointsDetailsEarningRule.md +9 -0
  74. data/docs/LoyaltyPendingPointsDetailsEarningRuleSource.md +8 -0
  75. data/docs/LoyaltyPendingPointsDetailsEvent.md +14 -0
  76. data/docs/LoyaltyPendingPointsDetailsHolderLoyaltyTier.md +9 -0
  77. data/docs/LoyaltyPendingPointsDetailsLoyaltyTier.md +9 -0
  78. data/docs/LoyaltyPendingPointsDetailsOrder.md +9 -0
  79. data/docs/LoyaltyPointsBucket.md +16 -0
  80. data/docs/LoyaltyPointsBucketBucket.md +8 -0
  81. data/docs/LoyaltyTierExpiration.md +1 -1
  82. data/docs/Order.md +3 -3
  83. data/docs/OrderCalculated.md +12 -12
  84. data/docs/OrderCalculatedItem.md +2 -1
  85. data/docs/OrderCalculatedItemProduct.md +1 -1
  86. data/docs/OrderCalculatedItemSku.md +1 -0
  87. data/docs/OrderItem.md +1 -1
  88. data/docs/OrderItemProduct.md +1 -1
  89. data/docs/OrderItemSku.md +1 -0
  90. data/docs/OrderRedemptionsEntry.md +1 -1
  91. data/docs/OrdersCreateRequestBody.md +3 -3
  92. data/docs/OrdersCreateResponseBody.md +12 -12
  93. data/docs/OrdersGetResponseBody.md +12 -12
  94. data/docs/OrdersImportCreateRequestBodyItem.md +3 -3
  95. data/docs/OrdersUpdateRequestBody.md +3 -3
  96. data/docs/OrdersUpdateResponseBody.md +12 -12
  97. data/docs/ParameterOrderListPendingPoints.md +7 -0
  98. data/docs/Product.md +1 -1
  99. data/docs/ProductCollectionsProductsListResponseBodyDataItem.md +1 -1
  100. data/docs/ProductWithoutSkus.md +1 -1
  101. data/docs/ProductsCreateResponseBody.md +1 -1
  102. data/docs/ProductsGetResponseBody.md +1 -1
  103. data/docs/ProductsSkusCreateResponseBody.md +1 -1
  104. data/docs/ProductsSkusUpdateResponseBody.md +1 -1
  105. data/docs/ProductsUpdateResponseBody.md +1 -1
  106. data/docs/RedeemableLoyaltyCard.md +1 -1
  107. data/docs/RedeemableVoucherLoyaltyCard.md +2 -1
  108. data/docs/RedemptionEntryOrder.md +12 -12
  109. data/docs/RedemptionEntryVoucherLoyaltyCard.md +2 -1
  110. data/docs/RedemptionVoucherLoyaltyCard.md +2 -1
  111. data/docs/RedemptionsGetResponseBodyOrder.md +12 -12
  112. data/docs/RedemptionsGetResponseBodyVoucherLoyaltyCard.md +2 -1
  113. data/docs/RedemptionsListResponseBodyRedemptionsItemOrder.md +12 -12
  114. data/docs/RedemptionsListResponseBodyRedemptionsItemVoucherLoyaltyCard.md +2 -1
  115. data/docs/SimpleLoyaltyCard.md +2 -1
  116. data/docs/Sku.md +1 -1
  117. data/docs/SkusGetResponseBody.md +1 -1
  118. data/docs/TemplatesCampaignsCampaignSetupCreateRequestBody.md +2 -1
  119. data/docs/ValidationsRedeemableInapplicable.md +3 -2
  120. data/docs/ValidationsRedeemableSkipped.md +3 -2
  121. data/docs/ValidationsValidateResponseBodyRedeemablesItem.md +3 -2
  122. data/docs/ValidationsValidateResponseBodyRedeemablesItemResultDiscount.md +1 -1
  123. data/docs/VoucherBalance.md +14 -0
  124. data/docs/VoucherBalanceRelatedObject.md +9 -0
  125. data/docs/VoucherLoyaltyCard.md +2 -1
  126. data/docs/VoucherTransaction.md +2 -2
  127. data/docs/VoucherTransactionDetails.md +2 -0
  128. data/docs/VoucherTransactionDetailsBalance.md +5 -4
  129. data/docs/VoucherTransactionDetailsBalanceRelatedObject.md +1 -1
  130. data/docs/VoucherTransactionDetailsCustomEvent.md +2 -2
  131. data/docs/VoucherTransactionDetailsEarningRule.md +1 -1
  132. data/docs/VoucherTransactionDetailsEventSchema.md +2 -2
  133. data/docs/VoucherTransactionDetailsHolderLoyaltyTier.md +9 -0
  134. data/docs/VoucherTransactionDetailsLoyaltyTier.md +2 -2
  135. data/docs/VoucherTransactionDetailsRollback.md +1 -1
  136. data/docs/VoucherTransactionDetailsSegment.md +2 -2
  137. data/docs/VoucherWithCategoriesLoyaltyCard.md +2 -1
  138. data/docs/VouchersApi.md +6 -6
  139. data/docs/VouchersBalanceUpdateResponseBody.md +1 -1
  140. data/docs/VouchersCreateResponseBodyLoyaltyCard.md +2 -1
  141. data/docs/VouchersDisableResponseBodyLoyaltyCard.md +2 -1
  142. data/docs/VouchersEnableResponseBodyLoyaltyCard.md +2 -1
  143. data/docs/VouchersGetResponseBodyLoyaltyCard.md +2 -1
  144. data/docs/VouchersUpdateResponseBodyLoyaltyCard.md +2 -1
  145. data/lib/VoucherifySdk/api/bin_api.rb +4 -4
  146. data/lib/VoucherifySdk/api/campaigns_api.rb +4 -4
  147. data/lib/VoucherifySdk/api/loyalties_api.rb +334 -8
  148. data/lib/VoucherifySdk/api/vouchers_api.rb +10 -10
  149. data/lib/VoucherifySdk/models/access_settings.rb +219 -0
  150. data/lib/VoucherifySdk/models/access_settings_assign.rb +238 -0
  151. data/lib/VoucherifySdk/models/access_settings_campaign_assignments_list.rb +1 -1
  152. data/lib/VoucherifySdk/models/access_settings_unassign.rb +238 -0
  153. data/lib/VoucherifySdk/models/applicable_to.rb +16 -3
  154. data/lib/VoucherifySdk/models/applicable_to_order_item_units_item.rb +220 -0
  155. data/lib/VoucherifySdk/models/application_details_item.rb +284 -0
  156. data/lib/VoucherifySdk/models/area_store_campaign_assignment.rb +12 -1
  157. data/lib/VoucherifySdk/models/campaign.rb +16 -16
  158. data/lib/VoucherifySdk/models/campaign_base.rb +16 -7
  159. data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +11 -2
  160. data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +16 -16
  161. data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +16 -16
  162. data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +12 -3
  163. data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +16 -16
  164. data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_loyalty_card.rb +17 -6
  165. data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_loyalty_card.rb +17 -6
  166. data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item.rb +18 -7
  167. data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_discount.rb +1 -0
  168. data/lib/VoucherifySdk/models/customer_loyalty.rb +1 -1
  169. data/lib/VoucherifySdk/models/discount.rb +1 -0
  170. data/lib/VoucherifySdk/models/discount_unit_multiple_one_unit.rb +1 -0
  171. data/lib/VoucherifySdk/models/earning_rule.rb +11 -1
  172. data/lib/VoucherifySdk/models/earning_rule_pending_points.rb +257 -0
  173. data/lib/VoucherifySdk/models/error.rb +15 -5
  174. data/lib/VoucherifySdk/models/error_error.rb +210 -0
  175. data/lib/VoucherifySdk/models/event_source.rb +254 -0
  176. data/lib/VoucherifySdk/models/event_source_api_key.rb +221 -0
  177. data/lib/VoucherifySdk/models/event_source_user.rb +210 -0
  178. data/lib/VoucherifySdk/models/inapplicable_to.rb +16 -3
  179. data/lib/VoucherifySdk/models/inapplicable_to_order_item_units_item.rb +220 -0
  180. data/lib/VoucherifySdk/models/loyalties_create_campaign_request_body.rb +11 -2
  181. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body.rb +11 -1
  182. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_pending_points.rb +257 -0
  183. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body.rb +11 -1
  184. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_pending_points.rb +257 -0
  185. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body.rb +11 -1
  186. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_pending_points.rb +257 -0
  187. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body.rb +11 -1
  188. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_pending_points.rb +257 -0
  189. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body.rb +11 -1
  190. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_pending_points.rb +257 -0
  191. data/lib/VoucherifySdk/models/loyalties_members_balance_update_response_body.rb +1 -0
  192. data/lib/VoucherifySdk/models/loyalties_members_create_response_body_loyalty_card.rb +17 -6
  193. data/lib/VoucherifySdk/models/loyalties_members_get_response_body_loyalty_card.rb +17 -6
  194. data/lib/VoucherifySdk/models/loyalties_members_pending_points_activate_response_body.rb +309 -0
  195. data/lib/VoucherifySdk/models/loyalties_members_pending_points_activate_response_body_related_object.rb +247 -0
  196. data/lib/VoucherifySdk/models/loyalties_members_pending_points_list_response_body.rb +286 -0
  197. data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item.rb +27 -77
  198. data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item_bucket.rb +3 -9
  199. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_loyalty_card.rb +17 -6
  200. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_loyalty_card.rb +17 -6
  201. data/lib/VoucherifySdk/models/loyalties_pending_points_list_response_body.rb +286 -0
  202. data/lib/VoucherifySdk/models/loyalties_update_campaign_request_body.rb +12 -3
  203. data/lib/VoucherifySdk/models/loyalty_card_transaction.rb +24 -31
  204. data/lib/VoucherifySdk/models/loyalty_card_transaction_details.rb +20 -2
  205. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_balance.rb +18 -19
  206. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_balance_related_object.rb +1 -7
  207. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_earning_rule.rb +1 -1
  208. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_holder_loyalty_tier.rb +221 -0
  209. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_loyalty_tier.rb +3 -1
  210. data/lib/VoucherifySdk/models/loyalty_card_transactions_type.rb +2 -1
  211. data/lib/VoucherifySdk/models/loyalty_member_loyalty_card.rb +17 -6
  212. data/lib/VoucherifySdk/models/loyalty_pending_points.rb +314 -0
  213. data/lib/VoucherifySdk/models/loyalty_pending_points_details.rb +249 -0
  214. data/lib/VoucherifySdk/models/loyalty_pending_points_details_earning_rule.rb +220 -0
  215. data/lib/VoucherifySdk/models/loyalty_pending_points_details_earning_rule_source.rb +210 -0
  216. data/lib/VoucherifySdk/models/loyalty_pending_points_details_event.rb +302 -0
  217. data/lib/VoucherifySdk/models/loyalty_pending_points_details_holder_loyalty_tier.rb +221 -0
  218. data/lib/VoucherifySdk/models/loyalty_pending_points_details_loyalty_tier.rb +221 -0
  219. data/lib/VoucherifySdk/models/loyalty_pending_points_details_order.rb +221 -0
  220. data/lib/VoucherifySdk/models/loyalty_points_bucket.rb +323 -0
  221. data/lib/VoucherifySdk/models/loyalty_points_bucket_bucket.rb +210 -0
  222. data/lib/VoucherifySdk/models/loyalty_tier_expiration.rb +1 -1
  223. data/lib/VoucherifySdk/models/order.rb +3 -3
  224. data/lib/VoucherifySdk/models/order_calculated.rb +29 -29
  225. data/lib/VoucherifySdk/models/order_calculated_item.rb +18 -6
  226. data/lib/VoucherifySdk/models/order_calculated_item_product.rb +1 -1
  227. data/lib/VoucherifySdk/models/order_calculated_item_sku.rb +16 -5
  228. data/lib/VoucherifySdk/models/order_item.rb +1 -1
  229. data/lib/VoucherifySdk/models/order_item_product.rb +1 -1
  230. data/lib/VoucherifySdk/models/order_item_sku.rb +16 -5
  231. data/lib/VoucherifySdk/models/order_redemptions_entry.rb +1 -1
  232. data/lib/VoucherifySdk/models/orders_create_request_body.rb +3 -3
  233. data/lib/VoucherifySdk/models/orders_create_response_body.rb +29 -29
  234. data/lib/VoucherifySdk/models/orders_get_response_body.rb +29 -29
  235. data/lib/VoucherifySdk/models/orders_import_create_request_body_item.rb +3 -3
  236. data/lib/VoucherifySdk/models/orders_update_request_body.rb +3 -3
  237. data/lib/VoucherifySdk/models/orders_update_response_body.rb +29 -29
  238. data/lib/VoucherifySdk/models/parameter_expand_list_campaigns.rb +2 -1
  239. data/lib/VoucherifySdk/models/parameter_order_list_pending_points.rb +40 -0
  240. data/lib/VoucherifySdk/models/product.rb +1 -1
  241. data/lib/VoucherifySdk/models/product_collections_products_list_response_body_data_item.rb +1 -1
  242. data/lib/VoucherifySdk/models/product_without_skus.rb +1 -1
  243. data/lib/VoucherifySdk/models/products_create_response_body.rb +1 -1
  244. data/lib/VoucherifySdk/models/products_get_response_body.rb +1 -1
  245. data/lib/VoucherifySdk/models/products_skus_create_response_body.rb +1 -1
  246. data/lib/VoucherifySdk/models/products_skus_update_response_body.rb +1 -1
  247. data/lib/VoucherifySdk/models/products_update_response_body.rb +1 -1
  248. data/lib/VoucherifySdk/models/qualifications_option.rb +3 -3
  249. data/lib/VoucherifySdk/models/redeemable_loyalty_card.rb +1 -1
  250. data/lib/VoucherifySdk/models/redeemable_voucher_loyalty_card.rb +17 -6
  251. data/lib/VoucherifySdk/models/redemption_entry_order.rb +29 -29
  252. data/lib/VoucherifySdk/models/redemption_entry_voucher_loyalty_card.rb +17 -6
  253. data/lib/VoucherifySdk/models/redemption_voucher_loyalty_card.rb +17 -6
  254. data/lib/VoucherifySdk/models/redemptions_get_response_body_order.rb +29 -29
  255. data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher_loyalty_card.rb +17 -6
  256. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_order.rb +28 -29
  257. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher_loyalty_card.rb +17 -6
  258. data/lib/VoucherifySdk/models/simple_loyalty_card.rb +17 -6
  259. data/lib/VoucherifySdk/models/sku.rb +1 -1
  260. data/lib/VoucherifySdk/models/skus_get_response_body.rb +1 -1
  261. data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body.rb +11 -2
  262. data/lib/VoucherifySdk/models/validations_redeemable_inapplicable.rb +18 -7
  263. data/lib/VoucherifySdk/models/validations_redeemable_skipped.rb +18 -7
  264. data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item.rb +18 -7
  265. data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_discount.rb +1 -0
  266. data/lib/VoucherifySdk/models/voucher_balance.rb +305 -0
  267. data/lib/VoucherifySdk/models/voucher_balance_related_object.rb +247 -0
  268. data/lib/VoucherifySdk/models/voucher_loyalty_card.rb +17 -6
  269. data/lib/VoucherifySdk/models/voucher_transaction.rb +27 -31
  270. data/lib/VoucherifySdk/models/voucher_transaction_details.rb +20 -2
  271. data/lib/VoucherifySdk/models/voucher_transaction_details_balance.rb +18 -19
  272. data/lib/VoucherifySdk/models/voucher_transaction_details_balance_related_object.rb +1 -7
  273. data/lib/VoucherifySdk/models/voucher_transaction_details_custom_event.rb +2 -2
  274. data/lib/VoucherifySdk/models/voucher_transaction_details_earning_rule.rb +1 -1
  275. data/lib/VoucherifySdk/models/voucher_transaction_details_event_schema.rb +2 -2
  276. data/lib/VoucherifySdk/models/voucher_transaction_details_holder_loyalty_tier.rb +221 -0
  277. data/lib/VoucherifySdk/models/voucher_transaction_details_loyalty_tier.rb +3 -1
  278. data/lib/VoucherifySdk/models/voucher_transaction_details_rollback.rb +1 -1
  279. data/lib/VoucherifySdk/models/voucher_transaction_details_segment.rb +2 -0
  280. data/lib/VoucherifySdk/models/voucher_with_categories_loyalty_card.rb +17 -6
  281. data/lib/VoucherifySdk/models/vouchers_balance_update_response_body.rb +1 -0
  282. data/lib/VoucherifySdk/models/vouchers_create_response_body_loyalty_card.rb +17 -6
  283. data/lib/VoucherifySdk/models/vouchers_disable_response_body_loyalty_card.rb +17 -6
  284. data/lib/VoucherifySdk/models/vouchers_enable_response_body_loyalty_card.rb +17 -6
  285. data/lib/VoucherifySdk/models/vouchers_get_response_body_loyalty_card.rb +17 -6
  286. data/lib/VoucherifySdk/models/vouchers_update_response_body_loyalty_card.rb +17 -6
  287. data/lib/VoucherifySdk/version.rb +1 -1
  288. data/lib/VoucherifySdk.rb +35 -0
  289. metadata +106 -36
@@ -25,37 +25,34 @@ module VoucherifySdk
25
25
  # The order status.
26
26
  attr_accessor :status
27
27
 
28
- # A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items' amounts.
28
+ # This is the sum of the order items' amounts. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
29
29
  attr_accessor :amount
30
30
 
31
- # A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items' amounts.
31
+ # This is the sum of the order items' amounts before any discount or other effect (e.g. add missing units) is applied. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
32
32
  attr_accessor :initial_amount
33
33
 
34
- # Sum of all order-level discounts applied to the order.
34
+ # Sum of all order-level discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
35
35
  attr_accessor :discount_amount
36
36
 
37
- # Sum of all product-specific discounts applied to the order.
37
+ # Sum of all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
38
38
  attr_accessor :items_discount_amount
39
39
 
40
- # Sum of all order-level AND all product-specific discounts applied to the order.
40
+ # Sum of all order-level AND all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
41
41
  attr_accessor :total_discount_amount
42
42
 
43
- # Order amount after undoing all the discounts through the rollback redemption.
43
+ # Order amount after undoing all the discounts through the rollback redemption. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
44
44
  attr_accessor :total_amount
45
45
 
46
- # This field shows the order-level discount applied.
46
+ # This field shows the order-level discount applied. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
47
47
  attr_accessor :applied_discount_amount
48
48
 
49
- # Sum of all product-specific discounts applied in a particular request. `sum(items, i => i.applied_discount_amount)`
49
+ # Sum of all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). `sum(items, i => i.applied_discount_amount)`
50
50
  attr_accessor :items_applied_discount_amount
51
51
 
52
- # Sum of all order-level AND all product-specific discounts applied in a particular request. `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount`
52
+ # Sum of all order-level AND all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount`
53
53
  attr_accessor :total_applied_discount_amount
54
54
 
55
- # Array of items applied to the order. It can include up 500 items.
56
- attr_accessor :items
57
-
58
- # A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format.
55
+ # A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format. It can be used to define business validation rules or discount formulas.
59
56
  attr_accessor :metadata
60
57
 
61
58
  # The type of the object represented by JSON.
@@ -67,7 +64,7 @@ module VoucherifySdk
67
64
  # Timestamp representing the date and time when the order was last updated in ISO 8601 format.
68
65
  attr_accessor :updated_at
69
66
 
70
- # Unique customer ID of the customer making the purchase.
67
+ # Unique customer identifier of the customer making the purchase. The ID is assigned by Voucherify.
71
68
  attr_accessor :customer_id
72
69
 
73
70
  # Unique referrer ID.
@@ -79,6 +76,9 @@ module VoucherifySdk
79
76
 
80
77
  attr_accessor :redemptions
81
78
 
79
+ # Array of items applied to the order. It can include up to 500 items.
80
+ attr_accessor :items
81
+
82
82
  class EnumAttributeValidator
83
83
  attr_reader :datatype
84
84
  attr_reader :allowable_values
@@ -116,7 +116,6 @@ module VoucherifySdk
116
116
  :'applied_discount_amount' => :'applied_discount_amount',
117
117
  :'items_applied_discount_amount' => :'items_applied_discount_amount',
118
118
  :'total_applied_discount_amount' => :'total_applied_discount_amount',
119
- :'items' => :'items',
120
119
  :'metadata' => :'metadata',
121
120
  :'object' => :'object',
122
121
  :'created_at' => :'created_at',
@@ -125,7 +124,8 @@ module VoucherifySdk
125
124
  :'referrer_id' => :'referrer_id',
126
125
  :'customer' => :'customer',
127
126
  :'referrer' => :'referrer',
128
- :'redemptions' => :'redemptions'
127
+ :'redemptions' => :'redemptions',
128
+ :'items' => :'items'
129
129
  }
130
130
  end
131
131
 
@@ -149,7 +149,6 @@ module VoucherifySdk
149
149
  :'applied_discount_amount' => :'Integer',
150
150
  :'items_applied_discount_amount' => :'Integer',
151
151
  :'total_applied_discount_amount' => :'Integer',
152
- :'items' => :'Array<OrderCalculatedItem>',
153
152
  :'metadata' => :'Object',
154
153
  :'object' => :'String',
155
154
  :'created_at' => :'Time',
@@ -158,7 +157,8 @@ module VoucherifySdk
158
157
  :'referrer_id' => :'String',
159
158
  :'customer' => :'CustomerId',
160
159
  :'referrer' => :'ReferrerId',
161
- :'redemptions' => :'Hash<String, OrderRedemptionsEntry>'
160
+ :'redemptions' => :'Hash<String, OrderRedemptionsEntry>',
161
+ :'items' => :'Array<OrderCalculatedItem>'
162
162
  }
163
163
  end
164
164
 
@@ -177,14 +177,14 @@ module VoucherifySdk
177
177
  :'applied_discount_amount',
178
178
  :'items_applied_discount_amount',
179
179
  :'total_applied_discount_amount',
180
- :'items',
181
180
  :'metadata',
182
181
  :'object',
183
182
  :'created_at',
184
183
  :'updated_at',
185
184
  :'customer_id',
186
185
  :'referrer_id',
187
- :'redemptions'
186
+ :'redemptions',
187
+ :'items'
188
188
  ])
189
189
  end
190
190
 
@@ -244,12 +244,6 @@ module VoucherifySdk
244
244
  self.total_applied_discount_amount = attributes[:'total_applied_discount_amount']
245
245
  end
246
246
 
247
- if attributes.key?(:'items')
248
- if (value = attributes[:'items']).is_a?(Array)
249
- self.items = value
250
- end
251
- end
252
-
253
247
  if attributes.key?(:'metadata')
254
248
  self.metadata = attributes[:'metadata']
255
249
  end
@@ -289,6 +283,12 @@ module VoucherifySdk
289
283
  self.redemptions = value
290
284
  end
291
285
  end
286
+
287
+ if attributes.key?(:'items')
288
+ if (value = attributes[:'items']).is_a?(Array)
289
+ self.items = value
290
+ end
291
+ end
292
292
  end
293
293
 
294
294
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -327,7 +327,6 @@ module VoucherifySdk
327
327
  applied_discount_amount == o.applied_discount_amount &&
328
328
  items_applied_discount_amount == o.items_applied_discount_amount &&
329
329
  total_applied_discount_amount == o.total_applied_discount_amount &&
330
- items == o.items &&
331
330
  metadata == o.metadata &&
332
331
  object == o.object &&
333
332
  created_at == o.created_at &&
@@ -336,7 +335,8 @@ module VoucherifySdk
336
335
  referrer_id == o.referrer_id &&
337
336
  customer == o.customer &&
338
337
  referrer == o.referrer &&
339
- redemptions == o.redemptions
338
+ redemptions == o.redemptions &&
339
+ items == o.items
340
340
  end
341
341
 
342
342
  # @see the `==` method
@@ -348,7 +348,7 @@ module VoucherifySdk
348
348
  # Calculates hash code according to all attributes.
349
349
  # @return [Integer] Hash code
350
350
  def hash
351
- [id, source_id, status, amount, initial_amount, discount_amount, items_discount_amount, total_discount_amount, total_amount, applied_discount_amount, items_applied_discount_amount, total_applied_discount_amount, items, metadata, object, created_at, updated_at, customer_id, referrer_id, customer, referrer, redemptions].hash
351
+ [id, source_id, status, amount, initial_amount, discount_amount, items_discount_amount, total_discount_amount, total_amount, applied_discount_amount, items_applied_discount_amount, total_applied_discount_amount, metadata, object, created_at, updated_at, customer_id, referrer_id, customer, referrer, redemptions, items].hash
352
352
  end
353
353
 
354
354
  # Builds the object from hash
@@ -30,13 +30,13 @@ module VoucherifySdk
30
30
  # A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items' amounts.
31
31
  attr_accessor :initial_amount
32
32
 
33
- # Sum of all order-level discounts applied to the order.
33
+ # Sum of all order-level discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
34
34
  attr_accessor :discount_amount
35
35
 
36
- # Array of items applied to the order. It can include up 500 items.
36
+ # Array of items applied to the order. It can include up to 500 items.
37
37
  attr_accessor :items
38
38
 
39
- # A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format.
39
+ # A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format. It can be used to define business validation rules or discount formulas.
40
40
  attr_accessor :metadata
41
41
 
42
42
  # Timestamp representing the date and time when the order was created. The value is shown in the ISO 8601 format.
@@ -28,13 +28,13 @@ module VoucherifySdk
28
28
  # A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items' amounts.
29
29
  attr_accessor :initial_amount
30
30
 
31
- # Sum of all order-level discounts applied to the order.
31
+ # Sum of all order-level discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
32
32
  attr_accessor :discount_amount
33
33
 
34
- # Array of items applied to the order. It can include up 500 items.
34
+ # Array of items applied to the order. It can include up to 500 items.
35
35
  attr_accessor :items
36
36
 
37
- # A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format.
37
+ # A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format. It can be used to define business validation rules or discount formulas.
38
38
  attr_accessor :metadata
39
39
 
40
40
  # Timestamp representing the date and time when the order was created. The value is shown in the ISO 8601 format.
@@ -25,37 +25,34 @@ module VoucherifySdk
25
25
  # The order status.
26
26
  attr_accessor :status
27
27
 
28
- # A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items' amounts.
28
+ # This is the sum of the order items' amounts. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
29
29
  attr_accessor :amount
30
30
 
31
- # A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items' amounts.
31
+ # This is the sum of the order items' amounts before any discount or other effect (e.g. add missing units) is applied. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
32
32
  attr_accessor :initial_amount
33
33
 
34
- # Sum of all order-level discounts applied to the order.
34
+ # Sum of all order-level discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
35
35
  attr_accessor :discount_amount
36
36
 
37
- # Sum of all product-specific discounts applied to the order.
37
+ # Sum of all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
38
38
  attr_accessor :items_discount_amount
39
39
 
40
- # Sum of all order-level AND all product-specific discounts applied to the order.
40
+ # Sum of all order-level AND all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
41
41
  attr_accessor :total_discount_amount
42
42
 
43
- # Order amount after undoing all the discounts through the rollback redemption.
43
+ # Order amount after undoing all the discounts through the rollback redemption. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
44
44
  attr_accessor :total_amount
45
45
 
46
- # This field shows the order-level discount applied.
46
+ # This field shows the order-level discount applied. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
47
47
  attr_accessor :applied_discount_amount
48
48
 
49
- # Sum of all product-specific discounts applied in a particular request. `sum(items, i => i.applied_discount_amount)`
49
+ # Sum of all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). `sum(items, i => i.applied_discount_amount)`
50
50
  attr_accessor :items_applied_discount_amount
51
51
 
52
- # Sum of all order-level AND all product-specific discounts applied in a particular request. `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount`
52
+ # Sum of all order-level AND all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount`
53
53
  attr_accessor :total_applied_discount_amount
54
54
 
55
- # Array of items applied to the order. It can include up 500 items.
56
- attr_accessor :items
57
-
58
- # A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format.
55
+ # A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format. It can be used to define business validation rules or discount formulas.
59
56
  attr_accessor :metadata
60
57
 
61
58
  # The type of the object represented by JSON.
@@ -67,7 +64,7 @@ module VoucherifySdk
67
64
  # Timestamp representing the date and time when the order was last updated in ISO 8601 format.
68
65
  attr_accessor :updated_at
69
66
 
70
- # Unique customer ID of the customer making the purchase.
67
+ # Unique customer identifier of the customer making the purchase. The ID is assigned by Voucherify.
71
68
  attr_accessor :customer_id
72
69
 
73
70
  # Unique referrer ID.
@@ -79,6 +76,9 @@ module VoucherifySdk
79
76
 
80
77
  attr_accessor :redemptions
81
78
 
79
+ # Array of items applied to the order. It can include up to 500 items.
80
+ attr_accessor :items
81
+
82
82
  class EnumAttributeValidator
83
83
  attr_reader :datatype
84
84
  attr_reader :allowable_values
@@ -116,7 +116,6 @@ module VoucherifySdk
116
116
  :'applied_discount_amount' => :'applied_discount_amount',
117
117
  :'items_applied_discount_amount' => :'items_applied_discount_amount',
118
118
  :'total_applied_discount_amount' => :'total_applied_discount_amount',
119
- :'items' => :'items',
120
119
  :'metadata' => :'metadata',
121
120
  :'object' => :'object',
122
121
  :'created_at' => :'created_at',
@@ -125,7 +124,8 @@ module VoucherifySdk
125
124
  :'referrer_id' => :'referrer_id',
126
125
  :'customer' => :'customer',
127
126
  :'referrer' => :'referrer',
128
- :'redemptions' => :'redemptions'
127
+ :'redemptions' => :'redemptions',
128
+ :'items' => :'items'
129
129
  }
130
130
  end
131
131
 
@@ -149,7 +149,6 @@ module VoucherifySdk
149
149
  :'applied_discount_amount' => :'Integer',
150
150
  :'items_applied_discount_amount' => :'Integer',
151
151
  :'total_applied_discount_amount' => :'Integer',
152
- :'items' => :'Array<OrderCalculatedItem>',
153
152
  :'metadata' => :'Object',
154
153
  :'object' => :'String',
155
154
  :'created_at' => :'Time',
@@ -158,7 +157,8 @@ module VoucherifySdk
158
157
  :'referrer_id' => :'String',
159
158
  :'customer' => :'CustomerId',
160
159
  :'referrer' => :'ReferrerId',
161
- :'redemptions' => :'Hash<String, OrderRedemptionsEntry>'
160
+ :'redemptions' => :'Hash<String, OrderRedemptionsEntry>',
161
+ :'items' => :'Array<OrderCalculatedItem>'
162
162
  }
163
163
  end
164
164
 
@@ -177,14 +177,14 @@ module VoucherifySdk
177
177
  :'applied_discount_amount',
178
178
  :'items_applied_discount_amount',
179
179
  :'total_applied_discount_amount',
180
- :'items',
181
180
  :'metadata',
182
181
  :'object',
183
182
  :'created_at',
184
183
  :'updated_at',
185
184
  :'customer_id',
186
185
  :'referrer_id',
187
- :'redemptions'
186
+ :'redemptions',
187
+ :'items'
188
188
  ])
189
189
  end
190
190
 
@@ -244,12 +244,6 @@ module VoucherifySdk
244
244
  self.total_applied_discount_amount = attributes[:'total_applied_discount_amount']
245
245
  end
246
246
 
247
- if attributes.key?(:'items')
248
- if (value = attributes[:'items']).is_a?(Array)
249
- self.items = value
250
- end
251
- end
252
-
253
247
  if attributes.key?(:'metadata')
254
248
  self.metadata = attributes[:'metadata']
255
249
  end
@@ -289,6 +283,12 @@ module VoucherifySdk
289
283
  self.redemptions = value
290
284
  end
291
285
  end
286
+
287
+ if attributes.key?(:'items')
288
+ if (value = attributes[:'items']).is_a?(Array)
289
+ self.items = value
290
+ end
291
+ end
292
292
  end
293
293
 
294
294
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -327,7 +327,6 @@ module VoucherifySdk
327
327
  applied_discount_amount == o.applied_discount_amount &&
328
328
  items_applied_discount_amount == o.items_applied_discount_amount &&
329
329
  total_applied_discount_amount == o.total_applied_discount_amount &&
330
- items == o.items &&
331
330
  metadata == o.metadata &&
332
331
  object == o.object &&
333
332
  created_at == o.created_at &&
@@ -336,7 +335,8 @@ module VoucherifySdk
336
335
  referrer_id == o.referrer_id &&
337
336
  customer == o.customer &&
338
337
  referrer == o.referrer &&
339
- redemptions == o.redemptions
338
+ redemptions == o.redemptions &&
339
+ items == o.items
340
340
  end
341
341
 
342
342
  # @see the `==` method
@@ -348,7 +348,7 @@ module VoucherifySdk
348
348
  # Calculates hash code according to all attributes.
349
349
  # @return [Integer] Hash code
350
350
  def hash
351
- [id, source_id, status, amount, initial_amount, discount_amount, items_discount_amount, total_discount_amount, total_amount, applied_discount_amount, items_applied_discount_amount, total_applied_discount_amount, items, metadata, object, created_at, updated_at, customer_id, referrer_id, customer, referrer, redemptions].hash
351
+ [id, source_id, status, amount, initial_amount, discount_amount, items_discount_amount, total_discount_amount, total_amount, applied_discount_amount, items_applied_discount_amount, total_applied_discount_amount, metadata, object, created_at, updated_at, customer_id, referrer_id, customer, referrer, redemptions, items].hash
352
352
  end
353
353
 
354
354
  # Builds the object from hash
@@ -16,9 +16,10 @@ require 'time'
16
16
  module VoucherifySdk
17
17
  class ParameterExpandListCampaigns
18
18
  CATEGORY = "category".freeze
19
+ ACCESS_SETTINGS_ASSIGNMENTS = "access_settings_assignments".freeze
19
20
 
20
21
  def self.all_vars
21
- @all_vars ||= [CATEGORY].freeze
22
+ @all_vars ||= [CATEGORY, ACCESS_SETTINGS_ASSIGNMENTS].freeze
22
23
  end
23
24
 
24
25
  # Builds the enum from string
@@ -0,0 +1,40 @@
1
+ =begin
2
+ #Voucherify API
3
+
4
+ #Voucherify promotion engine REST API. Please see https://docs.voucherify.io/docs for more details.
5
+
6
+ The version of the OpenAPI document: v2018-08-01
7
+ Contact: support@voucherify.io
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module VoucherifySdk
17
+ class ParameterOrderListPendingPoints
18
+ ID = "id".freeze
19
+ ID2 = "-id".freeze
20
+
21
+ def self.all_vars
22
+ @all_vars ||= [ID, ID2].freeze
23
+ end
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def self.build_from_hash(value)
29
+ new.build_from_hash(value)
30
+ end
31
+
32
+ # Builds the enum from string
33
+ # @param [String] The enum value in the form of the string
34
+ # @return [String] The enum value
35
+ def build_from_hash(value)
36
+ return value if ParameterOrderListPendingPoints.all_vars.include?(value)
37
+ raise "Invalid ENUM value #{value} for class #ParameterOrderListPendingPoints"
38
+ end
39
+ end
40
+ end
@@ -31,7 +31,7 @@ module VoucherifySdk
31
31
  # A list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`. Each child SKU can have a unique value for a given attribute.
32
32
  attr_accessor :attributes
33
33
 
34
- # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format.
34
+ # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections.
35
35
  attr_accessor :metadata
36
36
 
37
37
  # The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.
@@ -28,7 +28,7 @@ module VoucherifySdk
28
28
  # A list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`. Each child SKU can have a unique value for a given attribute.
29
29
  attr_accessor :attributes
30
30
 
31
- # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. and The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format.
31
+ # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections. and The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format. It can be used to create product collections.
32
32
  attr_accessor :metadata
33
33
 
34
34
  attr_accessor :image_url
@@ -30,7 +30,7 @@ module VoucherifySdk
30
30
  # A list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`. Each child SKU can have a unique value for a given attribute.
31
31
  attr_accessor :attributes
32
32
 
33
- # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format.
33
+ # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections.
34
34
  attr_accessor :metadata
35
35
 
36
36
  # The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.
@@ -31,7 +31,7 @@ module VoucherifySdk
31
31
  # A list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`. Each child SKU can have a unique value for a given attribute.
32
32
  attr_accessor :attributes
33
33
 
34
- # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format.
34
+ # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections.
35
35
  attr_accessor :metadata
36
36
 
37
37
  # The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.
@@ -31,7 +31,7 @@ module VoucherifySdk
31
31
  # A list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`. Each child SKU can have a unique value for a given attribute.
32
32
  attr_accessor :attributes
33
33
 
34
- # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format.
34
+ # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections.
35
35
  attr_accessor :metadata
36
36
 
37
37
  # The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.
@@ -40,7 +40,7 @@ module VoucherifySdk
40
40
  # The HTTPS URL pointing to the .png or .jpg file that will be used to render the SKU image.
41
41
  attr_accessor :image_url
42
42
 
43
- # The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format.
43
+ # The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format. It can be used to create product collections.
44
44
  attr_accessor :metadata
45
45
 
46
46
  # Timestamp representing the date and time when the SKU was created. The value is shown in the ISO 8601 format.
@@ -40,7 +40,7 @@ module VoucherifySdk
40
40
  # The HTTPS URL pointing to the .png or .jpg file that will be used to render the SKU image.
41
41
  attr_accessor :image_url
42
42
 
43
- # The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format.
43
+ # The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format. It can be used to create product collections.
44
44
  attr_accessor :metadata
45
45
 
46
46
  # Timestamp representing the date and time when the SKU was created. The value is shown in the ISO 8601 format.
@@ -31,7 +31,7 @@ module VoucherifySdk
31
31
  # A list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`. Each child SKU can have a unique value for a given attribute.
32
32
  attr_accessor :attributes
33
33
 
34
- # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format.
34
+ # The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections.
35
35
  attr_accessor :metadata
36
36
 
37
37
  # The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.
@@ -126,8 +126,8 @@ module VoucherifySdk
126
126
  def list_invalid_properties
127
127
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
128
128
  invalid_properties = Array.new
129
- if !@limit.nil? && @limit > 100
130
- invalid_properties.push('invalid value for "limit", must be smaller than or equal to 100.')
129
+ if !@limit.nil? && @limit > 50
130
+ invalid_properties.push('invalid value for "limit", must be smaller than or equal to 50.')
131
131
  end
132
132
 
133
133
  invalid_properties
@@ -137,7 +137,7 @@ module VoucherifySdk
137
137
  # @return true if the model is valid
138
138
  def valid?
139
139
  warn '[DEPRECATED] the `valid?` method is obsolete'
140
- return false if !@limit.nil? && @limit > 100
140
+ return false if !@limit.nil? && @limit > 50
141
141
  sorting_rule_validator = EnumAttributeValidator.new('String', ["BEST_DEAL", "LEAST_DEAL", "DEFAULT"])
142
142
  return false unless sorting_rule_validator.valid?(@sorting_rule)
143
143
  true
@@ -16,7 +16,7 @@ require 'time'
16
16
  module VoucherifySdk
17
17
  # Redeemable loyalty card object response
18
18
  class RedeemableLoyaltyCard
19
- # Total points incurred over the lifespan of the loyalty card.
19
+ # Total points incurred over the lifespan of the loyalty card, minus the expired points.
20
20
  attr_accessor :points
21
21
 
22
22
  # Points available for reward redemption.
@@ -16,7 +16,7 @@ require 'time'
16
16
  module VoucherifySdk
17
17
  # Object representing loyalty card parameters. Child attributes are present only if `type` is `LOYALTY_CARD`. Defaults to `null`.
18
18
  class RedeemableVoucherLoyaltyCard
19
- # Total points incurred over the lifespan of the loyalty card.
19
+ # Total points incurred over the lifespan of the loyalty card, minus the expired points.
20
20
  attr_accessor :points
21
21
 
22
22
  # Points available for reward redemption.
@@ -28,13 +28,17 @@ module VoucherifySdk
28
28
  # The amount of points that are set to expire next.
29
29
  attr_accessor :next_expiration_points
30
30
 
31
+ # Determines the number of pending points that will be added to the loyalty card after the predefined time.
32
+ attr_accessor :pending_points
33
+
31
34
  # Attribute mapping from ruby-style variable name to JSON key.
32
35
  def self.attribute_map
33
36
  {
34
37
  :'points' => :'points',
35
38
  :'balance' => :'balance',
36
39
  :'next_expiration_date' => :'next_expiration_date',
37
- :'next_expiration_points' => :'next_expiration_points'
40
+ :'next_expiration_points' => :'next_expiration_points',
41
+ :'pending_points' => :'pending_points'
38
42
  }
39
43
  end
40
44
 
@@ -49,7 +53,8 @@ module VoucherifySdk
49
53
  :'points' => :'Integer',
50
54
  :'balance' => :'Integer',
51
55
  :'next_expiration_date' => :'Date',
52
- :'next_expiration_points' => :'Integer'
56
+ :'next_expiration_points' => :'Integer',
57
+ :'pending_points' => :'Integer'
53
58
  }
54
59
  end
55
60
 
@@ -59,7 +64,8 @@ module VoucherifySdk
59
64
  :'points',
60
65
  :'balance',
61
66
  :'next_expiration_date',
62
- :'next_expiration_points'
67
+ :'next_expiration_points',
68
+ :'pending_points'
63
69
  ])
64
70
  end
65
71
 
@@ -86,6 +92,10 @@ module VoucherifySdk
86
92
  if attributes.key?(:'next_expiration_points')
87
93
  self.next_expiration_points = attributes[:'next_expiration_points']
88
94
  end
95
+
96
+ if attributes.key?(:'pending_points')
97
+ self.pending_points = attributes[:'pending_points']
98
+ end
89
99
  end
90
100
 
91
101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,7 +121,8 @@ module VoucherifySdk
111
121
  points == o.points &&
112
122
  balance == o.balance &&
113
123
  next_expiration_date == o.next_expiration_date &&
114
- next_expiration_points == o.next_expiration_points
124
+ next_expiration_points == o.next_expiration_points &&
125
+ pending_points == o.pending_points
115
126
  end
116
127
 
117
128
  # @see the `==` method
@@ -123,7 +134,7 @@ module VoucherifySdk
123
134
  # Calculates hash code according to all attributes.
124
135
  # @return [Integer] Hash code
125
136
  def hash
126
- [points, balance, next_expiration_date, next_expiration_points].hash
137
+ [points, balance, next_expiration_date, next_expiration_points, pending_points].hash
127
138
  end
128
139
 
129
140
  # Builds the object from hash