voucherify 8.0.3 → 8.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (713) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +1 -1
  3. data/ENDPOINTS-COVERAGE.md +123 -111
  4. data/Gemfile.lock +19 -17
  5. data/README.md +223 -75
  6. data/VoucherifySdk.gemspec +1 -1
  7. data/__tests__/README.md +18 -0
  8. data/__tests__/lib/campaigns.rb +53 -1
  9. data/__tests__/lib/config.rb +21 -0
  10. data/__tests__/lib/loyalties.rb +2 -2
  11. data/__tests__/lib/utils.rb +27 -1
  12. data/__tests__/spec/02_campaigns_spec.rb +33 -2
  13. data/__tests__/spec/04_publications_spec.rb +16 -3
  14. data/__tests__/spec/07_vouchers_spec.rb +22 -3
  15. data/__tests__/spec/13_management_spec.rb +110 -0
  16. data/__tests__/spec/14_additional_properties_spec.rb +28 -0
  17. data/__tests__/spec/support/get_snapshot_without_uniq_keys.rb +1 -1
  18. data/docs/ApplicableTo.md +18 -2
  19. data/docs/ApplicableToOrderItemUnitsItem.md +2 -1
  20. data/docs/AsyncActionsApi.md +2 -2
  21. data/docs/AsyncActionsListResponseBody.md +1 -0
  22. data/docs/Bundle.md +11 -0
  23. data/docs/BundleIdentifiedItem.md +11 -0
  24. data/docs/BundleMissingItem.md +10 -0
  25. data/docs/Campaign.md +4 -4
  26. data/docs/CampaignBase.md +4 -4
  27. data/docs/CampaignLoyaltyCardExpirationRules.md +6 -4
  28. data/docs/CampaignsApi.md +211 -14
  29. data/docs/CampaignsCreateRequestBody.md +2 -2
  30. data/docs/CampaignsCreateResponseBody.md +4 -4
  31. data/docs/CampaignsGetResponseBody.md +4 -4
  32. data/docs/CampaignsImportVoucherItem.md +1 -1
  33. data/docs/CampaignsSummaryGetResponseBody.md +48 -0
  34. data/docs/CampaignsTransactionsExportCreateRequestBody.md +8 -0
  35. data/docs/CampaignsTransactionsExportCreateRequestBodyParameters.md +10 -0
  36. data/docs/CampaignsTransactionsExportCreateResponseBody.md +16 -0
  37. data/docs/CampaignsTransactionsExportCreateResponseBodyParameters.md +10 -0
  38. data/docs/CampaignsTransactionsExportCreateResponseBodyParametersFilters.md +11 -0
  39. data/docs/CampaignsTransactionsExportCreateResponseBodyParametersFiltersCampaignId.md +8 -0
  40. data/docs/CampaignsTransactionsExportCreateResponseBodyParametersFiltersCampaignIdConditions.md +8 -0
  41. data/docs/CampaignsTransactionsExportCreateResponseBodyResult.md +8 -0
  42. data/docs/CampaignsTransactionsListResponseBody.md +12 -0
  43. data/docs/CampaignsUpdateRequestBody.md +1 -1
  44. data/docs/CampaignsUpdateResponseBody.md +4 -4
  45. data/docs/CampaignsVouchersCreateCombinedResponseBodyGift.md +3 -2
  46. data/docs/CampaignsVouchersCreateCombinedResponseBodyLoyaltyCard.md +5 -3
  47. data/docs/CampaignsVouchersCreateResponseBodyGift.md +3 -2
  48. data/docs/CampaignsVouchersCreateResponseBodyLoyaltyCard.md +5 -3
  49. data/docs/CategoriesApi.md +1 -1
  50. data/docs/ClientQualificationsCheckEligibilityRequestBody.md +2 -1
  51. data/docs/ClientQualificationsCheckEligibilityRequestBodySession.md +8 -0
  52. data/docs/ClientRedemptionsRedeemRequestBodyOptions.md +1 -1
  53. data/docs/ClientRedemptionsRedeemRequestBodyRedeemablesItemGift.md +1 -1
  54. data/docs/ClientSideApi.md +2 -2
  55. data/docs/ClientValidationsValidateRequestBodyOptions.md +1 -1
  56. data/docs/ClientValidationsValidateRequestBodyRedeemablesItemGift.md +1 -1
  57. data/docs/ClientValidationsValidateResponseBody.md +1 -0
  58. data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResult.md +1 -0
  59. data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultDiscount.md +4 -4
  60. data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultGift.md +2 -1
  61. data/docs/CustomerSummaryOrders.md +3 -3
  62. data/docs/CustomerSummaryRedemptionsGift.md +2 -2
  63. data/docs/CustomerWithSummaryLoyaltyReferralsAssets.md +2 -1
  64. data/docs/CustomersApi.md +14 -14
  65. data/docs/CustomersCreateResponseBodyAssets.md +2 -1
  66. data/docs/CustomersGetResponseBodyAssets.md +2 -1
  67. data/docs/CustomersUpdateResponseBodyAssets.md +2 -1
  68. data/docs/Discount.md +4 -4
  69. data/docs/DiscountUnitMultipleOneUnit.md +1 -1
  70. data/docs/EarningRule.md +1 -0
  71. data/docs/EarningRuleExpirationRules.md +13 -0
  72. data/docs/EarningRuleLoyalty.md +1 -0
  73. data/docs/EarningRuleLoyaltyCustomEventMetadata.md +1 -0
  74. data/docs/EarningRuleLoyaltyCustomerMetadata.md +1 -0
  75. data/docs/EarningRuleLoyaltyOrderAmount.md +1 -0
  76. data/docs/EarningRuleLoyaltyOrderItemsAmount.md +4 -2
  77. data/docs/EarningRuleLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  78. data/docs/EarningRuleLoyaltyOrderItemsQuantity.md +4 -2
  79. data/docs/EarningRuleLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  80. data/docs/EarningRuleLoyaltyOrderItemsSubtotalAmount.md +4 -2
  81. data/docs/EarningRuleLoyaltyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  82. data/docs/EarningRuleLoyaltyOrderMetadata.md +1 -0
  83. data/docs/EarningRuleLoyaltyOrderTotalAmount.md +1 -0
  84. data/docs/ErrorError.md +1 -1
  85. data/docs/ExportCampaignTransactionsFilters.md +10 -0
  86. data/docs/ExportParameters.md +3 -2
  87. data/docs/ExportsApi.md +7 -7
  88. data/docs/ExportsCreateRequestBodyParameters.md +3 -2
  89. data/docs/ExportsCreateResponseBodyParameters.md +3 -2
  90. data/docs/ExportsGetResponseBodyParameters.md +3 -2
  91. data/docs/Gift.md +3 -2
  92. data/docs/InapplicableTo.md +18 -2
  93. data/docs/InapplicableToOrderItemUnitsItem.md +2 -1
  94. data/docs/LoyaltiesApi.md +293 -96
  95. data/docs/LoyaltiesCreateCampaignRequestBody.md +2 -2
  96. data/docs/LoyaltiesCreateCampaignResponseBody.md +1 -1
  97. data/docs/LoyaltiesEarningRulesCreateRequestBodyItem.md +4 -2
  98. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyalty.md +1 -0
  99. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEventMetadata.md +1 -0
  100. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomerMetadata.md +1 -0
  101. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderAmount.md +1 -0
  102. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsAmount.md +4 -2
  103. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  104. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsQuantity.md +4 -2
  105. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  106. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsSubtotalAmount.md +4 -2
  107. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderMetadata.md +1 -0
  108. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderTotalAmount.md +1 -0
  109. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  110. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemPendingPoints.md +9 -0
  111. data/docs/LoyaltiesEarningRulesCreateResponseBody.md +1 -0
  112. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyalty.md +1 -0
  113. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomEventMetadata.md +1 -0
  114. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomerMetadata.md +1 -0
  115. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderAmount.md +1 -0
  116. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsAmount.md +4 -2
  117. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  118. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsQuantity.md +4 -2
  119. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  120. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  121. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderMetadata.md +1 -0
  122. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderTotalAmount.md +1 -0
  123. data/docs/LoyaltiesEarningRulesCreateResponseBodyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  124. data/docs/LoyaltiesEarningRulesDisableResponseBody.md +1 -0
  125. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyalty.md +1 -0
  126. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomEventMetadata.md +1 -0
  127. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata.md +1 -0
  128. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderAmount.md +1 -0
  129. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsAmount.md +4 -2
  130. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  131. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsQuantity.md +4 -2
  132. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  133. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  134. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderMetadata.md +1 -0
  135. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderTotalAmount.md +1 -0
  136. data/docs/LoyaltiesEarningRulesDisableResponseBodyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  137. data/docs/LoyaltiesEarningRulesEnableResponseBody.md +1 -0
  138. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyalty.md +1 -0
  139. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomEventMetadata.md +1 -0
  140. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomerMetadata.md +1 -0
  141. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderAmount.md +1 -0
  142. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsAmount.md +4 -2
  143. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  144. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsQuantity.md +4 -2
  145. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  146. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  147. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderMetadata.md +1 -0
  148. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderTotalAmount.md +1 -0
  149. data/docs/LoyaltiesEarningRulesEnableResponseBodyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  150. data/docs/LoyaltiesEarningRulesGetResponseBody.md +1 -0
  151. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyalty.md +1 -0
  152. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomEventMetadata.md +1 -0
  153. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomerMetadata.md +1 -0
  154. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderAmount.md +1 -0
  155. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsAmount.md +4 -2
  156. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  157. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsQuantity.md +4 -2
  158. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  159. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  160. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  161. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderMetadata.md +1 -0
  162. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderTotalAmount.md +1 -0
  163. data/docs/LoyaltiesEarningRulesUpdateRequestBody.md +4 -2
  164. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyalty.md +1 -0
  165. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomEventMetadata.md +1 -0
  166. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomerMetadata.md +1 -0
  167. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderAmount.md +1 -0
  168. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsAmount.md +4 -2
  169. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  170. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsQuantity.md +4 -2
  171. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  172. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  173. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderMetadata.md +1 -0
  174. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderTotalAmount.md +1 -0
  175. data/docs/LoyaltiesEarningRulesUpdateRequestBodyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  176. data/docs/LoyaltiesEarningRulesUpdateRequestBodyPendingPoints.md +9 -0
  177. data/docs/LoyaltiesEarningRulesUpdateResponseBody.md +1 -0
  178. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyalty.md +1 -0
  179. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomEventMetadata.md +1 -0
  180. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomerMetadata.md +1 -0
  181. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderAmount.md +1 -0
  182. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsAmount.md +4 -2
  183. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  184. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsQuantity.md +4 -2
  185. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  186. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  187. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderMetadata.md +1 -0
  188. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderTotalAmount.md +1 -0
  189. data/docs/LoyaltiesEarningRulesUpdateResponseBodyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  190. data/docs/LoyaltiesGetCampaignResponseBody.md +1 -1
  191. data/docs/LoyaltiesMembersCreateResponseBodyLoyaltyCard.md +5 -3
  192. data/docs/LoyaltiesMembersGetResponseBodyLoyaltyCard.md +5 -3
  193. data/docs/LoyaltiesMembersPendingPointsActivateResponseBody.md +1 -1
  194. data/docs/LoyaltiesMembersPendingPointsBalanceRequestBody.md +8 -0
  195. data/docs/LoyaltiesMembersPendingPointsBalanceResponseBody.md +12 -0
  196. data/docs/LoyaltiesMembersPendingPointsBalanceResponseBodyRelatedObject.md +9 -0
  197. data/docs/LoyaltiesMembersPointsExpirationListResponseBodyDataItem.md +1 -1
  198. data/docs/LoyaltiesMembersRedemptionRedeemRequestBody.md +1 -1
  199. data/docs/LoyaltiesMembersRedemptionRedeemResponseBody.md +1 -0
  200. data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyRelatedRedemptionsRollbacksItem.md +1 -0
  201. data/docs/LoyaltiesMembersRedemptionRedeemResponseBodySession.md +8 -0
  202. data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift.md +3 -2
  203. data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard.md +5 -3
  204. data/docs/LoyaltiesMembersTransfersCreateResponseBodyLoyaltyCard.md +5 -3
  205. data/docs/LoyaltiesPointsExpirationExportCreateRequestBodyParameters.md +1 -1
  206. data/docs/LoyaltiesRewardAssignmentsRewardGetResponseBody.md +1 -1
  207. data/docs/LoyaltiesTransactionsExportCreateRequestBody.md +8 -0
  208. data/docs/LoyaltiesTransactionsExportCreateRequestBodyParameters.md +10 -0
  209. data/docs/LoyaltiesTransactionsListResponseBody.md +12 -0
  210. data/docs/LoyaltiesUpdateCampaignRequestBody.md +1 -1
  211. data/docs/LoyaltiesUpdateCampaignResponseBody.md +1 -1
  212. data/docs/LoyaltyCampaign.md +1 -1
  213. data/docs/LoyaltyCardTransaction.md +1 -1
  214. data/docs/LoyaltyCardTransactionDetailsBalance.md +1 -0
  215. data/docs/LoyaltyMemberLoyaltyCard.md +5 -3
  216. data/docs/LoyaltyPointsBucket.md +1 -1
  217. data/docs/LoyaltyTiersExpirationAll.md +1 -1
  218. data/docs/ManagementApi.md +26 -26
  219. data/docs/ManagementProjectsStackingRules.md +14 -8
  220. data/docs/ManagementProjectsStackingRulesCreateRequestBody.md +14 -8
  221. data/docs/ManagementProjectsStackingRulesCreateResponseBody.md +14 -8
  222. data/docs/ManagementProjectsStackingRulesGetResponseBody.md +14 -8
  223. data/docs/ManagementProjectsStackingRulesUpdateRequestBody.md +14 -8
  224. data/docs/ManagementProjectsStackingRulesUpdateResponseBody.md +14 -8
  225. data/docs/ManagementProjectsUsersInviteCreateRequestBody.md +1 -1
  226. data/docs/ManagementProjectsUsersUpdateRoleRequestBody.md +1 -1
  227. data/docs/MetadataSchemasApi.md +5 -5
  228. data/docs/Order.md +1 -1
  229. data/docs/OrderCalculatedItem.md +1 -1
  230. data/docs/OrderItem.md +1 -1
  231. data/docs/OrdersApi.md +4 -4
  232. data/docs/OrdersCreateRequestBody.md +1 -1
  233. data/docs/OrdersImportCreateRequestBodyItem.md +2 -2
  234. data/docs/OrdersUpdateRequestBody.md +1 -1
  235. data/docs/ParametersFiltersListCampaignTransactions.md +10 -0
  236. data/docs/ProductCollectionsApi.md +1 -1
  237. data/docs/ProductCollectionsCreateRequestBody.md +1 -1
  238. data/docs/ProductsApi.md +23 -23
  239. data/docs/ProductsSkusCreateRequestBody.md +1 -1
  240. data/docs/ProductsSkusUpdateRequestBody.md +1 -1
  241. data/docs/PromotionTierCampaign.md +1 -1
  242. data/docs/PromotionsTiersCreateResponseBodyCampaign.md +1 -1
  243. data/docs/PromotionsTiersDisableResponseBodyCampaign.md +1 -1
  244. data/docs/PromotionsTiersEnableResponseBodyCampaign.md +1 -1
  245. data/docs/PromotionsTiersGetResponseBodyCampaign.md +1 -1
  246. data/docs/PromotionsTiersUpdateResponseBodyCampaign.md +1 -1
  247. data/docs/PublicationsApi.md +8 -8
  248. data/docs/QualificationsApi.md +1 -1
  249. data/docs/QualificationsCheckEligibilityRequestBody.md +2 -1
  250. data/docs/QualificationsCheckEligibilityRequestBodySession.md +8 -0
  251. data/docs/QualificationsOption.md +1 -1
  252. data/docs/QualificationsRedeemable.md +1 -1
  253. data/docs/QualificationsRedeemableBase.md +1 -1
  254. data/docs/RedeemableGift.md +3 -2
  255. data/docs/RedeemableLoyaltyCard.md +2 -2
  256. data/docs/RedeemableResult.md +1 -0
  257. data/docs/RedeemableVoucherGift.md +3 -2
  258. data/docs/RedeemableVoucherLoyaltyCard.md +5 -3
  259. data/docs/Redemption.md +1 -0
  260. data/docs/RedemptionEntry.md +1 -0
  261. data/docs/RedemptionEntryPromotionTierCampaign.md +1 -1
  262. data/docs/RedemptionEntryRelatedRedemptionsRollbacksItem.md +1 -0
  263. data/docs/RedemptionEntrySession.md +8 -0
  264. data/docs/RedemptionEntryVoucherGift.md +3 -2
  265. data/docs/RedemptionEntryVoucherLoyaltyCard.md +5 -3
  266. data/docs/RedemptionRelatedRedemptionsRollbacksItem.md +1 -0
  267. data/docs/RedemptionRewardResultParametersCampaign.md +1 -1
  268. data/docs/RedemptionRewardResultParametersCoin.md +1 -1
  269. data/docs/RedemptionRollback.md +1 -1
  270. data/docs/RedemptionSession.md +8 -0
  271. data/docs/RedemptionVoucherGift.md +3 -2
  272. data/docs/RedemptionVoucherLoyaltyCard.md +5 -3
  273. data/docs/RedemptionsApi.md +3 -3
  274. data/docs/RedemptionsGetResponseBody.md +1 -0
  275. data/docs/RedemptionsGetResponseBodyPromotionTierCampaign.md +1 -1
  276. data/docs/RedemptionsGetResponseBodyRelatedRedemptionsRollbacksItem.md +1 -0
  277. data/docs/RedemptionsGetResponseBodySession.md +8 -0
  278. data/docs/RedemptionsGetResponseBodyVoucherGift.md +3 -2
  279. data/docs/RedemptionsGetResponseBodyVoucherLoyaltyCard.md +5 -3
  280. data/docs/RedemptionsListResponseBodyRedemptionsItem.md +1 -0
  281. data/docs/RedemptionsListResponseBodyRedemptionsItemPromotionTierCampaign.md +1 -1
  282. data/docs/RedemptionsListResponseBodyRedemptionsItemRelatedRedemptionsRollbacksItem.md +1 -0
  283. data/docs/RedemptionsListResponseBodyRedemptionsItemSession.md +8 -0
  284. data/docs/RedemptionsListResponseBodyRedemptionsItemVoucherGift.md +3 -2
  285. data/docs/RedemptionsListResponseBodyRedemptionsItemVoucherLoyaltyCard.md +5 -3
  286. data/docs/RedemptionsRedeemRequestBodyOptions.md +2 -1
  287. data/docs/RedemptionsRedeemRequestBodyRedeemablesItemGift.md +1 -1
  288. data/docs/RedemptionsRollbackCreateResponseBody.md +1 -1
  289. data/docs/ReferralsApi.md +13 -13
  290. data/docs/Reward.md +1 -1
  291. data/docs/RewardsCreateRequestBody.md +1 -1
  292. data/docs/RewardsCreateRequestBodyParametersCampaign.md +1 -1
  293. data/docs/RewardsCreateRequestBodyParametersCoin.md +1 -1
  294. data/docs/RewardsCreateResponseBody.md +1 -1
  295. data/docs/RewardsUpdateRequestBody.md +1 -1
  296. data/docs/RewardsUpdateRequestBodyParametersCampaign.md +1 -1
  297. data/docs/RewardsUpdateRequestBodyParametersCoin.md +1 -1
  298. data/docs/RewardsUpdateResponseBody.md +1 -1
  299. data/docs/SegmentsApi.md +2 -2
  300. data/docs/SegmentsCreateRequestBody.md +1 -1
  301. data/docs/SegmentsCreateResponseBody.md +4 -3
  302. data/docs/SegmentsGetResponseBody.md +4 -3
  303. data/docs/SimpleLoyaltyCard.md +5 -3
  304. data/docs/SimpleVoucherRedemption.md +1 -0
  305. data/docs/StackingRules.md +15 -11
  306. data/docs/TemplatesApi.md +7 -7
  307. data/docs/TemplatesCampaignsCampaignSetupCreateRequestBody.md +2 -2
  308. data/docs/TrashBinItem.md +1 -1
  309. data/docs/ValidationRule.md +1 -0
  310. data/docs/ValidationRulesApi.md +3 -3
  311. data/docs/ValidationRulesCreateRequestBody.md +1 -0
  312. data/docs/ValidationRulesCreateResponseBody.md +1 -0
  313. data/docs/ValidationRulesGetResponseBody.md +1 -0
  314. data/docs/ValidationRulesUpdateRequestBody.md +1 -0
  315. data/docs/ValidationRulesUpdateResponseBody.md +1 -0
  316. data/docs/ValidationsApi.md +1 -1
  317. data/docs/ValidationsRedeemableInapplicableResult.md +1 -0
  318. data/docs/ValidationsValidateRequestBodyOptions.md +2 -1
  319. data/docs/ValidationsValidateRequestBodyRedeemablesItemGift.md +1 -1
  320. data/docs/ValidationsValidateResponseBody.md +1 -0
  321. data/docs/ValidationsValidateResponseBodyRedeemablesItemResult.md +1 -0
  322. data/docs/ValidationsValidateResponseBodyRedeemablesItemResultDiscount.md +4 -4
  323. data/docs/ValidationsValidateResponseBodyRedeemablesItemResultGift.md +2 -1
  324. data/docs/ValidityHours.md +1 -1
  325. data/docs/VoucherBalance.md +1 -0
  326. data/docs/VoucherGift.md +3 -2
  327. data/docs/VoucherLoyaltyCard.md +5 -3
  328. data/docs/VoucherTransaction.md +1 -1
  329. data/docs/VoucherTransactionDetailsBalance.md +1 -0
  330. data/docs/VoucherTransactionsExportParameters.md +1 -1
  331. data/docs/VoucherTransactionsFilters.md +1 -1
  332. data/docs/VoucherWithCategoriesGift.md +3 -2
  333. data/docs/VoucherWithCategoriesLoyaltyCard.md +5 -3
  334. data/docs/VouchersApi.md +18 -16
  335. data/docs/VouchersBalanceUpdateRequestBody.md +1 -1
  336. data/docs/VouchersBalanceUpdateResponseBody.md +2 -2
  337. data/docs/VouchersCreateRequestBody.md +2 -2
  338. data/docs/VouchersCreateResponseBodyGift.md +3 -2
  339. data/docs/VouchersCreateResponseBodyLoyaltyCard.md +5 -3
  340. data/docs/VouchersCreateWithSpecificCodeRequestBody.md +2 -2
  341. data/docs/VouchersDisableResponseBodyGift.md +3 -2
  342. data/docs/VouchersDisableResponseBodyLoyaltyCard.md +5 -3
  343. data/docs/VouchersEnableResponseBodyGift.md +3 -2
  344. data/docs/VouchersEnableResponseBodyLoyaltyCard.md +5 -3
  345. data/docs/VouchersGetResponseBodyGift.md +3 -2
  346. data/docs/VouchersGetResponseBodyLoyaltyCard.md +5 -3
  347. data/docs/VouchersImportCreateItemRequestBody.md +1 -1
  348. data/docs/VouchersTransactionsExportCreateResponseBodyResult.md +1 -1
  349. data/docs/VouchersUpdateRequestBody.md +2 -2
  350. data/docs/VouchersUpdateResponseBodyGift.md +3 -2
  351. data/docs/VouchersUpdateResponseBodyLoyaltyCard.md +5 -3
  352. data/lib/VoucherifySdk/api/async_actions_api.rb +4 -4
  353. data/lib/VoucherifySdk/api/campaigns_api.rb +224 -22
  354. data/lib/VoucherifySdk/api/categories_api.rb +2 -2
  355. data/lib/VoucherifySdk/api/client_side_api.rb +4 -4
  356. data/lib/VoucherifySdk/api/customers_api.rb +22 -22
  357. data/lib/VoucherifySdk/api/exports_api.rb +10 -10
  358. data/lib/VoucherifySdk/api/loyalties_api.rb +335 -130
  359. data/lib/VoucherifySdk/api/management_api.rb +52 -52
  360. data/lib/VoucherifySdk/api/metadata_schemas_api.rb +6 -6
  361. data/lib/VoucherifySdk/api/orders_api.rb +8 -8
  362. data/lib/VoucherifySdk/api/product_collections_api.rb +2 -2
  363. data/lib/VoucherifySdk/api/products_api.rb +32 -32
  364. data/lib/VoucherifySdk/api/publications_api.rb +10 -10
  365. data/lib/VoucherifySdk/api/qualifications_api.rb +2 -2
  366. data/lib/VoucherifySdk/api/redemptions_api.rb +6 -6
  367. data/lib/VoucherifySdk/api/referrals_api.rb +14 -14
  368. data/lib/VoucherifySdk/api/segments_api.rb +4 -4
  369. data/lib/VoucherifySdk/api/templates_api.rb +14 -14
  370. data/lib/VoucherifySdk/api/validation_rules_api.rb +6 -6
  371. data/lib/VoucherifySdk/api/validations_api.rb +2 -2
  372. data/lib/VoucherifySdk/api/vouchers_api.rb +29 -26
  373. data/lib/VoucherifySdk/models/access_settings_campaign_assignments_list.rb +1 -1
  374. data/lib/VoucherifySdk/models/applicable_to.rb +192 -16
  375. data/lib/VoucherifySdk/models/applicable_to_order_item_units_item.rb +20 -5
  376. data/lib/VoucherifySdk/models/async_actions_list_response_body.rb +16 -5
  377. data/lib/VoucherifySdk/models/bundle.rb +267 -0
  378. data/lib/VoucherifySdk/models/bundle_identified_item.rb +296 -0
  379. data/lib/VoucherifySdk/models/bundle_missing_item.rb +274 -0
  380. data/lib/VoucherifySdk/models/campaign.rb +4 -4
  381. data/lib/VoucherifySdk/models/campaign_base.rb +4 -4
  382. data/lib/VoucherifySdk/models/campaign_loyalty_card_expiration_rules.rb +53 -10
  383. data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +3 -3
  384. data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +4 -4
  385. data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +4 -4
  386. data/lib/VoucherifySdk/models/campaigns_import_voucher_item.rb +1 -1
  387. data/lib/VoucherifySdk/models/campaigns_summary_get_response_body.rb +673 -0
  388. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_request_body.rb +209 -0
  389. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_request_body_parameters.rb +256 -0
  390. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body.rb +334 -0
  391. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body_parameters.rb +256 -0
  392. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body_parameters_filters.rb +257 -0
  393. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body_parameters_filters_campaign_id.rb +209 -0
  394. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body_parameters_filters_campaign_id_conditions.rb +221 -0
  395. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body_result.rb +210 -0
  396. data/lib/VoucherifySdk/models/campaigns_transactions_list_response_body.rb +286 -0
  397. data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +1 -1
  398. data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +4 -4
  399. data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_gift.rb +14 -3
  400. data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_loyalty_card.rb +30 -8
  401. data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_gift.rb +14 -3
  402. data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_loyalty_card.rb +30 -8
  403. data/lib/VoucherifySdk/models/client_qualifications_check_eligibility_request_body.rb +12 -2
  404. data/lib/VoucherifySdk/models/client_qualifications_check_eligibility_request_body_session.rb +236 -0
  405. data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body_options.rb +1 -1
  406. data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body_redeemables_item_gift.rb +1 -1
  407. data/lib/VoucherifySdk/models/client_validations_validate_request_body.rb +1 -1
  408. data/lib/VoucherifySdk/models/client_validations_validate_request_body_options.rb +1 -1
  409. data/lib/VoucherifySdk/models/client_validations_validate_request_body_redeemables_item_gift.rb +1 -1
  410. data/lib/VoucherifySdk/models/client_validations_validate_response_body.rb +12 -1
  411. data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result.rb +11 -1
  412. data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_discount.rb +5 -2
  413. data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_gift.rb +14 -3
  414. data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_loyalty_card.rb +1 -0
  415. data/lib/VoucherifySdk/models/create_publication_campaign.rb +3 -3
  416. data/lib/VoucherifySdk/models/customer_summary_orders.rb +4 -3
  417. data/lib/VoucherifySdk/models/customer_summary_redemptions_gift.rb +2 -2
  418. data/lib/VoucherifySdk/models/customer_with_summary_loyalty_referrals_assets.rb +18 -7
  419. data/lib/VoucherifySdk/models/customers_create_response_body_assets.rb +18 -7
  420. data/lib/VoucherifySdk/models/customers_get_response_body_assets.rb +18 -7
  421. data/lib/VoucherifySdk/models/customers_update_response_body_assets.rb +18 -7
  422. data/lib/VoucherifySdk/models/discount.rb +5 -2
  423. data/lib/VoucherifySdk/models/discount_unit_multiple_one_unit.rb +1 -1
  424. data/lib/VoucherifySdk/models/earning_rule.rb +10 -1
  425. data/lib/VoucherifySdk/models/earning_rule_expiration_rules.rb +313 -0
  426. data/lib/VoucherifySdk/models/earning_rule_loyalty.rb +12 -1
  427. data/lib/VoucherifySdk/models/earning_rule_loyalty_custom_event_metadata.rb +12 -1
  428. data/lib/VoucherifySdk/models/earning_rule_loyalty_customer_metadata.rb +12 -1
  429. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_amount.rb +16 -5
  430. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_amount.rb +31 -7
  431. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  432. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_quantity.rb +31 -7
  433. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  434. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_subtotal_amount.rb +31 -7
  435. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  436. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_metadata.rb +12 -1
  437. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_total_amount.rb +16 -5
  438. data/lib/VoucherifySdk/models/error_error.rb +2 -2
  439. data/lib/VoucherifySdk/models/export.rb +1 -1
  440. data/lib/VoucherifySdk/models/export_campaign_transactions_filters.rb +248 -0
  441. data/lib/VoucherifySdk/models/export_parameters.rb +19 -8
  442. data/lib/VoucherifySdk/models/exports_create_request_body.rb +1 -1
  443. data/lib/VoucherifySdk/models/exports_create_request_body_parameters.rb +19 -8
  444. data/lib/VoucherifySdk/models/exports_create_response_body.rb +1 -1
  445. data/lib/VoucherifySdk/models/exports_create_response_body_parameters.rb +19 -8
  446. data/lib/VoucherifySdk/models/exports_get_response_body.rb +1 -2
  447. data/lib/VoucherifySdk/models/exports_get_response_body_parameters.rb +19 -8
  448. data/lib/VoucherifySdk/models/filter_conditions_date_time.rb +2 -2
  449. data/lib/VoucherifySdk/models/gift.rb +14 -3
  450. data/lib/VoucherifySdk/models/inapplicable_to.rb +192 -16
  451. data/lib/VoucherifySdk/models/inapplicable_to_order_item_units_item.rb +20 -5
  452. data/lib/VoucherifySdk/models/loyalties_create_campaign_request_body.rb +3 -3
  453. data/lib/VoucherifySdk/models/loyalties_create_campaign_response_body.rb +1 -1
  454. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item.rb +22 -3
  455. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty.rb +12 -1
  456. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_custom_event_metadata.rb +12 -1
  457. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_customer_metadata.rb +12 -1
  458. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_amount.rb +16 -5
  459. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_amount.rb +31 -7
  460. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  461. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_quantity.rb +31 -7
  462. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  463. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_subtotal_amount.rb +31 -7
  464. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_metadata.rb +12 -1
  465. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_total_amount.rb +16 -5
  466. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  467. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_pending_points.rb +257 -0
  468. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body.rb +10 -1
  469. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty.rb +12 -1
  470. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_custom_event_metadata.rb +12 -1
  471. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_customer_metadata.rb +12 -1
  472. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_amount.rb +16 -5
  473. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_amount.rb +31 -7
  474. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  475. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_quantity.rb +31 -7
  476. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  477. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_subtotal_amount.rb +31 -7
  478. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_metadata.rb +12 -1
  479. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_total_amount.rb +16 -5
  480. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  481. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body.rb +10 -1
  482. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty.rb +12 -1
  483. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_custom_event_metadata.rb +12 -1
  484. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_customer_metadata.rb +12 -1
  485. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_amount.rb +16 -5
  486. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_amount.rb +31 -7
  487. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  488. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_quantity.rb +31 -7
  489. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  490. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_subtotal_amount.rb +31 -7
  491. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_metadata.rb +12 -1
  492. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_total_amount.rb +16 -5
  493. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  494. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body.rb +10 -1
  495. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty.rb +12 -1
  496. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_custom_event_metadata.rb +12 -1
  497. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_customer_metadata.rb +12 -1
  498. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_amount.rb +16 -5
  499. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_amount.rb +31 -7
  500. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  501. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_quantity.rb +31 -7
  502. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  503. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_subtotal_amount.rb +31 -7
  504. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_metadata.rb +12 -1
  505. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_total_amount.rb +16 -5
  506. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  507. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body.rb +10 -1
  508. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty.rb +12 -1
  509. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_custom_event_metadata.rb +12 -1
  510. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_customer_metadata.rb +12 -1
  511. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_amount.rb +16 -5
  512. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_amount.rb +31 -7
  513. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  514. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_quantity.rb +31 -7
  515. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  516. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_subtotal_amount.rb +31 -7
  517. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  518. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_metadata.rb +12 -1
  519. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_total_amount.rb +16 -5
  520. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body.rb +22 -3
  521. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty.rb +12 -1
  522. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_custom_event_metadata.rb +12 -1
  523. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_customer_metadata.rb +12 -1
  524. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_amount.rb +16 -5
  525. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_amount.rb +31 -7
  526. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  527. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_quantity.rb +31 -7
  528. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  529. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_subtotal_amount.rb +31 -7
  530. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_metadata.rb +12 -1
  531. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_total_amount.rb +16 -5
  532. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  533. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_pending_points.rb +257 -0
  534. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body.rb +10 -1
  535. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty.rb +12 -1
  536. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_custom_event_metadata.rb +12 -1
  537. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_customer_metadata.rb +12 -1
  538. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_amount.rb +16 -5
  539. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_amount.rb +31 -7
  540. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  541. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_quantity.rb +31 -7
  542. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  543. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_subtotal_amount.rb +31 -7
  544. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_metadata.rb +12 -1
  545. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_total_amount.rb +16 -5
  546. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  547. data/lib/VoucherifySdk/models/loyalties_get_campaign_response_body.rb +1 -1
  548. data/lib/VoucherifySdk/models/loyalties_members_create_response_body_loyalty_card.rb +30 -8
  549. data/lib/VoucherifySdk/models/loyalties_members_create_response_body_publish.rb +1 -1
  550. data/lib/VoucherifySdk/models/loyalties_members_get_response_body_loyalty_card.rb +30 -8
  551. data/lib/VoucherifySdk/models/loyalties_members_get_response_body_publish.rb +1 -1
  552. data/lib/VoucherifySdk/models/loyalties_members_pending_points_activate_response_body.rb +1 -1
  553. data/lib/VoucherifySdk/models/loyalties_members_pending_points_balance_request_body.rb +210 -0
  554. data/lib/VoucherifySdk/models/loyalties_members_pending_points_balance_response_body.rb +283 -0
  555. data/lib/VoucherifySdk/models/loyalties_members_pending_points_balance_response_body_related_object.rb +247 -0
  556. data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item.rb +1 -1
  557. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_request_body.rb +1 -1
  558. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body.rb +11 -1
  559. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_related_redemptions_rollbacks_item.rb +38 -4
  560. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_session.rb +210 -0
  561. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_gift.rb +14 -3
  562. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_loyalty_card.rb +30 -8
  563. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_loyalty_card.rb +30 -8
  564. data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_request_body_parameters.rb +1 -1
  565. data/lib/VoucherifySdk/models/loyalties_reward_assignments_reward_get_response_body.rb +1 -1
  566. data/lib/VoucherifySdk/models/loyalties_transactions_export_create_request_body.rb +209 -0
  567. data/lib/VoucherifySdk/models/loyalties_transactions_export_create_request_body_parameters.rb +256 -0
  568. data/lib/VoucherifySdk/models/loyalties_transactions_list_response_body.rb +286 -0
  569. data/lib/VoucherifySdk/models/loyalties_update_campaign_request_body.rb +1 -1
  570. data/lib/VoucherifySdk/models/loyalties_update_campaign_response_body.rb +1 -1
  571. data/lib/VoucherifySdk/models/loyalty_campaign.rb +1 -1
  572. data/lib/VoucherifySdk/models/loyalty_card_transaction.rb +1 -1
  573. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_balance.rb +12 -1
  574. data/lib/VoucherifySdk/models/loyalty_member_loyalty_card.rb +30 -8
  575. data/lib/VoucherifySdk/models/loyalty_member_publish.rb +1 -1
  576. data/lib/VoucherifySdk/models/loyalty_points_bucket.rb +1 -1
  577. data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all.rb +1 -1
  578. data/lib/VoucherifySdk/models/management_projects_stacking_rules.rb +112 -9
  579. data/lib/VoucherifySdk/models/management_projects_stacking_rules_create_request_body.rb +116 -13
  580. data/lib/VoucherifySdk/models/management_projects_stacking_rules_create_response_body.rb +112 -9
  581. data/lib/VoucherifySdk/models/management_projects_stacking_rules_get_response_body.rb +112 -9
  582. data/lib/VoucherifySdk/models/management_projects_stacking_rules_update_request_body.rb +116 -13
  583. data/lib/VoucherifySdk/models/management_projects_stacking_rules_update_response_body.rb +112 -9
  584. data/lib/VoucherifySdk/models/management_projects_users_invite_create_request_body.rb +1 -1
  585. data/lib/VoucherifySdk/models/management_projects_users_update_role_request_body.rb +1 -1
  586. data/lib/VoucherifySdk/models/order.rb +1 -1
  587. data/lib/VoucherifySdk/models/order_calculated_item.rb +1 -1
  588. data/lib/VoucherifySdk/models/order_item.rb +1 -1
  589. data/lib/VoucherifySdk/models/orders_create_request_body.rb +1 -1
  590. data/lib/VoucherifySdk/models/orders_import_create_request_body_item.rb +15 -15
  591. data/lib/VoucherifySdk/models/orders_update_request_body.rb +1 -1
  592. data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_campaign_status.rb +2 -1
  593. data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_campaign_status_conditions.rb +1 -0
  594. data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_category_ids.rb +1 -1
  595. data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_is_referral_code.rb +1 -1
  596. data/lib/VoucherifySdk/models/parameters_filters_list_campaign_transactions.rb +247 -0
  597. data/lib/VoucherifySdk/models/product_collections_create_request_body.rb +2 -4
  598. data/lib/VoucherifySdk/models/products_skus_create_request_body.rb +1 -1
  599. data/lib/VoucherifySdk/models/products_skus_create_response_body.rb +1 -1
  600. data/lib/VoucherifySdk/models/products_skus_list_response_body.rb +1 -1
  601. data/lib/VoucherifySdk/models/products_skus_update_request_body.rb +1 -1
  602. data/lib/VoucherifySdk/models/promotion_tier_campaign.rb +1 -1
  603. data/lib/VoucherifySdk/models/promotions_tiers_create_response_body_campaign.rb +1 -1
  604. data/lib/VoucherifySdk/models/promotions_tiers_disable_response_body_campaign.rb +1 -1
  605. data/lib/VoucherifySdk/models/promotions_tiers_enable_response_body_campaign.rb +1 -1
  606. data/lib/VoucherifySdk/models/promotions_tiers_get_response_body_campaign.rb +1 -1
  607. data/lib/VoucherifySdk/models/promotions_tiers_update_response_body_campaign.rb +1 -1
  608. data/lib/VoucherifySdk/models/qualifications_check_eligibility_request_body.rb +12 -2
  609. data/lib/VoucherifySdk/models/qualifications_check_eligibility_request_body_session.rb +236 -0
  610. data/lib/VoucherifySdk/models/qualifications_option.rb +1 -1
  611. data/lib/VoucherifySdk/models/qualifications_option_filters_resource_type_conditions.rb +1 -1
  612. data/lib/VoucherifySdk/models/qualifications_redeemable.rb +1 -1
  613. data/lib/VoucherifySdk/models/qualifications_redeemable_base.rb +1 -1
  614. data/lib/VoucherifySdk/models/redeemable_gift.rb +18 -7
  615. data/lib/VoucherifySdk/models/redeemable_loyalty_card.rb +2 -2
  616. data/lib/VoucherifySdk/models/redeemable_result.rb +10 -1
  617. data/lib/VoucherifySdk/models/redeemable_voucher_gift.rb +14 -3
  618. data/lib/VoucherifySdk/models/redeemable_voucher_loyalty_card.rb +30 -8
  619. data/lib/VoucherifySdk/models/redeemable_voucher_publish.rb +1 -1
  620. data/lib/VoucherifySdk/models/redemption.rb +11 -1
  621. data/lib/VoucherifySdk/models/redemption_entry.rb +11 -1
  622. data/lib/VoucherifySdk/models/redemption_entry_promotion_tier_campaign.rb +1 -1
  623. data/lib/VoucherifySdk/models/redemption_entry_related_redemptions_rollbacks_item.rb +38 -4
  624. data/lib/VoucherifySdk/models/redemption_entry_session.rb +210 -0
  625. data/lib/VoucherifySdk/models/redemption_entry_voucher_gift.rb +14 -3
  626. data/lib/VoucherifySdk/models/redemption_entry_voucher_loyalty_card.rb +30 -8
  627. data/lib/VoucherifySdk/models/redemption_related_redemptions_rollbacks_item.rb +38 -4
  628. data/lib/VoucherifySdk/models/redemption_reward_result_parameters_campaign.rb +1 -1
  629. data/lib/VoucherifySdk/models/redemption_reward_result_parameters_coin.rb +1 -1
  630. data/lib/VoucherifySdk/models/redemption_rollback.rb +15 -15
  631. data/lib/VoucherifySdk/models/redemption_session.rb +210 -0
  632. data/lib/VoucherifySdk/models/redemption_voucher_gift.rb +14 -3
  633. data/lib/VoucherifySdk/models/redemption_voucher_loyalty_card.rb +30 -8
  634. data/lib/VoucherifySdk/models/redemptions_get_response_body.rb +11 -1
  635. data/lib/VoucherifySdk/models/redemptions_get_response_body_promotion_tier_campaign.rb +1 -1
  636. data/lib/VoucherifySdk/models/redemptions_get_response_body_related_redemptions_rollbacks_item.rb +38 -4
  637. data/lib/VoucherifySdk/models/redemptions_get_response_body_session.rb +210 -0
  638. data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher_gift.rb +14 -3
  639. data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher_loyalty_card.rb +30 -8
  640. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item.rb +11 -1
  641. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_promotion_tier_campaign.rb +1 -1
  642. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_related_redemptions.rb +0 -1
  643. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_related_redemptions_rollbacks_item.rb +38 -4
  644. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_session.rb +210 -0
  645. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher_gift.rb +14 -3
  646. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher_loyalty_card.rb +30 -8
  647. data/lib/VoucherifySdk/models/redemptions_redeem_request_body_options.rb +29 -7
  648. data/lib/VoucherifySdk/models/redemptions_redeem_request_body_redeemables_item_gift.rb +1 -1
  649. data/lib/VoucherifySdk/models/redemptions_rollback_create_response_body.rb +15 -15
  650. data/lib/VoucherifySdk/models/reward.rb +1 -1
  651. data/lib/VoucherifySdk/models/rewards_create_request_body.rb +1 -1
  652. data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_campaign.rb +1 -1
  653. data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_coin.rb +1 -1
  654. data/lib/VoucherifySdk/models/rewards_create_response_body.rb +1 -1
  655. data/lib/VoucherifySdk/models/rewards_update_request_body.rb +1 -1
  656. data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_campaign.rb +1 -1
  657. data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_coin.rb +1 -1
  658. data/lib/VoucherifySdk/models/rewards_update_response_body.rb +1 -1
  659. data/lib/VoucherifySdk/models/segments_create_request_body.rb +2 -2
  660. data/lib/VoucherifySdk/models/segments_create_response_body.rb +31 -20
  661. data/lib/VoucherifySdk/models/segments_get_response_body.rb +32 -21
  662. data/lib/VoucherifySdk/models/simple_loyalty_card.rb +30 -8
  663. data/lib/VoucherifySdk/models/simple_voucher_redemption.rb +16 -5
  664. data/lib/VoucherifySdk/models/stacking_rules.rb +72 -20
  665. data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body.rb +3 -3
  666. data/lib/VoucherifySdk/models/trash_bin_item.rb +1 -1
  667. data/lib/VoucherifySdk/models/validation_rule.rb +11 -1
  668. data/lib/VoucherifySdk/models/validation_rules_create_request_body.rb +11 -1
  669. data/lib/VoucherifySdk/models/validation_rules_create_response_body.rb +11 -1
  670. data/lib/VoucherifySdk/models/validation_rules_get_response_body.rb +11 -1
  671. data/lib/VoucherifySdk/models/validation_rules_update_request_body.rb +11 -1
  672. data/lib/VoucherifySdk/models/validation_rules_update_response_body.rb +11 -1
  673. data/lib/VoucherifySdk/models/validations_redeemable_inapplicable_result.rb +14 -5
  674. data/lib/VoucherifySdk/models/validations_redeemable_skipped_result_details.rb +1 -1
  675. data/lib/VoucherifySdk/models/validations_validate_request_body.rb +1 -1
  676. data/lib/VoucherifySdk/models/validations_validate_request_body_options.rb +29 -7
  677. data/lib/VoucherifySdk/models/validations_validate_request_body_redeemables_item_gift.rb +1 -1
  678. data/lib/VoucherifySdk/models/validations_validate_response_body.rb +12 -1
  679. data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result.rb +11 -1
  680. data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_discount.rb +5 -2
  681. data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_gift.rb +14 -3
  682. data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_loyalty_card.rb +1 -0
  683. data/lib/VoucherifySdk/models/validity_hours.rb +1 -1
  684. data/lib/VoucherifySdk/models/validity_hours_daily_item.rb +1 -1
  685. data/lib/VoucherifySdk/models/voucher_balance.rb +12 -1
  686. data/lib/VoucherifySdk/models/voucher_gift.rb +14 -3
  687. data/lib/VoucherifySdk/models/voucher_loyalty_card.rb +30 -8
  688. data/lib/VoucherifySdk/models/voucher_transaction.rb +1 -1
  689. data/lib/VoucherifySdk/models/voucher_transaction_details_balance.rb +12 -1
  690. data/lib/VoucherifySdk/models/voucher_transactions_export_parameters.rb +1 -1
  691. data/lib/VoucherifySdk/models/voucher_transactions_filters.rb +1 -1
  692. data/lib/VoucherifySdk/models/voucher_with_categories_gift.rb +14 -3
  693. data/lib/VoucherifySdk/models/voucher_with_categories_loyalty_card.rb +30 -8
  694. data/lib/VoucherifySdk/models/vouchers_balance_update_request_body.rb +1 -1
  695. data/lib/VoucherifySdk/models/vouchers_balance_update_response_body.rb +2 -2
  696. data/lib/VoucherifySdk/models/vouchers_create_request_body.rb +2 -2
  697. data/lib/VoucherifySdk/models/vouchers_create_response_body_gift.rb +14 -3
  698. data/lib/VoucherifySdk/models/vouchers_create_response_body_loyalty_card.rb +30 -8
  699. data/lib/VoucherifySdk/models/vouchers_create_with_specific_code_request_body.rb +2 -2
  700. data/lib/VoucherifySdk/models/vouchers_disable_response_body_gift.rb +14 -3
  701. data/lib/VoucherifySdk/models/vouchers_disable_response_body_loyalty_card.rb +30 -8
  702. data/lib/VoucherifySdk/models/vouchers_enable_response_body_gift.rb +14 -3
  703. data/lib/VoucherifySdk/models/vouchers_enable_response_body_loyalty_card.rb +30 -8
  704. data/lib/VoucherifySdk/models/vouchers_get_response_body_gift.rb +14 -3
  705. data/lib/VoucherifySdk/models/vouchers_get_response_body_loyalty_card.rb +30 -8
  706. data/lib/VoucherifySdk/models/vouchers_import_create_item_request_body.rb +1 -1
  707. data/lib/VoucherifySdk/models/vouchers_transactions_export_create_response_body_result.rb +1 -1
  708. data/lib/VoucherifySdk/models/vouchers_update_request_body.rb +2 -2
  709. data/lib/VoucherifySdk/models/vouchers_update_response_body_gift.rb +14 -3
  710. data/lib/VoucherifySdk/models/vouchers_update_response_body_loyalty_card.rb +30 -8
  711. data/lib/VoucherifySdk/version.rb +1 -1
  712. data/lib/VoucherifySdk.rb +55 -0
  713. metadata +142 -28
