voucherify 4.1.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1429) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +14 -0
  3. data/ENDPOINTS-COVERAGE.md +868 -0
  4. data/EXAMPLES.md +112 -0
  5. data/Gemfile +6 -1
  6. data/Gemfile.lock +72 -0
  7. data/LICENSE +2 -2
  8. data/README.md +881 -867
  9. data/Rakefile +9 -4
  10. data/VoucherifySdk.gemspec +37 -0
  11. data/__tests__/README.md +35 -0
  12. data/__tests__/lib/campaigns.rb +128 -0
  13. data/__tests__/lib/config.rb +70 -0
  14. data/__tests__/lib/customers.rb +34 -0
  15. data/__tests__/lib/events.rb +24 -0
  16. data/__tests__/lib/products.rb +116 -0
  17. data/__tests__/lib/stackables.rb +59 -0
  18. data/__tests__/lib/utils.rb +5 -0
  19. data/__tests__/lib/voucherify_data.rb +95 -0
  20. data/__tests__/spec/1_products_spec.rb +101 -0
  21. data/__tests__/spec/2_campaigns_spec.rb +95 -0
  22. data/__tests__/spec/3_customers_spec.rb +24 -0
  23. data/__tests__/spec/4_publications_spec.rb +23 -0
  24. data/__tests__/spec/5_qualifications_spec.rb +27 -0
  25. data/__tests__/spec/6_validations_spec.rb +126 -0
  26. data/__tests__/spec/7_vouchers_spec.rb +40 -0
  27. data/__tests__/spec/8_events_spec.rb +16 -0
  28. data/__tests__/spec/9_redemptions_spec.rb +14 -0
  29. data/docs/Any.md +53 -0
  30. data/docs/ApplicableTo.md +21 -0
  31. data/docs/ApplicableToEffect.md +7 -0
  32. data/docs/ApplicableToResultList.md +11 -0
  33. data/docs/ArrayInner.md +51 -0
  34. data/docs/AsyncActions.md +8 -0
  35. data/docs/BusValRuleAssignment.md +16 -0
  36. data/docs/Campaign.md +37 -0
  37. data/docs/CampaignBase.md +35 -0
  38. data/docs/CampaignBaseValidityTimeframe.md +9 -0
  39. data/docs/CampaignLoyaltyCard.md +9 -0
  40. data/docs/CampaignLoyaltyCardExpirationRules.md +11 -0
  41. data/docs/CampaignLoyaltyVoucher.md +11 -0
  42. data/docs/CampaignLoyaltyVoucherRedemption.md +8 -0
  43. data/docs/CampaignVoucher.md +17 -0
  44. data/docs/CampaignVoucherRedemption.md +8 -0
  45. data/docs/CampaignsApi.md +694 -0
  46. data/docs/CampaignsCreateBase.md +23 -0
  47. data/docs/CampaignsCreateDiscountCouponsCampaign.md +25 -0
  48. data/docs/CampaignsCreateGiftCampaign.md +25 -0
  49. data/docs/CampaignsCreateGiveawayCampaign.md +26 -0
  50. data/docs/CampaignsCreateLoyaltyCampaign.md +25 -0
  51. data/docs/CampaignsCreatePromotionCampaign.md +25 -0
  52. data/docs/CampaignsCreateReferralCampaign.md +26 -0
  53. data/docs/CampaignsCreateRequestBody.md +57 -0
  54. data/docs/CampaignsCreateResponseBody.md +37 -0
  55. data/docs/CampaignsDeleteResponseBody.md +8 -0
  56. data/docs/CampaignsDisableResponseBody.md +7 -0
  57. data/docs/CampaignsEnableResponseBody.md +7 -0
  58. data/docs/CampaignsGetResponseBody.md +37 -0
  59. data/docs/CampaignsImportCreateResponseBody.md +8 -0
  60. data/docs/CampaignsImportCsvCreateResponseBody.md +8 -0
  61. data/docs/CampaignsImportVoucherItem.md +20 -0
  62. data/docs/CampaignsImportVoucherItemRedemption.md +8 -0
  63. data/docs/CampaignsImportVoucherLoyaltyCard.md +8 -0
  64. data/docs/CampaignsListResponseBody.md +11 -0
  65. data/docs/CampaignsUpdateBase.md +16 -0
  66. data/docs/CampaignsUpdateCouponCampaignBase.md +20 -0
  67. data/docs/CampaignsUpdateDiscountCouponsCampaign.md +21 -0
  68. data/docs/CampaignsUpdateGiftCampaign.md +21 -0
  69. data/docs/CampaignsUpdateGiveawayCampaign.md +23 -0
  70. data/docs/CampaignsUpdateLoyaltyCampaign.md +22 -0
  71. data/docs/CampaignsUpdatePromotionCampaign.md +16 -0
  72. data/docs/CampaignsUpdateReferralCampaign.md +22 -0
  73. data/docs/CampaignsUpdateRequestBody.md +57 -0
  74. data/docs/CampaignsUpdateResponseBody.md +37 -0
  75. data/docs/CampaignsVouchersCreateBaseRequestBody.md +13 -0
  76. data/docs/CampaignsVouchersCreateInBulkRequestBody.md +15 -0
  77. data/docs/CampaignsVouchersCreateInBulkResponseBody.md +8 -0
  78. data/docs/CampaignsVouchersCreateRequestBody.md +13 -0
  79. data/docs/CampaignsVouchersCreateResponseBody.md +37 -0
  80. data/docs/CategoriesApi.md +304 -0
  81. data/docs/CategoriesCreateRequestBody.md +9 -0
  82. data/docs/CategoriesCreateResponseBody.md +12 -0
  83. data/docs/CategoriesGetResponseBody.md +14 -0
  84. data/docs/CategoriesListResponseBody.md +11 -0
  85. data/docs/CategoriesUpdateRequestBody.md +9 -0
  86. data/docs/CategoriesUpdateResponseBody.md +13 -0
  87. data/docs/Category.md +14 -0
  88. data/docs/ClientEventsCreateRequestBody.md +12 -0
  89. data/docs/ClientEventsCreateRequestBodyLoyalty.md +8 -0
  90. data/docs/ClientEventsCreateRequestBodyReferral.md +9 -0
  91. data/docs/ClientEventsCreateResponseBody.md +12 -0
  92. data/docs/ClientQualificationsCheckEligibilityRequestBody.md +14 -0
  93. data/docs/ClientQualificationsCheckEligibilityRequestBodyOptions.md +12 -0
  94. data/docs/ClientQualificationsCheckEligibilityRequestBodyOptionsFilters.md +14 -0
  95. data/docs/ClientQualificationsCheckEligibilityResponseBody.md +11 -0
  96. data/docs/ClientRedemptionsRedeemRequestBody.md +14 -0
  97. data/docs/ClientRedemptionsRedeemRequestBodyAllOfOptions.md +8 -0
  98. data/docs/ClientRedemptionsRedeemResponseBody.md +12 -0
  99. data/docs/ClientSideApi.md +319 -0
  100. data/docs/ClientValidationsValidateRequestBody.md +14 -0
  101. data/docs/ClientValidationsValidateRequestBodyAllOfOptions.md +8 -0
  102. data/docs/ClientValidationsValidateResponseBody.md +14 -0
  103. data/docs/CodeConfig.md +13 -0
  104. data/docs/CodeConfigRequiredLengthCharsetPattern.md +13 -0
  105. data/docs/CreatePublicationBase.md +10 -0
  106. data/docs/CreatePublicationCampaign.md +9 -0
  107. data/docs/CreatePublicationWithCampaign.md +11 -0
  108. data/docs/CreatePublicationWithSpecificVoucher.md +11 -0
  109. data/docs/CustomEvent.md +15 -0
  110. data/docs/CustomEventReferral.md +10 -0
  111. data/docs/Customer.md +17 -0
  112. data/docs/CustomerActivity.md +11 -0
  113. data/docs/CustomerActivityData.md +183 -0
  114. data/docs/CustomerBase.md +15 -0
  115. data/docs/CustomerBaseAddress.md +13 -0
  116. data/docs/CustomerId.md +9 -0
  117. data/docs/CustomerLoyalty.md +10 -0
  118. data/docs/CustomerLoyaltyCampaignsValue.md +10 -0
  119. data/docs/CustomerReferrals.md +9 -0
  120. data/docs/CustomerReferralsCampaignsItem.md +12 -0
  121. data/docs/CustomerResponseDataAssets.md +8 -0
  122. data/docs/CustomerSegmentsList.md +11 -0
  123. data/docs/CustomerSummary.md +9 -0
  124. data/docs/CustomerSummaryOrders.md +12 -0
  125. data/docs/CustomerSummaryRedemptions.md +15 -0
  126. data/docs/CustomerSummaryRedemptionsGift.md +9 -0
  127. data/docs/CustomerSummaryRedemptionsLoyaltyCard.md +9 -0
  128. data/docs/CustomerWithSummaryLoyaltyReferrals.md +25 -0
  129. data/docs/CustomersActivitiesListResponseBody.md +11 -0
  130. data/docs/CustomersApi.md +771 -0
  131. data/docs/CustomersCreateRequestBody.md +17 -0
  132. data/docs/CustomersCreateResponseBody.md +25 -0
  133. data/docs/CustomersGetResponseBody.md +25 -0
  134. data/docs/CustomersImportCsvCreateResponseBody.md +8 -0
  135. data/docs/CustomersListResponseBody.md +12 -0
  136. data/docs/CustomersMetadataUpdateInBulkRequestBody.md +9 -0
  137. data/docs/CustomersMetadataUpdateInBulkResponseBody.md +8 -0
  138. data/docs/CustomersPermanentDeletionCreateResponseBody.md +14 -0
  139. data/docs/CustomersPermanentDeletionCreateResponseBodyDataJson.md +14 -0
  140. data/docs/CustomersSegmentsListResponseBody.md +11 -0
  141. data/docs/CustomersUpdateInBulkRequestBody.md +16 -0
  142. data/docs/CustomersUpdateInBulkResponseBody.md +8 -0
  143. data/docs/CustomersUpdateRequestBody.md +15 -0
  144. data/docs/CustomersUpdateResponseBody.md +25 -0
  145. data/docs/Discount.md +55 -0
  146. data/docs/DiscountAmount.md +13 -0
  147. data/docs/DiscountAmountVouchersEffectTypes.md +7 -0
  148. data/docs/DiscountCouponsCampaignVoucher.md +11 -0
  149. data/docs/DiscountFixed.md +12 -0
  150. data/docs/DiscountFixedVouchersEffectTypes.md +7 -0
  151. data/docs/DiscountPercent.md +14 -0
  152. data/docs/DiscountPercentVouchersEffectTypes.md +7 -0
  153. data/docs/DiscountUnit.md +15 -0
  154. data/docs/DiscountUnitMultiple.md +10 -0
  155. data/docs/DiscountUnitMultipleOneUnit.md +13 -0
  156. data/docs/DiscountUnitVouchersEffectTypes.md +7 -0
  157. data/docs/EarningRule.md +24 -0
  158. data/docs/EarningRuleBase.md +21 -0
  159. data/docs/EarningRuleBaseCustomEvent.md +8 -0
  160. data/docs/EarningRuleBaseLoyalty.md +49 -0
  161. data/docs/EarningRuleBaseSegment.md +8 -0
  162. data/docs/EarningRuleBaseSource.md +10 -0
  163. data/docs/EarningRuleBaseValidityTimeframe.md +9 -0
  164. data/docs/EarningRuleEvent.md +7 -0
  165. data/docs/EarningRuleFixed.md +9 -0
  166. data/docs/EarningRuleProportional.md +53 -0
  167. data/docs/EarningRuleProportionalCustomEvent.md +10 -0
  168. data/docs/EarningRuleProportionalCustomEventCustomEvent.md +8 -0
  169. data/docs/EarningRuleProportionalCustomEventCustomEventMetadata.md +10 -0
  170. data/docs/EarningRuleProportionalCustomerMetadata.md +10 -0
  171. data/docs/EarningRuleProportionalCustomerMetadataCustomer.md +8 -0
  172. data/docs/EarningRuleProportionalCustomerMetadataCustomerMetadata.md +10 -0
  173. data/docs/EarningRuleProportionalOrder.md +51 -0
  174. data/docs/EarningRuleProportionalOrderAmount.md +10 -0
  175. data/docs/EarningRuleProportionalOrderAmountOrder.md +8 -0
  176. data/docs/EarningRuleProportionalOrderAmountOrderAmount.md +9 -0
  177. data/docs/EarningRuleProportionalOrderItems.md +51 -0
  178. data/docs/EarningRuleProportionalOrderItemsAmount.md +10 -0
  179. data/docs/EarningRuleProportionalOrderItemsAmountOrderItems.md +8 -0
  180. data/docs/EarningRuleProportionalOrderItemsAmountOrderItemsAmount.md +11 -0
  181. data/docs/EarningRuleProportionalOrderItemsQuantity.md +10 -0
  182. data/docs/EarningRuleProportionalOrderItemsQuantityOrderItems.md +8 -0
  183. data/docs/EarningRuleProportionalOrderItemsSubtotalAmount.md +10 -0
  184. data/docs/EarningRuleProportionalOrderItemsSubtotalAmountOrderItems.md +8 -0
  185. data/docs/EarningRuleProportionalOrderMetadata.md +10 -0
  186. data/docs/EarningRuleProportionalOrderMetadataOrder.md +8 -0
  187. data/docs/EarningRuleProportionalOrderMetadataOrderMetadata.md +10 -0
  188. data/docs/EarningRuleProportionalOrderTotalAmount.md +10 -0
  189. data/docs/EarningRuleProportionalOrderTotalAmountOrder.md +8 -0
  190. data/docs/Error.md +14 -0
  191. data/docs/EventCustomerActiveCampaignFailed.md +10 -0
  192. data/docs/EventCustomerActiveCampaignRecovered.md +10 -0
  193. data/docs/EventCustomerActiveCampaignSent.md +10 -0
  194. data/docs/EventCustomerBatchFailed.md +10 -0
  195. data/docs/EventCustomerBatchRecovered.md +10 -0
  196. data/docs/EventCustomerBatchSent.md +10 -0
  197. data/docs/EventCustomerBrazeFailed.md +10 -0
  198. data/docs/EventCustomerBrazeRecovered.md +10 -0
  199. data/docs/EventCustomerBrazeSent.md +10 -0
  200. data/docs/EventCustomerConfirmed.md +9 -0
  201. data/docs/EventCustomerConfirmedUnconfirmedCustomer.md +8 -0
  202. data/docs/EventCustomerConsents.md +9 -0
  203. data/docs/EventCustomerConsentsGiven.md +9 -0
  204. data/docs/EventCustomerConsentsRevoked.md +9 -0
  205. data/docs/EventCustomerCreated.md +8 -0
  206. data/docs/EventCustomerCustomEvent.md +8 -0
  207. data/docs/EventCustomerDeleted.md +8 -0
  208. data/docs/EventCustomerEmailFailed.md +10 -0
  209. data/docs/EventCustomerEmailRecovered.md +10 -0
  210. data/docs/EventCustomerEmailSent.md +10 -0
  211. data/docs/EventCustomerFailed.md +10 -0
  212. data/docs/EventCustomerGiftVoucherBalanceAdded.md +12 -0
  213. data/docs/EventCustomerIntercomFailed.md +10 -0
  214. data/docs/EventCustomerIntercomRecovered.md +10 -0
  215. data/docs/EventCustomerIntercomSent.md +10 -0
  216. data/docs/EventCustomerKlaviyoFailed.md +10 -0
  217. data/docs/EventCustomerKlaviyoRecovered.md +10 -0
  218. data/docs/EventCustomerKlaviyoSent.md +10 -0
  219. data/docs/EventCustomerLoyaltyCardPointsAdded.md +12 -0
  220. data/docs/EventCustomerLoyaltyCardPointsTransferred.md +14 -0
  221. data/docs/EventCustomerLoyaltyTierBase.md +9 -0
  222. data/docs/EventCustomerLoyaltyTierDowngraded.md +12 -0
  223. data/docs/EventCustomerLoyaltyTierExpirationChanged.md +12 -0
  224. data/docs/EventCustomerLoyaltyTierJoined.md +11 -0
  225. data/docs/EventCustomerLoyaltyTierLeft.md +11 -0
  226. data/docs/EventCustomerLoyaltyTierProlonged.md +11 -0
  227. data/docs/EventCustomerLoyaltyTierUpgraded.md +12 -0
  228. data/docs/EventCustomerLoyaltyUpdated.md +11 -0
  229. data/docs/EventCustomerMailchimpFailed.md +10 -0
  230. data/docs/EventCustomerMailchimpRecovered.md +10 -0
  231. data/docs/EventCustomerMailchimpSent.md +10 -0
  232. data/docs/EventCustomerOrder.md +11 -0
  233. data/docs/EventCustomerOrderCanceled.md +11 -0
  234. data/docs/EventCustomerOrderCreated.md +11 -0
  235. data/docs/EventCustomerOrderFulfilled.md +11 -0
  236. data/docs/EventCustomerOrderPaid.md +11 -0
  237. data/docs/EventCustomerOrderProcessing.md +11 -0
  238. data/docs/EventCustomerOrderUpdated.md +11 -0
  239. data/docs/EventCustomerPublicationFailed.md +10 -0
  240. data/docs/EventCustomerPublicationSucceeded.md +10 -0
  241. data/docs/EventCustomerRecovered.md +10 -0
  242. data/docs/EventCustomerRedemption.md +14 -0
  243. data/docs/EventCustomerRedemptionFailed.md +14 -0
  244. data/docs/EventCustomerRedemptionRollbackFailed.md +15 -0
  245. data/docs/EventCustomerRedemptionRollbackSucceeded.md +15 -0
  246. data/docs/EventCustomerRedemptionSucceeded.md +14 -0
  247. data/docs/EventCustomerReferred.md +13 -0
  248. data/docs/EventCustomerRewardRedemptions.md +16 -0
  249. data/docs/EventCustomerRewardRedemptionsCompleted.md +16 -0
  250. data/docs/EventCustomerRewardRedemptionsCreated.md +16 -0
  251. data/docs/EventCustomerRewardRedemptionsPending.md +16 -0
  252. data/docs/EventCustomerRewardRedemptionsRolledBack.md +16 -0
  253. data/docs/EventCustomerRewarded.md +17 -0
  254. data/docs/EventCustomerRewardedLoyaltyPoints.md +16 -0
  255. data/docs/EventCustomerSegmentEntered.md +9 -0
  256. data/docs/EventCustomerSegmentLeft.md +9 -0
  257. data/docs/EventCustomerSent.md +10 -0
  258. data/docs/EventCustomerShopifyFailed.md +10 -0
  259. data/docs/EventCustomerShopifyRecovered.md +10 -0
  260. data/docs/EventCustomerShopifySent.md +10 -0
  261. data/docs/EventCustomerSmsFailed.md +10 -0
  262. data/docs/EventCustomerSmsRecovered.md +10 -0
  263. data/docs/EventCustomerSmsSent.md +10 -0
  264. data/docs/EventCustomerUpdated.md +8 -0
  265. data/docs/EventCustomerValidationFailed.md +9 -0
  266. data/docs/EventCustomerValidationSucceeded.md +9 -0
  267. data/docs/EventCustomerVoucherDeleted.md +10 -0
  268. data/docs/EventCustomerVouchersLoyaltyPointsExpired.md +13 -0
  269. data/docs/EventsApi.md +68 -0
  270. data/docs/EventsCreateRequestBody.md +12 -0
  271. data/docs/EventsCreateResponseBody.md +12 -0
  272. data/docs/Export.md +59 -0
  273. data/docs/ExportBase.md +14 -0
  274. data/docs/ExportBaseResult.md +8 -0
  275. data/docs/ExportCustomer.md +16 -0
  276. data/docs/ExportCustomerBase.md +9 -0
  277. data/docs/ExportCustomerBaseParameters.md +10 -0
  278. data/docs/ExportCustomerFields.md +7 -0
  279. data/docs/ExportCustomerFilters.md +38 -0
  280. data/docs/ExportCustomerOrder.md +7 -0
  281. data/docs/ExportCustomerScheduled.md +16 -0
  282. data/docs/ExportOrder.md +16 -0
  283. data/docs/ExportOrderBase.md +9 -0
  284. data/docs/ExportOrderFields.md +7 -0
  285. data/docs/ExportOrderFilters.md +21 -0
  286. data/docs/ExportOrderOrder.md +7 -0
  287. data/docs/ExportOrderScheduled.md +16 -0
  288. data/docs/ExportPointsExpiration.md +16 -0
  289. data/docs/ExportPointsExpirationBase.md +9 -0
  290. data/docs/ExportPointsExpirationBaseParameters.md +10 -0
  291. data/docs/ExportPointsExpirationFields.md +7 -0
  292. data/docs/ExportPointsExpirationFilters.md +10 -0
  293. data/docs/ExportPointsExpirationOrder.md +7 -0
  294. data/docs/ExportPointsExpirationScheduled.md +16 -0
  295. data/docs/ExportPublication.md +16 -0
  296. data/docs/ExportPublicationBase.md +9 -0
  297. data/docs/ExportPublicationBaseParameters.md +10 -0
  298. data/docs/ExportPublicationFields.md +7 -0
  299. data/docs/ExportPublicationFilters.md +16 -0
  300. data/docs/ExportPublicationOrder.md +7 -0
  301. data/docs/ExportPublicationScheduled.md +16 -0
  302. data/docs/ExportRedemption.md +16 -0
  303. data/docs/ExportRedemptionBase.md +9 -0
  304. data/docs/ExportRedemptionBaseParameters.md +10 -0
  305. data/docs/ExportRedemptionFields.md +7 -0
  306. data/docs/ExportRedemptionFilters.md +25 -0
  307. data/docs/ExportRedemptionOrder.md +7 -0
  308. data/docs/ExportRedemptionScheduled.md +16 -0
  309. data/docs/ExportScheduledBase.md +14 -0
  310. data/docs/ExportVoucher.md +16 -0
  311. data/docs/ExportVoucherBase.md +9 -0
  312. data/docs/ExportVoucherBaseParameters.md +10 -0
  313. data/docs/ExportVoucherFields.md +7 -0
  314. data/docs/ExportVoucherFilters.md +38 -0
  315. data/docs/ExportVoucherOrder.md +7 -0
  316. data/docs/ExportVoucherScheduled.md +16 -0
  317. data/docs/ExportVoucherTransactions.md +16 -0
  318. data/docs/ExportVoucherTransactionsBase.md +9 -0
  319. data/docs/ExportVoucherTransactionsFields.md +7 -0
  320. data/docs/ExportVoucherTransactionsFilters.md +11 -0
  321. data/docs/ExportVoucherTransactionsOrder.md +7 -0
  322. data/docs/ExportVoucherTransactionsScheduled.md +16 -0
  323. data/docs/ExportsApi.md +301 -0
  324. data/docs/ExportsCreateRequestBody.md +59 -0
  325. data/docs/ExportsCreateResponseBody.md +59 -0
  326. data/docs/ExportsGetResponseBody.md +16 -0
  327. data/docs/ExportsListResponseBody.md +11 -0
  328. data/docs/FieldConditions.md +8 -0
  329. data/docs/FilterConditionsString.md +15 -0
  330. data/docs/FiltersCondition.md +32 -0
  331. data/docs/Gift.md +10 -0
  332. data/docs/GiftCampaignVoucher.md +11 -0
  333. data/docs/GiveawayCampaignVoucher.md +12 -0
  334. data/docs/InapplicableTo.md +21 -0
  335. data/docs/InapplicableToResultList.md +11 -0
  336. data/docs/Junction.md +7 -0
  337. data/docs/ListPublicationsItemBase.md +17 -0
  338. data/docs/ListPublicationsItemInvalid.md +20 -0
  339. data/docs/ListPublicationsItemValidMultipleVouchers.md +19 -0
  340. data/docs/ListPublicationsItemValidSingleVoucher.md +19 -0
  341. data/docs/ListPublicationsItemVoucher.md +14 -0
  342. data/docs/LoyaltiesApi.md +1643 -0
  343. data/docs/LoyaltiesDeleteResponseBody.md +8 -0
  344. data/docs/LoyaltiesEarningRulesDisableResponseBody.md +23 -0
  345. data/docs/LoyaltiesEarningRulesEnableResponseBody.md +23 -0
  346. data/docs/LoyaltiesEarningRulesGetResponseBody.md +24 -0
  347. data/docs/LoyaltiesLoyaltyTierReward.md +10 -0
  348. data/docs/LoyaltiesMembersBalanceUpdateRequestBody.md +12 -0
  349. data/docs/LoyaltiesMembersBalanceUpdateResponseBody.md +14 -0
  350. data/docs/LoyaltiesMembersBalanceUpdateResponseBodyRelatedObject.md +9 -0
  351. data/docs/LoyaltiesMembersPointsExpirationListResponseBody.md +11 -0
  352. data/docs/LoyaltiesMembersPointsExpirationListResponseBodyDataItem.md +16 -0
  353. data/docs/LoyaltiesMembersPointsExpirationListResponseBodyDataItemBucket.md +8 -0
  354. data/docs/LoyaltiesMembersRedemptionRedeemRequestBody.md +10 -0
  355. data/docs/LoyaltiesMembersRedemptionRedeemRequestBodyReward.md +9 -0
  356. data/docs/LoyaltiesMembersRedemptionRedeemResponseBody.md +30 -0
  357. data/docs/LoyaltiesMembersRewardsListResponseBody.md +11 -0
  358. data/docs/LoyaltiesMembersRewardsListResponseBodyDataItem.md +10 -0
  359. data/docs/LoyaltiesMembersTiersListResponseBody.md +11 -0
  360. data/docs/LoyaltiesMembersTransactionsExportCreateRequestBody.md +8 -0
  361. data/docs/LoyaltiesMembersTransactionsExportCreateRequestBodyParameters.md +10 -0
  362. data/docs/LoyaltiesMembersTransactionsExportCreateResponseBody.md +16 -0
  363. data/docs/LoyaltiesMembersTransactionsListResponseBody.md +11 -0
  364. data/docs/LoyaltiesMembersTransfersCreateResponseBody.md +30 -0
  365. data/docs/LoyaltiesMembersTransfersCreateResponseBodyAssets.md +9 -0
  366. data/docs/LoyaltiesMembersTransfersCreateResponseBodyAssetsBarcode.md +9 -0
  367. data/docs/LoyaltiesMembersTransfersCreateResponseBodyAssetsQr.md +9 -0
  368. data/docs/LoyaltiesMembersTransfersCreateResponseBodyLoyaltyCard.md +11 -0
  369. data/docs/LoyaltiesMembersTransfersCreateResponseBodyPublish.md +11 -0
  370. data/docs/LoyaltiesMembersTransfersCreateResponseBodyRedemption.md +13 -0
  371. data/docs/LoyaltiesMembersTransfersCreateResponseBodyValidityTimeframe.md +9 -0
  372. data/docs/LoyaltiesRewardAssignmentsGetResponseBody.md +15 -0
  373. data/docs/LoyaltiesRewardAssignmentsRewardGetResponseBody.md +18 -0
  374. data/docs/LoyaltiesRewardsGetResponseBody.md +15 -0
  375. data/docs/LoyaltiesTiersCreateInBulkRequestBodyItem.md +12 -0
  376. data/docs/LoyaltiesTiersEarningRulesListResponseBody.md +11 -0
  377. data/docs/LoyaltiesTiersGetResponseBody.md +19 -0
  378. data/docs/LoyaltiesTiersListResponseBody.md +11 -0
  379. data/docs/LoyaltiesTiersRewardsListResponseBody.md +11 -0
  380. data/docs/LoyaltiesTransferPoints.md +11 -0
  381. data/docs/LoyaltyCardTransaction.md +17 -0
  382. data/docs/LoyaltyCardTransactionsType.md +7 -0
  383. data/docs/LoyaltyTier.md +19 -0
  384. data/docs/LoyaltyTierAllOfConfig.md +8 -0
  385. data/docs/LoyaltyTierAllOfConfigPoints.md +9 -0
  386. data/docs/LoyaltyTierBase.md +11 -0
  387. data/docs/LoyaltyTierBasePoints.md +9 -0
  388. data/docs/LoyaltyTierExpiration.md +14 -0
  389. data/docs/LoyaltyTiersExpirationAll.md +11 -0
  390. data/docs/LoyaltyTiersExpirationAllExpirationDate.md +10 -0
  391. data/docs/LoyaltyTiersExpirationAllExpirationDateRounding.md +11 -0
  392. data/docs/LoyaltyTiersExpirationAllStartDate.md +8 -0
  393. data/docs/LuckyDraw.md +10 -0
  394. data/docs/MappingFixed.md +9 -0
  395. data/docs/MappingMultiply.md +9 -0
  396. data/docs/MappingPoints.md +49 -0
  397. data/docs/Order.md +19 -0
  398. data/docs/OrderBase.md +17 -0
  399. data/docs/OrderCalculated.md +29 -0
  400. data/docs/OrderCalculatedBase.md +27 -0
  401. data/docs/OrderCalculatedCustomer.md +49 -0
  402. data/docs/OrderCalculatedNoCustomerData.md +29 -0
  403. data/docs/OrderCalculatedReferrer.md +49 -0
  404. data/docs/OrderItem.md +21 -0
  405. data/docs/OrderItemCalculated.md +25 -0
  406. data/docs/OrderItemProduct.md +13 -0
  407. data/docs/OrderItemSku.md +12 -0
  408. data/docs/OrderRedemptions.md +15 -0
  409. data/docs/OrdersApi.md +377 -0
  410. data/docs/OrdersCreateRequestBody.md +19 -0
  411. data/docs/OrdersCreateResponseBody.md +29 -0
  412. data/docs/OrdersExportCreateRequestBody.md +8 -0
  413. data/docs/OrdersExportCreateRequestBodyParameters.md +10 -0
  414. data/docs/OrdersExportCreateResponseBody.md +16 -0
  415. data/docs/OrdersGetResponseBody.md +29 -0
  416. data/docs/OrdersImportCreateRequestBodyItem.md +18 -0
  417. data/docs/OrdersImportCreateResponseBody.md +8 -0
  418. data/docs/OrdersListResponseBody.md +11 -0
  419. data/docs/OrdersUpdateRequestBody.md +17 -0
  420. data/docs/OrdersUpdateResponseBody.md +29 -0
  421. data/docs/ParameterCampaignType.md +7 -0
  422. data/docs/ParameterCreatedBeforeAfter.md +9 -0
  423. data/docs/ParameterExpandListCampaigns.md +7 -0
  424. data/docs/ParameterFiltersListRedemptions.md +17 -0
  425. data/docs/ParameterFiltersListRedemptionsCampaignName.md +9 -0
  426. data/docs/ParameterFiltersListRedemptionsCustomerId.md +9 -0
  427. data/docs/ParameterFiltersListRedemptionsFailureCode.md +9 -0
  428. data/docs/ParameterFiltersListRedemptionsObject.md +9 -0
  429. data/docs/ParameterFiltersListRedemptionsParentRedemptionId.md +9 -0
  430. data/docs/ParameterFiltersListRedemptionsRelatedObjectId.md +9 -0
  431. data/docs/ParameterFiltersListRedemptionsRelatedObjectParentId.md +9 -0
  432. data/docs/ParameterFiltersListRedemptionsResult.md +9 -0
  433. data/docs/ParameterFiltersListRedemptionsUserLogin.md +9 -0
  434. data/docs/ParameterFiltersListRedemptionsVoucherCode.md +9 -0
  435. data/docs/ParameterOrder.md +7 -0
  436. data/docs/ParameterOrderListAllPromotionStacks.md +7 -0
  437. data/docs/ParameterOrderListCampaigns.md +7 -0
  438. data/docs/ParameterOrderListCustomers.md +7 -0
  439. data/docs/ParameterOrderListExports.md +7 -0
  440. data/docs/ParameterOrderListLoyaltyTiers.md +7 -0
  441. data/docs/ParameterOrderListOrders.md +7 -0
  442. data/docs/ParameterOrderListPublications.md +7 -0
  443. data/docs/ParameterOrderListRedemptions.md +7 -0
  444. data/docs/ParameterOrderListValidationRuleAssignments.md +7 -0
  445. data/docs/ParameterOrderListValidationRules.md +7 -0
  446. data/docs/ParameterResultListPublications.md +7 -0
  447. data/docs/ParameterUpdatedBeforeAfter.md +9 -0
  448. data/docs/ParameterVoucherTypeListPublications.md +7 -0
  449. data/docs/PointsExpirationTypes.md +7 -0
  450. data/docs/Product.md +18 -0
  451. data/docs/ProductCollectionsApi.md +319 -0
  452. data/docs/ProductCollectionsCreateDynamicRequestBody.md +10 -0
  453. data/docs/ProductCollectionsCreateDynamicRequestBodyFilter.md +20 -0
  454. data/docs/ProductCollectionsCreateDynamicRequestBodyProductsItem.md +10 -0
  455. data/docs/ProductCollectionsCreateRequestBody.md +49 -0
  456. data/docs/ProductCollectionsCreateResponseBody.md +14 -0
  457. data/docs/ProductCollectionsCreateStaticRequestBody.md +10 -0
  458. data/docs/ProductCollectionsGetResponseBody.md +14 -0
  459. data/docs/ProductCollectionsItem.md +14 -0
  460. data/docs/ProductCollectionsItemProductsItem.md +10 -0
  461. data/docs/ProductCollectionsList.md +11 -0
  462. data/docs/ProductCollectionsListResponseBody.md +11 -0
  463. data/docs/ProductCollectionsProductsList.md +11 -0
  464. data/docs/ProductCollectionsProductsListProductsItem.md +49 -0
  465. data/docs/ProductCollectionsProductsListResponseBody.md +11 -0
  466. data/docs/ProductWithoutSkus.md +17 -0
  467. data/docs/ProductsApi.md +883 -0
  468. data/docs/ProductsCreateRequestBody.md +14 -0
  469. data/docs/ProductsCreateResponseBody.md +18 -0
  470. data/docs/ProductsGetResponseBody.md +18 -0
  471. data/docs/ProductsImportCsvCreateResponseBody.md +8 -0
  472. data/docs/ProductsListResponseBody.md +11 -0
  473. data/docs/ProductsMetadataUpdateInBulkRequestBody.md +9 -0
  474. data/docs/ProductsMetadataUpdateInBulkResponseBody.md +8 -0
  475. data/docs/ProductsSkusCreateRequestBody.md +15 -0
  476. data/docs/ProductsSkusCreateResponseBody.md +19 -0
  477. data/docs/ProductsSkusListResponseBody.md +11 -0
  478. data/docs/ProductsSkusUpdateRequestBody.md +13 -0
  479. data/docs/ProductsSkusUpdateResponseBody.md +19 -0
  480. data/docs/ProductsUpdateInBulkRequestBody.md +13 -0
  481. data/docs/ProductsUpdateInBulkResponseBody.md +8 -0
  482. data/docs/ProductsUpdateRequestBody.md +12 -0
  483. data/docs/ProductsUpdateResponseBody.md +18 -0
  484. data/docs/PromotionStack.md +16 -0
  485. data/docs/PromotionStackBase.md +9 -0
  486. data/docs/PromotionStackBaseTiers.md +9 -0
  487. data/docs/PromotionTier.md +28 -0
  488. data/docs/PromotionTierAction.md +8 -0
  489. data/docs/PromotionTierCampaign.md +15 -0
  490. data/docs/PromotionTierCampaignValidityTimeframe.md +9 -0
  491. data/docs/PromotionTierCreateParams.md +20 -0
  492. data/docs/PromotionTierSummary.md +9 -0
  493. data/docs/PromotionTierSummaryOrders.md +9 -0
  494. data/docs/PromotionTierSummaryRedemptions.md +8 -0
  495. data/docs/PromotionTierValidityTimeframe.md +9 -0
  496. data/docs/PromotionTiersList.md +12 -0
  497. data/docs/PromotionsApi.md +678 -0
  498. data/docs/PromotionsStacksCreateRequestBody.md +10 -0
  499. data/docs/PromotionsStacksCreateResponseBody.md +15 -0
  500. data/docs/PromotionsStacksGetResponseBody.md +16 -0
  501. data/docs/PromotionsStacksListResponseBody.md +11 -0
  502. data/docs/PromotionsStacksUpdateRequestBody.md +10 -0
  503. data/docs/PromotionsStacksUpdateRequestBodyTiers.md +9 -0
  504. data/docs/PromotionsStacksUpdateResponseBody.md +16 -0
  505. data/docs/PromotionsTiersDisableResponseBody.md +28 -0
  506. data/docs/PromotionsTiersEnableResponseBody.md +28 -0
  507. data/docs/PromotionsTiersGetResponseBody.md +28 -0
  508. data/docs/PromotionsTiersListResponseBody.md +12 -0
  509. data/docs/PropertiesForLoyaltyCampaignOptions.md +8 -0
  510. data/docs/PublicationsApi.md +222 -0
  511. data/docs/PublicationsCreateBaseResponseBody.md +18 -0
  512. data/docs/PublicationsCreateRequestBody.md +49 -0
  513. data/docs/PublicationsCreateResponseBody.md +49 -0
  514. data/docs/PublicationsCreateVoucherResponseBody.md +19 -0
  515. data/docs/PublicationsCreateVouchersResponseBody.md +19 -0
  516. data/docs/PublicationsListResponseBody.md +11 -0
  517. data/docs/PublicationsListResponseBodyPublicationsItem.md +51 -0
  518. data/docs/QualificationsApi.md +68 -0
  519. data/docs/QualificationsCheckEligibilityRequestBody.md +14 -0
  520. data/docs/QualificationsCheckEligibilityResponseBody.md +11 -0
  521. data/docs/QualificationsFieldConditions.md +8 -0
  522. data/docs/QualificationsFiltersCondition.md +13 -0
  523. data/docs/QualificationsOption.md +12 -0
  524. data/docs/QualificationsOptionFilters.md +14 -0
  525. data/docs/QualificationsOptionFiltersResourceType.md +8 -0
  526. data/docs/QualificationsOptionFiltersResourceTypeConditions.md +11 -0
  527. data/docs/QualificationsRedeemable.md +23 -0
  528. data/docs/QualificationsRedeemableBase.md +22 -0
  529. data/docs/QualificationsRedeemables.md +13 -0
  530. data/docs/QualificationsStackingRules.md +12 -0
  531. data/docs/RedeemGiftCard.md +10 -0
  532. data/docs/RedeemGiftCardAllOfGift.md +8 -0
  533. data/docs/RedeemLoyaltyCard.md +10 -0
  534. data/docs/RedeemLoyaltyCardAllOfReward.md +9 -0
  535. data/docs/RedeemPromotionStack.md +9 -0
  536. data/docs/RedeemPromotionTier.md +9 -0
  537. data/docs/RedeemVoucher.md +9 -0
  538. data/docs/RedeemableGift.md +9 -0
  539. data/docs/RedeemableLoyaltyCard.md +12 -0
  540. data/docs/RedeemableResult.md +11 -0
  541. data/docs/RedeemableResultGiftCard.md +8 -0
  542. data/docs/RedeemableResultGiftCardGift.md +8 -0
  543. data/docs/RedeemableResultLoyaltyCard.md +8 -0
  544. data/docs/RedeemableResultLoyaltyCardLoyaltyCard.md +8 -0
  545. data/docs/RedeemableResultPromotionStack.md +8 -0
  546. data/docs/RedeemableResultPromotionTier.md +8 -0
  547. data/docs/RedeemableResultPromotionTierDiscount.md +55 -0
  548. data/docs/RedeemableResultVoucherCode.md +8 -0
  549. data/docs/Redemption.md +30 -0
  550. data/docs/RedemptionChannel.md +9 -0
  551. data/docs/RedemptionGift.md +8 -0
  552. data/docs/RedemptionInternal.md +34 -0
  553. data/docs/RedemptionInternalRelatedRedemptions.md +9 -0
  554. data/docs/RedemptionInternalRelatedRedemptionsItem.md +9 -0
  555. data/docs/RedemptionInternalRelatedRedemptionsRollbacksItem.md +9 -0
  556. data/docs/RedemptionLoyaltyCard.md +8 -0
  557. data/docs/RedemptionRelatedRedemptions.md +9 -0
  558. data/docs/RedemptionRelatedRedemptionsItem.md +9 -0
  559. data/docs/RedemptionRelatedRedemptionsRollbacksItem.md +9 -0
  560. data/docs/RedemptionRewardResult.md +20 -0
  561. data/docs/RedemptionRewardResultParameters.md +10 -0
  562. data/docs/RedemptionRewardResultParametersCampaign.md +10 -0
  563. data/docs/RedemptionRewardResultParametersCoin.md +9 -0
  564. data/docs/RedemptionRewardResultParametersProduct.md +9 -0
  565. data/docs/RedemptionRewardResultProduct.md +18 -0
  566. data/docs/RedemptionRewardResultSku.md +19 -0
  567. data/docs/RedemptionRewardResultVoucher.md +37 -0
  568. data/docs/RedemptionRollback.md +31 -0
  569. data/docs/RedemptionRollbackRelatedRedemptions.md +9 -0
  570. data/docs/RedemptionRollbackRelatedRedemptionsItem.md +9 -0
  571. data/docs/RedemptionRollbackRelatedRedemptionsRollbacksItem.md +9 -0
  572. data/docs/RedemptionsApi.md +395 -0
  573. data/docs/RedemptionsGetResponseBody.md +49 -0
  574. data/docs/RedemptionsListResponseBody.md +11 -0
  575. data/docs/RedemptionsListResponseBodyRedemptionsItem.md +49 -0
  576. data/docs/RedemptionsRedeemRequestBody.md +14 -0
  577. data/docs/RedemptionsRedeemResponseBody.md +12 -0
  578. data/docs/RedemptionsRollbackCreateRequestBody.md +12 -0
  579. data/docs/RedemptionsRollbackCreateResponseBody.md +31 -0
  580. data/docs/RedemptionsRollbacksCreateRequestBody.md +12 -0
  581. data/docs/RedemptionsRollbacksCreateResponseBody.md +10 -0
  582. data/docs/ReferralCampaignVoucher.md +12 -0
  583. data/docs/ReferralProgram.md +10 -0
  584. data/docs/ReferralProgramCustomEvent.md +9 -0
  585. data/docs/ReferralProgramRefereeReward.md +10 -0
  586. data/docs/ReferralProgramRefereeRewardRelatedObjectParent.md +10 -0
  587. data/docs/Referrer.md +17 -0
  588. data/docs/ReferrerId.md +9 -0
  589. data/docs/ReferrerWithSummaryLoyaltyReferrals.md +25 -0
  590. data/docs/ResourceTypes.md +7 -0
  591. data/docs/Reward.md +18 -0
  592. data/docs/RewardAssignment.md +15 -0
  593. data/docs/RewardAssignmentBase.md +14 -0
  594. data/docs/RewardAssignmentParameters.md +8 -0
  595. data/docs/RewardAssignmentParametersParameters.md +8 -0
  596. data/docs/RewardAssignmentParametersParametersLoyalty.md +8 -0
  597. data/docs/RewardAssignmentsCreateCoinRewardRequestBody.md +9 -0
  598. data/docs/RewardAssignmentsCreateDigitalOrMaterialRewardRequestBody.md +9 -0
  599. data/docs/RewardAssignmentsCreateDigitalOrMaterialRewardRequestBodyParameters.md +8 -0
  600. data/docs/RewardAssignmentsCreateDigitalOrMaterialRewardRequestBodyParametersLoyalty.md +8 -0
  601. data/docs/RewardAttributes.md +9 -0
  602. data/docs/RewardType.md +51 -0
  603. data/docs/RewardTypeCampaign.md +8 -0
  604. data/docs/RewardTypeCampaignCampaign.md +10 -0
  605. data/docs/RewardTypeCoin.md +8 -0
  606. data/docs/RewardTypeCoinCoin.md +9 -0
  607. data/docs/RewardTypeMaterial.md +8 -0
  608. data/docs/RewardTypeMaterialProduct.md +9 -0
  609. data/docs/RewardsApi.md +379 -0
  610. data/docs/RewardsAssignmentsCreateRequestBody.md +49 -0
  611. data/docs/RewardsAssignmentsCreateResponseBody.md +15 -0
  612. data/docs/RewardsAssignmentsGetResponseBody.md +15 -0
  613. data/docs/RewardsAssignmentsListResponseBody.md +11 -0
  614. data/docs/RewardsAssignmentsUpdateRequestBody.md +8 -0
  615. data/docs/RewardsAssignmentsUpdateRequestBodyParameters.md +8 -0
  616. data/docs/RewardsAssignmentsUpdateRequestBodyParametersLoyalty.md +8 -0
  617. data/docs/RewardsAssignmentsUpdateResponseBody.md +15 -0
  618. data/docs/SchemaThatContainsUniquePropertiesForPromotionCampaignPromotion.md +8 -0
  619. data/docs/SegmentsApi.md +65 -0
  620. data/docs/Session.md +11 -0
  621. data/docs/SimpleCampaign.md +20 -0
  622. data/docs/SimpleConsent.md +10 -0
  623. data/docs/SimpleCustomer.md +13 -0
  624. data/docs/SimpleCustomerRequiredObjectType.md +13 -0
  625. data/docs/SimpleOrder.md +23 -0
  626. data/docs/SimpleOrderItem.md +18 -0
  627. data/docs/SimpleProduct.md +10 -0
  628. data/docs/SimpleProductDiscountUnit.md +10 -0
  629. data/docs/SimplePromotionTier.md +11 -0
  630. data/docs/SimplePromotionTierCampaign.md +8 -0
  631. data/docs/SimpleRedemption.md +20 -0
  632. data/docs/SimpleRedemptionRewardResult.md +20 -0
  633. data/docs/SimpleReferralTier.md +11 -0
  634. data/docs/SimpleSegment.md +10 -0
  635. data/docs/SimpleSku.md +10 -0
  636. data/docs/SimpleSkuDiscountUnit.md +10 -0
  637. data/docs/SimpleVoucher.md +20 -0
  638. data/docs/Sku.md +19 -0
  639. data/docs/SkuWithProduct.md +20 -0
  640. data/docs/SkusGetResponseBody.md +19 -0
  641. data/docs/SkusImportCsvCreateResponseBody.md +8 -0
  642. data/docs/SkusList.md +11 -0
  643. data/docs/SkusListForProduct.md +11 -0
  644. data/docs/StackableDiscountsApi.md +412 -0
  645. data/docs/StackableValidateRedeemBase.md +13 -0
  646. data/docs/StackableValidateRedeemBaseRedeemablesItem.md +55 -0
  647. data/docs/StackingRules.md +15 -0
  648. data/docs/ValidationEntity.md +15 -0
  649. data/docs/ValidationRule.md +18 -0
  650. data/docs/ValidationRuleAssignment.md +13 -0
  651. data/docs/ValidationRuleAssignmentsList.md +11 -0
  652. data/docs/ValidationRuleBase.md +13 -0
  653. data/docs/ValidationRuleBaseApplicableTo.md +10 -0
  654. data/docs/ValidationRuleBaseError.md +8 -0
  655. data/docs/ValidationRulesApi.md +513 -0
  656. data/docs/ValidationRulesAssignmentsList.md +11 -0
  657. data/docs/ValidationRulesAssignmentsListResponseBody.md +11 -0
  658. data/docs/ValidationRulesCreateRequestBody.md +13 -0
  659. data/docs/ValidationRulesCreateResponseBody.md +18 -0
  660. data/docs/ValidationRulesGetResponseBody.md +18 -0
  661. data/docs/ValidationRulesListResponseBody.md +11 -0
  662. data/docs/ValidationRulesUpdateRequestBody.md +13 -0
  663. data/docs/ValidationRulesUpdateResponseBody.md +18 -0
  664. data/docs/ValidationsApi.md +68 -0
  665. data/docs/ValidationsRedeemableApplicable.md +16 -0
  666. data/docs/ValidationsRedeemableApplicableResult.md +55 -0
  667. data/docs/ValidationsRedeemableInapplicable.md +11 -0
  668. data/docs/ValidationsRedeemableInapplicableResult.md +8 -0
  669. data/docs/ValidationsRedeemableSkipped.md +11 -0
  670. data/docs/ValidationsValidateAllResponseBody.md +13 -0
  671. data/docs/ValidationsValidateAllResponseBodyRedeemablesItem.md +51 -0
  672. data/docs/ValidationsValidatePartialResponseBody.md +14 -0
  673. data/docs/ValidationsValidateRequestBody.md +14 -0
  674. data/docs/ValidationsValidateResponseBody.md +14 -0
  675. data/docs/Voucher.md +37 -0
  676. data/docs/VoucherAssets.md +9 -0
  677. data/docs/VoucherGift.md +10 -0
  678. data/docs/VoucherLoyaltyCard.md +11 -0
  679. data/docs/VoucherPublish.md +10 -0
  680. data/docs/VoucherRedemption.md +13 -0
  681. data/docs/VoucherTransaction.md +17 -0
  682. data/docs/VoucherTransactionDetails.md +20 -0
  683. data/docs/VoucherTransactionDetailsBalance.md +13 -0
  684. data/docs/VoucherTransactionDetailsBalanceRelatedObject.md +9 -0
  685. data/docs/VoucherTransactionDetailsCustomEvent.md +9 -0
  686. data/docs/VoucherTransactionDetailsEarningRule.md +9 -0
  687. data/docs/VoucherTransactionDetailsEarningRuleSource.md +8 -0
  688. data/docs/VoucherTransactionDetailsEvent.md +9 -0
  689. data/docs/VoucherTransactionDetailsEventSchema.md +9 -0
  690. data/docs/VoucherTransactionDetailsLoyaltyTier.md +9 -0
  691. data/docs/VoucherTransactionDetailsOrder.md +9 -0
  692. data/docs/VoucherTransactionDetailsRedemption.md +8 -0
  693. data/docs/VoucherTransactionDetailsReward.md +9 -0
  694. data/docs/VoucherTransactionDetailsRollback.md +8 -0
  695. data/docs/VoucherTransactionDetailsSegment.md +9 -0
  696. data/docs/VoucherTransactionsExport.md +16 -0
  697. data/docs/VoucherTransactionsExportFilterConditions.md +8 -0
  698. data/docs/VoucherTransactionsExportFilterConditionsVoucherId.md +8 -0
  699. data/docs/VoucherTransactionsExportFilterConditionsVoucherIdConditions.md +8 -0
  700. data/docs/VoucherTransactionsExportParameters.md +9 -0
  701. data/docs/VoucherTransactionsExportResult.md +8 -0
  702. data/docs/VoucherTransactionsFilters.md +10 -0
  703. data/docs/VoucherValidityTimeframe.md +9 -0
  704. data/docs/VouchersApi.md +554 -0
  705. data/docs/VouchersBalanceUpdateRequestBody.md +10 -0
  706. data/docs/VouchersBalanceUpdateResponseBody.md +14 -0
  707. data/docs/VouchersBalanceUpdateResponseBodyRelatedObject.md +9 -0
  708. data/docs/VouchersDisableResponseBody.md +37 -0
  709. data/docs/VouchersEnableResponseBody.md +37 -0
  710. data/docs/VouchersGetResponseBody.md +37 -0
  711. data/docs/VouchersImportCsvCreateResponseBody.md +8 -0
  712. data/docs/VouchersRedemptionGetResponseBody.md +14 -0
  713. data/docs/VouchersRedemptionGetResponseBodyRedemptionEntriesItem.md +49 -0
  714. data/docs/VouchersTransactionsExportCreateRequestBody.md +8 -0
  715. data/docs/VouchersTransactionsExportCreateResponseBody.md +16 -0
  716. data/docs/VouchersTransactionsListResponseBody.md +11 -0
  717. data/example.rb +25 -0
  718. data/lib/VoucherifySdk/api/campaigns_api.rb +789 -0
  719. data/lib/VoucherifySdk/api/categories_api.rb +337 -0
  720. data/lib/VoucherifySdk/api/client_side_api.rb +367 -0
  721. data/lib/VoucherifySdk/api/customers_api.rb +874 -0
  722. data/lib/VoucherifySdk/api/events_api.rb +86 -0
  723. data/lib/VoucherifySdk/api/exports_api.rb +354 -0
  724. data/lib/VoucherifySdk/api/loyalties_api.rb +1906 -0
  725. data/lib/VoucherifySdk/api/orders_api.rb +425 -0
  726. data/lib/VoucherifySdk/api/product_collections_api.rb +375 -0
  727. data/lib/VoucherifySdk/api/products_api.rb +1002 -0
  728. data/lib/VoucherifySdk/api/promotions_api.rb +764 -0
  729. data/lib/VoucherifySdk/api/publications_api.rb +270 -0
  730. data/lib/VoucherifySdk/api/qualifications_api.rb +86 -0
  731. data/lib/VoucherifySdk/api/redemptions_api.rb +457 -0
  732. data/lib/VoucherifySdk/api/rewards_api.rb +446 -0
  733. data/lib/VoucherifySdk/api/segments_api.rb +83 -0
  734. data/lib/VoucherifySdk/api/validation_rules_api.rb +599 -0
  735. data/lib/VoucherifySdk/api/validations_api.rb +86 -0
  736. data/lib/VoucherifySdk/api/vouchers_api.rb +636 -0
  737. data/lib/VoucherifySdk/api_client.rb +392 -0
  738. data/lib/VoucherifySdk/api_error.rb +58 -0
  739. data/lib/VoucherifySdk/configuration.rb +332 -0
  740. data/lib/VoucherifySdk/models/any.rb +107 -0
  741. data/lib/VoucherifySdk/models/applicable_to.rb +406 -0
  742. data/lib/VoucherifySdk/models/applicable_to_effect.rb +41 -0
  743. data/lib/VoucherifySdk/models/applicable_to_result_list.rb +340 -0
  744. data/lib/VoucherifySdk/models/array_inner.rb +106 -0
  745. data/lib/VoucherifySdk/models/async_actions.rb +223 -0
  746. data/lib/VoucherifySdk/models/bus_val_rule_assignment.rb +379 -0
  747. data/lib/VoucherifySdk/models/campaign.rb +674 -0
  748. data/lib/VoucherifySdk/models/campaign_base.rb +650 -0
  749. data/lib/VoucherifySdk/models/campaign_base_validity_timeframe.rb +226 -0
  750. data/lib/VoucherifySdk/models/campaign_loyalty_card.rb +232 -0
  751. data/lib/VoucherifySdk/models/campaign_loyalty_card_expiration_rules.rb +273 -0
  752. data/lib/VoucherifySdk/models/campaign_loyalty_voucher.rb +291 -0
  753. data/lib/VoucherifySdk/models/campaign_loyalty_voucher_redemption.rb +217 -0
  754. data/lib/VoucherifySdk/models/campaign_voucher.rb +328 -0
  755. data/lib/VoucherifySdk/models/campaign_voucher_redemption.rb +219 -0
  756. data/lib/VoucherifySdk/models/campaigns_create_base.rb +422 -0
  757. data/lib/VoucherifySdk/models/campaigns_create_discount_coupons_campaign.rb +461 -0
  758. data/lib/VoucherifySdk/models/campaigns_create_gift_campaign.rb +461 -0
  759. data/lib/VoucherifySdk/models/campaigns_create_giveaway_campaign.rb +470 -0
  760. data/lib/VoucherifySdk/models/campaigns_create_loyalty_campaign.rb +461 -0
  761. data/lib/VoucherifySdk/models/campaigns_create_promotion_campaign.rb +461 -0
  762. data/lib/VoucherifySdk/models/campaigns_create_referral_campaign.rb +470 -0
  763. data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +110 -0
  764. data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +675 -0
  765. data/lib/VoucherifySdk/models/campaigns_delete_response_body.rb +216 -0
  766. data/lib/VoucherifySdk/models/campaigns_disable_response_body.rb +206 -0
  767. data/lib/VoucherifySdk/models/campaigns_enable_response_body.rb +206 -0
  768. data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +675 -0
  769. data/lib/VoucherifySdk/models/campaigns_import_create_response_body.rb +230 -0
  770. data/lib/VoucherifySdk/models/campaigns_import_csv_create_response_body.rb +230 -0
  771. data/lib/VoucherifySdk/models/campaigns_import_voucher_item.rb +374 -0
  772. data/lib/VoucherifySdk/models/campaigns_import_voucher_item_redemption.rb +216 -0
  773. data/lib/VoucherifySdk/models/campaigns_import_voucher_loyalty_card.rb +223 -0
  774. data/lib/VoucherifySdk/models/campaigns_list_response_body.rb +252 -0
  775. data/lib/VoucherifySdk/models/campaigns_update_base.rb +300 -0
  776. data/lib/VoucherifySdk/models/campaigns_update_coupon_campaign_base.rb +381 -0
  777. data/lib/VoucherifySdk/models/campaigns_update_discount_coupons_campaign.rb +389 -0
  778. data/lib/VoucherifySdk/models/campaigns_update_gift_campaign.rb +389 -0
  779. data/lib/VoucherifySdk/models/campaigns_update_giveaway_campaign.rb +420 -0
  780. data/lib/VoucherifySdk/models/campaigns_update_loyalty_campaign.rb +398 -0
  781. data/lib/VoucherifySdk/models/campaigns_update_promotion_campaign.rb +306 -0
  782. data/lib/VoucherifySdk/models/campaigns_update_referral_campaign.rb +398 -0
  783. data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +110 -0
  784. data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +675 -0
  785. data/lib/VoucherifySdk/models/campaigns_vouchers_create_base_request_body.rb +264 -0
  786. data/lib/VoucherifySdk/models/campaigns_vouchers_create_in_bulk_request_body.rb +291 -0
  787. data/lib/VoucherifySdk/models/campaigns_vouchers_create_in_bulk_response_body.rb +230 -0
  788. data/lib/VoucherifySdk/models/campaigns_vouchers_create_request_body.rb +272 -0
  789. data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body.rb +547 -0
  790. data/lib/VoucherifySdk/models/categories_create_request_body.rb +240 -0
  791. data/lib/VoucherifySdk/models/categories_create_response_body.rb +324 -0
  792. data/lib/VoucherifySdk/models/categories_get_response_body.rb +364 -0
  793. data/lib/VoucherifySdk/models/categories_list_response_body.rb +321 -0
  794. data/lib/VoucherifySdk/models/categories_update_request_body.rb +240 -0
  795. data/lib/VoucherifySdk/models/categories_update_response_body.rb +341 -0
  796. data/lib/VoucherifySdk/models/category.rb +357 -0
  797. data/lib/VoucherifySdk/models/client_events_create_request_body.rb +295 -0
  798. data/lib/VoucherifySdk/models/client_events_create_request_body_loyalty.rb +223 -0
  799. data/lib/VoucherifySdk/models/client_events_create_request_body_referral.rb +233 -0
  800. data/lib/VoucherifySdk/models/client_events_create_response_body.rb +316 -0
  801. data/lib/VoucherifySdk/models/client_qualifications_check_eligibility_request_body.rb +319 -0
  802. data/lib/VoucherifySdk/models/client_qualifications_check_eligibility_response_body.rb +243 -0
  803. data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body.rb +316 -0
  804. data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body_all_of_options.rb +240 -0
  805. data/lib/VoucherifySdk/models/client_redemptions_redeem_response_body.rb +259 -0
  806. data/lib/VoucherifySdk/models/client_validations_validate_request_body.rb +316 -0
  807. data/lib/VoucherifySdk/models/client_validations_validate_request_body_all_of_options.rb +240 -0
  808. data/lib/VoucherifySdk/models/client_validations_validate_response_body.rb +301 -0
  809. data/lib/VoucherifySdk/models/code_config.rb +266 -0
  810. data/lib/VoucherifySdk/models/code_config_required_length_charset_pattern.rb +293 -0
  811. data/lib/VoucherifySdk/models/create_publication_base.rb +242 -0
  812. data/lib/VoucherifySdk/models/create_publication_campaign.rb +261 -0
  813. data/lib/VoucherifySdk/models/create_publication_with_campaign.rb +265 -0
  814. data/lib/VoucherifySdk/models/create_publication_with_specific_voucher.rb +266 -0
  815. data/lib/VoucherifySdk/models/custom_event.rb +351 -0
  816. data/lib/VoucherifySdk/models/custom_event_referral.rb +236 -0
  817. data/lib/VoucherifySdk/models/customer.rb +312 -0
  818. data/lib/VoucherifySdk/models/customer_activity.rb +282 -0
  819. data/lib/VoucherifySdk/models/customer_activity_data.rb +173 -0
  820. data/lib/VoucherifySdk/models/customer_base.rb +285 -0
  821. data/lib/VoucherifySdk/models/customer_base_address.rb +266 -0
  822. data/lib/VoucherifySdk/models/customer_id.rb +273 -0
  823. data/lib/VoucherifySdk/models/customer_loyalty.rb +258 -0
  824. data/lib/VoucherifySdk/models/customer_loyalty_campaigns_value.rb +236 -0
  825. data/lib/VoucherifySdk/models/customer_referrals.rb +242 -0
  826. data/lib/VoucherifySdk/models/customer_referrals_campaigns_item.rb +291 -0
  827. data/lib/VoucherifySdk/models/customer_response_data_assets.rb +216 -0
  828. data/lib/VoucherifySdk/models/customer_segments_list.rb +276 -0
  829. data/lib/VoucherifySdk/models/customer_summary.rb +237 -0
  830. data/lib/VoucherifySdk/models/customer_summary_orders.rb +283 -0
  831. data/lib/VoucherifySdk/models/customer_summary_redemptions.rb +339 -0
  832. data/lib/VoucherifySdk/models/customer_summary_redemptions_gift.rb +240 -0
  833. data/lib/VoucherifySdk/models/customer_summary_redemptions_loyalty_card.rb +240 -0
  834. data/lib/VoucherifySdk/models/customer_with_summary_loyalty_referrals.rb +438 -0
  835. data/lib/VoucherifySdk/models/customers_activities_list_response_body.rb +276 -0
  836. data/lib/VoucherifySdk/models/customers_create_request_body.rb +313 -0
  837. data/lib/VoucherifySdk/models/customers_create_response_body.rb +439 -0
  838. data/lib/VoucherifySdk/models/customers_get_response_body.rb +439 -0
  839. data/lib/VoucherifySdk/models/customers_import_csv_create_response_body.rb +230 -0
  840. data/lib/VoucherifySdk/models/customers_list_response_body.rb +286 -0
  841. data/lib/VoucherifySdk/models/customers_metadata_update_in_bulk_request_body.rb +242 -0
  842. data/lib/VoucherifySdk/models/customers_metadata_update_in_bulk_response_body.rb +230 -0
  843. data/lib/VoucherifySdk/models/customers_permanent_deletion_create_response_body.rb +324 -0
  844. data/lib/VoucherifySdk/models/customers_permanent_deletion_create_response_body_data_json.rb +325 -0
  845. data/lib/VoucherifySdk/models/customers_segments_list_response_body.rb +283 -0
  846. data/lib/VoucherifySdk/models/customers_update_in_bulk_request_body.rb +310 -0
  847. data/lib/VoucherifySdk/models/customers_update_in_bulk_response_body.rb +230 -0
  848. data/lib/VoucherifySdk/models/customers_update_request_body.rb +293 -0
  849. data/lib/VoucherifySdk/models/customers_update_response_body.rb +439 -0
  850. data/lib/VoucherifySdk/models/discount.rb +109 -0
  851. data/lib/VoucherifySdk/models/discount_amount.rb +311 -0
  852. data/lib/VoucherifySdk/models/discount_amount_vouchers_effect_types.rb +43 -0
  853. data/lib/VoucherifySdk/models/discount_coupons_campaign_voucher.rb +290 -0
  854. data/lib/VoucherifySdk/models/discount_fixed.rb +301 -0
  855. data/lib/VoucherifySdk/models/discount_fixed_vouchers_effect_types.rb +40 -0
  856. data/lib/VoucherifySdk/models/discount_percent.rb +321 -0
  857. data/lib/VoucherifySdk/models/discount_percent_vouchers_effect_types.rb +40 -0
  858. data/lib/VoucherifySdk/models/discount_unit.rb +329 -0
  859. data/lib/VoucherifySdk/models/discount_unit_multiple.rb +298 -0
  860. data/lib/VoucherifySdk/models/discount_unit_multiple_one_unit.rb +310 -0
  861. data/lib/VoucherifySdk/models/discount_unit_vouchers_effect_types.rb +41 -0
  862. data/lib/VoucherifySdk/models/earning_rule.rb +474 -0
  863. data/lib/VoucherifySdk/models/earning_rule_base.rb +424 -0
  864. data/lib/VoucherifySdk/models/earning_rule_base_custom_event.rb +221 -0
  865. data/lib/VoucherifySdk/models/earning_rule_base_loyalty.rb +105 -0
  866. data/lib/VoucherifySdk/models/earning_rule_base_segment.rb +223 -0
  867. data/lib/VoucherifySdk/models/earning_rule_base_source.rb +284 -0
  868. data/lib/VoucherifySdk/models/earning_rule_base_validity_timeframe.rb +240 -0
  869. data/lib/VoucherifySdk/models/earning_rule_event.rb +46 -0
  870. data/lib/VoucherifySdk/models/earning_rule_fixed.rb +261 -0
  871. data/lib/VoucherifySdk/models/earning_rule_proportional.rb +107 -0
  872. data/lib/VoucherifySdk/models/earning_rule_proportional_custom_event.rb +301 -0
  873. data/lib/VoucherifySdk/models/earning_rule_proportional_custom_event_custom_event.rb +221 -0
  874. data/lib/VoucherifySdk/models/earning_rule_proportional_custom_event_custom_event_metadata.rb +257 -0
  875. data/lib/VoucherifySdk/models/earning_rule_proportional_customer_metadata.rb +301 -0
  876. data/lib/VoucherifySdk/models/earning_rule_proportional_customer_metadata_customer.rb +221 -0
  877. data/lib/VoucherifySdk/models/earning_rule_proportional_customer_metadata_customer_metadata.rb +257 -0
  878. data/lib/VoucherifySdk/models/earning_rule_proportional_order.rb +106 -0
  879. data/lib/VoucherifySdk/models/earning_rule_proportional_order_amount.rb +301 -0
  880. data/lib/VoucherifySdk/models/earning_rule_proportional_order_amount_order.rb +221 -0
  881. data/lib/VoucherifySdk/models/earning_rule_proportional_order_amount_order_amount.rb +240 -0
  882. data/lib/VoucherifySdk/models/earning_rule_proportional_order_items.rb +106 -0
  883. data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_amount.rb +301 -0
  884. data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_amount_order_items.rb +221 -0
  885. data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_amount_order_items_amount.rb +308 -0
  886. data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_quantity.rb +301 -0
  887. data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_quantity_order_items.rb +221 -0
  888. data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_subtotal_amount.rb +301 -0
  889. data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_subtotal_amount_order_items.rb +221 -0
  890. data/lib/VoucherifySdk/models/earning_rule_proportional_order_metadata.rb +301 -0
  891. data/lib/VoucherifySdk/models/earning_rule_proportional_order_metadata_order.rb +222 -0
  892. data/lib/VoucherifySdk/models/earning_rule_proportional_order_metadata_order_metadata.rb +257 -0
  893. data/lib/VoucherifySdk/models/earning_rule_proportional_order_total_amount.rb +301 -0
  894. data/lib/VoucherifySdk/models/earning_rule_proportional_order_total_amount_order.rb +221 -0
  895. data/lib/VoucherifySdk/models/error.rb +311 -0
  896. data/lib/VoucherifySdk/models/event_customer_active_campaign_failed.rb +248 -0
  897. data/lib/VoucherifySdk/models/event_customer_active_campaign_recovered.rb +248 -0
  898. data/lib/VoucherifySdk/models/event_customer_active_campaign_sent.rb +248 -0
  899. data/lib/VoucherifySdk/models/event_customer_batch_failed.rb +248 -0
  900. data/lib/VoucherifySdk/models/event_customer_batch_recovered.rb +248 -0
  901. data/lib/VoucherifySdk/models/event_customer_batch_sent.rb +248 -0
  902. data/lib/VoucherifySdk/models/event_customer_braze_failed.rb +248 -0
  903. data/lib/VoucherifySdk/models/event_customer_braze_recovered.rb +248 -0
  904. data/lib/VoucherifySdk/models/event_customer_braze_sent.rb +248 -0
  905. data/lib/VoucherifySdk/models/event_customer_confirmed.rb +224 -0
  906. data/lib/VoucherifySdk/models/event_customer_confirmed_unconfirmed_customer.rb +214 -0
  907. data/lib/VoucherifySdk/models/event_customer_consents.rb +225 -0
  908. data/lib/VoucherifySdk/models/event_customer_consents_given.rb +233 -0
  909. data/lib/VoucherifySdk/models/event_customer_consents_revoked.rb +233 -0
  910. data/lib/VoucherifySdk/models/event_customer_created.rb +215 -0
  911. data/lib/VoucherifySdk/models/event_customer_custom_event.rb +222 -0
  912. data/lib/VoucherifySdk/models/event_customer_deleted.rb +215 -0
  913. data/lib/VoucherifySdk/models/event_customer_email_failed.rb +248 -0
  914. data/lib/VoucherifySdk/models/event_customer_email_recovered.rb +248 -0
  915. data/lib/VoucherifySdk/models/event_customer_email_sent.rb +248 -0
  916. data/lib/VoucherifySdk/models/event_customer_failed.rb +240 -0
  917. data/lib/VoucherifySdk/models/event_customer_gift_voucher_balance_added.rb +251 -0
  918. data/lib/VoucherifySdk/models/event_customer_intercom_failed.rb +248 -0
  919. data/lib/VoucherifySdk/models/event_customer_intercom_recovered.rb +248 -0
  920. data/lib/VoucherifySdk/models/event_customer_intercom_sent.rb +248 -0
  921. data/lib/VoucherifySdk/models/event_customer_klaviyo_failed.rb +248 -0
  922. data/lib/VoucherifySdk/models/event_customer_klaviyo_recovered.rb +248 -0
  923. data/lib/VoucherifySdk/models/event_customer_klaviyo_sent.rb +248 -0
  924. data/lib/VoucherifySdk/models/event_customer_loyalty_card_points_added.rb +251 -0
  925. data/lib/VoucherifySdk/models/event_customer_loyalty_card_points_transferred.rb +269 -0
  926. data/lib/VoucherifySdk/models/event_customer_loyalty_tier_base.rb +223 -0
  927. data/lib/VoucherifySdk/models/event_customer_loyalty_tier_downgraded.rb +279 -0
  928. data/lib/VoucherifySdk/models/event_customer_loyalty_tier_expiration_changed.rb +279 -0
  929. data/lib/VoucherifySdk/models/event_customer_loyalty_tier_joined.rb +263 -0
  930. data/lib/VoucherifySdk/models/event_customer_loyalty_tier_left.rb +263 -0
  931. data/lib/VoucherifySdk/models/event_customer_loyalty_tier_prolonged.rb +263 -0
  932. data/lib/VoucherifySdk/models/event_customer_loyalty_tier_upgraded.rb +272 -0
  933. data/lib/VoucherifySdk/models/event_customer_loyalty_updated.rb +249 -0
  934. data/lib/VoucherifySdk/models/event_customer_mailchimp_failed.rb +248 -0
  935. data/lib/VoucherifySdk/models/event_customer_mailchimp_recovered.rb +248 -0
  936. data/lib/VoucherifySdk/models/event_customer_mailchimp_sent.rb +248 -0
  937. data/lib/VoucherifySdk/models/event_customer_order.rb +241 -0
  938. data/lib/VoucherifySdk/models/event_customer_order_canceled.rb +249 -0
  939. data/lib/VoucherifySdk/models/event_customer_order_created.rb +249 -0
  940. data/lib/VoucherifySdk/models/event_customer_order_fulfilled.rb +249 -0
  941. data/lib/VoucherifySdk/models/event_customer_order_paid.rb +249 -0
  942. data/lib/VoucherifySdk/models/event_customer_order_processing.rb +249 -0
  943. data/lib/VoucherifySdk/models/event_customer_order_updated.rb +249 -0
  944. data/lib/VoucherifySdk/models/event_customer_publication_failed.rb +233 -0
  945. data/lib/VoucherifySdk/models/event_customer_publication_succeeded.rb +233 -0
  946. data/lib/VoucherifySdk/models/event_customer_recovered.rb +240 -0
  947. data/lib/VoucherifySdk/models/event_customer_redemption.rb +268 -0
  948. data/lib/VoucherifySdk/models/event_customer_redemption_failed.rb +276 -0
  949. data/lib/VoucherifySdk/models/event_customer_redemption_rollback_failed.rb +285 -0
  950. data/lib/VoucherifySdk/models/event_customer_redemption_rollback_succeeded.rb +285 -0
  951. data/lib/VoucherifySdk/models/event_customer_redemption_succeeded.rb +276 -0
  952. data/lib/VoucherifySdk/models/event_customer_referred.rb +288 -0
  953. data/lib/VoucherifySdk/models/event_customer_reward_redemptions.rb +286 -0
  954. data/lib/VoucherifySdk/models/event_customer_reward_redemptions_completed.rb +294 -0
  955. data/lib/VoucherifySdk/models/event_customer_reward_redemptions_created.rb +294 -0
  956. data/lib/VoucherifySdk/models/event_customer_reward_redemptions_pending.rb +294 -0
  957. data/lib/VoucherifySdk/models/event_customer_reward_redemptions_rolled_back.rb +294 -0
  958. data/lib/VoucherifySdk/models/event_customer_rewarded.rb +296 -0
  959. data/lib/VoucherifySdk/models/event_customer_rewarded_loyalty_points.rb +287 -0
  960. data/lib/VoucherifySdk/models/event_customer_segment_entered.rb +238 -0
  961. data/lib/VoucherifySdk/models/event_customer_segment_left.rb +238 -0
  962. data/lib/VoucherifySdk/models/event_customer_sent.rb +240 -0
  963. data/lib/VoucherifySdk/models/event_customer_shopify_failed.rb +248 -0
  964. data/lib/VoucherifySdk/models/event_customer_shopify_recovered.rb +248 -0
  965. data/lib/VoucherifySdk/models/event_customer_shopify_sent.rb +248 -0
  966. data/lib/VoucherifySdk/models/event_customer_sms_failed.rb +248 -0
  967. data/lib/VoucherifySdk/models/event_customer_sms_recovered.rb +248 -0
  968. data/lib/VoucherifySdk/models/event_customer_sms_sent.rb +248 -0
  969. data/lib/VoucherifySdk/models/event_customer_updated.rb +215 -0
  970. data/lib/VoucherifySdk/models/event_customer_validation_failed.rb +224 -0
  971. data/lib/VoucherifySdk/models/event_customer_validation_succeeded.rb +224 -0
  972. data/lib/VoucherifySdk/models/event_customer_voucher_deleted.rb +233 -0
  973. data/lib/VoucherifySdk/models/event_customer_vouchers_loyalty_points_expired.rb +262 -0
  974. data/lib/VoucherifySdk/models/events_create_request_body.rb +295 -0
  975. data/lib/VoucherifySdk/models/events_create_response_body.rb +316 -0
  976. data/lib/VoucherifySdk/models/export.rb +110 -0
  977. data/lib/VoucherifySdk/models/export_base.rb +354 -0
  978. data/lib/VoucherifySdk/models/export_base_result.rb +223 -0
  979. data/lib/VoucherifySdk/models/export_customer.rb +400 -0
  980. data/lib/VoucherifySdk/models/export_customer_base.rb +265 -0
  981. data/lib/VoucherifySdk/models/export_customer_base_parameters.rb +259 -0
  982. data/lib/VoucherifySdk/models/export_customer_fields.rb +68 -0
  983. data/lib/VoucherifySdk/models/export_customer_order.rb +50 -0
  984. data/lib/VoucherifySdk/models/export_customer_scheduled.rb +405 -0
  985. data/lib/VoucherifySdk/models/export_order.rb +400 -0
  986. data/lib/VoucherifySdk/models/export_order_base.rb +265 -0
  987. data/lib/VoucherifySdk/models/export_order_fields.rb +51 -0
  988. data/lib/VoucherifySdk/models/export_order_order.rb +44 -0
  989. data/lib/VoucherifySdk/models/export_order_scheduled.rb +405 -0
  990. data/lib/VoucherifySdk/models/export_points_expiration.rb +400 -0
  991. data/lib/VoucherifySdk/models/export_points_expiration_base.rb +265 -0
  992. data/lib/VoucherifySdk/models/export_points_expiration_base_parameters.rb +258 -0
  993. data/lib/VoucherifySdk/models/export_points_expiration_fields.rb +44 -0
  994. data/lib/VoucherifySdk/models/export_points_expiration_filters.rb +254 -0
  995. data/lib/VoucherifySdk/models/export_points_expiration_order.rb +40 -0
  996. data/lib/VoucherifySdk/models/export_points_expiration_scheduled.rb +405 -0
  997. data/lib/VoucherifySdk/models/export_publication.rb +400 -0
  998. data/lib/VoucherifySdk/models/export_publication_base.rb +265 -0
  999. data/lib/VoucherifySdk/models/export_publication_base_parameters.rb +259 -0
  1000. data/lib/VoucherifySdk/models/export_publication_fields.rb +46 -0
  1001. data/lib/VoucherifySdk/models/export_publication_order.rb +50 -0
  1002. data/lib/VoucherifySdk/models/export_publication_scheduled.rb +405 -0
  1003. data/lib/VoucherifySdk/models/export_redemption.rb +400 -0
  1004. data/lib/VoucherifySdk/models/export_redemption_base.rb +265 -0
  1005. data/lib/VoucherifySdk/models/export_redemption_base_parameters.rb +259 -0
  1006. data/lib/VoucherifySdk/models/export_redemption_fields.rb +55 -0
  1007. data/lib/VoucherifySdk/models/export_redemption_order.rb +48 -0
  1008. data/lib/VoucherifySdk/models/export_redemption_scheduled.rb +405 -0
  1009. data/lib/VoucherifySdk/models/export_scheduled_base.rb +359 -0
  1010. data/lib/VoucherifySdk/models/export_voucher.rb +400 -0
  1011. data/lib/VoucherifySdk/models/export_voucher_base.rb +265 -0
  1012. data/lib/VoucherifySdk/models/export_voucher_base_parameters.rb +258 -0
  1013. data/lib/VoucherifySdk/models/export_voucher_fields.rb +68 -0
  1014. data/lib/VoucherifySdk/models/export_voucher_order.rb +44 -0
  1015. data/lib/VoucherifySdk/models/export_voucher_scheduled.rb +405 -0
  1016. data/lib/VoucherifySdk/models/export_voucher_transactions.rb +400 -0
  1017. data/lib/VoucherifySdk/models/export_voucher_transactions_base.rb +265 -0
  1018. data/lib/VoucherifySdk/models/export_voucher_transactions_fields.rb +50 -0
  1019. data/lib/VoucherifySdk/models/export_voucher_transactions_filters.rb +263 -0
  1020. data/lib/VoucherifySdk/models/export_voucher_transactions_order.rb +40 -0
  1021. data/lib/VoucherifySdk/models/export_voucher_transactions_scheduled.rb +405 -0
  1022. data/lib/VoucherifySdk/models/exports_create_request_body.rb +111 -0
  1023. data/lib/VoucherifySdk/models/exports_create_response_body.rb +111 -0
  1024. data/lib/VoucherifySdk/models/exports_get_response_body.rb +400 -0
  1025. data/lib/VoucherifySdk/models/exports_list_response_body.rb +322 -0
  1026. data/lib/VoucherifySdk/models/field_conditions.rb +214 -0
  1027. data/lib/VoucherifySdk/models/filter_conditions_string.rb +290 -0
  1028. data/lib/VoucherifySdk/models/filters_condition.rb +430 -0
  1029. data/lib/VoucherifySdk/models/gift.rb +284 -0
  1030. data/lib/VoucherifySdk/models/gift_campaign_voucher.rb +291 -0
  1031. data/lib/VoucherifySdk/models/giveaway_campaign_voucher.rb +300 -0
  1032. data/lib/VoucherifySdk/models/inapplicable_to.rb +413 -0
  1033. data/lib/VoucherifySdk/models/inapplicable_to_result_list.rb +340 -0
  1034. data/lib/VoucherifySdk/models/junction.rb +40 -0
  1035. data/lib/VoucherifySdk/models/list_publications_item_base.rb +399 -0
  1036. data/lib/VoucherifySdk/models/list_publications_item_invalid.rb +455 -0
  1037. data/lib/VoucherifySdk/models/list_publications_item_valid_multiple_vouchers.rb +454 -0
  1038. data/lib/VoucherifySdk/models/list_publications_item_valid_single_voucher.rb +451 -0
  1039. data/lib/VoucherifySdk/models/list_publications_item_voucher.rb +328 -0
  1040. data/lib/VoucherifySdk/models/loyalties_delete_response_body.rb +230 -0
  1041. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body.rb +462 -0
  1042. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body.rb +462 -0
  1043. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body.rb +475 -0
  1044. data/lib/VoucherifySdk/models/loyalties_loyalty_tier_reward.rb +289 -0
  1045. data/lib/VoucherifySdk/models/loyalties_members_balance_update_request_body.rb +284 -0
  1046. data/lib/VoucherifySdk/models/loyalties_members_balance_update_response_body.rb +399 -0
  1047. data/lib/VoucherifySdk/models/loyalties_members_balance_update_response_body_related_object.rb +274 -0
  1048. data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body.rb +334 -0
  1049. data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item.rb +390 -0
  1050. data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item_bucket.rb +223 -0
  1051. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_request_body.rb +234 -0
  1052. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_request_body_reward.rb +226 -0
  1053. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body.rb +585 -0
  1054. data/lib/VoucherifySdk/models/loyalties_members_rewards_list_response_body.rb +341 -0
  1055. data/lib/VoucherifySdk/models/loyalties_members_rewards_list_response_body_data_item.rb +269 -0
  1056. data/lib/VoucherifySdk/models/loyalties_members_tiers_list_response_body.rb +321 -0
  1057. data/lib/VoucherifySdk/models/loyalties_members_transactions_export_create_request_body.rb +215 -0
  1058. data/lib/VoucherifySdk/models/loyalties_members_transactions_export_create_request_body_parameters.rb +258 -0
  1059. data/lib/VoucherifySdk/models/loyalties_members_transactions_export_create_response_body.rb +405 -0
  1060. data/lib/VoucherifySdk/models/loyalties_members_transactions_list_response_body.rb +334 -0
  1061. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body.rb +544 -0
  1062. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_assets.rb +224 -0
  1063. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_assets_barcode.rb +226 -0
  1064. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_assets_qr.rb +226 -0
  1065. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_loyalty_card.rb +260 -0
  1066. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_publish.rb +288 -0
  1067. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_redemption.rb +306 -0
  1068. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_validity_timeframe.rb +226 -0
  1069. data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body.rb +383 -0
  1070. data/lib/VoucherifySdk/models/loyalties_reward_assignments_reward_get_response_body.rb +418 -0
  1071. data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body.rb +383 -0
  1072. data/lib/VoucherifySdk/models/loyalties_tiers_create_in_bulk_request_body_item.rb +279 -0
  1073. data/lib/VoucherifySdk/models/loyalties_tiers_earning_rules_list_response_body.rb +322 -0
  1074. data/lib/VoucherifySdk/models/loyalties_tiers_get_response_body.rb +421 -0
  1075. data/lib/VoucherifySdk/models/loyalties_tiers_list_response_body.rb +322 -0
  1076. data/lib/VoucherifySdk/models/loyalties_tiers_rewards_list_response_body.rb +276 -0
  1077. data/lib/VoucherifySdk/models/loyalties_transfer_points.rb +266 -0
  1078. data/lib/VoucherifySdk/models/loyalty_card_transaction.rb +386 -0
  1079. data/lib/VoucherifySdk/models/loyalty_card_transactions_type.rb +47 -0
  1080. data/lib/VoucherifySdk/models/loyalty_tier.rb +420 -0
  1081. data/lib/VoucherifySdk/models/loyalty_tier_all_of_config.rb +222 -0
  1082. data/lib/VoucherifySdk/models/loyalty_tier_all_of_config_points.rb +226 -0
  1083. data/lib/VoucherifySdk/models/loyalty_tier_base.rb +262 -0
  1084. data/lib/VoucherifySdk/models/loyalty_tier_base_points.rb +226 -0
  1085. data/lib/VoucherifySdk/models/loyalty_tier_expiration.rb +304 -0
  1086. data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all.rb +311 -0
  1087. data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all_expiration_date.rb +283 -0
  1088. data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all_expiration_date_rounding.rb +306 -0
  1089. data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all_start_date.rb +257 -0
  1090. data/lib/VoucherifySdk/models/lucky_draw.rb +246 -0
  1091. data/lib/VoucherifySdk/models/mapping_fixed.rb +261 -0
  1092. data/lib/VoucherifySdk/models/mapping_multiply.rb +261 -0
  1093. data/lib/VoucherifySdk/models/mapping_points.rb +105 -0
  1094. data/lib/VoucherifySdk/models/order.rb +366 -0
  1095. data/lib/VoucherifySdk/models/order_base.rb +339 -0
  1096. data/lib/VoucherifySdk/models/order_calculated.rb +496 -0
  1097. data/lib/VoucherifySdk/models/order_calculated_base.rb +472 -0
  1098. data/lib/VoucherifySdk/models/order_calculated_customer.rb +105 -0
  1099. data/lib/VoucherifySdk/models/order_calculated_no_customer_data.rb +496 -0
  1100. data/lib/VoucherifySdk/models/order_calculated_referrer.rb +105 -0
  1101. data/lib/VoucherifySdk/models/order_item.rb +377 -0
  1102. data/lib/VoucherifySdk/models/order_item_calculated.rb +436 -0
  1103. data/lib/VoucherifySdk/models/order_item_product.rb +266 -0
  1104. data/lib/VoucherifySdk/models/order_item_sku.rb +256 -0
  1105. data/lib/VoucherifySdk/models/order_redemptions.rb +291 -0
  1106. data/lib/VoucherifySdk/models/orders_create_request_body.rb +367 -0
  1107. data/lib/VoucherifySdk/models/orders_create_response_body.rb +497 -0
  1108. data/lib/VoucherifySdk/models/orders_export_create_request_body.rb +215 -0
  1109. data/lib/VoucherifySdk/models/orders_export_create_request_body_parameters.rb +259 -0
  1110. data/lib/VoucherifySdk/models/orders_export_create_response_body.rb +406 -0
  1111. data/lib/VoucherifySdk/models/orders_get_response_body.rb +497 -0
  1112. data/lib/VoucherifySdk/models/orders_import_create_request_body_item.rb +356 -0
  1113. data/lib/VoucherifySdk/models/orders_import_create_response_body.rb +230 -0
  1114. data/lib/VoucherifySdk/models/orders_list_response_body.rb +322 -0
  1115. data/lib/VoucherifySdk/models/orders_update_request_body.rb +347 -0
  1116. data/lib/VoucherifySdk/models/orders_update_response_body.rb +497 -0
  1117. data/lib/VoucherifySdk/models/parameter_campaign_type.rb +44 -0
  1118. data/lib/VoucherifySdk/models/parameter_created_before_after.rb +225 -0
  1119. data/lib/VoucherifySdk/models/parameter_expand_list_campaigns.rb +39 -0
  1120. data/lib/VoucherifySdk/models/parameter_filters_list_redemptions.rb +295 -0
  1121. data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_campaign_name.rb +246 -0
  1122. data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_customer_id.rb +246 -0
  1123. data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_failure_code.rb +246 -0
  1124. data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_object.rb +246 -0
  1125. data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_parent_redemption_id.rb +246 -0
  1126. data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_related_object_id.rb +246 -0
  1127. data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_related_object_parent_id.rb +246 -0
  1128. data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_result.rb +246 -0
  1129. data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_user_login.rb +246 -0
  1130. data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_voucher_code.rb +246 -0
  1131. data/lib/VoucherifySdk/models/parameter_order.rb +50 -0
  1132. data/lib/VoucherifySdk/models/parameter_order_list_all_promotion_stacks.rb +44 -0
  1133. data/lib/VoucherifySdk/models/parameter_order_list_campaigns.rb +42 -0
  1134. data/lib/VoucherifySdk/models/parameter_order_list_customers.rb +44 -0
  1135. data/lib/VoucherifySdk/models/parameter_order_list_exports.rb +42 -0
  1136. data/lib/VoucherifySdk/models/parameter_order_list_loyalty_tiers.rb +42 -0
  1137. data/lib/VoucherifySdk/models/parameter_order_list_orders.rb +42 -0
  1138. data/lib/VoucherifySdk/models/parameter_order_list_publications.rb +50 -0
  1139. data/lib/VoucherifySdk/models/parameter_order_list_redemptions.rb +48 -0
  1140. data/lib/VoucherifySdk/models/parameter_order_list_validation_rule_assignments.rb +40 -0
  1141. data/lib/VoucherifySdk/models/parameter_order_list_validation_rules.rb +44 -0
  1142. data/lib/VoucherifySdk/models/parameter_result_list_publications.rb +40 -0
  1143. data/lib/VoucherifySdk/models/parameter_updated_before_after.rb +225 -0
  1144. data/lib/VoucherifySdk/models/parameter_voucher_type_list_publications.rb +41 -0
  1145. data/lib/VoucherifySdk/models/points_expiration_types.rb +41 -0
  1146. data/lib/VoucherifySdk/models/product.rb +397 -0
  1147. data/lib/VoucherifySdk/models/product_collections_create_dynamic_request_body.rb +290 -0
  1148. data/lib/VoucherifySdk/models/product_collections_create_dynamic_request_body_filter.rb +352 -0
  1149. data/lib/VoucherifySdk/models/product_collections_create_dynamic_request_body_products_item.rb +283 -0
  1150. data/lib/VoucherifySdk/models/product_collections_create_request_body.rb +106 -0
  1151. data/lib/VoucherifySdk/models/product_collections_create_response_body.rb +365 -0
  1152. data/lib/VoucherifySdk/models/product_collections_create_static_request_body.rb +286 -0
  1153. data/lib/VoucherifySdk/models/product_collections_get_response_body.rb +365 -0
  1154. data/lib/VoucherifySdk/models/product_collections_item.rb +358 -0
  1155. data/lib/VoucherifySdk/models/product_collections_item_products_item.rb +283 -0
  1156. data/lib/VoucherifySdk/models/product_collections_list.rb +322 -0
  1157. data/lib/VoucherifySdk/models/product_collections_list_response_body.rb +329 -0
  1158. data/lib/VoucherifySdk/models/product_collections_products_list.rb +276 -0
  1159. data/lib/VoucherifySdk/models/product_collections_products_list_products_item.rb +105 -0
  1160. data/lib/VoucherifySdk/models/product_collections_products_list_response_body.rb +283 -0
  1161. data/lib/VoucherifySdk/models/product_without_skus.rb +380 -0
  1162. data/lib/VoucherifySdk/models/products_create_request_body.rb +278 -0
  1163. data/lib/VoucherifySdk/models/products_create_response_body.rb +397 -0
  1164. data/lib/VoucherifySdk/models/products_get_response_body.rb +397 -0
  1165. data/lib/VoucherifySdk/models/products_import_csv_create_response_body.rb +230 -0
  1166. data/lib/VoucherifySdk/models/products_list_response_body.rb +276 -0
  1167. data/lib/VoucherifySdk/models/products_metadata_update_in_bulk_request_body.rb +242 -0
  1168. data/lib/VoucherifySdk/models/products_metadata_update_in_bulk_response_body.rb +230 -0
  1169. data/lib/VoucherifySdk/models/products_skus_create_request_body.rb +286 -0
  1170. data/lib/VoucherifySdk/models/products_skus_create_response_body.rb +425 -0
  1171. data/lib/VoucherifySdk/models/products_skus_list_response_body.rb +283 -0
  1172. data/lib/VoucherifySdk/models/products_skus_update_request_body.rb +266 -0
  1173. data/lib/VoucherifySdk/models/products_skus_update_response_body.rb +425 -0
  1174. data/lib/VoucherifySdk/models/products_update_in_bulk_request_body.rb +275 -0
  1175. data/lib/VoucherifySdk/models/products_update_in_bulk_response_body.rb +230 -0
  1176. data/lib/VoucherifySdk/models/products_update_request_body.rb +258 -0
  1177. data/lib/VoucherifySdk/models/products_update_response_body.rb +397 -0
  1178. data/lib/VoucherifySdk/models/promotion_stack.rb +389 -0
  1179. data/lib/VoucherifySdk/models/promotion_stack_base.rb +238 -0
  1180. data/lib/VoucherifySdk/models/promotion_stack_base_tiers.rb +289 -0
  1181. data/lib/VoucherifySdk/models/promotion_tier.rb +416 -0
  1182. data/lib/VoucherifySdk/models/promotion_tier_action.rb +215 -0
  1183. data/lib/VoucherifySdk/models/promotion_tier_campaign.rb +289 -0
  1184. data/lib/VoucherifySdk/models/promotion_tier_campaign_validity_timeframe.rb +226 -0
  1185. data/lib/VoucherifySdk/models/promotion_tier_create_params.rb +345 -0
  1186. data/lib/VoucherifySdk/models/promotion_tier_summary.rb +224 -0
  1187. data/lib/VoucherifySdk/models/promotion_tier_summary_orders.rb +226 -0
  1188. data/lib/VoucherifySdk/models/promotion_tier_summary_redemptions.rb +216 -0
  1189. data/lib/VoucherifySdk/models/promotion_tier_validity_timeframe.rb +226 -0
  1190. data/lib/VoucherifySdk/models/promotion_tiers_list.rb +262 -0
  1191. data/lib/VoucherifySdk/models/promotions_stacks_create_request_body.rb +256 -0
  1192. data/lib/VoucherifySdk/models/promotions_stacks_create_response_body.rb +380 -0
  1193. data/lib/VoucherifySdk/models/promotions_stacks_get_response_body.rb +390 -0
  1194. data/lib/VoucherifySdk/models/promotions_stacks_list_response_body.rb +341 -0
  1195. data/lib/VoucherifySdk/models/promotions_stacks_update_request_body.rb +235 -0
  1196. data/lib/VoucherifySdk/models/promotions_stacks_update_request_body_tiers.rb +264 -0
  1197. data/lib/VoucherifySdk/models/promotions_stacks_update_response_body.rb +397 -0
  1198. data/lib/VoucherifySdk/models/promotions_tiers_disable_response_body.rb +423 -0
  1199. data/lib/VoucherifySdk/models/promotions_tiers_enable_response_body.rb +423 -0
  1200. data/lib/VoucherifySdk/models/promotions_tiers_get_response_body.rb +423 -0
  1201. data/lib/VoucherifySdk/models/promotions_tiers_list_response_body.rb +269 -0
  1202. data/lib/VoucherifySdk/models/properties_for_loyalty_campaign_options.rb +215 -0
  1203. data/lib/VoucherifySdk/models/publications_create_base_response_body.rb +440 -0
  1204. data/lib/VoucherifySdk/models/publications_create_request_body.rb +106 -0
  1205. data/lib/VoucherifySdk/models/publications_create_response_body.rb +106 -0
  1206. data/lib/VoucherifySdk/models/publications_create_voucher_response_body.rb +464 -0
  1207. data/lib/VoucherifySdk/models/publications_create_vouchers_response_body.rb +467 -0
  1208. data/lib/VoucherifySdk/models/publications_list_response_body.rb +276 -0
  1209. data/lib/VoucherifySdk/models/publications_list_response_body_publications_item.rb +107 -0
  1210. data/lib/VoucherifySdk/models/qualifications_check_eligibility_request_body.rb +319 -0
  1211. data/lib/VoucherifySdk/models/qualifications_check_eligibility_response_body.rb +243 -0
  1212. data/lib/VoucherifySdk/models/qualifications_field_conditions.rb +214 -0
  1213. data/lib/VoucherifySdk/models/qualifications_filters_condition.rb +259 -0
  1214. data/lib/VoucherifySdk/models/qualifications_option.rb +311 -0
  1215. data/lib/VoucherifySdk/models/qualifications_option_filters.rb +291 -0
  1216. data/lib/VoucherifySdk/models/qualifications_option_filters_resource_type.rb +214 -0
  1217. data/lib/VoucherifySdk/models/qualifications_option_filters_resource_type_conditions.rb +270 -0
  1218. data/lib/VoucherifySdk/models/qualifications_redeemable.rb +404 -0
  1219. data/lib/VoucherifySdk/models/qualifications_redeemable_base.rb +387 -0
  1220. data/lib/VoucherifySdk/models/qualifications_redeemables.rb +349 -0
  1221. data/lib/VoucherifySdk/models/redeem_gift_card.rb +289 -0
  1222. data/lib/VoucherifySdk/models/redeem_gift_card_all_of_gift.rb +216 -0
  1223. data/lib/VoucherifySdk/models/redeem_loyalty_card.rb +289 -0
  1224. data/lib/VoucherifySdk/models/redeem_loyalty_card_all_of_reward.rb +226 -0
  1225. data/lib/VoucherifySdk/models/redeem_promotion_stack.rb +274 -0
  1226. data/lib/VoucherifySdk/models/redeem_promotion_tier.rb +274 -0
  1227. data/lib/VoucherifySdk/models/redeem_voucher.rb +274 -0
  1228. data/lib/VoucherifySdk/models/redeemable_gift.rb +226 -0
  1229. data/lib/VoucherifySdk/models/redeemable_loyalty_card.rb +257 -0
  1230. data/lib/VoucherifySdk/models/redeemable_result.rb +242 -0
  1231. data/lib/VoucherifySdk/models/redeemable_result_gift_card.rb +215 -0
  1232. data/lib/VoucherifySdk/models/redeemable_result_gift_card_gift.rb +216 -0
  1233. data/lib/VoucherifySdk/models/redeemable_result_loyalty_card.rb +215 -0
  1234. data/lib/VoucherifySdk/models/redeemable_result_loyalty_card_loyalty_card.rb +216 -0
  1235. data/lib/VoucherifySdk/models/redeemable_result_promotion_stack.rb +215 -0
  1236. data/lib/VoucherifySdk/models/redeemable_result_promotion_tier.rb +215 -0
  1237. data/lib/VoucherifySdk/models/redeemable_result_promotion_tier_discount.rb +109 -0
  1238. data/lib/VoucherifySdk/models/redeemable_result_voucher_code.rb +215 -0
  1239. data/lib/VoucherifySdk/models/redemption.rb +571 -0
  1240. data/lib/VoucherifySdk/models/redemption_channel.rb +260 -0
  1241. data/lib/VoucherifySdk/models/redemption_gift.rb +216 -0
  1242. data/lib/VoucherifySdk/models/redemption_internal.rb +542 -0
  1243. data/lib/VoucherifySdk/models/redemption_internal_related_redemptions.rb +227 -0
  1244. data/lib/VoucherifySdk/models/redemption_internal_related_redemptions_item.rb +225 -0
  1245. data/lib/VoucherifySdk/models/redemption_internal_related_redemptions_rollbacks_item.rb +225 -0
  1246. data/lib/VoucherifySdk/models/redemption_loyalty_card.rb +216 -0
  1247. data/lib/VoucherifySdk/models/redemption_related_redemptions.rb +227 -0
  1248. data/lib/VoucherifySdk/models/redemption_related_redemptions_item.rb +225 -0
  1249. data/lib/VoucherifySdk/models/redemption_related_redemptions_rollbacks_item.rb +225 -0
  1250. data/lib/VoucherifySdk/models/redemption_reward_result.rb +396 -0
  1251. data/lib/VoucherifySdk/models/redemption_reward_result_parameters.rb +233 -0
  1252. data/lib/VoucherifySdk/models/redemption_reward_result_parameters_campaign.rb +236 -0
  1253. data/lib/VoucherifySdk/models/redemption_reward_result_parameters_coin.rb +226 -0
  1254. data/lib/VoucherifySdk/models/redemption_reward_result_parameters_product.rb +226 -0
  1255. data/lib/VoucherifySdk/models/redemption_reward_result_product.rb +397 -0
  1256. data/lib/VoucherifySdk/models/redemption_reward_result_sku.rb +425 -0
  1257. data/lib/VoucherifySdk/models/redemption_reward_result_voucher.rb +547 -0
  1258. data/lib/VoucherifySdk/models/redemption_rollback.rb +581 -0
  1259. data/lib/VoucherifySdk/models/redemption_rollback_related_redemptions.rb +227 -0
  1260. data/lib/VoucherifySdk/models/redemption_rollback_related_redemptions_item.rb +225 -0
  1261. data/lib/VoucherifySdk/models/redemption_rollback_related_redemptions_rollbacks_item.rb +225 -0
  1262. data/lib/VoucherifySdk/models/redemptions_get_response_body.rb +106 -0
  1263. data/lib/VoucherifySdk/models/redemptions_list_response_body.rb +275 -0
  1264. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item.rb +105 -0
  1265. data/lib/VoucherifySdk/models/redemptions_redeem_request_body.rb +316 -0
  1266. data/lib/VoucherifySdk/models/redemptions_redeem_response_body.rb +259 -0
  1267. data/lib/VoucherifySdk/models/redemptions_rollback_create_request_body.rb +254 -0
  1268. data/lib/VoucherifySdk/models/redemptions_rollback_create_response_body.rb +588 -0
  1269. data/lib/VoucherifySdk/models/redemptions_rollbacks_create_request_body.rb +254 -0
  1270. data/lib/VoucherifySdk/models/redemptions_rollbacks_create_response_body.rb +236 -0
  1271. data/lib/VoucherifySdk/models/referral_campaign_voucher.rb +307 -0
  1272. data/lib/VoucherifySdk/models/referral_program.rb +268 -0
  1273. data/lib/VoucherifySdk/models/referral_program_custom_event.rb +226 -0
  1274. data/lib/VoucherifySdk/models/referral_program_referee_reward.rb +269 -0
  1275. data/lib/VoucherifySdk/models/referral_program_referee_reward_related_object_parent.rb +272 -0
  1276. data/lib/VoucherifySdk/models/referrer.rb +312 -0
  1277. data/lib/VoucherifySdk/models/referrer_id.rb +280 -0
  1278. data/lib/VoucherifySdk/models/referrer_with_summary_loyalty_referrals.rb +438 -0
  1279. data/lib/VoucherifySdk/models/resource_types.rb +41 -0
  1280. data/lib/VoucherifySdk/models/reward.rb +410 -0
  1281. data/lib/VoucherifySdk/models/reward_assignment.rb +383 -0
  1282. data/lib/VoucherifySdk/models/reward_assignment_base.rb +366 -0
  1283. data/lib/VoucherifySdk/models/reward_assignment_parameters.rb +214 -0
  1284. data/lib/VoucherifySdk/models/reward_assignment_parameters_parameters.rb +222 -0
  1285. data/lib/VoucherifySdk/models/reward_assignment_parameters_parameters_loyalty.rb +216 -0
  1286. data/lib/VoucherifySdk/models/reward_assignments_create_coin_reward_request_body.rb +234 -0
  1287. data/lib/VoucherifySdk/models/reward_assignments_create_digital_or_material_reward_request_body.rb +239 -0
  1288. data/lib/VoucherifySdk/models/reward_assignments_create_digital_or_material_reward_request_body_parameters.rb +222 -0
  1289. data/lib/VoucherifySdk/models/reward_assignments_create_digital_or_material_reward_request_body_parameters_loyalty.rb +216 -0
  1290. data/lib/VoucherifySdk/models/reward_attributes.rb +226 -0
  1291. data/lib/VoucherifySdk/models/reward_type.rb +106 -0
  1292. data/lib/VoucherifySdk/models/reward_type_campaign.rb +221 -0
  1293. data/lib/VoucherifySdk/models/reward_type_campaign_campaign.rb +284 -0
  1294. data/lib/VoucherifySdk/models/reward_type_coin.rb +221 -0
  1295. data/lib/VoucherifySdk/models/reward_type_coin_coin.rb +233 -0
  1296. data/lib/VoucherifySdk/models/reward_type_material.rb +221 -0
  1297. data/lib/VoucherifySdk/models/reward_type_material_product.rb +236 -0
  1298. data/lib/VoucherifySdk/models/rewards_assignments_create_request_body.rb +106 -0
  1299. data/lib/VoucherifySdk/models/rewards_assignments_create_response_body.rb +383 -0
  1300. data/lib/VoucherifySdk/models/rewards_assignments_get_response_body.rb +383 -0
  1301. data/lib/VoucherifySdk/models/rewards_assignments_list_response_body.rb +275 -0
  1302. data/lib/VoucherifySdk/models/rewards_assignments_update_request_body.rb +215 -0
  1303. data/lib/VoucherifySdk/models/rewards_assignments_update_request_body_parameters.rb +215 -0
  1304. data/lib/VoucherifySdk/models/rewards_assignments_update_request_body_parameters_loyalty.rb +216 -0
  1305. data/lib/VoucherifySdk/models/rewards_assignments_update_response_body.rb +383 -0
  1306. data/lib/VoucherifySdk/models/schema_that_contains_unique_properties_for_promotion_campaign_promotion.rb +217 -0
  1307. data/lib/VoucherifySdk/models/session.rb +307 -0
  1308. data/lib/VoucherifySdk/models/simple_campaign.rb +381 -0
  1309. data/lib/VoucherifySdk/models/simple_consent.rb +273 -0
  1310. data/lib/VoucherifySdk/models/simple_customer.rb +301 -0
  1311. data/lib/VoucherifySdk/models/simple_customer_required_object_type.rb +273 -0
  1312. data/lib/VoucherifySdk/models/simple_order.rb +423 -0
  1313. data/lib/VoucherifySdk/models/simple_order_item.rb +363 -0
  1314. data/lib/VoucherifySdk/models/simple_product.rb +235 -0
  1315. data/lib/VoucherifySdk/models/simple_product_discount_unit.rb +249 -0
  1316. data/lib/VoucherifySdk/models/simple_promotion_tier.rb +245 -0
  1317. data/lib/VoucherifySdk/models/simple_promotion_tier_campaign.rb +216 -0
  1318. data/lib/VoucherifySdk/models/simple_redemption.rb +368 -0
  1319. data/lib/VoucherifySdk/models/simple_redemption_reward_result.rb +380 -0
  1320. data/lib/VoucherifySdk/models/simple_referral_tier.rb +245 -0
  1321. data/lib/VoucherifySdk/models/simple_segment.rb +290 -0
  1322. data/lib/VoucherifySdk/models/simple_sku.rb +235 -0
  1323. data/lib/VoucherifySdk/models/simple_sku_discount_unit.rb +249 -0
  1324. data/lib/VoucherifySdk/models/simple_voucher.rb +390 -0
  1325. data/lib/VoucherifySdk/models/sku.rb +418 -0
  1326. data/lib/VoucherifySdk/models/sku_with_product.rb +433 -0
  1327. data/lib/VoucherifySdk/models/skus_get_response_body.rb +425 -0
  1328. data/lib/VoucherifySdk/models/skus_import_csv_create_response_body.rb +230 -0
  1329. data/lib/VoucherifySdk/models/skus_list.rb +276 -0
  1330. data/lib/VoucherifySdk/models/skus_list_for_product.rb +276 -0
  1331. data/lib/VoucherifySdk/models/stackable_validate_redeem_base.rb +299 -0
  1332. data/lib/VoucherifySdk/models/stackable_validate_redeem_base_redeemables_item.rb +108 -0
  1333. data/lib/VoucherifySdk/models/stacking_rules.rb +487 -0
  1334. data/lib/VoucherifySdk/models/validation_entity.rb +325 -0
  1335. data/lib/VoucherifySdk/models/validation_rule.rb +422 -0
  1336. data/lib/VoucherifySdk/models/validation_rule_assignment.rb +354 -0
  1337. data/lib/VoucherifySdk/models/validation_rule_assignments_list.rb +276 -0
  1338. data/lib/VoucherifySdk/models/validation_rule_base.rb +314 -0
  1339. data/lib/VoucherifySdk/models/validation_rule_base_applicable_to.rb +239 -0
  1340. data/lib/VoucherifySdk/models/validation_rule_base_error.rb +216 -0
  1341. data/lib/VoucherifySdk/models/validation_rules_assignments_list.rb +341 -0
  1342. data/lib/VoucherifySdk/models/validation_rules_assignments_list_response_body.rb +283 -0
  1343. data/lib/VoucherifySdk/models/validation_rules_create_request_body.rb +328 -0
  1344. data/lib/VoucherifySdk/models/validation_rules_create_response_body.rb +423 -0
  1345. data/lib/VoucherifySdk/models/validation_rules_get_response_body.rb +423 -0
  1346. data/lib/VoucherifySdk/models/validation_rules_list_response_body.rb +276 -0
  1347. data/lib/VoucherifySdk/models/validation_rules_update_request_body.rb +321 -0
  1348. data/lib/VoucherifySdk/models/validation_rules_update_response_body.rb +423 -0
  1349. data/lib/VoucherifySdk/models/validations_redeemable_applicable.rb +340 -0
  1350. data/lib/VoucherifySdk/models/validations_redeemable_applicable_result.rb +109 -0
  1351. data/lib/VoucherifySdk/models/validations_redeemable_inapplicable.rb +292 -0
  1352. data/lib/VoucherifySdk/models/validations_redeemable_inapplicable_result.rb +214 -0
  1353. data/lib/VoucherifySdk/models/validations_redeemable_skipped.rb +292 -0
  1354. data/lib/VoucherifySdk/models/validations_validate_all_response_body_redeemables_item.rb +106 -0
  1355. data/lib/VoucherifySdk/models/validations_validate_request_body.rb +316 -0
  1356. data/lib/VoucherifySdk/models/validations_validate_response_body.rb +294 -0
  1357. data/lib/VoucherifySdk/models/voucher.rb +540 -0
  1358. data/lib/VoucherifySdk/models/voucher_assets.rb +224 -0
  1359. data/lib/VoucherifySdk/models/voucher_gift.rb +270 -0
  1360. data/lib/VoucherifySdk/models/voucher_loyalty_card.rb +246 -0
  1361. data/lib/VoucherifySdk/models/voucher_publish.rb +238 -0
  1362. data/lib/VoucherifySdk/models/voucher_redemption.rb +268 -0
  1363. data/lib/VoucherifySdk/models/voucher_transaction.rb +379 -0
  1364. data/lib/VoucherifySdk/models/voucher_transaction_details.rb +323 -0
  1365. data/lib/VoucherifySdk/models/voucher_transaction_details_balance.rb +365 -0
  1366. data/lib/VoucherifySdk/models/voucher_transaction_details_balance_related_object.rb +280 -0
  1367. data/lib/VoucherifySdk/models/voucher_transaction_details_custom_event.rb +240 -0
  1368. data/lib/VoucherifySdk/models/voucher_transaction_details_earning_rule.rb +239 -0
  1369. data/lib/VoucherifySdk/models/voucher_transaction_details_earning_rule_source.rb +223 -0
  1370. data/lib/VoucherifySdk/models/voucher_transaction_details_event.rb +240 -0
  1371. data/lib/VoucherifySdk/models/voucher_transaction_details_event_schema.rb +240 -0
  1372. data/lib/VoucherifySdk/models/voucher_transaction_details_loyalty_tier.rb +238 -0
  1373. data/lib/VoucherifySdk/models/voucher_transaction_details_order.rb +240 -0
  1374. data/lib/VoucherifySdk/models/voucher_transaction_details_redemption.rb +223 -0
  1375. data/lib/VoucherifySdk/models/voucher_transaction_details_reward.rb +240 -0
  1376. data/lib/VoucherifySdk/models/voucher_transaction_details_rollback.rb +223 -0
  1377. data/lib/VoucherifySdk/models/voucher_transaction_details_segment.rb +238 -0
  1378. data/lib/VoucherifySdk/models/voucher_transactions_export.rb +407 -0
  1379. data/lib/VoucherifySdk/models/voucher_transactions_export_filter_conditions.rb +222 -0
  1380. data/lib/VoucherifySdk/models/voucher_transactions_export_filter_conditions_voucher_id.rb +222 -0
  1381. data/lib/VoucherifySdk/models/voucher_transactions_export_filter_conditions_voucher_id_conditions.rb +252 -0
  1382. data/lib/VoucherifySdk/models/voucher_transactions_export_parameters.rb +262 -0
  1383. data/lib/VoucherifySdk/models/voucher_transactions_export_result.rb +223 -0
  1384. data/lib/VoucherifySdk/models/voucher_transactions_filters.rb +278 -0
  1385. data/lib/VoucherifySdk/models/voucher_validity_timeframe.rb +226 -0
  1386. data/lib/VoucherifySdk/models/vouchers_balance_update_request_body.rb +243 -0
  1387. data/lib/VoucherifySdk/models/vouchers_balance_update_response_body.rb +381 -0
  1388. data/lib/VoucherifySdk/models/vouchers_balance_update_response_body_related_object.rb +274 -0
  1389. data/lib/VoucherifySdk/models/vouchers_disable_response_body.rb +547 -0
  1390. data/lib/VoucherifySdk/models/vouchers_enable_response_body.rb +547 -0
  1391. data/lib/VoucherifySdk/models/vouchers_get_response_body.rb +547 -0
  1392. data/lib/VoucherifySdk/models/vouchers_import_csv_create_response_body.rb +230 -0
  1393. data/lib/VoucherifySdk/models/vouchers_redemption_get_response_body.rb +323 -0
  1394. data/lib/VoucherifySdk/models/vouchers_redemption_get_response_body_redemption_entries_item.rb +105 -0
  1395. data/lib/VoucherifySdk/models/vouchers_transactions_export_create_request_body.rb +215 -0
  1396. data/lib/VoucherifySdk/models/vouchers_transactions_export_create_response_body.rb +414 -0
  1397. data/lib/VoucherifySdk/models/vouchers_transactions_list_response_body.rb +276 -0
  1398. data/lib/VoucherifySdk/version.rb +15 -0
  1399. data/lib/VoucherifySdk.rb +716 -0
  1400. metadata +1430 -72
  1401. data/.gitignore +0 -43
  1402. data/.rspec +0 -2
  1403. data/.travis.yml +0 -9
  1404. data/bin/console +0 -14
  1405. data/bin/setup +0 -8
  1406. data/examples/customers.rb +0 -32
  1407. data/examples/utils.rb +0 -71
  1408. data/examples/vouchers.rb +0 -25
  1409. data/lib/voucherify/client.rb +0 -154
  1410. data/lib/voucherify/service/async_actions.rb +0 -22
  1411. data/lib/voucherify/service/campaigns.rb +0 -39
  1412. data/lib/voucherify/service/consents.rb +0 -17
  1413. data/lib/voucherify/service/customers.rb +0 -37
  1414. data/lib/voucherify/service/distributions.rb +0 -45
  1415. data/lib/voucherify/service/events.rb +0 -24
  1416. data/lib/voucherify/service/loyalties.rb +0 -133
  1417. data/lib/voucherify/service/orders.rb +0 -29
  1418. data/lib/voucherify/service/products.rb +0 -53
  1419. data/lib/voucherify/service/promotions.rb +0 -58
  1420. data/lib/voucherify/service/redemptions.rb +0 -42
  1421. data/lib/voucherify/service/rewards.rb +0 -63
  1422. data/lib/voucherify/service/segments.rb +0 -25
  1423. data/lib/voucherify/service/validation_rules.rb +0 -69
  1424. data/lib/voucherify/service/validations.rb +0 -26
  1425. data/lib/voucherify/service/vouchers.rb +0 -54
  1426. data/lib/voucherify/utils.rb +0 -101
  1427. data/lib/voucherify/version.rb +0 -3
  1428. data/lib/voucherify.rb +0 -23
  1429. data/voucherify.gemspec +0 -28