@@ -20,7 +20,7 @@ module VoucherifySdk
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create Voucher
23
- # Create a standalone voucher. You can choose to create a GIFT_VOUCHER, a DISCOUNT_VOUCHER, or a LOYALTY_CARD. The code path parameter can use all letters of the English alphabet, Arabic numerals and special characters. When you create a new voucher, you can specify a type to create it. Creating a new voucher will create a new standalone voucher if no campaign name or campaign_id is provided. However, if an ID or name of a campaign with the type set to STANDALONE is provided, the voucher will be added to such campaign. In the case of the loyalty card, a campaign name or ID is required. 🚧 Standalone Vouchers and Campaigns In version [v20241004](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004), standalone vouchers created through the Voucherify dashboard create a campaign for that voucher. However, vouchers created through the API do not have a campaign attached, so the values for campaign and campaign_id are null. Voucherify developers work on adding an optional feature to create a standalone voucher campaign through the API. Follow the [Voucherify Release Notes](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004) for more details about released features.
23
+ # Create a generic (standalone) voucher or a voucher in a campaign. You can choose to create a GIFT_VOUCHER, a DISCOUNT_VOUCHER, or a LOYALTY_CARD. The code path parameter can use all letters of the English alphabet, Arabic numerals and special characters. When you create a new voucher, you can specify a type to create it. If no campaign name or campaign_id is provided, the new voucher will be a generic (standalone) one. However, if an ID or name of a campaign with the type set to STANDALONE is provided, the voucher will be added to this campaign. For a loyalty card, a campaign name or ID is required. <Warning> <Badge color yellow>Standalone Vouchers and Campaigns</Badge> Generic (standalone) vouchers created through the Voucherify dashboard always create a campaign for that voucher. However, vouchers created through The vouchers created with POST Create voucher and POST Generate random code endpoints do not have a campaign attached, so the values for campaign and campaign_id are null. To create a generic (standalone) voucher with a type: STANDALONE, use the [POST Create campaign](/api-reference/campaigns/create-campaign) endpoint. </Warning>
24
24
  # @param code [String] A unique **code** that identifies the voucher.
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [VouchersCreateWithSpecificCodeRequestBody] :vouchers_create_with_specific_code_request_body Specify the details of the voucher that you would like to create.
@@ -31,7 +31,7 @@ module VoucherifySdk
31
31
  end
32
32
 
33
33
  # Create Voucher
34
- # Create a standalone voucher. You can choose to create a GIFT_VOUCHER, a DISCOUNT_VOUCHER, or a LOYALTY_CARD. The code path parameter can use all letters of the English alphabet, Arabic numerals and special characters. When you create a new voucher, you can specify a type to create it. Creating a new voucher will create a new standalone voucher if no campaign name or campaign_id is provided. However, if an ID or name of a campaign with the type set to STANDALONE is provided, the voucher will be added to such campaign. In the case of the loyalty card, a campaign name or ID is required. 🚧 Standalone Vouchers and Campaigns In version [v20241004](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004), standalone vouchers created through the Voucherify dashboard create a campaign for that voucher. However, vouchers created through the API do not have a campaign attached, so the values for campaign and campaign_id are null. Voucherify developers work on adding an optional feature to create a standalone voucher campaign through the API. Follow the [Voucherify Release Notes](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004) for more details about released features.
34
+ # Create a generic (standalone) voucher or a voucher in a campaign. You can choose to create a GIFT_VOUCHER, a DISCOUNT_VOUCHER, or a LOYALTY_CARD. The code path parameter can use all letters of the English alphabet, Arabic numerals and special characters. When you create a new voucher, you can specify a type to create it. If no campaign name or campaign_id is provided, the new voucher will be a generic (standalone) one. However, if an ID or name of a campaign with the type set to STANDALONE is provided, the voucher will be added to this campaign. For a loyalty card, a campaign name or ID is required. &lt;Warning&gt; &lt;Badge color yellow&gt;Standalone Vouchers and Campaigns&lt;/Badge&gt; Generic (standalone) vouchers created through the Voucherify dashboard always create a campaign for that voucher. However, vouchers created through The vouchers created with POST Create voucher and POST Generate random code endpoints do not have a campaign attached, so the values for campaign and campaign_id are null. To create a generic (standalone) voucher with a type: STANDALONE, use the [POST Create campaign](/api-reference/campaigns/create-campaign) endpoint. &lt;/Warning&gt;
35
35
  # @param code [String] A unique **code** that identifies the voucher.
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [VouchersCreateWithSpecificCodeRequestBody] :vouchers_create_with_specific_code_request_body Specify the details of the voucher that you would like to create.
@@ -86,7 +86,7 @@ module VoucherifySdk
86
86
  end