@@ -0,0 +1,874 @@
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 'cgi'
14
+
15
+ module VoucherifySdk
16
+ class CustomersApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create Customer
23
+ # Creates a customer object. 📘 Upsert Mode If you pass an id or a source_id that already exists in the customer database, Voucherify will return a related customer object with updated fields.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [CustomersCreateRequestBody] :customers_create_request_body Create a customer with specified parameters.
26
+ # @return [CustomersCreateResponseBody]
27
+ def create_customer(opts = {})
28
+ data, _status_code, _headers = create_customer_with_http_info(opts)
29
+ data
30
+ end
31
+
32
+ # Create Customer
33
+ # Creates a customer object. 📘 Upsert Mode If you pass an id or a source_id that already exists in the customer database, Voucherify will return a related customer object with updated fields.
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [CustomersCreateRequestBody] :customers_create_request_body Create a customer with specified parameters.
36
+ # @return [Array<(CustomersCreateResponseBody, Integer, Hash)>] CustomersCreateResponseBody data, response status code and response headers
37
+ private def create_customer_with_http_info(opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: CustomersApi.create_customer ...'
40
+ end
41
+ # resource path
42
+ local_var_path = '/v1/customers'
43
+
44
+ # query parameters
45
+ query_params = opts[:query_params] || {}
46
+
47
+ # header parameters
48
+ header_params = opts[:header_params] || {}
49
+ # HTTP header 'Accept' (if needed)
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
+ # HTTP header 'Content-Type'
52
+ content_type = @api_client.select_header_content_type(['application/json'])
53
+ if !content_type.nil?
54
+ header_params['Content-Type'] = content_type
55
+ end
56
+
57
+ # form parameters
58
+ form_params = opts[:form_params] || {}
59
+
60
+ # http body (model)
61
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'customers_create_request_body'])
62
+
63
+ # return_type
64
+ return_type = opts[:debug_return_type] || 'CustomersCreateResponseBody'
65
+
66
+ # auth_names
67
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
68
+
69
+ new_options = opts.merge(
70
+ :operation => :"CustomersApi.create_customer",
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: CustomersApi#create_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete Customer Permanently
87
+ # The organization user can remove consumer data permanently from the Voucherify system by using this API method. It deletes all customer data and connected resources. It makes the customer profile forgotten by Voucherify.
88
+ # @param customer_id [String] A Voucherify customers id or source_id.
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [CustomersPermanentDeletionCreateResponseBody]
91
+ def customer_permanently_deletion(customer_id, opts = {})
92
+ data, _status_code, _headers = customer_permanently_deletion_with_http_info(customer_id, opts)
93
+ data
94
+ end
95
+
96
+ # Delete Customer Permanently
97
+ # The organization user can remove consumer data permanently from the Voucherify system by using this API method. It deletes all customer data and connected resources. It makes the customer profile forgotten by Voucherify.
98
+ # @param customer_id [String] A Voucherify customers id or source_id.
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(CustomersPermanentDeletionCreateResponseBody, Integer, Hash)>] CustomersPermanentDeletionCreateResponseBody data, response status code and response headers
101
+ private def customer_permanently_deletion_with_http_info(customer_id, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: CustomersApi.customer_permanently_deletion ...'
104
+ end
105
+ # verify the required parameter 'customer_id' is set
106
+ if @api_client.config.client_side_validation && customer_id.nil?
107
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomersApi.customer_permanently_deletion"
108
+ end
109
+ # resource path
110
+ local_var_path = '/v1/customers/{customerId}/permanent-deletion'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+ # HTTP header 'Accept' (if needed)
118
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
+
120
+ # form parameters
121
+ form_params = opts[:form_params] || {}
122
+
123
+ # http body (model)
124
+ post_body = opts[:debug_body]
125
+
126
+ # return_type
127
+ return_type = opts[:debug_return_type] || 'CustomersPermanentDeletionCreateResponseBody'
128
+
129
+ # auth_names
130
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
131
+
132
+ new_options = opts.merge(
133
+ :operation => :"CustomersApi.customer_permanently_deletion",
134
+ :header_params => header_params,
135
+ :query_params => query_params,
136
+ :form_params => form_params,
137
+ :body => post_body,
138
+ :auth_names => auth_names,
139
+ :return_type => return_type
140
+ )
141
+
142
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
143
+ if @api_client.config.debugging
144
+ @api_client.config.logger.debug "API called: CustomersApi#customer_permanently_deletion\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
+ end
146
+ return data, status_code, headers
147
+ end
148
+
149
+ # Delete Customer
150
+ # This method deletes a customer.
151
+ # @param customer_id [String] A Voucherify customers id or source_id.
152
+ # @param [Hash] opts the optional parameters
153
+ # @return [nil]
154
+ def delete_customer(customer_id, opts = {})
155
+ delete_customer_with_http_info(customer_id, opts)
156
+ nil
157
+ end
158
+
159
+ # Delete Customer
160
+ # This method deletes a customer.
161
+ # @param customer_id [String] A Voucherify customers id or source_id.
162
+ # @param [Hash] opts the optional parameters
163
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
164
+ private def delete_customer_with_http_info(customer_id, opts = {})
165
+ if @api_client.config.debugging
166
+ @api_client.config.logger.debug 'Calling API: CustomersApi.delete_customer ...'
167
+ end
168
+ # verify the required parameter 'customer_id' is set
169
+ if @api_client.config.client_side_validation && customer_id.nil?
170
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomersApi.delete_customer"
171
+ end
172
+ # resource path
173
+ local_var_path = '/v1/customers/{customerId}'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s))
174
+
175
+ # query parameters
176
+ query_params = opts[:query_params] || {}
177
+
178
+ # header parameters
179
+ header_params = opts[:header_params] || {}
180
+
181
+ # form parameters
182
+ form_params = opts[:form_params] || {}
183
+
184
+ # http body (model)
185
+ post_body = opts[:debug_body]
186
+
187
+ # return_type
188
+ return_type = opts[:debug_return_type]
189
+
190
+ # auth_names
191
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
192
+
193
+ new_options = opts.merge(
194
+ :operation => :"CustomersApi.delete_customer",
195
+ :header_params => header_params,
196
+ :query_params => query_params,
197
+ :form_params => form_params,
198
+ :body => post_body,
199
+ :auth_names => auth_names,
200
+ :return_type => return_type
201
+ )
202
+
203
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
204
+ if @api_client.config.debugging
205
+ @api_client.config.logger.debug "API called: CustomersApi#delete_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
206
+ end
207
+ return data, status_code, headers
208
+ end
209
+
210
+ # Get Customer
211
+ # Retrieve customer details.
212
+ # @param customer_id [String] A Voucherify customers id or source_id.
213
+ # @param [Hash] opts the optional parameters
214
+ # @return [CustomersGetResponseBody]
215
+ def get_customer(customer_id, opts = {})
216
+ data, _status_code, _headers = get_customer_with_http_info(customer_id, opts)
217
+ data
218
+ end
219
+
220
+ # Get Customer
221
+ # Retrieve customer details.
222
+ # @param customer_id [String] A Voucherify customers id or source_id.
223
+ # @param [Hash] opts the optional parameters
224
+ # @return [Array<(CustomersGetResponseBody, Integer, Hash)>] CustomersGetResponseBody data, response status code and response headers
225
+ private def get_customer_with_http_info(customer_id, opts = {})
226
+ if @api_client.config.debugging
227
+ @api_client.config.logger.debug 'Calling API: CustomersApi.get_customer ...'
228
+ end
229
+ # verify the required parameter 'customer_id' is set
230
+ if @api_client.config.client_side_validation && customer_id.nil?
231
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomersApi.get_customer"
232
+ end
233
+ # resource path
234
+ local_var_path = '/v1/customers/{customerId}'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s))
235
+
236
+ # query parameters
237
+ query_params = opts[:query_params] || {}
238
+
239
+ # header parameters
240
+ header_params = opts[:header_params] || {}
241
+ # HTTP header 'Accept' (if needed)
242
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
243
+
244
+ # form parameters
245
+ form_params = opts[:form_params] || {}
246
+
247
+ # http body (model)
248
+ post_body = opts[:debug_body]
249
+
250
+ # return_type
251
+ return_type = opts[:debug_return_type] || 'CustomersGetResponseBody'
252
+
253
+ # auth_names
254
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
255
+
256
+ new_options = opts.merge(
257
+ :operation => :"CustomersApi.get_customer",
258
+ :header_params => header_params,
259
+ :query_params => query_params,
260
+ :form_params => form_params,
261
+ :body => post_body,
262
+ :auth_names => auth_names,
263
+ :return_type => return_type
264
+ )
265
+
266
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
267
+ if @api_client.config.debugging
268
+ @api_client.config.logger.debug "API called: CustomersApi#get_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
269
+ end
270
+ return data, status_code, headers
271
+ end
272
+
273
+ # Import and Update Customers using CSV
274
+ # This API method lets you import or update customer data. To get a proper and valid response, please send a CSV file with data separated by commas. # Request Example # CSV File Format The CSV file has to include headers in the first line. All properties which cannot be mapped to standard customer fields will be added to the metadata object. 📘 Standard customer fields mapping **No spaces allowed in field names** Id, Name, Email, Phone, Birthdate, Source_id, Address_line_1, Address_line_2, Address_Postal_Code, Address_City, Address_State, Address_Country, Description, Metadata_name_1, Metadata_name_2 # Update Customers using CSV If you would like to update customers data, you can do it using the CSV file with new data. However, remember to include a source_id in your CSV file to manage the update successfully. This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this API request.
275
+ # @param file [File] File path.
276
+ # @param [Hash] opts the optional parameters
277
+ # @return [CustomersImportCsvCreateResponseBody]
278
+ def import_customers_using_csv(file, opts = {})
279
+ data, _status_code, _headers = import_customers_using_csv_with_http_info(file, opts)
280
+ data
281
+ end
282
+
283
+ # Import and Update Customers using CSV
284
+ # This API method lets you import or update customer data. To get a proper and valid response, please send a CSV file with data separated by commas. # Request Example # CSV File Format The CSV file has to include headers in the first line. All properties which cannot be mapped to standard customer fields will be added to the metadata object. 📘 Standard customer fields mapping **No spaces allowed in field names** Id, Name, Email, Phone, Birthdate, Source_id, Address_line_1, Address_line_2, Address_Postal_Code, Address_City, Address_State, Address_Country, Description, Metadata_name_1, Metadata_name_2 # Update Customers using CSV If you would like to update customers data, you can do it using the CSV file with new data. However, remember to include a source_id in your CSV file to manage the update successfully. This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this API request.
285
+ # @param file [File] File path.
286
+ # @param [Hash] opts the optional parameters
287
+ # @return [Array<(CustomersImportCsvCreateResponseBody, Integer, Hash)>] CustomersImportCsvCreateResponseBody data, response status code and response headers
288
+ private def import_customers_using_csv_with_http_info(file, opts = {})
289
+ if @api_client.config.debugging
290
+ @api_client.config.logger.debug 'Calling API: CustomersApi.import_customers_using_csv ...'
291
+ end
292
+ # verify the required parameter 'file' is set
293
+ if @api_client.config.client_side_validation && file.nil?
294
+ fail ArgumentError, "Missing the required parameter 'file' when calling CustomersApi.import_customers_using_csv"
295
+ end
296
+ # resource path
297
+ local_var_path = '/v1/customers/importCSV'
298
+
299
+ # query parameters
300
+ query_params = opts[:query_params] || {}
301
+
302
+ # header parameters
303
+ header_params = opts[:header_params] || {}
304
+ # HTTP header 'Accept' (if needed)
305
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
306
+ # HTTP header 'Content-Type'
307
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
308
+ if !content_type.nil?
309
+ header_params['Content-Type'] = content_type
310
+ end
311
+
312
+ # form parameters
313
+ form_params = opts[:form_params] || {}
314
+ form_params['file'] = file
315
+
316
+ # http body (model)
317
+ post_body = opts[:debug_body]
318
+
319
+ # return_type
320
+ return_type = opts[:debug_return_type] || 'CustomersImportCsvCreateResponseBody'
321
+
322
+ # auth_names
323
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
324
+
325
+ new_options = opts.merge(
326
+ :operation => :"CustomersApi.import_customers_using_csv",
327
+ :header_params => header_params,
328
+ :query_params => query_params,
329
+ :form_params => form_params,
330
+ :body => post_body,
331
+ :auth_names => auth_names,
332
+ :return_type => return_type
333
+ )
334
+
335
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
336
+ if @api_client.config.debugging
337
+ @api_client.config.logger.debug "API called: CustomersApi#import_customers_using_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
338
+ end
339
+ return data, status_code, headers
340
+ end
341
+
342
+ # List Customer Activities
343
+ # Retrieve customer activities.
344
+ # @param customer_id [String] A Voucherify customers id or source ID of the customer who performed the activities.
345
+ # @param [Hash] opts the optional parameters
346
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100 items.
347
+ # @option opts [ParameterOrder] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
348
+ # @option opts [Time] :starting_after A cursor for use in pagination. starting_after is a date-time value that defines your place in the list based on created_at property from the activity object. For instance, if you make a list request and receive 100 objects, ending with an object created at 2020-05-24T13:43:09.024Z, your subsequent call can include starting_after 2020-05-24T13:43:09.024Z in order to fetch the next page of the list.
349
+ # @option opts [String] :starting_after_id By applying this filter value, you will get events starting after an event with the given ID.
350
+ # @option opts [ParameterCampaignType] :campaign_type Through this parameter you can control a type of campaign by which Voucherify will filter related customers activity. API will return only records related to that given type. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM
351
+ # @option opts [String] :campaign_id By applying this parameter you request only events related to specific campaign identified by its ID.
352
+ # @option opts [String] :product_id By applying this parameter you request only events related to specific product identified by its ID.
353
+ # @option opts [Time] :start_date Timestamp representing the date and time which results must end on. Represented in ISO 8601 format.
354
+ # @option opts [Time] :end_date Timestamp representing the date and time which results must end on. Represented in ISO 8601 format.
355
+ # @return [CustomersActivitiesListResponseBody]
356
+ def list_customer_activities(customer_id, opts = {})
357
+ data, _status_code, _headers = list_customer_activities_with_http_info(customer_id, opts)
358
+ data
359
+ end
360
+
361
+ # List Customer Activities
362
+ # Retrieve customer activities.
363
+ # @param customer_id [String] A Voucherify customers id or source ID of the customer who performed the activities.
364
+ # @param [Hash] opts the optional parameters
365
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100 items.
366
+ # @option opts [ParameterOrder] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
367
+ # @option opts [Time] :starting_after A cursor for use in pagination. starting_after is a date-time value that defines your place in the list based on created_at property from the activity object. For instance, if you make a list request and receive 100 objects, ending with an object created at 2020-05-24T13:43:09.024Z, your subsequent call can include starting_after 2020-05-24T13:43:09.024Z in order to fetch the next page of the list.
368
+ # @option opts [String] :starting_after_id By applying this filter value, you will get events starting after an event with the given ID.
369
+ # @option opts [ParameterCampaignType] :campaign_type Through this parameter you can control a type of campaign by which Voucherify will filter related customers activity. API will return only records related to that given type. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM
370
+ # @option opts [String] :campaign_id By applying this parameter you request only events related to specific campaign identified by its ID.
371
+ # @option opts [String] :product_id By applying this parameter you request only events related to specific product identified by its ID.
372
+ # @option opts [Time] :start_date Timestamp representing the date and time which results must end on. Represented in ISO 8601 format.
373
+ # @option opts [Time] :end_date Timestamp representing the date and time which results must end on. Represented in ISO 8601 format.
374
+ # @return [Array<(CustomersActivitiesListResponseBody, Integer, Hash)>] CustomersActivitiesListResponseBody data, response status code and response headers
375
+ private def list_customer_activities_with_http_info(customer_id, opts = {})
376
+ if @api_client.config.debugging
377
+ @api_client.config.logger.debug 'Calling API: CustomersApi.list_customer_activities ...'
378
+ end
379
+ # verify the required parameter 'customer_id' is set
380
+ if @api_client.config.client_side_validation && customer_id.nil?
381
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomersApi.list_customer_activities"
382
+ end
383
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
384
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CustomersApi.list_customer_activities, must be smaller than or equal to 100.'
385
+ end
386
+
387
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
388
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CustomersApi.list_customer_activities, must be greater than or equal to 1.'
389
+ end
390
+
391
+ # resource path
392
+ local_var_path = '/v1/customers/{customerId}/activities'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s))
393
+
394
+ # query parameters
395
+ query_params = opts[:query_params] || {}
396
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
397
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
398
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
399
+ query_params[:'starting_after_id'] = opts[:'starting_after_id'] if !opts[:'starting_after_id'].nil?
400
+ query_params[:'campaign_type'] = opts[:'campaign_type'] if !opts[:'campaign_type'].nil?
401
+ query_params[:'campaign_id'] = opts[:'campaign_id'] if !opts[:'campaign_id'].nil?
402
+ query_params[:'product_id'] = opts[:'product_id'] if !opts[:'product_id'].nil?
403
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
404
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
405
+
406
+ # header parameters
407
+ header_params = opts[:header_params] || {}
408
+ # HTTP header 'Accept' (if needed)
409
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
410
+
411
+ # form parameters
412
+ form_params = opts[:form_params] || {}
413
+
414
+ # http body (model)
415
+ post_body = opts[:debug_body]
416
+
417
+ # return_type
418
+ return_type = opts[:debug_return_type] || 'CustomersActivitiesListResponseBody'
419
+
420
+ # auth_names
421
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
422
+
423
+ new_options = opts.merge(
424
+ :operation => :"CustomersApi.list_customer_activities",
425
+ :header_params => header_params,
426
+ :query_params => query_params,
427
+ :form_params => form_params,
428
+ :body => post_body,
429
+ :auth_names => auth_names,
430
+ :return_type => return_type
431
+ )
432
+
433
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
434
+ if @api_client.config.debugging
435
+ @api_client.config.logger.debug "API called: CustomersApi#list_customer_activities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
436
+ end
437
+ return data, status_code, headers
438
+ end
439
+
440
+ # List Customer's Segments
441
+ # Returns the list of segments IDs to which the customer belongs to. If you pass a customerId which is not stored and recognized by Voucherify as an existing customer in the system, the response will generate a list of segments that the customer would potentialy qualify for if they were to become a customer tracked in the system.
442
+ # @param customer_id [String] Unique identifier of a customer represented by an internal customer ID or customer source ID.
443
+ # @param [Hash] opts the optional parameters
444
+ # @return [CustomersSegmentsListResponseBody]
445
+ def list_customer_segments(customer_id, opts = {})
446
+ data, _status_code, _headers = list_customer_segments_with_http_info(customer_id, opts)
447
+ data
448
+ end
449
+
450
+ # List Customer&#39;s Segments
451
+ # Returns the list of segments IDs to which the customer belongs to. If you pass a customerId which is not stored and recognized by Voucherify as an existing customer in the system, the response will generate a list of segments that the customer would potentialy qualify for if they were to become a customer tracked in the system.
452
+ # @param customer_id [String] Unique identifier of a customer represented by an internal customer ID or customer source ID.
453
+ # @param [Hash] opts the optional parameters
454
+ # @return [Array<(CustomersSegmentsListResponseBody, Integer, Hash)>] CustomersSegmentsListResponseBody data, response status code and response headers
455
+ private def list_customer_segments_with_http_info(customer_id, opts = {})
456
+ if @api_client.config.debugging
457
+ @api_client.config.logger.debug 'Calling API: CustomersApi.list_customer_segments ...'
458
+ end
459
+ # verify the required parameter 'customer_id' is set
460
+ if @api_client.config.client_side_validation && customer_id.nil?
461
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomersApi.list_customer_segments"
462
+ end
463
+ # resource path
464
+ local_var_path = '/v1/customers/{customerId}/segments'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s))
465
+
466
+ # query parameters
467
+ query_params = opts[:query_params] || {}
468
+
469
+ # header parameters
470
+ header_params = opts[:header_params] || {}
471
+ # HTTP header 'Accept' (if needed)
472
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
473
+
474
+ # form parameters
475
+ form_params = opts[:form_params] || {}
476
+
477
+ # http body (model)
478
+ post_body = opts[:debug_body]
479
+
480
+ # return_type
481
+ return_type = opts[:debug_return_type] || 'CustomersSegmentsListResponseBody'
482
+
483
+ # auth_names
484
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
485
+
486
+ new_options = opts.merge(
487
+ :operation => :"CustomersApi.list_customer_segments",
488
+ :header_params => header_params,
489
+ :query_params => query_params,
490
+ :form_params => form_params,
491
+ :body => post_body,
492
+ :auth_names => auth_names,
493
+ :return_type => return_type
494
+ )
495
+
496
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
497
+ if @api_client.config.debugging
498
+ @api_client.config.logger.debug "API called: CustomersApi#list_customer_segments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
499
+ end
500
+ return data, status_code, headers
501
+ end
502
+
503
+ # List Customers
504
+ # Returns a list of customers.
505
+ # @param [Hash] opts the optional parameters
506
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100 items.
507
+ # @option opts [Integer] :page Which page of results to return.
508
+ # @option opts [String] :email Limit the customers to the ones that have this specific email address.
509
+ # @option opts [String] :city Limit the customers to the ones that are located in the specified city.
510
+ # @option opts [String] :name Filter customers by the name property.
511
+ # @option opts [String] :segment_id Filter customers by the segment id.
512
+ # @option opts [Time] :created_at_before Filter customers by date customer was created.
513
+ # @option opts [Time] :created_at_after Filter customers by date customer was created.
514
+ # @option opts [Time] :updated_at_before Filter customers by date customer was updated last time.
515
+ # @option opts [Time] :updated_at_after Filter customers by date customer was updated last time.
516
+ # @option opts [ParameterOrderListCustomers] :order This is a property that controls the sorting direction of the results. Sort the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
517
+ # @option opts [Time] :starting_after A cursor for use in pagination. This is a date-time value that defines your place in the list based on created_at property from the customer object. For instance, if you make a list request and receive 100 objects, ending with an object created at 2020-05-24T13:43:09.024Z, your subsequent call can include starting_after 2020-05-24T13:43:09.024Z in order to fetch the next page of the list.
518
+ # @return [CustomersListResponseBody]
519
+ def list_customers(opts = {})
520
+ data, _status_code, _headers = list_customers_with_http_info(opts)
521
+ data
522
+ end
523
+
524
+ # List Customers
525
+ # Returns a list of customers.
526
+ # @param [Hash] opts the optional parameters
527
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100 items.
528
+ # @option opts [Integer] :page Which page of results to return.
529
+ # @option opts [String] :email Limit the customers to the ones that have this specific email address.
530
+ # @option opts [String] :city Limit the customers to the ones that are located in the specified city.
531
+ # @option opts [String] :name Filter customers by the name property.
532
+ # @option opts [String] :segment_id Filter customers by the segment id.
533
+ # @option opts [Time] :created_at_before Filter customers by date customer was created.
534
+ # @option opts [Time] :created_at_after Filter customers by date customer was created.
535
+ # @option opts [Time] :updated_at_before Filter customers by date customer was updated last time.
536
+ # @option opts [Time] :updated_at_after Filter customers by date customer was updated last time.
537
+ # @option opts [ParameterOrderListCustomers] :order This is a property that controls the sorting direction of the results. Sort the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
538
+ # @option opts [Time] :starting_after A cursor for use in pagination. This is a date-time value that defines your place in the list based on created_at property from the customer object. For instance, if you make a list request and receive 100 objects, ending with an object created at 2020-05-24T13:43:09.024Z, your subsequent call can include starting_after 2020-05-24T13:43:09.024Z in order to fetch the next page of the list.
539
+ # @return [Array<(CustomersListResponseBody, Integer, Hash)>] CustomersListResponseBody data, response status code and response headers
540
+ private def list_customers_with_http_info(opts = {})
541
+ if @api_client.config.debugging
542
+ @api_client.config.logger.debug 'Calling API: CustomersApi.list_customers ...'
543
+ end
544
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
545
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CustomersApi.list_customers, must be smaller than or equal to 100.'
546
+ end
547
+
548
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
549
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CustomersApi.list_customers, must be greater than or equal to 1.'
550
+ end
551
+
552
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 100
553
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CustomersApi.list_customers, must be smaller than or equal to 100.'
554
+ end
555
+
556
+ # resource path
557
+ local_var_path = '/v1/customers'
558
+
559
+ # query parameters
560
+ query_params = opts[:query_params] || {}
561
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
562
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
563
+ query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
564
+ query_params[:'city'] = opts[:'city'] if !opts[:'city'].nil?
565
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
566
+ query_params[:'segment_id'] = opts[:'segment_id'] if !opts[:'segment_id'].nil?
567
+ query_params[:'created_at[before]'] = opts[:'created_at_before'] if !opts[:'created_at_before'].nil?
568
+ query_params[:'created_at[after]'] = opts[:'created_at_after'] if !opts[:'created_at_after'].nil?
569
+ query_params[:'updated_at[before]'] = opts[:'updated_at_before'] if !opts[:'updated_at_before'].nil?
570
+ query_params[:'updated_at[after]'] = opts[:'updated_at_after'] if !opts[:'updated_at_after'].nil?
571
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
572
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
573
+
574
+ # header parameters
575
+ header_params = opts[:header_params] || {}
576
+ # HTTP header 'Accept' (if needed)
577
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
578
+
579
+ # form parameters
580
+ form_params = opts[:form_params] || {}
581
+
582
+ # http body (model)
583
+ post_body = opts[:debug_body]
584
+
585
+ # return_type
586
+ return_type = opts[:debug_return_type] || 'CustomersListResponseBody'
587
+
588
+ # auth_names
589
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
590
+
591
+ new_options = opts.merge(
592
+ :operation => :"CustomersApi.list_customers",
593
+ :header_params => header_params,
594
+ :query_params => query_params,
595
+ :form_params => form_params,
596
+ :body => post_body,
597
+ :auth_names => auth_names,
598
+ :return_type => return_type
599
+ )
600
+
601
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
602
+ if @api_client.config.debugging
603
+ @api_client.config.logger.debug "API called: CustomersApi#list_customers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
604
+ end
605
+ return data, status_code, headers
606
+ end
607
+
608
+ # Update Customer
609
+ # Updates the specified customer by setting the values of the parameters passed in the request body. Any parameters not provided in the payload will be left unchanged.
610
+ # @param customer_id [String] A Voucherify customers id or source_id.
611
+ # @param [Hash] opts the optional parameters
612
+ # @option opts [CustomersUpdateRequestBody] :customers_update_request_body Specify the parameters to be updated.
613
+ # @return [CustomersUpdateResponseBody]
614
+ def update_customer(customer_id, opts = {})
615
+ data, _status_code, _headers = update_customer_with_http_info(customer_id, opts)
616
+ data
617
+ end
618
+
619
+ # Update Customer
620
+ # Updates the specified customer by setting the values of the parameters passed in the request body. Any parameters not provided in the payload will be left unchanged.
621
+ # @param customer_id [String] A Voucherify customers id or source_id.
622
+ # @param [Hash] opts the optional parameters
623
+ # @option opts [CustomersUpdateRequestBody] :customers_update_request_body Specify the parameters to be updated.
624
+ # @return [Array<(CustomersUpdateResponseBody, Integer, Hash)>] CustomersUpdateResponseBody data, response status code and response headers
625
+ private def update_customer_with_http_info(customer_id, opts = {})
626
+ if @api_client.config.debugging
627
+ @api_client.config.logger.debug 'Calling API: CustomersApi.update_customer ...'
628
+ end
629
+ # verify the required parameter 'customer_id' is set
630
+ if @api_client.config.client_side_validation && customer_id.nil?
631
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomersApi.update_customer"
632
+ end
633
+ # resource path
634
+ local_var_path = '/v1/customers/{customerId}'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s))
635
+
636
+ # query parameters
637
+ query_params = opts[:query_params] || {}
638
+
639
+ # header parameters
640
+ header_params = opts[:header_params] || {}
641
+ # HTTP header 'Accept' (if needed)
642
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
643
+ # HTTP header 'Content-Type'
644
+ content_type = @api_client.select_header_content_type(['application/json'])
645
+ if !content_type.nil?
646
+ header_params['Content-Type'] = content_type
647
+ end
648
+
649
+ # form parameters
650
+ form_params = opts[:form_params] || {}
651
+
652
+ # http body (model)
653
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'customers_update_request_body'])
654
+
655
+ # return_type
656
+ return_type = opts[:debug_return_type] || 'CustomersUpdateResponseBody'
657
+
658
+ # auth_names
659
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
660
+
661
+ new_options = opts.merge(
662
+ :operation => :"CustomersApi.update_customer",
663
+ :header_params => header_params,
664
+ :query_params => query_params,
665
+ :form_params => form_params,
666
+ :body => post_body,
667
+ :auth_names => auth_names,
668
+ :return_type => return_type
669
+ )
670
+
671
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
672
+ if @api_client.config.debugging
673
+ @api_client.config.logger.debug "API called: CustomersApi#update_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
674
+ end
675
+ return data, status_code, headers
676
+ end
677
+
678
+ # Update Customer's consents
679
+ # Update marketing permissions for the specified customer.
680
+ # @param customer_id [String] A Voucherify unique customer identifier or source ID.
681
+ # @param [Hash] opts the optional parameters
682
+ # @option opts [Object] :body Key-value pairs where the key is the consent identifier and value is a boolean that identifies if a customer has given the consent or not. To deny all consents use unsubscribed as a consent identifier and true as its value. ## Examples Opt-out from all communication:
683
+ # @return [nil]
684
+ def update_customers_consents(customer_id, opts = {})
685
+ update_customers_consents_with_http_info(customer_id, opts)
686
+ nil
687
+ end
688
+
689
+ # Update Customer&#39;s consents
690
+ # Update marketing permissions for the specified customer.
691
+ # @param customer_id [String] A Voucherify unique customer identifier or source ID.
692
+ # @param [Hash] opts the optional parameters
693
+ # @option opts [Object] :body Key-value pairs where the key is the consent identifier and value is a boolean that identifies if a customer has given the consent or not. To deny all consents use unsubscribed as a consent identifier and true as its value. ## Examples Opt-out from all communication:
694
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
695
+ private def update_customers_consents_with_http_info(customer_id, opts = {})
696
+ if @api_client.config.debugging
697
+ @api_client.config.logger.debug 'Calling API: CustomersApi.update_customers_consents ...'
698
+ end
699
+ # verify the required parameter 'customer_id' is set
700
+ if @api_client.config.client_side_validation && customer_id.nil?
701
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomersApi.update_customers_consents"
702
+ end
703
+ # resource path
704
+ local_var_path = '/v1/customers/{customerId}/consents'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s))
705
+
706
+ # query parameters
707
+ query_params = opts[:query_params] || {}
708
+
709
+ # header parameters
710
+ header_params = opts[:header_params] || {}
711
+ # HTTP header 'Content-Type'
712
+ content_type = @api_client.select_header_content_type(['application/json'])
713
+ if !content_type.nil?
714
+ header_params['Content-Type'] = content_type
715
+ end
716
+
717
+ # form parameters
718
+ form_params = opts[:form_params] || {}
719
+
720
+ # http body (model)
721
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
722
+
723
+ # return_type
724
+ return_type = opts[:debug_return_type]
725
+
726
+ # auth_names
727
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
728
+
729
+ new_options = opts.merge(
730
+ :operation => :"CustomersApi.update_customers_consents",
731
+ :header_params => header_params,
732
+ :query_params => query_params,
733
+ :form_params => form_params,
734
+ :body => post_body,
735
+ :auth_names => auth_names,
736
+ :return_type => return_type
737
+ )
738
+
739
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
740
+ if @api_client.config.debugging
741
+ @api_client.config.logger.debug "API called: CustomersApi#update_customers_consents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
742
+ end
743
+ return data, status_code, headers
744
+ end
745
+
746
+ # Update Customers in bulk
747
+ # Update several customers in one asynchronous operation. In one request, it is possible to update a maximum of **100** records. In the response body, you get a unique async action identifier. If a requested customer object is not found, then an **upsert** occurs. This is reflected in the Get Async Action endpoint as follows: This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this API request.
748
+ # @param [Hash] opts the optional parameters
749
+ # @option opts [Array<CustomersUpdateInBulkRequestBody>] :customers_update_in_bulk_request_body Specify the customer fields that you would like to update in each customer object.
750
+ # @return [CustomersUpdateInBulkResponseBody]
751
+ def update_customers_in_bulk(opts = {})
752
+ data, _status_code, _headers = update_customers_in_bulk_with_http_info(opts)
753
+ data
754
+ end
755
+
756
+ # Update Customers in bulk
757
+ # Update several customers in one asynchronous operation. In one request, it is possible to update a maximum of **100** records. In the response body, you get a unique async action identifier. If a requested customer object is not found, then an **upsert** occurs. This is reflected in the Get Async Action endpoint as follows: This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this API request.
758
+ # @param [Hash] opts the optional parameters
759
+ # @option opts [Array<CustomersUpdateInBulkRequestBody>] :customers_update_in_bulk_request_body Specify the customer fields that you would like to update in each customer object.
760
+ # @return [Array<(CustomersUpdateInBulkResponseBody, Integer, Hash)>] CustomersUpdateInBulkResponseBody data, response status code and response headers
761
+ private def update_customers_in_bulk_with_http_info(opts = {})
762
+ if @api_client.config.debugging
763
+ @api_client.config.logger.debug 'Calling API: CustomersApi.update_customers_in_bulk ...'
764
+ end
765
+ # resource path
766
+ local_var_path = '/v1/customers/bulk/async'
767
+
768
+ # query parameters
769
+ query_params = opts[:query_params] || {}
770
+
771
+ # header parameters
772
+ header_params = opts[:header_params] || {}
773
+ # HTTP header 'Accept' (if needed)
774
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
775
+ # HTTP header 'Content-Type'
776
+ content_type = @api_client.select_header_content_type(['application/json'])
777
+ if !content_type.nil?
778
+ header_params['Content-Type'] = content_type
779
+ end
780
+
781
+ # form parameters
782
+ form_params = opts[:form_params] || {}
783
+
784
+ # http body (model)
785
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'customers_update_in_bulk_request_body'])
786
+
787
+ # return_type
788
+ return_type = opts[:debug_return_type] || 'CustomersUpdateInBulkResponseBody'
789
+
790
+ # auth_names
791
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
792
+
793
+ new_options = opts.merge(
794
+ :operation => :"CustomersApi.update_customers_in_bulk",
795
+ :header_params => header_params,
796
+ :query_params => query_params,
797
+ :form_params => form_params,
798
+ :body => post_body,
799
+ :auth_names => auth_names,
800
+ :return_type => return_type
801
+ )
802
+
803
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
804
+ if @api_client.config.debugging
805
+ @api_client.config.logger.debug "API called: CustomersApi#update_customers_in_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
806
+ end
807
+ return data, status_code, headers
808
+ end
809
+
810
+ # Update Customers' Metadata in bulk
811
+ # Update several customers metadata properties in one asynchronous operation. In one request, it is possible to update a maximum of **100** records. In the response body, you get a unique async action identifier. If a requested customer object is not found, then an **upsert** occurs. This is reflected in the Get Async Action endpoint as follows: This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this API request.
812
+ # @param [Hash] opts the optional parameters
813
+ # @option opts [CustomersMetadataUpdateInBulkRequestBody] :customers_metadata_update_in_bulk_request_body List the source_ids of the customers you would like to update along with the metadata key value pairs.
814
+ # @return [CustomersMetadataUpdateInBulkResponseBody]
815
+ def update_customers_metadata_in_bulk(opts = {})
816
+ data, _status_code, _headers = update_customers_metadata_in_bulk_with_http_info(opts)
817
+ data
818
+ end
819
+
820
+ # Update Customers&#39; Metadata in bulk
821
+ # Update several customers metadata properties in one asynchronous operation. In one request, it is possible to update a maximum of **100** records. In the response body, you get a unique async action identifier. If a requested customer object is not found, then an **upsert** occurs. This is reflected in the Get Async Action endpoint as follows: This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this API request.
822
+ # @param [Hash] opts the optional parameters
823
+ # @option opts [CustomersMetadataUpdateInBulkRequestBody] :customers_metadata_update_in_bulk_request_body List the source_ids of the customers you would like to update along with the metadata key value pairs.
824
+ # @return [Array<(CustomersMetadataUpdateInBulkResponseBody, Integer, Hash)>] CustomersMetadataUpdateInBulkResponseBody data, response status code and response headers
825
+ private def update_customers_metadata_in_bulk_with_http_info(opts = {})
826
+ if @api_client.config.debugging
827
+ @api_client.config.logger.debug 'Calling API: CustomersApi.update_customers_metadata_in_bulk ...'
828
+ end
829
+ # resource path
830
+ local_var_path = '/v1/customers/metadata/async'
831
+
832
+ # query parameters
833
+ query_params = opts[:query_params] || {}
834
+
835
+ # header parameters
836
+ header_params = opts[:header_params] || {}
837
+ # HTTP header 'Accept' (if needed)
838
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
839
+ # HTTP header 'Content-Type'
840
+ content_type = @api_client.select_header_content_type(['application/json'])
841
+ if !content_type.nil?
842
+ header_params['Content-Type'] = content_type
843
+ end
844
+
845
+ # form parameters
846
+ form_params = opts[:form_params] || {}
847
+
848
+ # http body (model)
849
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'customers_metadata_update_in_bulk_request_body'])
850
+
851
+ # return_type
852
+ return_type = opts[:debug_return_type] || 'CustomersMetadataUpdateInBulkResponseBody'
853
+
854
+ # auth_names
855
+ auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
856
+
857
+ new_options = opts.merge(
858
+ :operation => :"CustomersApi.update_customers_metadata_in_bulk",
859
+ :header_params => header_params,
860
+ :query_params => query_params,
861
+ :form_params => form_params,
862
+ :body => post_body,
863
+ :auth_names => auth_names,
864
+ :return_type => return_type
865
+ )
866
+
867
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
868
+ if @api_client.config.debugging
869
+ @api_client.config.logger.debug "API called: CustomersApi#update_customers_metadata_in_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
870
+ end
871
+ return data, status_code, headers
872
+ end
873
+ end
874
+ end