87
87
 
88
88
  # Delete Voucher
89
- # Deletes a voucher. This operation cannot be undone. Additionally, this operation removes any redemptions on the voucher. If the force parameter is set to false or not set at all, the voucher will be moved to the bin.
89
+ # Deletes a voucher. This operation cannot be undone. Additionally, this operation removes any redemptions on the voucher. If the force parameter is set to false or not set at all, the voucher will be moved to [the bin](/api-reference/bin/list-bin-entries).
90
90
  # @param code [String] A unique **code** that identifies the voucher.
91
91
  # @param [Hash] opts the optional parameters
92
92
  # @option opts [Boolean] :force If this flag is set to true, the voucher will be removed permanently. If it is set to false or not set at all, the voucher will be moved to the bin. Going forward, the user will be able to create another voucher with exactly the same code.
@@ -97,7 +97,7 @@ module VoucherifySdk
97
97
  end
98
98
 
99
99
  # Delete Voucher
100
- # Deletes a voucher. This operation cannot be undone. Additionally, this operation removes any redemptions on the voucher. If the force parameter is set to false or not set at all, the voucher will be moved to the bin.
100
+ # Deletes a voucher. This operation cannot be undone. Additionally, this operation removes any redemptions on the voucher. If the force parameter is set to false or not set at all, the voucher will be moved to [the bin](/api-reference/bin/list-bin-entries).
101
101
  # @param code [String] A unique **code** that identifies the voucher.
102
102
  # @param [Hash] opts the optional parameters
103
103
  # @option opts [Boolean] :force If this flag is set to true, the voucher will be removed permanently. If it is set to false or not set at all, the voucher will be moved to the bin. Going forward, the user will be able to create another voucher with exactly the same code.
@@ -146,7 +146,7 @@ module VoucherifySdk
146
146
  end
147
147
 
148
148
  # Disable Voucher
149
- # There are various times when youll want to manage a vouchers accessibility. This can be done by two API methods for managing the voucher state - *enable* and *disable*. ___ This method sets the voucher state to **inactive**. The voucher cannot be redeemed.
149
+ # This method sets the voucher state to **inactive**. The voucher cannot be redeemed.
150
150
  # @param code [String] A **code** that identifies the voucher or a unique voucher ID assigned by Voucherify, i.e. v_TzD19aeNiqGc9LWciMWknyEZT8IW7u4u.
151
151
  # @param [Hash] opts the optional parameters
152
152
  # @return [VouchersDisableResponseBody]
@@ -156,7 +156,7 @@ module VoucherifySdk
156
156
  end
157
157
 
158
158
  # Disable Voucher
159
- # There are various times when youll want to manage a vouchers accessibility. This can be done by two API methods for managing the voucher state - *enable* and *disable*. ___ This method sets the voucher state to **inactive**. The voucher cannot be redeemed.
159
+ # This method sets the voucher state to **inactive**. The voucher cannot be redeemed.
160
160
  # @param code [String] A **code** that identifies the voucher or a unique voucher ID assigned by Voucherify, i.e. v_TzD19aeNiqGc9LWciMWknyEZT8IW7u4u.
161
161
  # @param [Hash] opts the optional parameters
162
162
  # @return [Array<(VouchersDisableResponseBody, Integer, Hash)>] VouchersDisableResponseBody data, response status code and response headers
@@ -205,7 +205,7 @@ module VoucherifySdk
205
205
  end
206
206
 
207
207
  # Enable Voucher
208
- # There are various times when youll want to manage a vouchers accessibility. This can be done by two API methods for managing the voucher state - *enable* and *disable*. ___ The method sets the voucher state to **active**. The voucher can be redeemed - only if the redemption occurs after the start date and the voucher is not expired.
208
+ # The method sets the voucher state to **active**. The voucher can be redeemed - only if the redemption occurs after the start date and the voucher is not expired.
209
209
  # @param code [String] A **code** that identifies the voucher or a unique voucher ID assigned by Voucherify, i.e. v_TzD19aeNiqGc9LWciMWknyEZT8IW7u4u.
210
210
  # @param [Hash] opts the optional parameters
211
211
  # @return [VouchersEnableResponseBody]
@@ -215,7 +215,7 @@ module VoucherifySdk
215
215
  end
216
216
 
217
217
  # Enable Voucher
218
- # There are various times when youll want to manage a vouchers accessibility. This can be done by two API methods for managing the voucher state - *enable* and *disable*. ___ The method sets the voucher state to **active**. The voucher can be redeemed - only if the redemption occurs after the start date and the voucher is not expired.
218
+ # The method sets the voucher state to **active**. The voucher can be redeemed - only if the redemption occurs after the start date and the voucher is not expired.
219
219
  # @param code [String] A **code** that identifies the voucher or a unique voucher ID assigned by Voucherify, i.e. v_TzD19aeNiqGc9LWciMWknyEZT8IW7u4u.
220
220
  # @param [Hash] opts the optional parameters
221
221
  # @return [Array<(VouchersEnableResponseBody, Integer, Hash)>] VouchersEnableResponseBody data, response status code and response headers
@@ -330,7 +330,7 @@ module VoucherifySdk
330
330
  end
331
331
 
332
332
  # Generate Random Code
333
- # Create a standalone voucher. You can choose to create a GIFT_VOUCHER, a DISCOUNT_VOUCHER, or a LOYALTY_CARD. When you create a new voucher, you can specify a type to create it. Creating a new voucher will create a new standalone voucher if no campaign name or campaign_id is provided. However, if an ID or name of a campaign with the type set to STANDALONE is provided, the voucher will be added to such campaign. In case of the loyalty card, a campaign name is required. You can optionally use the code parameter to define a specific code or the code_config parameter to design rules for Voucherify API to create a random code. If neither of the two parameters are passed, then a random code is generated by the Voucherify API. This method will return an error when trying to create a voucher that already exists. 🚧 Standalone Vouchers and Campaigns In version [v20241004](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004), standalone vouchers created through the Voucherify dashboard create a campaign for that voucher. However, vouchers created through the API do not have a campaign attached, so the values for campaign and campaign_id are null. Voucherify developers work on adding an optional feature to create a standalone voucher campaign through the API. Follow the [Voucherify Release Notes](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004) for more details about released features.
333
+ # Create a generic (standalone) vouchers. You can choose to create a GIFT_VOUCHER, a DISCOUNT_VOUCHER, or a LOYALTY_CARD. When you create a new voucher, you can specify a type to create it. Creating a new voucher will create a new generic (standalone) vouchers if no campaign name or campaign_id is provided. However, if an ID or name of a campaign with the type set to STANDALONE is provided, the voucher will be added to such campaign. In case of the loyalty card, a campaign name is required. You can optionally use the code parameter to define a specific code or the code_config parameter to design rules for Voucherify API to create a random code. If neither of the two parameters are passed, then a random code is generated by the Voucherify API. This method will return an error when trying to create a voucher that already exists. <Warning> <Badge color yellow>Standalone Vouchers and Campaigns</Badge> Generic (standalone) vouchers created through the Voucherify dashboard always create a campaign for that voucher. The vouchers created with POST Create voucher and POST Generate random code endpoints do not have a campaign attached, so the values for campaign and campaign_id are null. To create a generic (standalone) voucher with a type: STANDALONE, use the [POST Create campaign](/api-reference/campaigns/create-campaign) endpoint. </Warning>
334
334
  # @param [Hash] opts the optional parameters
335
335
  # @option opts [VouchersCreateRequestBody] :vouchers_create_request_body Specify the details of the voucher that you would like to create.
336
336
  # @return [VouchersCreateResponseBody]
@@ -340,7 +340,7 @@ module VoucherifySdk
340
340
  end
341
341
 
342
342
  # Generate Random Code
343
- # Create a standalone voucher. You can choose to create a GIFT_VOUCHER, a DISCOUNT_VOUCHER, or a LOYALTY_CARD. When you create a new voucher, you can specify a type to create it. Creating a new voucher will create a new standalone voucher if no campaign name or campaign_id is provided. However, if an ID or name of a campaign with the type set to STANDALONE is provided, the voucher will be added to such campaign. In case of the loyalty card, a campaign name is required. You can optionally use the code parameter to define a specific code or the code_config parameter to design rules for Voucherify API to create a random code. If neither of the two parameters are passed, then a random code is generated by the Voucherify API. This method will return an error when trying to create a voucher that already exists. 🚧 Standalone Vouchers and Campaigns In version [v20241004](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004), standalone vouchers created through the Voucherify dashboard create a campaign for that voucher. However, vouchers created through the API do not have a campaign attached, so the values for campaign and campaign_id are null. Voucherify developers work on adding an optional feature to create a standalone voucher campaign through the API. Follow the [Voucherify Release Notes](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004) for more details about released features.
343
+ # Create a generic (standalone) vouchers. You can choose to create a GIFT_VOUCHER, a DISCOUNT_VOUCHER, or a LOYALTY_CARD. When you create a new voucher, you can specify a type to create it. Creating a new voucher will create a new generic (standalone) vouchers if no campaign name or campaign_id is provided. However, if an ID or name of a campaign with the type set to STANDALONE is provided, the voucher will be added to such campaign. In case of the loyalty card, a campaign name is required. You can optionally use the code parameter to define a specific code or the code_config parameter to design rules for Voucherify API to create a random code. If neither of the two parameters are passed, then a random code is generated by the Voucherify API. This method will return an error when trying to create a voucher that already exists. &lt;Warning&gt; &lt;Badge color yellow&gt;Standalone Vouchers and Campaigns&lt;/Badge&gt; Generic (standalone) vouchers created through the Voucherify dashboard always create a campaign for that voucher. The vouchers created with POST Create voucher and POST Generate random code endpoints do not have a campaign attached, so the values for campaign and campaign_id are null. To create a generic (standalone) voucher with a type: STANDALONE, use the [POST Create campaign](/api-reference/campaigns/create-campaign) endpoint. &lt;/Warning&gt;
344
344
  # @param [Hash] opts the optional parameters
345
345
  # @option opts [VouchersCreateRequestBody] :vouchers_create_request_body Specify the details of the voucher that you would like to create.
346
346
  # @return [Array<(VouchersCreateResponseBody, Integer, Hash)>] VouchersCreateResponseBody data, response status code and response headers
@@ -453,7 +453,7 @@ module VoucherifySdk
453
453
  end
454
454
 
455
455
  # Import Vouchers
456
- # Import standalone vouchers and gift cards into the repository. 📘 Important notes - **Start and expiration dates** need to be provided in compliance with the ISO 8601 norms. For example, 2020-03-11T09:00:00.000Z. - Custom code attributes (not supported by-default) need to be added as code **metadata**. - You **cannot import the same codes** to a single Voucherify Project. Any parameters not provided in the payload will be left blank or null. For both **standalone discount vouchers and gift cards**, you can import the following fields: - code - category - active - type - start_date - expiration_date - redemption.quantity - additional_info - metadata For **gift cards**, you can also import the following field: - gift.amount For **discount vouchers**, you can import the discount object. The object will slightly vary depending on the type of discount. Each discount type **requires** the type to be defined in the import. Fields other than the ones listed above wont be imported. Even if provided, they will be silently skipped. 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. 🚧 Standalone Vouchers and Campaigns In version [v20241004](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004), standalone vouchers created through the Voucherify dashboard create a campaign for that voucher. However, vouchers imported through the dashboard in the Vouchers section or through the API do not have a campaign attached, so the values for campaign and campaign_id are null.
456
+ # Import generic (standalone) vouchers and gift cards into the repository. You can upload up to 100,000 codes to a campaign, as a campaign can have up to 100,000 codes by default. Also, the request can include up to **10 MB** of data. <Note> <Badge color blue>Important notes</Badge> - **Start and expiration dates** need to be provided in compliance with the ISO 8601 standard. For example, 2020-03-11T09:00:00.000Z. - Custom code attributes (not supported by-default) need to be added as code **metadata**. - You **cannot import the same codes** to a single Voucherify Project. </Note> Any parameters not provided in the payload will be left blank or null. For both **standalone discount vouchers and gift cards**, you can import the following fields: - code - category - active - type - start_date - expiration_date - redemption.quantity - additional_info - metadata For **gift cards**, you can also import the following field: - gift.amount For **discount vouchers**, you can import the discount object. The object will slightly vary depending on the type of discount. Each discount type **requires** the type to be defined in the import. Fields other than the ones listed above wont be imported. Even if provided, they will be silently skipped. This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this [API request](/api-reference/async-actions/get-async-action). <Warning> <Badge color yellow>Standalone Vouchers and Campaigns</Badge> Generic (standalone) vouchers created through the Voucherify dashboard always create a campaign for that voucher. However, vouchers imported through the dashboard in the Vouchers section or through the API do not have a campaign attached, so the values for campaign and campaign_id are null. To create a generic (standalone) voucher with a type: STANDALONE, use the [POST Create campaign](/api-reference/campaigns/create-campaign) endpoint. </Warning>
457
457
  # @param vouchers_import_create_item_request_body [Array<VouchersImportCreateItemRequestBody>] The request body is an array of objects. Each object contains details about a specific voucher.
458
458
  # @param [Hash] opts the optional parameters
459
459
  # @return [VouchersImportCreateResponseBody]
@@ -463,7 +463,7 @@ module VoucherifySdk
463
463
  end
464
464
 
465
465
  # Import Vouchers
466
- # Import standalone vouchers and gift cards into the repository. 📘 Important notes - **Start and expiration dates** need to be provided in compliance with the ISO 8601 norms. For example, 2020-03-11T09:00:00.000Z. - Custom code attributes (not supported by-default) need to be added as code **metadata**. - You **cannot import the same codes** to a single Voucherify Project. Any parameters not provided in the payload will be left blank or null. For both **standalone discount vouchers and gift cards**, you can import the following fields: - code - category - active - type - start_date - expiration_date - redemption.quantity - additional_info - metadata For **gift cards**, you can also import the following field: - gift.amount For **discount vouchers**, you can import the discount object. The object will slightly vary depending on the type of discount. Each discount type **requires** the type to be defined in the import. Fields other than the ones listed above wont be imported. Even if provided, they will be silently skipped. 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. 🚧 Standalone Vouchers and Campaigns In version [v20241004](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004), standalone vouchers created through the Voucherify dashboard create a campaign for that voucher. However, vouchers imported through the dashboard in the Vouchers section or through the API do not have a campaign attached, so the values for campaign and campaign_id are null.
466
+ # Import generic (standalone) vouchers and gift cards into the repository. You can upload up to 100,000 codes to a campaign, as a campaign can have up to 100,000 codes by default. Also, the request can include up to **10 MB** of data. &lt;Note&gt; &lt;Badge color blue&gt;Important notes&lt;/Badge&gt; - **Start and expiration dates** need to be provided in compliance with the ISO 8601 standard. For example, 2020-03-11T09:00:00.000Z. - Custom code attributes (not supported by-default) need to be added as code **metadata**. - You **cannot import the same codes** to a single Voucherify Project. &lt;/Note&gt; Any parameters not provided in the payload will be left blank or null. For both **standalone discount vouchers and gift cards**, you can import the following fields: - code - category - active - type - start_date - expiration_date - redemption.quantity - additional_info - metadata For **gift cards**, you can also import the following field: - gift.amount For **discount vouchers**, you can import the discount object. The object will slightly vary depending on the type of discount. Each discount type **requires** the type to be defined in the import. Fields other than the ones listed above wont be imported. Even if provided, they will be silently skipped. This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this [API request](/api-reference/async-actions/get-async-action). &lt;Warning&gt; &lt;Badge color yellow&gt;Standalone Vouchers and Campaigns&lt;/Badge&gt; Generic (standalone) vouchers created through the Voucherify dashboard always create a campaign for that voucher. However, vouchers imported through the dashboard in the Vouchers section or through the API do not have a campaign attached, so the values for campaign and campaign_id are null. To create a generic (standalone) voucher with a type: STANDALONE, use the [POST Create campaign](/api-reference/campaigns/create-campaign) endpoint. &lt;/Warning&gt;
467
467
  # @param vouchers_import_create_item_request_body [Array<VouchersImportCreateItemRequestBody>] The request body is an array of objects. Each object contains details about a specific voucher.
468
468
  # @param [Hash] opts the optional parameters
469
469
  # @return [Array<(VouchersImportCreateResponseBody, Integer, Hash)>] VouchersImportCreateResponseBody data, response status code and response headers
@@ -517,9 +517,10 @@ module VoucherifySdk
517
517
  end
518
518
 
519
519
  # Import Vouchers using CSV
520
- # Import standalone vouchers into the repository using a CSV file. The CSV file has to include headers in the first line. All properties listed in the file headers that cannot be mapped to standard voucher fields will be added to the metadata object. You can find an example CSV file [here](https://support.voucherify.io/article/45-import-codes-and-share-them-digitally#coupons). ___ 📘 Standard voucher fields mapping - Go to the import vouchers endpoint to see all standard CSV fields description (body params section). - Supported CSV file headers: Code,Voucher Type,Value,Discount Type,Category,Start Date,Expiration Date,Redemption Limit,Redeemed Quantity, Redeemed Amount,Active,Additional Info,Custom Metadata Property Name - **Start and expiration dates** need to be provided in compliance with the ISO 8601 norms. For example, 2020-03-11T09:00:00.000Z. - YYYY-MM-DD - YYYY-MM-DDTHH - YYYY-MM-DDTHH:mm - YYYY-MM-DDTHH:mm:ss - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ss.SSSZ - Custom code attributes (not supported by-default) need to be added as code **metadata**. - You **cannot import the same codes** to a single Voucherify Project. 📘 Categories In the structure representing your data, you can define a category that the voucher belongs to. You can later use the category of a voucher to group and search by specific criteria in the Dashboard and using the List Vouchers endpoint. 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. 🚧 Standalone Vouchers and Campaigns In version [v20241004](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004), standalone vouchers created through the Voucherify dashboard create a campaign for that voucher. However, vouchers imported through the dashboard in the Vouchers section or through the API do not have a campaign attached, so the values for campaign and campaign_id are null.
520
+ # Import generic (standalone) vouchers into the repository using a CSV file. The CSV file has to include headers in the first line. All properties listed in the file headers that cannot be mapped to standard voucher fields will be added to the metadata object. You can upload up to 100,000 codes to a campaign, as a campaign can have up to 100,000 codes by default. Also, the request can include a max. **10 MB** CSV file. You can find an example CSV file [here](/build/discount-code-import). ___ <Note> <Badge color blue>Standard voucher fields mapping</Badge> - Go to the [import vouchers](/api-reference/vouchers/import-vouchers) endpoint to see all standard CSV fields description (body params section). - Supported CSV file headers: Code,Voucher Type,Value,Discount Type,Category,Start Date,Expiration Date,Redemption Limit,Redeemed Quantity, Redeemed Amount,Active,Additional Info,Custom Metadata Property Name - **Start and expiration dates** need to be provided in compliance with the ISO 8601 standard. For example, 2020-03-11T09:00:00.000Z. - YYYY-MM-DD - YYYY-MM-DDTHH - YYYY-MM-DDTHH:mm - YYYY-MM-DDTHH:mm:ss - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ss.SSSZ - Custom code attributes (not supported by-default) need to be added as code **metadata**. - You **cannot import the same codes** to a single Voucherify project. - You can, however, upload the same codes to update them. </Note> <Note> <Badge color blue>Categories</Badge> In the structure representing your data, you can define a category that the voucher belongs to. You can later use the category of a voucher to group and search by specific criteria in the Dashboard and using the [List Vouchers](/api-reference/vouchers/list-vouchers) endpoint. </Note> This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this [API request](/api-reference/async-actions/get-async-action). You can pass the webhooks_enable true parameter to trigger a webhook sendout for created or updated vouchers. Configure the [respective webhooks](/api-reference/introduction-to-webhooks) in Project settings. For updated webhooks, a webhook is sent even if the voucher hasnt been changed in the CSV file. <Warning> <Badge color yellow>Generic (standalone) vouchers and campaigns</Badge> Generic (standalone) vouchers created through the Voucherify dashboard always create a campaign for that voucher. However, vouchers imported through the dashboard in the Vouchers section or through the API do not have a campaign attached, so the values for campaign and campaign_id are null. </Warning>
521
521
  # @param [Hash] opts the optional parameters
522
522
  # @option opts [File] :file File path.
523
+ # @option opts [Boolean] :webhooks_enable Triggers a webhook sendout for new and updated vouchers if the voucher created and voucher updated webhooks are configured in Project settings.
523
524
  # @return [VouchersImportCsvCreateResponseBody]
524
525
  def import_vouchers_using_csv(opts = {})
525
526
  data, _status_code, _headers = import_vouchers_using_csv_with_http_info(opts)
@@ -527,9 +528,10 @@ module VoucherifySdk
527
528
  end
528
529
 
529
530
  # Import Vouchers using CSV
530
- # Import standalone vouchers into the repository using a CSV file. The CSV file has to include headers in the first line. All properties listed in the file headers that cannot be mapped to standard voucher fields will be added to the metadata object. You can find an example CSV file [here](https://support.voucherify.io/article/45-import-codes-and-share-them-digitally#coupons). ___ 📘 Standard voucher fields mapping - Go to the import vouchers endpoint to see all standard CSV fields description (body params section). - Supported CSV file headers: Code,Voucher Type,Value,Discount Type,Category,Start Date,Expiration Date,Redemption Limit,Redeemed Quantity, Redeemed Amount,Active,Additional Info,Custom Metadata Property Name - **Start and expiration dates** need to be provided in compliance with the ISO 8601 norms. For example, 2020-03-11T09:00:00.000Z. - YYYY-MM-DD - YYYY-MM-DDTHH - YYYY-MM-DDTHH:mm - YYYY-MM-DDTHH:mm:ss - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ss.SSSZ - Custom code attributes (not supported by-default) need to be added as code **metadata**. - You **cannot import the same codes** to a single Voucherify Project. 📘 Categories In the structure representing your data, you can define a category that the voucher belongs to. You can later use the category of a voucher to group and search by specific criteria in the Dashboard and using the List Vouchers endpoint. 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. 🚧 Standalone Vouchers and Campaigns In version [v20241004](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004), standalone vouchers created through the Voucherify dashboard create a campaign for that voucher. However, vouchers imported through the dashboard in the Vouchers section or through the API do not have a campaign attached, so the values for campaign and campaign_id are null.
531
+ # Import generic (standalone) vouchers into the repository using a CSV file. The CSV file has to include headers in the first line. All properties listed in the file headers that cannot be mapped to standard voucher fields will be added to the metadata object. You can upload up to 100,000 codes to a campaign, as a campaign can have up to 100,000 codes by default. Also, the request can include a max. **10 MB** CSV file. You can find an example CSV file [here](/build/discount-code-import). ___ &lt;Note&gt; &lt;Badge color blue&gt;Standard voucher fields mapping&lt;/Badge&gt; - Go to the [import vouchers](/api-reference/vouchers/import-vouchers) endpoint to see all standard CSV fields description (body params section). - Supported CSV file headers: Code,Voucher Type,Value,Discount Type,Category,Start Date,Expiration Date,Redemption Limit,Redeemed Quantity, Redeemed Amount,Active,Additional Info,Custom Metadata Property Name - **Start and expiration dates** need to be provided in compliance with the ISO 8601 standard. For example, 2020-03-11T09:00:00.000Z. - YYYY-MM-DD - YYYY-MM-DDTHH - YYYY-MM-DDTHH:mm - YYYY-MM-DDTHH:mm:ss - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ss.SSSZ - Custom code attributes (not supported by-default) need to be added as code **metadata**. - You **cannot import the same codes** to a single Voucherify project. - You can, however, upload the same codes to update them. &lt;/Note&gt; &lt;Note&gt; &lt;Badge color blue&gt;Categories&lt;/Badge&gt; In the structure representing your data, you can define a category that the voucher belongs to. You can later use the category of a voucher to group and search by specific criteria in the Dashboard and using the [List Vouchers](/api-reference/vouchers/list-vouchers) endpoint. &lt;/Note&gt; This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this [API request](/api-reference/async-actions/get-async-action). You can pass the webhooks_enable true parameter to trigger a webhook sendout for created or updated vouchers. Configure the [respective webhooks](/api-reference/introduction-to-webhooks) in Project settings. For updated webhooks, a webhook is sent even if the voucher hasnt been changed in the CSV file. &lt;Warning&gt; &lt;Badge color yellow&gt;Generic (standalone) vouchers and campaigns&lt;/Badge&gt; Generic (standalone) vouchers created through the Voucherify dashboard always create a campaign for that voucher. However, vouchers imported through the dashboard in the Vouchers section or through the API do not have a campaign attached, so the values for campaign and campaign_id are null. &lt;/Warning&gt;
531
532
  # @param [Hash] opts the optional parameters
532
533
  # @option opts [File] :file File path.
534
+ # @option opts [Boolean] :webhooks_enable Triggers a webhook sendout for new and updated vouchers if the voucher created and voucher updated webhooks are configured in Project settings.
533
535
  # @return [Array<(VouchersImportCsvCreateResponseBody, Integer, Hash)>] VouchersImportCsvCreateResponseBody data, response status code and response headers
534
536
  private def import_vouchers_using_csv_with_http_info(opts = {})
535
537
  if @api_client.config.debugging
@@ -554,6 +556,7 @@ module VoucherifySdk
554
556
  # form parameters
555
557
  form_params = opts[:form_params] || {}
556
558
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
559
+ form_params['webhooks_enable'] = opts[:'webhooks_enable'] if !opts[:'webhooks_enable'].nil?
557
560
 
558
561
  # http body (model)
559
562
  post_body = opts[:debug_body]
@@ -740,7 +743,7 @@ module VoucherifySdk
740
743
  end
741
744
 
742
745
  # Release Validation Session
743
- # Manually release a validation session that has been set up for the voucher. This method undos the actions that are explained in our guide on how a validation session was established, you can read more here. 📘 Release Session using Dashboard You can also use the Validations Manager in the Dashboard to unlock sessions. [Read more](https://support.voucherify.io/article/16-dashboard-sections#validations).
746
+ # Manually release a validation session that has been set up for the voucher. This method undoes the actions that are explained in the [Locking validation session](/guides/locking-validation-session) guide. <Note> <Badge color blue>Release session in the Dashboard</Badge> You can also use the [Validations Manager](/optimize/validations-and-redemptions#sessions) in the Dashboard to unlock sessions. </Note>
744
747
  # @param code [String] A **code** that identifies the voucher or a unique voucher ID assigned by Voucherify.
745
748
  # @param session_key [String] A unique session identifier.
746
749
  # @param [Hash] opts the optional parameters
@@ -751,7 +754,7 @@ module VoucherifySdk
751
754
  end
752
755
 
753
756
  # Release Validation Session
754
- # Manually release a validation session that has been set up for the voucher. This method undos the actions that are explained in our guide on how a validation session was established, you can read more here. 📘 Release Session using Dashboard You can also use the Validations Manager in the Dashboard to unlock sessions. [Read more](https://support.voucherify.io/article/16-dashboard-sections#validations).
757
+ # Manually release a validation session that has been set up for the voucher. This method undoes the actions that are explained in the [Locking validation session](/guides/locking-validation-session) guide. &lt;Note&gt; &lt;Badge color blue&gt;Release session in the Dashboard&lt;/Badge&gt; You can also use the [Validations Manager](/optimize/validations-and-redemptions#sessions) in the Dashboard to unlock sessions. &lt;/Note&gt;
755
758
  # @param code [String] A **code** that identifies the voucher or a unique voucher ID assigned by Voucherify.
756
759
  # @param session_key [String] A unique session identifier.
757
760
  # @param [Hash] opts the optional parameters
@@ -799,7 +802,7 @@ module VoucherifySdk
799
802
  end
800
803
 
801
804
  # Update Voucher
802
- # Updates the specified voucher by setting the values of the parameters passed in the request body. Any parameters not provided in the payload will be left unchanged. Fields other than the ones listed in the request body wont be modified. Even if provided, they will be silently skipped.
805
+ # Updates the specified voucher by setting the values of the parameters passed in the request body. Any parameters not provided in the payload will be left unchanged. Fields other than the ones listed in the request body wont be modified. Even if provided, they will be silently skipped. If you want to change the amount on a gift card or the number of points on a loyalty card, use the [Adjust voucher balance](/api-reference/vouchers/adjust-voucher-balance) endpoint.
803
806
  # @param code [String] A unique **code** that identifies the voucher.
804
807
  # @param vouchers_update_request_body [VouchersUpdateRequestBody] Specify the parameters to be updated.
805
808
  # @param [Hash] opts the optional parameters
@@ -810,7 +813,7 @@ module VoucherifySdk
810
813
  end
811
814
 
812
815
  # Update Voucher
813
- # Updates the specified voucher by setting the values of the parameters passed in the request body. Any parameters not provided in the payload will be left unchanged. Fields other than the ones listed in the request body wont be modified. Even if provided, they will be silently skipped.
816
+ # Updates the specified voucher by setting the values of the parameters passed in the request body. Any parameters not provided in the payload will be left unchanged. Fields other than the ones listed in the request body wont be modified. Even if provided, they will be silently skipped. If you want to change the amount on a gift card or the number of points on a loyalty card, use the [Adjust voucher balance](/api-reference/vouchers/adjust-voucher-balance) endpoint.
814
817
  # @param code [String] A unique **code** that identifies the voucher.
815
818
  # @param vouchers_update_request_body [VouchersUpdateRequestBody] Specify the parameters to be updated.
816
819
  # @param [Hash] opts the optional parameters
@@ -864,8 +867,8 @@ module VoucherifySdk
864
867
  return data, status_code, headers
865
868
  end
866
869
 
867
- # Add or Remove Voucher Balance
868
- # Add balance to an existing gift card or loyalty card.
870
+ # Adjust Voucher Balance
871
+ # Add balance to an existing gift card or loyalty card. For loyalty cards, it must be assigned to a holder.
869
872
  # @param code [String] A **code** that identifies the voucher or a unique voucher ID assigned by Voucherify, i.e. v_TzD19aeNiqGc9LWciMWknyEZT8IW7u4u.
870
873
  # @param vouchers_balance_update_request_body [VouchersBalanceUpdateRequestBody] Provide the amount to be added to/subtracted from the voucher.
871
874
  # @param [Hash] opts the optional parameters
@@ -875,8 +878,8 @@ module VoucherifySdk
875
878
  data
876
879
  end
877
880
 
878
- # Add or Remove Voucher Balance
879
- # Add balance to an existing gift card or loyalty card.
881
+ # Adjust Voucher Balance
882
+ # Add balance to an existing gift card or loyalty card. For loyalty cards, it must be assigned to a holder.
880
883
  # @param code [String] A **code** that identifies the voucher or a unique voucher ID assigned by Voucherify, i.e. v_TzD19aeNiqGc9LWciMWknyEZT8IW7u4u.
881
884
  # @param vouchers_balance_update_request_body [VouchersBalanceUpdateRequestBody] Provide the amount to be added to/subtracted from the voucher.
882
885
  # @param [Hash] opts the optional parameters
@@ -931,7 +934,7 @@ module VoucherifySdk
931
934
  end
932
935
 
933
936
  # Update Vouchers in Bulk
934
- # Updates specific metadata parameters for each code, respectively, in one asynchronous operation. The request can include up to **10 MB** of data. Upserts are not supported. 🚧 Currently, only **metadata** updates are supported. The response returns a unique asynchronous action ID. Use this ID in the query paramater of the GET Async Action endpoint to check, e.g.: - The status of your request (in queue, in progress, done, or failed) - Resources that failed to be updated - The report file with details about the update This API request starts a process that affects Voucherify data in bulk. In the case of small jobs (like bulk update), the request is put into a queue and processed when every other bulk request placed in the queue prior to this request is finished.
937
+ # Updates specific metadata parameters for each code, respectively, in one asynchronous operation. The request can include up to **10 MB** of data. Upserts are not supported. <Warning> Currently, only **metadata** updates are supported. </Warning> The response returns a unique asynchronous action ID. Use this ID in the query paramater of the [GET Async Action](/api-reference/async-actions/get-async-action) endpoint to check, e.g.: - The status of your request (in queue, in progress, done, or failed) - Resources that failed to be updated - The report file with details about the update This API request starts a process that affects Voucherify data in bulk. In the case of small jobs (like bulk update), the request is put into a queue and processed when every other bulk request placed in the queue prior to this request is finished.
935
938
  # @param vouchers_update_in_bulk_item_request_body [Array<VouchersUpdateInBulkItemRequestBody>] List the codes to be updated with the metadata key/value pairs for that code.
936
939
  # @param [Hash] opts the optional parameters
937
940
  # @return [VouchersUpdateInBulkResponseBody]
@@ -941,7 +944,7 @@ module VoucherifySdk
941
944
  end
942
945
 
943
946
  # Update Vouchers in Bulk
944
- # Updates specific metadata parameters for each code, respectively, in one asynchronous operation. The request can include up to **10 MB** of data. Upserts are not supported. 🚧 Currently, only **metadata** updates are supported. The response returns a unique asynchronous action ID. Use this ID in the query paramater of the GET Async Action endpoint to check, e.g.: - The status of your request (in queue, in progress, done, or failed) - Resources that failed to be updated - The report file with details about the update This API request starts a process that affects Voucherify data in bulk. In the case of small jobs (like bulk update), the request is put into a queue and processed when every other bulk request placed in the queue prior to this request is finished.
947
+ # Updates specific metadata parameters for each code, respectively, in one asynchronous operation. The request can include up to **10 MB** of data. Upserts are not supported. &lt;Warning&gt; Currently, only **metadata** updates are supported. &lt;/Warning&gt; The response returns a unique asynchronous action ID. Use this ID in the query paramater of the [GET Async Action](/api-reference/async-actions/get-async-action) endpoint to check, e.g.: - The status of your request (in queue, in progress, done, or failed) - Resources that failed to be updated - The report file with details about the update This API request starts a process that affects Voucherify data in bulk. In the case of small jobs (like bulk update), the request is put into a queue and processed when every other bulk request placed in the queue prior to this request is finished.
945
948
  # @param vouchers_update_in_bulk_item_request_body [Array<VouchersUpdateInBulkItemRequestBody>] List the codes to be updated with the metadata key/value pairs for that code.
946
949
  # @param [Hash] opts the optional parameters
947
950
  # @return [Array<(VouchersUpdateInBulkResponseBody, Integer, Hash)>] VouchersUpdateInBulkResponseBody data, response status code and response headers
@@ -995,7 +998,7 @@ module VoucherifySdk
995
998
  end
996
999
 
997
1000
  # Update Vouchers' Metadata in Bulk
998
- # Updates metadata parameters for a list of codes. Every resource in the list will receive the metadata defined in the request. The request can include up to **10 MB** of data. Upserts are not supported. The response returns a unique asynchronous action ID. Use this ID in the query paramater of the GET Async Action endpoint to check, e.g.: - The status of your request (in queue, in progress, done, or failed) - Resources that failed to be updated - The report file with details about the update This API request starts a process that affects Voucherify data in bulk. In the case of small jobs (like bulk update), the request is put into a queue and processed when every other bulk request placed in the queue prior to this request is finished.
1001
+ # Updates metadata parameters for a list of codes. Every resource in the list will receive the metadata defined in the request. The request can include up to **10 MB** of data. Upserts are not supported. The response returns a unique asynchronous action ID. Use this ID in the query paramater of the [GET Async Action](/api-reference/async-actions/get-async-action) endpoint to check, e.g.: - The status of your request (in queue, in progress, done, or failed) - Resources that failed to be updated - The report file with details about the update This API request starts a process that affects Voucherify data in bulk. In the case of small jobs (like bulk update), the request is put into a queue and processed when every other bulk request placed in the queue prior to this request is finished.
999
1002
  # @param vouchers_metadata_update_in_bulk_request_body [VouchersMetadataUpdateInBulkRequestBody] List the codes of the vouchers you would like to update with the metadata key/value pairs.
1000
1003
  # @param [Hash] opts the optional parameters
1001
1004
  # @return [VouchersMetadataUpdateInBulkResponseBody]
@@ -1005,7 +1008,7 @@ module VoucherifySdk
1005
1008
  end
1006
1009
 
1007
1010
  # Update Vouchers&#39; Metadata in Bulk
1008
- # Updates metadata parameters for a list of codes. Every resource in the list will receive the metadata defined in the request. The request can include up to **10 MB** of data. Upserts are not supported. The response returns a unique asynchronous action ID. Use this ID in the query paramater of the GET Async Action endpoint to check, e.g.: - The status of your request (in queue, in progress, done, or failed) - Resources that failed to be updated - The report file with details about the update This API request starts a process that affects Voucherify data in bulk. In the case of small jobs (like bulk update), the request is put into a queue and processed when every other bulk request placed in the queue prior to this request is finished.
1011
+ # Updates metadata parameters for a list of codes. Every resource in the list will receive the metadata defined in the request. The request can include up to **10 MB** of data. Upserts are not supported. The response returns a unique asynchronous action ID. Use this ID in the query paramater of the [GET Async Action](/api-reference/async-actions/get-async-action) endpoint to check, e.g.: - The status of your request (in queue, in progress, done, or failed) - Resources that failed to be updated - The report file with details about the update This API request starts a process that affects Voucherify data in bulk. In the case of small jobs (like bulk update), the request is put into a queue and processed when every other bulk request placed in the queue prior to this request is finished.
1009
1012
  # @param vouchers_metadata_update_in_bulk_request_body [VouchersMetadataUpdateInBulkRequestBody] List the codes of the vouchers you would like to update with the metadata key/value pairs.
1010
1013
  # @param [Hash] opts the optional parameters
1011
1014
  # @return [Array<(VouchersMetadataUpdateInBulkResponseBody, Integer, Hash)>] VouchersMetadataUpdateInBulkResponseBody data, response status code and response headers
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module VoucherifySdk
17
- # Lists all assignments of the campaign to areas and stores. For [GET List Campaigns](ref:list-campaigns), this is returned if the `expand=access_settings_assignments` query parameter is passed in the request. **NOTE**: This object is returned only if the Areas and Stores enterprise feature is enabled. Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.
17
+ # Lists all assignments of the campaign to areas and stores. For [GET List Campaigns](/api-reference/campaigns/list-campaigns), this is returned if the `expand=access_settings_assignments` query parameter is passed in the request. This object is not returned for the [GET Campaign summary endpoint](/api-reference/campaigns/get-campaign-summary). **NOTE**: This object is returned only if the Areas and Stores enterprise feature is enabled. Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.
18
18
  class AccessSettingsCampaignAssignmentsList
19
19
  # The type of the object represented by JSON. Default is `list`. This object stores information about campaign assignments to areas and stores
20
20
  attr_accessor :object