voucherify 8.0.2 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (799) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +1 -1
  3. data/ENDPOINTS-COVERAGE.md +123 -106
  4. data/Gemfile.lock +20 -16
  5. data/README.md +260 -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/12_validation_rules_spec.rb +1 -15
  16. data/__tests__/spec/13_management_spec.rb +110 -0
  17. data/__tests__/spec/14_additional_properties_spec.rb +28 -0
  18. data/__tests__/spec/support/get_snapshot_without_uniq_keys.rb +1 -1
  19. data/docs/AccessSettings.md +9 -0
  20. data/docs/AccessSettingsAssign.md +10 -0
  21. data/docs/AccessSettingsUnassign.md +10 -0
  22. data/docs/ApplicableTo.md +21 -4
  23. data/docs/ApplicableToOrderItemUnitsItem.md +10 -0
  24. data/docs/ApplicationDetailsItem.md +14 -0
  25. data/docs/AreaStoreCampaignAssignment.md +1 -0
  26. data/docs/AsyncActionsApi.md +2 -2
  27. data/docs/AsyncActionsListResponseBody.md +1 -0
  28. data/docs/BinApi.md +4 -4
  29. data/docs/Bundle.md +11 -0
  30. data/docs/BundleIdentifiedItem.md +11 -0
  31. data/docs/BundleMissingItem.md +10 -0
  32. data/docs/Campaign.md +5 -5
  33. data/docs/CampaignBase.md +5 -4
  34. data/docs/CampaignLoyaltyCardExpirationRules.md +6 -4
  35. data/docs/CampaignsApi.md +209 -12
  36. data/docs/CampaignsCreateRequestBody.md +3 -2
  37. data/docs/CampaignsCreateResponseBody.md +5 -5
  38. data/docs/CampaignsGetResponseBody.md +5 -5
  39. data/docs/CampaignsImportVoucherItem.md +1 -1
  40. data/docs/CampaignsSummaryGetResponseBody.md +48 -0
  41. data/docs/CampaignsTransactionsExportCreateRequestBody.md +8 -0
  42. data/docs/CampaignsTransactionsExportCreateRequestBodyParameters.md +10 -0
  43. data/docs/CampaignsTransactionsExportCreateResponseBody.md +16 -0
  44. data/docs/CampaignsTransactionsExportCreateResponseBodyParameters.md +10 -0
  45. data/docs/CampaignsTransactionsExportCreateResponseBodyParametersFilters.md +11 -0
  46. data/docs/CampaignsTransactionsExportCreateResponseBodyParametersFiltersCampaignId.md +8 -0
  47. data/docs/CampaignsTransactionsExportCreateResponseBodyParametersFiltersCampaignIdConditions.md +8 -0
  48. data/docs/CampaignsTransactionsExportCreateResponseBodyResult.md +8 -0
  49. data/docs/CampaignsTransactionsListResponseBody.md +12 -0
  50. data/docs/CampaignsUpdateRequestBody.md +2 -1
  51. data/docs/CampaignsUpdateResponseBody.md +5 -5
  52. data/docs/CampaignsVouchersCreateCombinedResponseBodyGift.md +3 -2
  53. data/docs/CampaignsVouchersCreateCombinedResponseBodyLoyaltyCard.md +5 -2
  54. data/docs/CampaignsVouchersCreateResponseBodyGift.md +3 -2
  55. data/docs/CampaignsVouchersCreateResponseBodyLoyaltyCard.md +5 -2
  56. data/docs/CategoriesApi.md +1 -1
  57. data/docs/ClientQualificationsCheckEligibilityRequestBody.md +2 -1
  58. data/docs/ClientQualificationsCheckEligibilityRequestBodySession.md +8 -0
  59. data/docs/ClientRedemptionsRedeemRequestBodyOptions.md +1 -1
  60. data/docs/ClientRedemptionsRedeemRequestBodyRedeemablesItemGift.md +1 -1
  61. data/docs/ClientSideApi.md +2 -2
  62. data/docs/ClientValidationsValidateRequestBodyOptions.md +1 -1
  63. data/docs/ClientValidationsValidateRequestBodyRedeemablesItemGift.md +1 -1
  64. data/docs/ClientValidationsValidateResponseBody.md +1 -0
  65. data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResult.md +1 -0
  66. data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultDiscount.md +4 -4
  67. data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultGift.md +2 -1
  68. data/docs/CustomerLoyalty.md +1 -1
  69. data/docs/CustomerSummaryOrders.md +3 -3
  70. data/docs/CustomerSummaryRedemptionsGift.md +2 -2
  71. data/docs/CustomerWithSummaryLoyaltyReferralsAssets.md +2 -1
  72. data/docs/CustomersApi.md +10 -10
  73. data/docs/CustomersCreateResponseBodyAssets.md +2 -1
  74. data/docs/CustomersGetResponseBodyAssets.md +2 -1
  75. data/docs/CustomersUpdateResponseBodyAssets.md +2 -1
  76. data/docs/Discount.md +4 -4
  77. data/docs/DiscountUnitMultipleOneUnit.md +1 -1
  78. data/docs/EarningRule.md +2 -0
  79. data/docs/EarningRuleExpirationRules.md +13 -0
  80. data/docs/EarningRuleLoyalty.md +1 -0
  81. data/docs/EarningRuleLoyaltyCustomEventMetadata.md +1 -0
  82. data/docs/EarningRuleLoyaltyCustomerMetadata.md +1 -0
  83. data/docs/EarningRuleLoyaltyOrderAmount.md +1 -0
  84. data/docs/EarningRuleLoyaltyOrderItemsAmount.md +4 -2
  85. data/docs/EarningRuleLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  86. data/docs/EarningRuleLoyaltyOrderItemsQuantity.md +4 -2
  87. data/docs/EarningRuleLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  88. data/docs/EarningRuleLoyaltyOrderItemsSubtotalAmount.md +4 -2
  89. data/docs/EarningRuleLoyaltyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  90. data/docs/EarningRuleLoyaltyOrderMetadata.md +1 -0
  91. data/docs/EarningRuleLoyaltyOrderTotalAmount.md +1 -0
  92. data/docs/EarningRulePendingPoints.md +9 -0
  93. data/docs/EventSource.md +10 -0
  94. data/docs/EventSourceApiKey.md +9 -0
  95. data/docs/EventSourceUser.md +8 -0
  96. data/docs/ExportCampaignTransactionsFilters.md +10 -0
  97. data/docs/ExportParameters.md +1 -0
  98. data/docs/ExportsApi.md +3 -3
  99. data/docs/ExportsCreateRequestBodyParameters.md +1 -0
  100. data/docs/ExportsCreateResponseBodyParameters.md +1 -0
  101. data/docs/ExportsGetResponseBodyParameters.md +1 -0
  102. data/docs/Gift.md +3 -2
  103. data/docs/InapplicableTo.md +21 -4
  104. data/docs/InapplicableToOrderItemUnitsItem.md +10 -0
  105. data/docs/LoyaltiesApi.md +590 -69
  106. data/docs/LoyaltiesCreateCampaignRequestBody.md +3 -2
  107. data/docs/LoyaltiesCreateCampaignResponseBody.md +1 -1
  108. data/docs/LoyaltiesEarningRulesCreateRequestBodyItem.md +4 -2
  109. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyalty.md +1 -0
  110. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEventMetadata.md +1 -0
  111. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomerMetadata.md +1 -0
  112. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderAmount.md +1 -0
  113. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsAmount.md +4 -2
  114. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  115. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsQuantity.md +4 -2
  116. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  117. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsSubtotalAmount.md +4 -2
  118. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderMetadata.md +1 -0
  119. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderTotalAmount.md +1 -0
  120. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  121. data/docs/LoyaltiesEarningRulesCreateRequestBodyItemPendingPoints.md +9 -0
  122. data/docs/LoyaltiesEarningRulesCreateResponseBody.md +2 -0
  123. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyalty.md +1 -0
  124. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomEventMetadata.md +1 -0
  125. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomerMetadata.md +1 -0
  126. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderAmount.md +1 -0
  127. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsAmount.md +4 -2
  128. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  129. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsQuantity.md +4 -2
  130. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  131. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  132. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderMetadata.md +1 -0
  133. data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderTotalAmount.md +1 -0
  134. data/docs/LoyaltiesEarningRulesCreateResponseBodyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  135. data/docs/LoyaltiesEarningRulesCreateResponseBodyPendingPoints.md +9 -0
  136. data/docs/LoyaltiesEarningRulesDisableResponseBody.md +2 -0
  137. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyalty.md +1 -0
  138. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomEventMetadata.md +1 -0
  139. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata.md +1 -0
  140. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderAmount.md +1 -0
  141. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsAmount.md +4 -2
  142. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  143. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsQuantity.md +4 -2
  144. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  145. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  146. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderMetadata.md +1 -0
  147. data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderTotalAmount.md +1 -0
  148. data/docs/LoyaltiesEarningRulesDisableResponseBodyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  149. data/docs/LoyaltiesEarningRulesDisableResponseBodyPendingPoints.md +9 -0
  150. data/docs/LoyaltiesEarningRulesEnableResponseBody.md +2 -0
  151. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyalty.md +1 -0
  152. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomEventMetadata.md +1 -0
  153. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomerMetadata.md +1 -0
  154. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderAmount.md +1 -0
  155. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsAmount.md +4 -2
  156. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  157. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsQuantity.md +4 -2
  158. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  159. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  160. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderMetadata.md +1 -0
  161. data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderTotalAmount.md +1 -0
  162. data/docs/LoyaltiesEarningRulesEnableResponseBodyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  163. data/docs/LoyaltiesEarningRulesEnableResponseBodyPendingPoints.md +9 -0
  164. data/docs/LoyaltiesEarningRulesGetResponseBody.md +2 -0
  165. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyalty.md +1 -0
  166. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomEventMetadata.md +1 -0
  167. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomerMetadata.md +1 -0
  168. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderAmount.md +1 -0
  169. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsAmount.md +4 -2
  170. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  171. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsQuantity.md +4 -2
  172. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  173. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  174. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  175. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderMetadata.md +1 -0
  176. data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderTotalAmount.md +1 -0
  177. data/docs/LoyaltiesEarningRulesGetResponseBodyPendingPoints.md +9 -0
  178. data/docs/LoyaltiesEarningRulesUpdateRequestBody.md +4 -2
  179. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyalty.md +1 -0
  180. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomEventMetadata.md +1 -0
  181. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomerMetadata.md +1 -0
  182. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderAmount.md +1 -0
  183. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsAmount.md +4 -2
  184. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  185. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsQuantity.md +4 -2
  186. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  187. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  188. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderMetadata.md +1 -0
  189. data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderTotalAmount.md +1 -0
  190. data/docs/LoyaltiesEarningRulesUpdateRequestBodyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  191. data/docs/LoyaltiesEarningRulesUpdateRequestBodyPendingPoints.md +9 -0
  192. data/docs/LoyaltiesEarningRulesUpdateResponseBody.md +2 -0
  193. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyalty.md +1 -0
  194. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomEventMetadata.md +1 -0
  195. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomerMetadata.md +1 -0
  196. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderAmount.md +1 -0
  197. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsAmount.md +4 -2
  198. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsAmountApplicableToItem.md +9 -0
  199. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsQuantity.md +4 -2
  200. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsQuantityApplicableToItem.md +9 -0
  201. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsSubtotalAmount.md +4 -2
  202. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderMetadata.md +1 -0
  203. data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderTotalAmount.md +1 -0
  204. data/docs/LoyaltiesEarningRulesUpdateResponseBodyOrderItemsSubtotalAmountApplicableToItem.md +9 -0
  205. data/docs/LoyaltiesEarningRulesUpdateResponseBodyPendingPoints.md +9 -0
  206. data/docs/LoyaltiesGetCampaignResponseBody.md +1 -1
  207. data/docs/LoyaltiesMembersCreateResponseBodyLoyaltyCard.md +5 -2
  208. data/docs/LoyaltiesMembersGetResponseBodyLoyaltyCard.md +5 -2
  209. data/docs/LoyaltiesMembersPendingPointsActivateResponseBody.md +14 -0
  210. data/docs/LoyaltiesMembersPendingPointsActivateResponseBodyRelatedObject.md +9 -0
  211. data/docs/LoyaltiesMembersPendingPointsBalanceRequestBody.md +8 -0
  212. data/docs/LoyaltiesMembersPendingPointsBalanceResponseBody.md +12 -0
  213. data/docs/LoyaltiesMembersPendingPointsBalanceResponseBodyRelatedObject.md +9 -0
  214. data/docs/LoyaltiesMembersPendingPointsListResponseBody.md +12 -0
  215. data/docs/LoyaltiesMembersPointsExpirationListResponseBodyDataItem.md +1 -1
  216. data/docs/LoyaltiesMembersRedemptionRedeemRequestBody.md +1 -1
  217. data/docs/LoyaltiesMembersRedemptionRedeemResponseBody.md +1 -0
  218. data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyRelatedRedemptionsRollbacksItem.md +1 -0
  219. data/docs/LoyaltiesMembersRedemptionRedeemResponseBodySession.md +8 -0
  220. data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift.md +3 -2
  221. data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard.md +5 -2
  222. data/docs/LoyaltiesMembersTransfersCreateResponseBodyLoyaltyCard.md +5 -2
  223. data/docs/LoyaltiesPendingPointsListResponseBody.md +12 -0
  224. data/docs/LoyaltiesPointsExpirationExportCreateRequestBodyParameters.md +1 -1
  225. data/docs/LoyaltiesRewardAssignmentsRewardGetResponseBody.md +1 -1
  226. data/docs/LoyaltiesTransactionsExportCreateRequestBody.md +8 -0
  227. data/docs/LoyaltiesTransactionsExportCreateRequestBodyParameters.md +10 -0
  228. data/docs/LoyaltiesTransactionsListResponseBody.md +12 -0
  229. data/docs/LoyaltiesUpdateCampaignRequestBody.md +2 -1
  230. data/docs/LoyaltiesUpdateCampaignResponseBody.md +1 -1
  231. data/docs/LoyaltyCampaign.md +1 -1
  232. data/docs/LoyaltyCardTransaction.md +1 -1
  233. data/docs/LoyaltyCardTransactionDetails.md +2 -0
  234. data/docs/LoyaltyCardTransactionDetailsBalance.md +1 -0
  235. data/docs/LoyaltyCardTransactionDetailsEarningRule.md +1 -1
  236. data/docs/LoyaltyCardTransactionDetailsHolderLoyaltyTier.md +9 -0
  237. data/docs/LoyaltyCardTransactionDetailsLoyaltyTier.md +2 -2
  238. data/docs/LoyaltyMemberLoyaltyCard.md +5 -2
  239. data/docs/LoyaltyPendingPoints.md +17 -0
  240. data/docs/LoyaltyPendingPointsDetails.md +12 -0
  241. data/docs/LoyaltyPendingPointsDetailsEarningRule.md +9 -0
  242. data/docs/LoyaltyPendingPointsDetailsEarningRuleSource.md +8 -0
  243. data/docs/LoyaltyPendingPointsDetailsEvent.md +14 -0
  244. data/docs/LoyaltyPendingPointsDetailsHolderLoyaltyTier.md +9 -0
  245. data/docs/LoyaltyPendingPointsDetailsLoyaltyTier.md +9 -0
  246. data/docs/LoyaltyPendingPointsDetailsOrder.md +9 -0
  247. data/docs/LoyaltyPointsBucket.md +1 -1
  248. data/docs/LoyaltyTierExpiration.md +1 -1
  249. data/docs/LoyaltyTiersExpirationAll.md +1 -1
  250. data/docs/ManagementApi.md +22 -22
  251. data/docs/ManagementProjectsStackingRules.md +14 -8
  252. data/docs/ManagementProjectsStackingRulesCreateRequestBody.md +14 -8
  253. data/docs/ManagementProjectsStackingRulesCreateResponseBody.md +14 -8
  254. data/docs/ManagementProjectsStackingRulesGetResponseBody.md +14 -8
  255. data/docs/ManagementProjectsStackingRulesUpdateRequestBody.md +14 -8
  256. data/docs/ManagementProjectsStackingRulesUpdateResponseBody.md +14 -8
  257. data/docs/ManagementProjectsUsersInviteCreateRequestBody.md +1 -1
  258. data/docs/ManagementProjectsUsersUpdateRoleRequestBody.md +1 -1
  259. data/docs/MetadataSchemasApi.md +5 -5
  260. data/docs/Order.md +3 -3
  261. data/docs/OrderCalculated.md +11 -11
  262. data/docs/OrderCalculatedItem.md +2 -1
  263. data/docs/OrderItem.md +1 -1
  264. data/docs/OrderRedemptionsEntry.md +1 -1
  265. data/docs/OrdersApi.md +3 -3
  266. data/docs/OrdersCreateRequestBody.md +3 -3
  267. data/docs/OrdersCreateResponseBody.md +11 -11
  268. data/docs/OrdersGetResponseBody.md +11 -11
  269. data/docs/OrdersImportCreateRequestBodyItem.md +4 -4
  270. data/docs/OrdersUpdateRequestBody.md +3 -3
  271. data/docs/OrdersUpdateResponseBody.md +11 -11
  272. data/docs/ParameterOrderListPendingPoints.md +7 -0
  273. data/docs/ParametersFiltersListCampaignTransactions.md +10 -0
  274. data/docs/ProductCollectionsCreateRequestBody.md +1 -1
  275. data/docs/ProductsApi.md +22 -22
  276. data/docs/ProductsSkusCreateRequestBody.md +1 -1
  277. data/docs/ProductsSkusUpdateRequestBody.md +1 -1
  278. data/docs/PromotionTierCampaign.md +1 -1
  279. data/docs/PromotionsTiersCreateResponseBodyCampaign.md +1 -1
  280. data/docs/PromotionsTiersDisableResponseBodyCampaign.md +1 -1
  281. data/docs/PromotionsTiersEnableResponseBodyCampaign.md +1 -1
  282. data/docs/PromotionsTiersGetResponseBodyCampaign.md +1 -1
  283. data/docs/PromotionsTiersUpdateResponseBodyCampaign.md +1 -1
  284. data/docs/PublicationsApi.md +7 -7
  285. data/docs/QualificationsApi.md +1 -1
  286. data/docs/QualificationsCheckEligibilityRequestBody.md +2 -1
  287. data/docs/QualificationsCheckEligibilityRequestBodySession.md +8 -0
  288. data/docs/QualificationsOption.md +1 -1
  289. data/docs/QualificationsRedeemable.md +1 -1
  290. data/docs/QualificationsRedeemableBase.md +1 -1
  291. data/docs/RedeemableGift.md +3 -2
  292. data/docs/RedeemableLoyaltyCard.md +2 -2
  293. data/docs/RedeemableResult.md +1 -0
  294. data/docs/RedeemableVoucherGift.md +3 -2
  295. data/docs/RedeemableVoucherLoyaltyCard.md +5 -2
  296. data/docs/Redemption.md +1 -0
  297. data/docs/RedemptionEntry.md +1 -0
  298. data/docs/RedemptionEntryOrder.md +11 -11
  299. data/docs/RedemptionEntryPromotionTierCampaign.md +1 -1
  300. data/docs/RedemptionEntryRelatedRedemptionsRollbacksItem.md +1 -0
  301. data/docs/RedemptionEntrySession.md +8 -0
  302. data/docs/RedemptionEntryVoucherGift.md +3 -2
  303. data/docs/RedemptionEntryVoucherLoyaltyCard.md +5 -2
  304. data/docs/RedemptionRelatedRedemptionsRollbacksItem.md +1 -0
  305. data/docs/RedemptionRewardResultParametersCampaign.md +1 -1
  306. data/docs/RedemptionRollback.md +1 -1
  307. data/docs/RedemptionSession.md +8 -0
  308. data/docs/RedemptionVoucherGift.md +3 -2
  309. data/docs/RedemptionVoucherLoyaltyCard.md +5 -2
  310. data/docs/RedemptionsApi.md +3 -3
  311. data/docs/RedemptionsGetResponseBody.md +1 -0
  312. data/docs/RedemptionsGetResponseBodyOrder.md +11 -11
  313. data/docs/RedemptionsGetResponseBodyPromotionTierCampaign.md +1 -1
  314. data/docs/RedemptionsGetResponseBodyRelatedRedemptionsRollbacksItem.md +1 -0
  315. data/docs/RedemptionsGetResponseBodySession.md +8 -0
  316. data/docs/RedemptionsGetResponseBodyVoucherGift.md +3 -2
  317. data/docs/RedemptionsGetResponseBodyVoucherLoyaltyCard.md +5 -2
  318. data/docs/RedemptionsListResponseBodyRedemptionsItem.md +1 -0
  319. data/docs/RedemptionsListResponseBodyRedemptionsItemOrder.md +11 -11
  320. data/docs/RedemptionsListResponseBodyRedemptionsItemPromotionTierCampaign.md +1 -1
  321. data/docs/RedemptionsListResponseBodyRedemptionsItemRelatedRedemptionsRollbacksItem.md +1 -0
  322. data/docs/RedemptionsListResponseBodyRedemptionsItemSession.md +8 -0
  323. data/docs/RedemptionsListResponseBodyRedemptionsItemVoucherGift.md +3 -2
  324. data/docs/RedemptionsListResponseBodyRedemptionsItemVoucherLoyaltyCard.md +5 -2
  325. data/docs/RedemptionsRedeemRequestBodyOptions.md +1 -1
  326. data/docs/RedemptionsRedeemRequestBodyRedeemablesItemGift.md +1 -1
  327. data/docs/RedemptionsRollbackCreateResponseBody.md +1 -1
  328. data/docs/ReferralsApi.md +13 -13
  329. data/docs/Reward.md +1 -1
  330. data/docs/RewardsCreateRequestBody.md +1 -1
  331. data/docs/RewardsCreateRequestBodyParametersCampaign.md +1 -1
  332. data/docs/RewardsCreateResponseBody.md +1 -1
  333. data/docs/RewardsUpdateRequestBody.md +1 -1
  334. data/docs/RewardsUpdateRequestBodyParametersCampaign.md +1 -1
  335. data/docs/RewardsUpdateResponseBody.md +1 -1
  336. data/docs/SegmentsApi.md +2 -2
  337. data/docs/SegmentsCreateRequestBody.md +1 -1
  338. data/docs/SegmentsCreateResponseBody.md +4 -3
  339. data/docs/SegmentsGetResponseBody.md +4 -3
  340. data/docs/SimpleLoyaltyCard.md +5 -2
  341. data/docs/SimpleVoucherRedemption.md +1 -0
  342. data/docs/StackingRules.md +15 -11
  343. data/docs/TemplatesApi.md +7 -7
  344. data/docs/TemplatesCampaignsCampaignSetupCreateRequestBody.md +3 -2
  345. data/docs/TrashBinItem.md +1 -1
  346. data/docs/ValidationRule.md +1 -0
  347. data/docs/ValidationRulesApi.md +3 -3
  348. data/docs/ValidationRulesCreateRequestBody.md +1 -0
  349. data/docs/ValidationRulesCreateResponseBody.md +1 -0
  350. data/docs/ValidationRulesGetResponseBody.md +1 -0
  351. data/docs/ValidationRulesUpdateRequestBody.md +1 -0
  352. data/docs/ValidationRulesUpdateResponseBody.md +1 -0
  353. data/docs/ValidationsApi.md +1 -1
  354. data/docs/ValidationsRedeemableInapplicableResult.md +1 -0
  355. data/docs/ValidationsValidateRequestBodyOptions.md +1 -1
  356. data/docs/ValidationsValidateRequestBodyRedeemablesItemGift.md +1 -1
  357. data/docs/ValidationsValidateResponseBody.md +1 -0
  358. data/docs/ValidationsValidateResponseBodyRedeemablesItemResult.md +1 -0
  359. data/docs/ValidationsValidateResponseBodyRedeemablesItemResultDiscount.md +4 -4
  360. data/docs/ValidationsValidateResponseBodyRedeemablesItemResultGift.md +2 -1
  361. data/docs/ValidityHours.md +1 -1
  362. data/docs/VoucherBalance.md +1 -0
  363. data/docs/VoucherGift.md +3 -2
  364. data/docs/VoucherLoyaltyCard.md +5 -2
  365. data/docs/VoucherTransaction.md +1 -1
  366. data/docs/VoucherTransactionDetails.md +2 -0
  367. data/docs/VoucherTransactionDetailsBalance.md +1 -0
  368. data/docs/VoucherTransactionDetailsCustomEvent.md +2 -2
  369. data/docs/VoucherTransactionDetailsEarningRule.md +1 -1
  370. data/docs/VoucherTransactionDetailsEventSchema.md +2 -2
  371. data/docs/VoucherTransactionDetailsHolderLoyaltyTier.md +9 -0
  372. data/docs/VoucherTransactionDetailsLoyaltyTier.md +2 -2
  373. data/docs/VoucherTransactionDetailsRollback.md +1 -1
  374. data/docs/VoucherTransactionDetailsSegment.md +2 -2
  375. data/docs/VoucherTransactionsExportParameters.md +1 -1
  376. data/docs/VoucherTransactionsFilters.md +1 -1
  377. data/docs/VoucherWithCategoriesGift.md +3 -2
  378. data/docs/VoucherWithCategoriesLoyaltyCard.md +5 -2
  379. data/docs/VouchersApi.md +16 -14
  380. data/docs/VouchersBalanceUpdateRequestBody.md +1 -1
  381. data/docs/VouchersBalanceUpdateResponseBody.md +2 -2
  382. data/docs/VouchersCreateRequestBody.md +2 -2
  383. data/docs/VouchersCreateResponseBodyGift.md +3 -2
  384. data/docs/VouchersCreateResponseBodyLoyaltyCard.md +5 -2
  385. data/docs/VouchersCreateWithSpecificCodeRequestBody.md +2 -2
  386. data/docs/VouchersDisableResponseBodyGift.md +3 -2
  387. data/docs/VouchersDisableResponseBodyLoyaltyCard.md +5 -2
  388. data/docs/VouchersEnableResponseBodyGift.md +3 -2
  389. data/docs/VouchersEnableResponseBodyLoyaltyCard.md +5 -2
  390. data/docs/VouchersGetResponseBodyGift.md +3 -2
  391. data/docs/VouchersGetResponseBodyLoyaltyCard.md +5 -2
  392. data/docs/VouchersImportCreateItemRequestBody.md +1 -1
  393. data/docs/VouchersTransactionsExportCreateResponseBodyResult.md +1 -1
  394. data/docs/VouchersUpdateRequestBody.md +2 -2
  395. data/docs/VouchersUpdateResponseBodyGift.md +3 -2
  396. data/docs/VouchersUpdateResponseBodyLoyaltyCard.md +5 -2
  397. data/lib/VoucherifySdk/api/async_actions_api.rb +4 -4
  398. data/lib/VoucherifySdk/api/bin_api.rb +4 -4
  399. data/lib/VoucherifySdk/api/campaigns_api.rb +220 -18
  400. data/lib/VoucherifySdk/api/categories_api.rb +2 -2
  401. data/lib/VoucherifySdk/api/client_side_api.rb +4 -4
  402. data/lib/VoucherifySdk/api/customers_api.rb +14 -14
  403. data/lib/VoucherifySdk/api/exports_api.rb +6 -6
  404. data/lib/VoucherifySdk/api/loyalties_api.rb +599 -68
  405. data/lib/VoucherifySdk/api/management_api.rb +44 -44
  406. data/lib/VoucherifySdk/api/metadata_schemas_api.rb +6 -6
  407. data/lib/VoucherifySdk/api/orders_api.rb +6 -6
  408. data/lib/VoucherifySdk/api/products_api.rb +30 -30
  409. data/lib/VoucherifySdk/api/publications_api.rb +8 -8
  410. data/lib/VoucherifySdk/api/qualifications_api.rb +2 -2
  411. data/lib/VoucherifySdk/api/redemptions_api.rb +6 -6
  412. data/lib/VoucherifySdk/api/referrals_api.rb +14 -14
  413. data/lib/VoucherifySdk/api/segments_api.rb +4 -4
  414. data/lib/VoucherifySdk/api/templates_api.rb +14 -14
  415. data/lib/VoucherifySdk/api/validation_rules_api.rb +6 -6
  416. data/lib/VoucherifySdk/api/validations_api.rb +2 -2
  417. data/lib/VoucherifySdk/api/vouchers_api.rb +25 -22
  418. data/lib/VoucherifySdk/models/access_settings.rb +219 -0
  419. data/lib/VoucherifySdk/models/access_settings_assign.rb +238 -0
  420. data/lib/VoucherifySdk/models/access_settings_campaign_assignments_list.rb +1 -1
  421. data/lib/VoucherifySdk/models/access_settings_unassign.rb +238 -0
  422. data/lib/VoucherifySdk/models/applicable_to.rb +207 -18
  423. data/lib/VoucherifySdk/models/applicable_to_order_item_units_item.rb +235 -0
  424. data/lib/VoucherifySdk/models/application_details_item.rb +284 -0
  425. data/lib/VoucherifySdk/models/area_store_campaign_assignment.rb +12 -1
  426. data/lib/VoucherifySdk/models/async_actions_list_response_body.rb +16 -5
  427. data/lib/VoucherifySdk/models/bundle.rb +267 -0
  428. data/lib/VoucherifySdk/models/bundle_identified_item.rb +296 -0
  429. data/lib/VoucherifySdk/models/bundle_missing_item.rb +274 -0
  430. data/lib/VoucherifySdk/models/campaign.rb +17 -17
  431. data/lib/VoucherifySdk/models/campaign_base.rb +17 -8
  432. data/lib/VoucherifySdk/models/campaign_loyalty_card_expiration_rules.rb +53 -10
  433. data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +13 -4
  434. data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +17 -17
  435. data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +17 -17
  436. data/lib/VoucherifySdk/models/campaigns_import_voucher_item.rb +1 -1
  437. data/lib/VoucherifySdk/models/campaigns_summary_get_response_body.rb +673 -0
  438. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_request_body.rb +209 -0
  439. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_request_body_parameters.rb +256 -0
  440. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body.rb +334 -0
  441. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body_parameters.rb +256 -0
  442. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body_parameters_filters.rb +257 -0
  443. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body_parameters_filters_campaign_id.rb +209 -0
  444. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body_parameters_filters_campaign_id_conditions.rb +221 -0
  445. data/lib/VoucherifySdk/models/campaigns_transactions_export_create_response_body_result.rb +210 -0
  446. data/lib/VoucherifySdk/models/campaigns_transactions_list_response_body.rb +286 -0
  447. data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +11 -2
  448. data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +17 -17
  449. data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_gift.rb +14 -3
  450. data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_loyalty_card.rb +40 -7
  451. data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_gift.rb +14 -3
  452. data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_loyalty_card.rb +40 -7
  453. data/lib/VoucherifySdk/models/client_qualifications_check_eligibility_request_body.rb +12 -2
  454. data/lib/VoucherifySdk/models/client_qualifications_check_eligibility_request_body_session.rb +236 -0
  455. data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body_options.rb +1 -1
  456. data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body_redeemables_item_gift.rb +1 -1
  457. data/lib/VoucherifySdk/models/client_validations_validate_request_body.rb +1 -1
  458. data/lib/VoucherifySdk/models/client_validations_validate_request_body_options.rb +1 -1
  459. data/lib/VoucherifySdk/models/client_validations_validate_request_body_redeemables_item_gift.rb +1 -1
  460. data/lib/VoucherifySdk/models/client_validations_validate_response_body.rb +12 -1
  461. data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result.rb +11 -1
  462. data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_discount.rb +5 -1
  463. data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_gift.rb +14 -3
  464. data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_loyalty_card.rb +1 -0
  465. data/lib/VoucherifySdk/models/create_publication_campaign.rb +3 -3
  466. data/lib/VoucherifySdk/models/customer_loyalty.rb +1 -1
  467. data/lib/VoucherifySdk/models/customer_summary_orders.rb +4 -3
  468. data/lib/VoucherifySdk/models/customer_summary_redemptions_gift.rb +2 -2
  469. data/lib/VoucherifySdk/models/customer_with_summary_loyalty_referrals_assets.rb +18 -7
  470. data/lib/VoucherifySdk/models/customers_create_response_body_assets.rb +18 -7
  471. data/lib/VoucherifySdk/models/customers_get_response_body_assets.rb +18 -7
  472. data/lib/VoucherifySdk/models/customers_update_response_body_assets.rb +18 -7
  473. data/lib/VoucherifySdk/models/discount.rb +5 -1
  474. data/lib/VoucherifySdk/models/discount_unit_multiple_one_unit.rb +1 -0
  475. data/lib/VoucherifySdk/models/earning_rule.rb +20 -1
  476. data/lib/VoucherifySdk/models/earning_rule_expiration_rules.rb +313 -0
  477. data/lib/VoucherifySdk/models/earning_rule_loyalty.rb +12 -1
  478. data/lib/VoucherifySdk/models/earning_rule_loyalty_custom_event_metadata.rb +12 -1
  479. data/lib/VoucherifySdk/models/earning_rule_loyalty_customer_metadata.rb +12 -1
  480. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_amount.rb +16 -5
  481. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_amount.rb +31 -7
  482. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  483. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_quantity.rb +31 -7
  484. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  485. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_subtotal_amount.rb +31 -7
  486. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  487. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_metadata.rb +12 -1
  488. data/lib/VoucherifySdk/models/earning_rule_loyalty_order_total_amount.rb +16 -5
  489. data/lib/VoucherifySdk/models/earning_rule_pending_points.rb +257 -0
  490. data/lib/VoucherifySdk/models/event_source.rb +254 -0
  491. data/lib/VoucherifySdk/models/event_source_api_key.rb +221 -0
  492. data/lib/VoucherifySdk/models/event_source_user.rb +210 -0
  493. data/lib/VoucherifySdk/models/export_campaign_transactions_filters.rb +248 -0
  494. data/lib/VoucherifySdk/models/export_parameters.rb +16 -5
  495. data/lib/VoucherifySdk/models/exports_create_request_body_parameters.rb +16 -5
  496. data/lib/VoucherifySdk/models/exports_create_response_body_parameters.rb +16 -5
  497. data/lib/VoucherifySdk/models/exports_get_response_body.rb +0 -1
  498. data/lib/VoucherifySdk/models/exports_get_response_body_parameters.rb +16 -5
  499. data/lib/VoucherifySdk/models/filter_conditions_date_time.rb +2 -2
  500. data/lib/VoucherifySdk/models/gift.rb +14 -3
  501. data/lib/VoucherifySdk/models/inapplicable_to.rb +207 -18
  502. data/lib/VoucherifySdk/models/inapplicable_to_order_item_units_item.rb +235 -0
  503. data/lib/VoucherifySdk/models/loyalties_create_campaign_request_body.rb +13 -4
  504. data/lib/VoucherifySdk/models/loyalties_create_campaign_response_body.rb +1 -1
  505. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item.rb +22 -3
  506. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty.rb +12 -1
  507. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_custom_event_metadata.rb +12 -1
  508. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_customer_metadata.rb +12 -1
  509. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_amount.rb +16 -5
  510. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_amount.rb +31 -7
  511. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  512. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_quantity.rb +31 -7
  513. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  514. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_subtotal_amount.rb +31 -7
  515. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_metadata.rb +12 -1
  516. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_total_amount.rb +16 -5
  517. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  518. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_pending_points.rb +257 -0
  519. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body.rb +20 -1
  520. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty.rb +12 -1
  521. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_custom_event_metadata.rb +12 -1
  522. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_customer_metadata.rb +12 -1
  523. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_amount.rb +16 -5
  524. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_amount.rb +31 -7
  525. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  526. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_quantity.rb +31 -7
  527. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  528. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_subtotal_amount.rb +31 -7
  529. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_metadata.rb +12 -1
  530. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_total_amount.rb +16 -5
  531. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  532. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_pending_points.rb +257 -0
  533. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body.rb +20 -1
  534. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty.rb +12 -1
  535. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_custom_event_metadata.rb +12 -1
  536. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_customer_metadata.rb +12 -1
  537. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_amount.rb +16 -5
  538. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_amount.rb +31 -7
  539. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  540. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_quantity.rb +31 -7
  541. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  542. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_subtotal_amount.rb +31 -7
  543. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_metadata.rb +12 -1
  544. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_total_amount.rb +16 -5
  545. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  546. data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_pending_points.rb +257 -0
  547. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body.rb +20 -1
  548. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty.rb +12 -1
  549. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_custom_event_metadata.rb +12 -1
  550. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_customer_metadata.rb +12 -1
  551. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_amount.rb +16 -5
  552. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_amount.rb +31 -7
  553. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  554. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_quantity.rb +31 -7
  555. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  556. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_subtotal_amount.rb +31 -7
  557. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_metadata.rb +12 -1
  558. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_total_amount.rb +16 -5
  559. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  560. data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_pending_points.rb +257 -0
  561. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body.rb +20 -1
  562. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty.rb +12 -1
  563. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_custom_event_metadata.rb +12 -1
  564. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_customer_metadata.rb +12 -1
  565. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_amount.rb +16 -5
  566. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_amount.rb +31 -7
  567. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  568. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_quantity.rb +31 -7
  569. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  570. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_subtotal_amount.rb +31 -7
  571. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  572. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_metadata.rb +12 -1
  573. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_total_amount.rb +16 -5
  574. data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_pending_points.rb +257 -0
  575. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body.rb +22 -3
  576. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty.rb +12 -1
  577. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_custom_event_metadata.rb +12 -1
  578. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_customer_metadata.rb +12 -1
  579. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_amount.rb +16 -5
  580. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_amount.rb +31 -7
  581. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  582. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_quantity.rb +31 -7
  583. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  584. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_subtotal_amount.rb +31 -7
  585. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_metadata.rb +12 -1
  586. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_total_amount.rb +16 -5
  587. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  588. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_pending_points.rb +257 -0
  589. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body.rb +20 -1
  590. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty.rb +12 -1
  591. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_custom_event_metadata.rb +12 -1
  592. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_customer_metadata.rb +12 -1
  593. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_amount.rb +16 -5
  594. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_amount.rb +31 -7
  595. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_amount_applicable_to_item.rb +242 -0
  596. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_quantity.rb +31 -7
  597. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_quantity_applicable_to_item.rb +242 -0
  598. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_subtotal_amount.rb +31 -7
  599. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_metadata.rb +12 -1
  600. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_total_amount.rb +16 -5
  601. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_order_items_subtotal_amount_applicable_to_item.rb +242 -0
  602. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_pending_points.rb +257 -0
  603. data/lib/VoucherifySdk/models/loyalties_get_campaign_response_body.rb +1 -1
  604. data/lib/VoucherifySdk/models/loyalties_members_create_response_body_loyalty_card.rb +40 -7
  605. data/lib/VoucherifySdk/models/loyalties_members_create_response_body_publish.rb +1 -1
  606. data/lib/VoucherifySdk/models/loyalties_members_get_response_body_loyalty_card.rb +40 -7
  607. data/lib/VoucherifySdk/models/loyalties_members_get_response_body_publish.rb +1 -1
  608. data/lib/VoucherifySdk/models/loyalties_members_pending_points_activate_response_body.rb +309 -0
  609. data/lib/VoucherifySdk/models/loyalties_members_pending_points_activate_response_body_related_object.rb +247 -0
  610. data/lib/VoucherifySdk/models/loyalties_members_pending_points_balance_request_body.rb +210 -0
  611. data/lib/VoucherifySdk/models/loyalties_members_pending_points_balance_response_body.rb +283 -0
  612. data/lib/VoucherifySdk/models/loyalties_members_pending_points_balance_response_body_related_object.rb +247 -0
  613. data/lib/VoucherifySdk/models/loyalties_members_pending_points_list_response_body.rb +286 -0
  614. data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item.rb +1 -1
  615. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_request_body.rb +1 -1
  616. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body.rb +11 -1
  617. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_related_redemptions_rollbacks_item.rb +38 -4
  618. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_session.rb +210 -0
  619. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_gift.rb +14 -3
  620. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_loyalty_card.rb +40 -7
  621. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_loyalty_card.rb +40 -7
  622. data/lib/VoucherifySdk/models/loyalties_pending_points_list_response_body.rb +286 -0
  623. data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_request_body_parameters.rb +1 -1
  624. data/lib/VoucherifySdk/models/loyalties_reward_assignments_reward_get_response_body.rb +1 -1
  625. data/lib/VoucherifySdk/models/loyalties_transactions_export_create_request_body.rb +209 -0
  626. data/lib/VoucherifySdk/models/loyalties_transactions_export_create_request_body_parameters.rb +256 -0
  627. data/lib/VoucherifySdk/models/loyalties_transactions_list_response_body.rb +286 -0
  628. data/lib/VoucherifySdk/models/loyalties_update_campaign_request_body.rb +11 -2
  629. data/lib/VoucherifySdk/models/loyalties_update_campaign_response_body.rb +1 -1
  630. data/lib/VoucherifySdk/models/loyalty_campaign.rb +1 -1
  631. data/lib/VoucherifySdk/models/loyalty_card_transaction.rb +1 -1
  632. data/lib/VoucherifySdk/models/loyalty_card_transaction_details.rb +20 -1
  633. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_balance.rb +12 -1
  634. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_earning_rule.rb +1 -1
  635. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_holder_loyalty_tier.rb +221 -0
  636. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_loyalty_tier.rb +3 -1
  637. data/lib/VoucherifySdk/models/loyalty_card_transactions_type.rb +2 -1
  638. data/lib/VoucherifySdk/models/loyalty_member_loyalty_card.rb +40 -7
  639. data/lib/VoucherifySdk/models/loyalty_member_publish.rb +1 -1
  640. data/lib/VoucherifySdk/models/loyalty_pending_points.rb +314 -0
  641. data/lib/VoucherifySdk/models/loyalty_pending_points_details.rb +249 -0
  642. data/lib/VoucherifySdk/models/loyalty_pending_points_details_earning_rule.rb +220 -0
  643. data/lib/VoucherifySdk/models/loyalty_pending_points_details_earning_rule_source.rb +210 -0
  644. data/lib/VoucherifySdk/models/loyalty_pending_points_details_event.rb +302 -0
  645. data/lib/VoucherifySdk/models/loyalty_pending_points_details_holder_loyalty_tier.rb +221 -0
  646. data/lib/VoucherifySdk/models/loyalty_pending_points_details_loyalty_tier.rb +221 -0
  647. data/lib/VoucherifySdk/models/loyalty_pending_points_details_order.rb +221 -0
  648. data/lib/VoucherifySdk/models/loyalty_points_bucket.rb +1 -1
  649. data/lib/VoucherifySdk/models/loyalty_tier_expiration.rb +1 -1
  650. data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all.rb +1 -1
  651. data/lib/VoucherifySdk/models/management_projects_stacking_rules.rb +112 -9
  652. data/lib/VoucherifySdk/models/management_projects_stacking_rules_create_request_body.rb +116 -13
  653. data/lib/VoucherifySdk/models/management_projects_stacking_rules_create_response_body.rb +112 -9
  654. data/lib/VoucherifySdk/models/management_projects_stacking_rules_get_response_body.rb +112 -9
  655. data/lib/VoucherifySdk/models/management_projects_stacking_rules_update_request_body.rb +116 -13
  656. data/lib/VoucherifySdk/models/management_projects_stacking_rules_update_response_body.rb +112 -9
  657. data/lib/VoucherifySdk/models/management_projects_users_invite_create_request_body.rb +1 -1
  658. data/lib/VoucherifySdk/models/management_projects_users_update_role_request_body.rb +1 -1
  659. data/lib/VoucherifySdk/models/order.rb +3 -3
  660. data/lib/VoucherifySdk/models/order_calculated.rb +28 -28
  661. data/lib/VoucherifySdk/models/order_calculated_item.rb +18 -6
  662. data/lib/VoucherifySdk/models/order_item.rb +1 -1
  663. data/lib/VoucherifySdk/models/order_redemptions_entry.rb +1 -1
  664. data/lib/VoucherifySdk/models/orders_create_request_body.rb +3 -3
  665. data/lib/VoucherifySdk/models/orders_create_response_body.rb +28 -28
  666. data/lib/VoucherifySdk/models/orders_get_response_body.rb +28 -28
  667. data/lib/VoucherifySdk/models/orders_import_create_request_body_item.rb +17 -17
  668. data/lib/VoucherifySdk/models/orders_update_request_body.rb +3 -3
  669. data/lib/VoucherifySdk/models/orders_update_response_body.rb +28 -28
  670. data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_campaign_status.rb +2 -1
  671. data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_campaign_status_conditions.rb +1 -0
  672. data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_category_ids.rb +1 -1
  673. data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_is_referral_code.rb +1 -1
  674. data/lib/VoucherifySdk/models/parameter_order_list_pending_points.rb +40 -0
  675. data/lib/VoucherifySdk/models/parameters_filters_list_campaign_transactions.rb +247 -0
  676. data/lib/VoucherifySdk/models/product_collections_create_request_body.rb +2 -4
  677. data/lib/VoucherifySdk/models/products_skus_create_request_body.rb +1 -1
  678. data/lib/VoucherifySdk/models/products_skus_create_response_body.rb +1 -1
  679. data/lib/VoucherifySdk/models/products_skus_list_response_body.rb +1 -1
  680. data/lib/VoucherifySdk/models/products_skus_update_request_body.rb +1 -1
  681. data/lib/VoucherifySdk/models/promotion_tier_campaign.rb +1 -1
  682. data/lib/VoucherifySdk/models/promotions_tiers_create_response_body_campaign.rb +1 -1
  683. data/lib/VoucherifySdk/models/promotions_tiers_disable_response_body_campaign.rb +1 -1
  684. data/lib/VoucherifySdk/models/promotions_tiers_enable_response_body_campaign.rb +1 -1
  685. data/lib/VoucherifySdk/models/promotions_tiers_get_response_body_campaign.rb +1 -1
  686. data/lib/VoucherifySdk/models/promotions_tiers_update_response_body_campaign.rb +1 -1
  687. data/lib/VoucherifySdk/models/qualifications_check_eligibility_request_body.rb +12 -2
  688. data/lib/VoucherifySdk/models/qualifications_check_eligibility_request_body_session.rb +236 -0
  689. data/lib/VoucherifySdk/models/qualifications_option.rb +4 -4
  690. data/lib/VoucherifySdk/models/qualifications_option_filters_resource_type_conditions.rb +1 -1
  691. data/lib/VoucherifySdk/models/qualifications_redeemable.rb +1 -1
  692. data/lib/VoucherifySdk/models/qualifications_redeemable_base.rb +1 -1
  693. data/lib/VoucherifySdk/models/redeemable_gift.rb +18 -7
  694. data/lib/VoucherifySdk/models/redeemable_loyalty_card.rb +2 -2
  695. data/lib/VoucherifySdk/models/redeemable_result.rb +10 -1
  696. data/lib/VoucherifySdk/models/redeemable_voucher_gift.rb +14 -3
  697. data/lib/VoucherifySdk/models/redeemable_voucher_loyalty_card.rb +40 -7
  698. data/lib/VoucherifySdk/models/redeemable_voucher_publish.rb +1 -1
  699. data/lib/VoucherifySdk/models/redemption.rb +11 -1
  700. data/lib/VoucherifySdk/models/redemption_entry.rb +11 -1
  701. data/lib/VoucherifySdk/models/redemption_entry_order.rb +28 -28
  702. data/lib/VoucherifySdk/models/redemption_entry_promotion_tier_campaign.rb +1 -1
  703. data/lib/VoucherifySdk/models/redemption_entry_related_redemptions_rollbacks_item.rb +38 -4
  704. data/lib/VoucherifySdk/models/redemption_entry_session.rb +210 -0
  705. data/lib/VoucherifySdk/models/redemption_entry_voucher_gift.rb +14 -3
  706. data/lib/VoucherifySdk/models/redemption_entry_voucher_loyalty_card.rb +40 -7
  707. data/lib/VoucherifySdk/models/redemption_related_redemptions_rollbacks_item.rb +38 -4
  708. data/lib/VoucherifySdk/models/redemption_reward_result_parameters_campaign.rb +1 -1
  709. data/lib/VoucherifySdk/models/redemption_rollback.rb +15 -15
  710. data/lib/VoucherifySdk/models/redemption_session.rb +210 -0
  711. data/lib/VoucherifySdk/models/redemption_voucher_gift.rb +14 -3
  712. data/lib/VoucherifySdk/models/redemption_voucher_loyalty_card.rb +40 -7
  713. data/lib/VoucherifySdk/models/redemptions_get_response_body.rb +11 -1
  714. data/lib/VoucherifySdk/models/redemptions_get_response_body_order.rb +28 -28
  715. data/lib/VoucherifySdk/models/redemptions_get_response_body_promotion_tier_campaign.rb +1 -1
  716. data/lib/VoucherifySdk/models/redemptions_get_response_body_related_redemptions_rollbacks_item.rb +38 -4
  717. data/lib/VoucherifySdk/models/redemptions_get_response_body_session.rb +210 -0
  718. data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher_gift.rb +14 -3
  719. data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher_loyalty_card.rb +40 -7
  720. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item.rb +11 -1
  721. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_order.rb +27 -28
  722. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_promotion_tier_campaign.rb +1 -1
  723. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_related_redemptions.rb +0 -1
  724. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_related_redemptions_rollbacks_item.rb +38 -4
  725. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_session.rb +210 -0
  726. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher_gift.rb +14 -3
  727. data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher_loyalty_card.rb +40 -7
  728. data/lib/VoucherifySdk/models/redemptions_redeem_request_body_options.rb +1 -1
  729. data/lib/VoucherifySdk/models/redemptions_redeem_request_body_redeemables_item_gift.rb +1 -1
  730. data/lib/VoucherifySdk/models/redemptions_rollback_create_response_body.rb +15 -15
  731. data/lib/VoucherifySdk/models/reward.rb +1 -1
  732. data/lib/VoucherifySdk/models/rewards_create_request_body.rb +1 -1
  733. data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_campaign.rb +1 -1
  734. data/lib/VoucherifySdk/models/rewards_create_response_body.rb +1 -1
  735. data/lib/VoucherifySdk/models/rewards_update_request_body.rb +1 -1
  736. data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_campaign.rb +1 -1
  737. data/lib/VoucherifySdk/models/rewards_update_response_body.rb +1 -1
  738. data/lib/VoucherifySdk/models/segments_create_request_body.rb +2 -2
  739. data/lib/VoucherifySdk/models/segments_create_response_body.rb +31 -20
  740. data/lib/VoucherifySdk/models/segments_get_response_body.rb +32 -21
  741. data/lib/VoucherifySdk/models/simple_loyalty_card.rb +40 -7
  742. data/lib/VoucherifySdk/models/simple_voucher_redemption.rb +16 -5
  743. data/lib/VoucherifySdk/models/stacking_rules.rb +72 -20
  744. data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body.rb +13 -4
  745. data/lib/VoucherifySdk/models/trash_bin_item.rb +1 -1
  746. data/lib/VoucherifySdk/models/validation_rule.rb +11 -1
  747. data/lib/VoucherifySdk/models/validation_rules_create_request_body.rb +11 -1
  748. data/lib/VoucherifySdk/models/validation_rules_create_response_body.rb +11 -1
  749. data/lib/VoucherifySdk/models/validation_rules_get_response_body.rb +11 -1
  750. data/lib/VoucherifySdk/models/validation_rules_update_request_body.rb +11 -1
  751. data/lib/VoucherifySdk/models/validation_rules_update_response_body.rb +11 -1
  752. data/lib/VoucherifySdk/models/validations_redeemable_inapplicable_result.rb +14 -5
  753. data/lib/VoucherifySdk/models/validations_validate_request_body.rb +1 -1
  754. data/lib/VoucherifySdk/models/validations_validate_request_body_options.rb +1 -1
  755. data/lib/VoucherifySdk/models/validations_validate_request_body_redeemables_item_gift.rb +1 -1
  756. data/lib/VoucherifySdk/models/validations_validate_response_body.rb +12 -1
  757. data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result.rb +11 -1
  758. data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_discount.rb +5 -1
  759. data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_gift.rb +14 -3
  760. data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_loyalty_card.rb +1 -0
  761. data/lib/VoucherifySdk/models/validity_hours.rb +1 -1
  762. data/lib/VoucherifySdk/models/validity_hours_daily_item.rb +1 -1
  763. data/lib/VoucherifySdk/models/voucher_balance.rb +12 -1
  764. data/lib/VoucherifySdk/models/voucher_gift.rb +14 -3
  765. data/lib/VoucherifySdk/models/voucher_loyalty_card.rb +40 -7
  766. data/lib/VoucherifySdk/models/voucher_transaction.rb +2 -2
  767. data/lib/VoucherifySdk/models/voucher_transaction_details.rb +20 -1
  768. data/lib/VoucherifySdk/models/voucher_transaction_details_balance.rb +12 -1
  769. data/lib/VoucherifySdk/models/voucher_transaction_details_custom_event.rb +2 -2
  770. data/lib/VoucherifySdk/models/voucher_transaction_details_earning_rule.rb +1 -1
  771. data/lib/VoucherifySdk/models/voucher_transaction_details_event_schema.rb +2 -2
  772. data/lib/VoucherifySdk/models/voucher_transaction_details_holder_loyalty_tier.rb +221 -0
  773. data/lib/VoucherifySdk/models/voucher_transaction_details_loyalty_tier.rb +3 -1
  774. data/lib/VoucherifySdk/models/voucher_transaction_details_rollback.rb +1 -1
  775. data/lib/VoucherifySdk/models/voucher_transaction_details_segment.rb +2 -0
  776. data/lib/VoucherifySdk/models/voucher_transactions_export_parameters.rb +1 -1
  777. data/lib/VoucherifySdk/models/voucher_transactions_filters.rb +1 -1
  778. data/lib/VoucherifySdk/models/voucher_with_categories_gift.rb +14 -3
  779. data/lib/VoucherifySdk/models/voucher_with_categories_loyalty_card.rb +40 -7
  780. data/lib/VoucherifySdk/models/vouchers_balance_update_request_body.rb +1 -1
  781. data/lib/VoucherifySdk/models/vouchers_balance_update_response_body.rb +2 -2
  782. data/lib/VoucherifySdk/models/vouchers_create_request_body.rb +2 -2
  783. data/lib/VoucherifySdk/models/vouchers_create_response_body_gift.rb +14 -3
  784. data/lib/VoucherifySdk/models/vouchers_create_response_body_loyalty_card.rb +40 -7
  785. data/lib/VoucherifySdk/models/vouchers_create_with_specific_code_request_body.rb +2 -2
  786. data/lib/VoucherifySdk/models/vouchers_disable_response_body_gift.rb +14 -3
  787. data/lib/VoucherifySdk/models/vouchers_disable_response_body_loyalty_card.rb +40 -7
  788. data/lib/VoucherifySdk/models/vouchers_enable_response_body_gift.rb +14 -3
  789. data/lib/VoucherifySdk/models/vouchers_enable_response_body_loyalty_card.rb +40 -7
  790. data/lib/VoucherifySdk/models/vouchers_get_response_body_gift.rb +14 -3
  791. data/lib/VoucherifySdk/models/vouchers_get_response_body_loyalty_card.rb +40 -7
  792. data/lib/VoucherifySdk/models/vouchers_import_create_item_request_body.rb +1 -1
  793. data/lib/VoucherifySdk/models/vouchers_transactions_export_create_response_body_result.rb +1 -1
  794. data/lib/VoucherifySdk/models/vouchers_update_request_body.rb +2 -2
  795. data/lib/VoucherifySdk/models/vouchers_update_response_body_gift.rb +14 -3
  796. data/lib/VoucherifySdk/models/vouchers_update_response_body_loyalty_card.rb +40 -7
  797. data/lib/VoucherifySdk/version.rb +1 -1
  798. data/lib/VoucherifySdk.rb +85 -0
  799. metadata +210 -36
@@ -7,4 +7,5 @@
7
7
  | **object** | **String** | The type of the object represented by JSON. This object stores information about asynchronous actions. | [optional][default to 'list'] |
8
8
  | **data_ref** | **String** | Identifies the name of the JSON property that contains the array of asynchronous actions. | [optional][default to 'async_actions'] |
9
9
  | **async_actions** | [**Array<AsyncActionBase>**](AsyncActionBase.md) | | [optional] |
10
+ | **has_more** | **Boolean** | As query results are always limited by parameters, the `has_more` flag indicates if there are more records available. This lets you know if you can run another request to get more records returned in the results. | [optional] |
10
11
 
data/docs/BinApi.md CHANGED
@@ -94,8 +94,8 @@ end
94
94
  api_instance = VoucherifySdk::BinApi.new
95
95
  opts = {
96
96
  limit: 56, # Integer | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
97
- order: VoucherifySdk::ParameterOrderListBin::ID, # ParameterOrderListBin | Orders the bin entries according the date and time when they were moved to the bin or according to the bin entry ID. The dash - preceding a sorting option means sorting in a descending order.
98
- starting_after_id: 'starting_after_id_example', # String | A cursor for pagination. It retrieves the events starting after an event with the given ID.
97
+ order: VoucherifySdk::ParameterOrderListBin::ID, # ParameterOrderListBin | Orders the bin entries according to the bin entry ID. The dash - preceding a sorting option means sorting in a descending order.
98
+ starting_after_id: 'starting_after_id_example', # String | A cursor for pagination. It retrieves the results starting after a result with the given ID.
99
99
  filters: VoucherifySdk::ParameterFiltersListBin.new # ParameterFiltersListBin | Filters for listing bin entries.
100
100
  }
101
101
 
@@ -113,8 +113,8 @@ end
113
113
  | Name | Type | Description | Notes |
114
114
  | ---- | ---- | ----------- | ----- |
115
115
  | **limit** | **Integer** | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items. | [optional] |
116
- | **order** | [**ParameterOrderListBin**](.md) | Orders the bin entries according the date and time when they were moved to the bin or according to the bin entry ID. The dash - preceding a sorting option means sorting in a descending order. | [optional] |
117
- | **starting_after_id** | **String** | A cursor for pagination. It retrieves the events starting after an event with the given ID. | [optional] |
116
+ | **order** | [**ParameterOrderListBin**](.md) | Orders the bin entries according to the bin entry ID. The dash - preceding a sorting option means sorting in a descending order. | [optional] |
117
+ | **starting_after_id** | **String** | A cursor for pagination. It retrieves the results starting after a result with the given ID. | [optional] |
118
118
  | **filters** | [**ParameterFiltersListBin**](.md) | Filters for listing bin entries. | [optional] |
119
119
 
120
120
  ### Return type
data/docs/Bundle.md ADDED
@@ -0,0 +1,11 @@
1
+ # VoucherifySdk::Bundle
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **quantity** | **Integer** | Determines how many bundles are qualified. If there are missing bundle products, the value is `0`. If the bundle is qualified, the value is `1`. The maximum number of identified bundles can equal the number set in `limit`. Also defines the multiplier of the discount for `AMOUNT`, `PERCENT`, and `UNIT` discount types. To inform end-customers that more products can be added to meet additional bundles, compare this parameter with `limit`. | [optional] |
8
+ | **limit** | **Integer** | Determines the maximum number of identified bundles. This also defines the maximum multiplier of the bundle discount. | [optional] |
9
+ | **identified** | [**Array<BundleIdentifiedItem>**](BundleIdentifiedItem.md) | Determines products from the customer's order items that meet bundle conditions. SKUs meet the conditions for their product that is used in the bundle. Returns only the products and their quantity that meet the bundle. | [optional] |
10
+ | **missing** | [**Array<BundleMissingItem>**](BundleMissingItem.md) | Determines products, SKUs, or collections from the bundle that are missing in the customer's order items. Determines also the missing quantity. For collections, this means that order items do not include a sufficient number of items that belong to the collection. Not returned when all required bundle items are in the order. | [optional] |
11
+
@@ -0,0 +1,11 @@
1
+ # VoucherifySdk::BundleIdentifiedItem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique identifier of the product or SKU that meets the bundle condition. This is an ID assigned by Voucherify. | |
8
+ | **object** | **String** | Determines the type of the object that meets the bundle condition. | |
9
+ | **item_index** | **Integer** | Number assigned to the order line item in accordance with the order sent in the request. It starts with `0` for the first order line item in the request. | |
10
+ | **item_quantity** | **Integer** | Quantity of items that meet the bundle conditions. If the quantity in the order is higher than the quantity required by the bundle, this returns only the number that meets the bundle. For example, if the bundle requires `5` coffees, but the order includes `10` coffees, `item_quantity` returns `5`. | |
11
+
@@ -0,0 +1,10 @@
1
+ # VoucherifySdk::BundleMissingItem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique identifier of the collection, product, or SKU that is missing in the customer's order items. This is an ID assigned by Voucherify. | |
8
+ | **object** | **String** | Determines the type of the object that is missing in the customer's order items. | |
9
+ | **item_quantity** | **Integer** | Quantity of items that are missing in the order items to meet the bundle conditions. | |
10
+
data/docs/Campaign.md CHANGED
@@ -8,10 +8,10 @@
8
8
  | **name** | **String** | Campaign name. | [optional] |
9
9
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published - `STANDALONE`: campaign for single vouchers | [optional] |
11
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (standalone) vouchers. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published - `STANDALONE`: campaign for single vouchers | [optional] |
12
12
  | **voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional] |
13
13
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
14
- | **join_once** | **Boolean** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for standalone voucher campaigns and it cannot be changed in them. | [optional] |
14
+ | **join_once** | **Boolean** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always `true` for loyalty campaigns and it cannot be changed in them. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema. | [optional] |
16
16
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
17
17
  | **validity_day_of_week** | **Array<Integer>** | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
@@ -27,14 +27,14 @@
27
27
  | **category** | **String** | Unique category name. | [optional] |
28
28
  | **creation_status** | **String** | Indicates the status of the campaign creation. | [optional] |
29
29
  | **vouchers_generation_status** | **String** | Indicates the status of the campaign's voucher generation. | [optional] |
30
- | **readonly** | **Boolean** | Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature. It is returned only to restricted users; this field is not returned for users with other roles. | [optional] |
30
+ | **readonly** | **Boolean** | Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature. It is returned only to restricted users; this field is not returned for users with other roles. It is also not returned for restricted users who use the [GET Campaign summary](/api-reference/campaigns/get-campaign-summary) endpoint. | [optional] |
31
31
  | **protected** | **Boolean** | Indicates whether the resource can be deleted. | [optional] |
32
32
  | **category_id** | **String** | Unique category ID that this campaign belongs to. | [optional] |
33
- | **categories** | [**Array<Category>**](Category.md) | Contains details about the category. | [optional] |
33
+ | **categories** | [**Array<Category>**](Category.md) | Contains details about the campaign category. For the GET [List campaigns](/api-reference/campaigns/list-campaigns) endpoint, this is returned only if the `expand=category` query parameter is passed in the request. Otherwise, it is returned as an empty array. For GET [Campaign summary](/api-reference/campaigns/get-campaign-summary) endpoint, it is always returned as an empty array. | [optional] |
34
34
  | **object** | **String** | The type of the object represented by JSON. This object stores information about the campaign. | [optional][default to 'campaign'] |
35
35
  | **referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional] |
36
36
  | **loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional] |
37
+ | **access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional] |
37
38
  | **promotion** | [**PromotionTiersList**](PromotionTiersList.md) | | [optional] |
38
39
  | **validation_rules_assignments** | [**ValidationRulesAssignmentsList**](ValidationRulesAssignmentsList.md) | | [optional] |
39
- | **access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional] |
40
40
 
data/docs/CampaignBase.md CHANGED
@@ -8,10 +8,10 @@
8
8
  | **name** | **String** | Campaign name. | [optional] |
9
9
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published - `STANDALONE`: campaign for single vouchers | [optional] |
11
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (standalone) vouchers. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published - `STANDALONE`: campaign for single vouchers | [optional] |
12
12
  | **voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional] |
13
13
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
14
- | **join_once** | **Boolean** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for standalone voucher campaigns and it cannot be changed in them. | [optional] |
14
+ | **join_once** | **Boolean** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always `true` for loyalty campaigns and it cannot be changed in them. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema. | [optional] |
16
16
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
17
17
  | **validity_day_of_week** | **Array<Integer>** | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
@@ -27,11 +27,12 @@
27
27
  | **category** | **String** | Unique category name. | [optional] |
28
28
  | **creation_status** | **String** | Indicates the status of the campaign creation. | [optional] |
29
29
  | **vouchers_generation_status** | **String** | Indicates the status of the campaign's voucher generation. | [optional] |
30
- | **readonly** | **Boolean** | Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature. It is returned only to restricted users; this field is not returned for users with other roles. | [optional] |
30
+ | **readonly** | **Boolean** | Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature. It is returned only to restricted users; this field is not returned for users with other roles. It is also not returned for restricted users who use the [GET Campaign summary](/api-reference/campaigns/get-campaign-summary) endpoint. | [optional] |
31
31
  | **protected** | **Boolean** | Indicates whether the resource can be deleted. | [optional] |
32
32
  | **category_id** | **String** | Unique category ID that this campaign belongs to. | [optional] |
33
- | **categories** | [**Array<Category>**](Category.md) | Contains details about the category. | [optional] |
33
+ | **categories** | [**Array<Category>**](Category.md) | Contains details about the campaign category. For the GET [List campaigns](/api-reference/campaigns/list-campaigns) endpoint, this is returned only if the `expand=category` query parameter is passed in the request. Otherwise, it is returned as an empty array. For GET [Campaign summary](/api-reference/campaigns/get-campaign-summary) endpoint, it is always returned as an empty array. | [optional] |
34
34
  | **object** | **String** | The type of the object represented by JSON. This object stores information about the campaign. | [optional][default to 'campaign'] |
35
35
  | **referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional] |
36
36
  | **loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional] |
37
+ | **access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional] |
37
38
 
@@ -4,8 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **period_type** | **String** | Type of period | [optional][default to 'MONTH'] |
8
- | **period_value** | **Integer** | Value of the period | [optional] |
9
- | **rounding_type** | **String** | Type of rounding | [optional] |
10
- | **rounding_value** | **Integer** | Value of rounding | [optional] |
7
+ | **period_type** | **String** | Type of period. Can be set for `MONTH` or `FIXED_DAY_OF_YEAR`. `MONTH` requires the `period_value` field. `FIXED_DAY_OF_YEAR` requires the `fixed_month` and `fixed_day` fields. | [optional][default to 'MONTH'] |
8
+ | **period_value** | **Integer** | Value of the period. Required for the `period_type: MONTH`. | [optional] |
9
+ | **rounding_type** | **String** | Type of rounding of the expiration period. Optional for the `period_type: MONTH`. | [optional] |
10
+ | **rounding_value** | **Integer** | Value of rounding of the expiration period. Required for the `rounding_type`. | [optional] |
11
+ | **fixed_month** | **Integer** | Determines the month when the points expire; `1` is January, `2` is February, and so on. Required for the `period_type: FIXED_DAY_OF_YEAR`. | [optional] |
12
+ | **fixed_day** | **Integer** | Determines the day of the month when the points expire. Required for the `period_type: FIXED_DAY_OF_YEAR`. | [optional] |
11
13
 
data/docs/CampaignsApi.md CHANGED
@@ -10,9 +10,12 @@ All URIs are relative to *https://api.voucherify.io*
10
10
  | [**delete_campaign**](CampaignsApi.md#delete_campaign) | **DELETE** /v1/campaigns/{campaignId} | Delete Campaign |
11
11
  | [**disable_campaign**](CampaignsApi.md#disable_campaign) | **POST** /v1/campaigns/{campaignId}/disable | Disable Campaign |
12
12
  | [**enable_campaign**](CampaignsApi.md#enable_campaign) | **POST** /v1/campaigns/{campaignId}/enable | Enable Campaign |
13
+ | [**export_campaign_transactions**](CampaignsApi.md#export_campaign_transactions) | **POST** /v1/campaigns/{campaignId}/transactions/export | Export Campaign Transactions |
13
14
  | [**get_campaign**](CampaignsApi.md#get_campaign) | **GET** /v1/campaigns/{campaignId} | Get Campaign |
15
+ | [**get_campaign_summary**](CampaignsApi.md#get_campaign_summary) | **GET** /v1/campaigns/{campaignId}/summary | Get Campaign Summary |
14
16
  | [**import_vouchers_to_campaign**](CampaignsApi.md#import_vouchers_to_campaign) | **POST** /v1/campaigns/{campaignId}/import | Import Vouchers to Campaign |
15
17
  | [**import_vouchers_to_campaign_using_csv**](CampaignsApi.md#import_vouchers_to_campaign_using_csv) | **POST** /v1/campaigns/{campaignId}/importCSV | Import Vouchers to Campaign by CSV |
18
+ | [**list_campaign_transactions**](CampaignsApi.md#list_campaign_transactions) | **GET** /v1/campaigns/{campaignId}/transactions | List Campaign Transactions |
16
19
  | [**list_campaigns**](CampaignsApi.md#list_campaigns) | **GET** /v1/campaigns | List Campaigns |
17
20
  | [**update_campaign**](CampaignsApi.md#update_campaign) | **PUT** /v1/campaigns/{campaignId} | Update Campaign |
18
21
 
@@ -87,7 +90,7 @@ end
87
90
 
88
91
  Add Vouchers to Campaign
89
92
 
90
- This method gives the possibility to push new vouchers to an existing campaign. New vouchers will inherit properties from the campaign profile. However, it is possible to overwrite some of them in the request body. If you provide an optional code_config parameter with a voucher code configuration, then it will be used to generate new voucher codes. Otherwise, the voucher code configuration from the campaign will be used. 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.
93
+ This method gives the possibility to push new vouchers to an existing campaign. New vouchers will inherit properties from the campaign profile. However, it is possible to overwrite some of them in the request body. If you provide an optional code_config parameter with a voucher code configuration, then it will be used to generate new voucher codes. Otherwise, the voucher code configuration from the campaign will be used. 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).
91
94
 
92
95
  ### Examples
93
96
 
@@ -151,7 +154,7 @@ end
151
154
 
152
155
  Create Campaign
153
156
 
154
- Method to create a batch of vouchers aggregated in one campaign. You can choose a variety of voucher types and define a unique pattern for generating codes. 📘 Global uniqueness All campaign codes are unique across the whole project. Voucherify will not allow you to generate 2 campaigns with the same coupon code. 🚧 Code generation status This is an asynchronous action; you cant read or modify a newly created campaign until the code generation is completed. See the creation_status field in the campaign object description. 🚧 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, you cannot create a standalone discount or gift voucher campaign with the type: STANDALONE through the API. Voucherify developers work on adding that feature. Follow the [Voucherify Release Notes](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004) for more details about released features.
157
+ Method to create a batch of vouchers aggregated in one campaign. You can choose a variety of voucher types and define a unique pattern for generating codes. 📘 Global uniqueness All campaign codes are unique across the whole project. Voucherify will not allow you to generate 2 campaigns with the same coupon code. 🚧 Code generation status This is an asynchronous action; you cant read or modify a newly created campaign until the code generation is completed. See the creation_status field in the [campaign object](/api-reference/campaigns/campaign-object) description.
155
158
 
156
159
  ### Examples
157
160
 
@@ -211,7 +214,7 @@ end
211
214
 
212
215
  Delete Campaign
213
216
 
214
- Deletes a campaign and all related vouchers. This action cannot be undone. Also, this method immediately removes any redemptions on the voucher. If the force parameter is set to false or not set at all, the campaign and all related vouchers will be moved to the bin. 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.
217
+ Deletes a campaign and all related vouchers. This action cannot be undone. Also, this method immediately removes any redemptions on the voucher. If the force parameter is set to false or not set at all, the campaign and all related vouchers will be moved to [the bin](/api-reference/bin/list-bin-entries). 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).
215
218
 
216
219
  ### Examples
217
220
 
@@ -383,6 +386,68 @@ end
383
386
  - **Accept**: application/json
384
387
 
385
388
 
389
+ ## export_campaign_transactions
390
+
391
+ > <CampaignsTransactionsExportCreateResponseBody> export_campaign_transactions(campaign_id, opts)
392
+
393
+ Export Campaign Transactions
394
+
395
+ Export transactions is an asynchronous process that generates a CSV file with the data about credit movements on all gift cards or point movements on all loyalty cards in a given campaign. To export transactions: 1. In the export request, use parameters to select which fields will be exported, in what order, and which data will be filtered. 2. Use the returned id to track the export status with the [GET Export](/api-reference/exports/get-export) method. 3. In the GET Export method, when the returned status field has the DONE value, the export file has been generated. 4. Use the URL in the result property to download the file. You must be logged to your Voucherify account on a given cluster in the browser to be able to download the file. An export request will almost always result in a single file being generated by the system. However, when the data volume is large, the system may split the results into multiple files. An example export file can look as follows: 👍 Export Loyalty Campaign Transactions For loyalty campaigns, this method works in the same way the [POST Export Loyalty Campaign Transactions](/api-reference/loyalties/export-loyalty-campaign-transactions) does.
396
+
397
+ ### Examples
398
+
399
+ ```ruby
400
+ require 'time'
401
+ require 'VoucherifySdk'
402
+ # setup authorization
403
+ VoucherifySdk.configure do |config|
404
+ # Configure API key authorization: X-App-Id
405
+ config.api_key['X-App-Id'] = 'YOUR API KEY'
406
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
407
+ # config.api_key_prefix['X-App-Id'] = 'Bearer'
408
+
409
+ # Configure API key authorization: X-App-Token
410
+ config.api_key['X-App-Token'] = 'YOUR API KEY'
411
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
412
+ # config.api_key_prefix['X-App-Token'] = 'Bearer'
413
+ end
414
+
415
+ api_instance = VoucherifySdk::CampaignsApi.new
416
+ campaign_id = 'campaign_id_example' # String | You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value.
417
+ opts = {
418
+ campaigns_transactions_export_create_request_body: VoucherifySdk::CampaignsTransactionsExportCreateRequestBody.new # CampaignsTransactionsExportCreateRequestBody | Specify the parameters for the transaction export.
419
+ }
420
+
421
+ begin
422
+ # Export Campaign Transactions
423
+ result = api_instance.export_campaign_transactions(campaign_id, opts)
424
+ p result
425
+ rescue VoucherifySdk::ApiError => e
426
+ puts "Error when calling CampaignsApi->export_campaign_transactions: #{e}"
427
+ end
428
+ ```
429
+
430
+ ### Parameters
431
+
432
+ | Name | Type | Description | Notes |
433
+ | ---- | ---- | ----------- | ----- |
434
+ | **campaign_id** | **String** | You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value. | |
435
+ | **campaigns_transactions_export_create_request_body** | [**CampaignsTransactionsExportCreateRequestBody**](CampaignsTransactionsExportCreateRequestBody.md) | Specify the parameters for the transaction export. | [optional] |
436
+
437
+ ### Return type
438
+
439
+ [**CampaignsTransactionsExportCreateResponseBody**](CampaignsTransactionsExportCreateResponseBody.md)
440
+
441
+ ### Authorization
442
+
443
+ [X-App-Id](../README.md#X-App-Id), [X-App-Token](../README.md#X-App-Token)
444
+
445
+ ### HTTP request headers
446
+
447
+ - **Content-Type**: application/json
448
+ - **Accept**: application/json
449
+
450
+
386
451
  ## get_campaign
387
452
 
388
453
  > <CampaignsGetResponseBody> get_campaign(campaign_id)
@@ -441,13 +506,77 @@ end
441
506
  - **Accept**: application/json
442
507
 
443
508
 
509
+ ## get_campaign_summary
510
+
511
+ > <CampaignsSummaryGetResponseBody> get_campaign_summary(campaign_id, opts)
512
+
513
+ Get Campaign Summary
514
+
515
+ Returns data for campaign analytics, covering validations, redemptions, publications, and other details specific to a given campaign type. Use start_date and end_date to narrow down the data to specific periods. 🚧 Campaigns created before 17 June 2025 This endpoint returns analytics data for campaigns that were created after 17 June 2025. Older campaigns return empty data.
516
+
517
+ ### Examples
518
+
519
+ ```ruby
520
+ require 'time'
521
+ require 'VoucherifySdk'
522
+ # setup authorization
523
+ VoucherifySdk.configure do |config|
524
+ # Configure API key authorization: X-App-Id
525
+ config.api_key['X-App-Id'] = 'YOUR API KEY'
526
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
527
+ # config.api_key_prefix['X-App-Id'] = 'Bearer'
528
+
529
+ # Configure API key authorization: X-App-Token
530
+ config.api_key['X-App-Token'] = 'YOUR API KEY'
531
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
532
+ # config.api_key_prefix['X-App-Token'] = 'Bearer'
533
+ end
534
+
535
+ api_instance = VoucherifySdk::CampaignsApi.new
536
+ campaign_id = 'campaign_id_example' # String | You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value.
537
+ opts = {
538
+ start_date: Date.parse('2013-10-20'), # Date | Timestamp representing the date which results must begin on. Represented in ISO 8601 format.
539
+ end_date: Date.parse('2013-10-20') # Date | Timestamp representing the date which results must end on. Represented in ISO 8601 format.
540
+ }
541
+
542
+ begin
543
+ # Get Campaign Summary
544
+ result = api_instance.get_campaign_summary(campaign_id, opts)
545
+ p result
546
+ rescue VoucherifySdk::ApiError => e
547
+ puts "Error when calling CampaignsApi->get_campaign_summary: #{e}"
548
+ end
549
+ ```
550
+
551
+ ### Parameters
552
+
553
+ | Name | Type | Description | Notes |
554
+ | ---- | ---- | ----------- | ----- |
555
+ | **campaign_id** | **String** | You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value. | |
556
+ | **start_date** | **Date** | Timestamp representing the date which results must begin on. Represented in ISO 8601 format. | [optional] |
557
+ | **end_date** | **Date** | Timestamp representing the date which results must end on. Represented in ISO 8601 format. | [optional] |
558
+
559
+ ### Return type
560
+
561
+ [**CampaignsSummaryGetResponseBody**](CampaignsSummaryGetResponseBody.md)
562
+
563
+ ### Authorization
564
+
565
+ [X-App-Id](../README.md#X-App-Id), [X-App-Token](../README.md#X-App-Token)
566
+
567
+ ### HTTP request headers
568
+
569
+ - **Content-Type**: Not defined
570
+ - **Accept**: application/json
571
+
572
+
444
573
  ## import_vouchers_to_campaign
445
574
 
446
575
  > <CampaignsImportCreateResponseBody> import_vouchers_to_campaign(campaign_id, opts)
447
576
 
448
577
  Import Vouchers to Campaign
449
578
 
450
- Imports vouchers to an **existing** campaign. 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.
579
+ Imports vouchers to an **existing** campaign. 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).
451
580
 
452
581
  ### Examples
453
582
 
@@ -470,7 +599,7 @@ end
470
599
  api_instance = VoucherifySdk::CampaignsApi.new
471
600
  campaign_id = 'campaign_id_example' # String | The ID of an existing campaign to which youre importing the codes. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value.
472
601
  opts = {
473
- campaigns_import_voucher_item: [VoucherifySdk::CampaignsImportVoucherItem.new] # Array<CampaignsImportVoucherItem> | Discount type, expiration date and the remaining attributes will be taken from the Campaign settings.
602
+ campaigns_import_voucher_item: [VoucherifySdk::CampaignsImportVoucherItem.new] # Array<CampaignsImportVoucherItem> | Discount type, expiration date and the remaining attributes will be taken from the [Campaign](/api-reference/campaigns/get-campaign) settings.
474
603
  }
475
604
 
476
605
  begin
@@ -487,7 +616,7 @@ end
487
616
  | Name | Type | Description | Notes |
488
617
  | ---- | ---- | ----------- | ----- |
489
618
  | **campaign_id** | **String** | The ID of an existing campaign to which youre importing the codes. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value. | |
490
- | **campaigns_import_voucher_item** | [**Array&lt;CampaignsImportVoucherItem&gt;**](CampaignsImportVoucherItem.md) | Discount type, expiration date and the remaining attributes will be taken from the Campaign settings. | [optional] |
619
+ | **campaigns_import_voucher_item** | [**Array&lt;CampaignsImportVoucherItem&gt;**](CampaignsImportVoucherItem.md) | Discount type, expiration date and the remaining attributes will be taken from the [Campaign](/api-reference/campaigns/get-campaign) settings. | [optional] |
491
620
 
492
621
  ### Return type
493
622
 
@@ -509,7 +638,7 @@ end
509
638
 
510
639
  Import Vouchers to Campaign by CSV
511
640
 
512
- Imports vouchers to an **existing** campaign. The CSV file has to include headers in the first line. 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.
641
+ Imports vouchers to an **existing** campaign. The CSV file has to include headers in the first line. 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).
513
642
 
514
643
  ### Examples
515
644
 
@@ -565,6 +694,74 @@ end
565
694
  - **Accept**: application/json
566
695
 
567
696
 
697
+ ## list_campaign_transactions
698
+
699
+ > <CampaignsTransactionsListResponseBody> list_campaign_transactions(campaign_id, opts)
700
+
701
+ List Campaign Transactions
702
+
703
+ Retrieves all transactions for the campaign with the given campaign ID or campaign name. The id filter denotes the unique transaction identifier. 🚧 The endpoint works only for gift card and loyalty campaigns.
704
+
705
+ ### Examples
706
+
707
+ ```ruby
708
+ require 'time'
709
+ require 'VoucherifySdk'
710
+ # setup authorization
711
+ VoucherifySdk.configure do |config|
712
+ # Configure API key authorization: X-App-Id
713
+ config.api_key['X-App-Id'] = 'YOUR API KEY'
714
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
715
+ # config.api_key_prefix['X-App-Id'] = 'Bearer'
716
+
717
+ # Configure API key authorization: X-App-Token
718
+ config.api_key['X-App-Token'] = 'YOUR API KEY'
719
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
720
+ # config.api_key_prefix['X-App-Token'] = 'Bearer'
721
+ end
722
+
723
+ api_instance = VoucherifySdk::CampaignsApi.new
724
+ campaign_id = 'campaign_id_example' # String | You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value.
725
+ opts = {
726
+ limit: 56, # Integer | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
727
+ order: VoucherifySdk::ParameterOrderListTransactions::ID, # ParameterOrderListTransactions | Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
728
+ starting_after_id: 'starting_after_id_example', # String | A cursor for pagination. It retrieves the transactions starting after a transaction with the given ID.
729
+ filters: VoucherifySdk::ParametersFiltersListCampaignTransactions.new # ParametersFiltersListCampaignTransactions | Filters for listing responses.
730
+ }
731
+
732
+ begin
733
+ # List Campaign Transactions
734
+ result = api_instance.list_campaign_transactions(campaign_id, opts)
735
+ p result
736
+ rescue VoucherifySdk::ApiError => e
737
+ puts "Error when calling CampaignsApi->list_campaign_transactions: #{e}"
738
+ end
739
+ ```
740
+
741
+ ### Parameters
742
+
743
+ | Name | Type | Description | Notes |
744
+ | ---- | ---- | ----------- | ----- |
745
+ | **campaign_id** | **String** | You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value. | |
746
+ | **limit** | **Integer** | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items. | [optional] |
747
+ | **order** | [**ParameterOrderListTransactions**](.md) | Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. | [optional] |
748
+ | **starting_after_id** | **String** | A cursor for pagination. It retrieves the transactions starting after a transaction with the given ID. | [optional] |
749
+ | **filters** | [**ParametersFiltersListCampaignTransactions**](.md) | Filters for listing responses. | [optional] |
750
+
751
+ ### Return type
752
+
753
+ [**CampaignsTransactionsListResponseBody**](CampaignsTransactionsListResponseBody.md)
754
+
755
+ ### Authorization
756
+
757
+ [X-App-Id](../README.md#X-App-Id), [X-App-Token](../README.md#X-App-Token)
758
+
759
+ ### HTTP request headers
760
+
761
+ - **Content-Type**: Not defined
762
+ - **Accept**: application/json
763
+
764
+
568
765
  ## list_campaigns
569
766
 
570
767
  > <CampaignsListResponseBody> list_campaigns(opts)
@@ -596,9 +793,9 @@ opts = {
596
793
  limit: 56, # Integer | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
597
794
  page: 56, # Integer | Which page of results to return. The lowest value is 1.
598
795
  campaign_type: VoucherifySdk::ParameterCampaignType::PROMOTION, # ParameterCampaignType | This attribute allows filtering by campaign type.
599
- expand: VoucherifySdk::ParameterExpandListCampaigns::CATEGORY, # ParameterExpandListCampaigns | Includes an expanded categories object in the response. If the [Areas and Stores](https://support.voucherify.io/article/623-areas-and-stores) Enterprise feature is enabled, add access_settings_assignments to return assigned areas and stores.
796
+ expand: VoucherifySdk::ParameterExpandListCampaigns::CATEGORY, # ParameterExpandListCampaigns | Includes an expanded categories object in the response. If the [Areas and Stores](/orchestrate/areas-and-stores) Enterprise feature is enabled, add access_settings_assignments to return assigned areas and stores.
600
797
  order: VoucherifySdk::ParameterOrderListCampaigns::CREATED_AT, # ParameterOrderListCampaigns | Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
601
- filters: VoucherifySdk::ParameterFiltersListCampaigns.new # ParameterFiltersListCampaigns | Filters the results by campaign status or whether the campaign is a referral campaign.
798
+ filters: VoucherifySdk::ParameterFiltersListCampaigns.new # ParameterFiltersListCampaigns | Filters the results by various campaign properties.
602
799
  }
603
800
 
604
801
  begin
@@ -617,9 +814,9 @@ end
617
814
  | **limit** | **Integer** | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items. | [optional] |
618
815
  | **page** | **Integer** | Which page of results to return. The lowest value is 1. | [optional] |
619
816
  | **campaign_type** | [**ParameterCampaignType**](.md) | This attribute allows filtering by campaign type. | [optional] |
620
- | **expand** | [**ParameterExpandListCampaigns**](.md) | Includes an expanded categories object in the response. If the [Areas and Stores](https://support.voucherify.io/article/623-areas-and-stores) Enterprise feature is enabled, add access_settings_assignments to return assigned areas and stores. | [optional] |
817
+ | **expand** | [**ParameterExpandListCampaigns**](.md) | Includes an expanded categories object in the response. If the [Areas and Stores](/orchestrate/areas-and-stores) Enterprise feature is enabled, add access_settings_assignments to return assigned areas and stores. | [optional] |
621
818
  | **order** | [**ParameterOrderListCampaigns**](.md) | Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. | [optional] |
622
- | **filters** | [**ParameterFiltersListCampaigns**](.md) | Filters the results by campaign status or whether the campaign is a referral campaign. | [optional] |
819
+ | **filters** | [**ParameterFiltersListCampaigns**](.md) | Filters the results by various campaign properties. | [optional] |
623
820
 
624
821
  ### Return type
625
822
 
@@ -641,7 +838,7 @@ end
641
838
 
642
839
  Update Campaign
643
840
 
644
- Updates the specified campaign 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. ## Vouchers will be affected This method will update vouchers aggregated in the campaign. It will affect all vouchers that are not published or redeemed yet.
841
+ Updates the specified campaign 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. 🚧 Vouchers will be affected This method will update vouchers aggregated in the campaign. It will affect all vouchers that are not published or redeemed yet.
645
842
 
646
843
  ### Examples
647
844
 
@@ -6,8 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | Campaign name. | [optional] |
8
8
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
9
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published | [optional] |
10
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. | [optional] |
9
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (standalone) vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published - &#x60;STANDALONE&#x60;: the campaign is a generic (standalone) one with a single voucher for public use (only for discount and gift card campaigns) | [optional] |
10
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. For loyalty campaigns, it&#39;s forced to &#x60;true&#x60;, even if &#x60;join_once: false&#x60; is passed in the request. | [optional] |
11
11
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
12
12
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
13
13
  | **vouchers_count** | **Integer** | Total number of unique vouchers in campaign (size of campaign). | [optional] |
@@ -20,6 +20,7 @@
20
20
  | **category_id** | **String** | Unique category ID that this campaign belongs to. Either pass this parameter OR the &#x60;category&#x60;. | [optional] |
21
21
  | **category** | **String** | The category assigned to the campaign. Either pass this parameter OR the &#x60;category_id&#x60;. | [optional] |
22
22
  | **metadata** | **Object** | The metadata object stores all custom attributes assigned to the campaign. A set of key/value pairs that you can attach to a campaign object. It can be useful for storing additional information about the campaign in a structured format. | [optional] |
23
+ | **access_settings** | [**AccessSettings**](AccessSettings.md) | | [optional] |
23
24
  | **validation_rules** | **Array&lt;String&gt;** | Array containing the ID of the validation rule associated with the promotion tier. | [optional] |
24
25
  | **campaign_type** | **String** | | [optional] |
25
26
  | **voucher** | [**CampaignsCreateRequestBodyVoucher**](CampaignsCreateRequestBodyVoucher.md) | | [optional] |
@@ -8,10 +8,10 @@
8
8
  | **name** | **String** | Campaign name. | [optional] |
9
9
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published - &#x60;STANDALONE&#x60;: campaign for single vouchers | [optional] |
11
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (standalone) vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published - &#x60;STANDALONE&#x60;: campaign for single vouchers | [optional] |
12
12
  | **voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional] |
13
13
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
14
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. It is always &#x60;false&#x60; for standalone voucher campaigns and it cannot be changed in them. | [optional] |
14
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for loyalty campaigns and it cannot be changed in them. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
16
16
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
17
17
  | **validity_day_of_week** | **Array&lt;Integer&gt;** | Integer array corresponding to the particular days of the week in which the voucher is valid. - &#x60;0&#x60; Sunday - &#x60;1&#x60; Monday - &#x60;2&#x60; Tuesday - &#x60;3&#x60; Wednesday - &#x60;4&#x60; Thursday - &#x60;5&#x60; Friday - &#x60;6&#x60; Saturday | [optional] |
@@ -27,14 +27,14 @@
27
27
  | **category** | **String** | Unique category name. | [optional] |
28
28
  | **creation_status** | **String** | Indicates the status of the campaign creation. | [optional] |
29
29
  | **vouchers_generation_status** | **String** | Indicates the status of the campaign&#39;s voucher generation. | [optional] |
30
- | **readonly** | **Boolean** | Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature. It is returned only to restricted users; this field is not returned for users with other roles. | [optional] |
30
+ | **readonly** | **Boolean** | Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature. It is returned only to restricted users; this field is not returned for users with other roles. It is also not returned for restricted users who use the [GET Campaign summary](/api-reference/campaigns/get-campaign-summary) endpoint. | [optional] |
31
31
  | **protected** | **Boolean** | Indicates whether the resource can be deleted. | [optional] |
32
32
  | **category_id** | **String** | Unique category ID that this campaign belongs to. | [optional] |
33
- | **categories** | [**Array&lt;Category&gt;**](Category.md) | Contains details about the category. | [optional] |
33
+ | **categories** | [**Array&lt;Category&gt;**](Category.md) | Contains details about the campaign category. For the GET [List campaigns](/api-reference/campaigns/list-campaigns) endpoint, this is returned only if the &#x60;expand&#x3D;category&#x60; query parameter is passed in the request. Otherwise, it is returned as an empty array. For GET [Campaign summary](/api-reference/campaigns/get-campaign-summary) endpoint, it is always returned as an empty array. | [optional] |
34
34
  | **object** | **String** | The type of the object represented by JSON. This object stores information about the campaign. | [optional][default to &#39;campaign&#39;] |
35
35
  | **referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional] |
36
36
  | **loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional] |
37
+ | **access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional] |
37
38
  | **promotion** | [**PromotionTiersList**](PromotionTiersList.md) | | [optional] |
38
39
  | **validation_rules_assignments** | [**ValidationRulesAssignmentsList**](ValidationRulesAssignmentsList.md) | | [optional] |
39
- | **access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional] |
40
40
 
@@ -8,10 +8,10 @@
8
8
  | **name** | **String** | Campaign name. | [optional] |
9
9
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional] |
11
- | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published - &#x60;STANDALONE&#x60;: campaign for single vouchers | [optional] |
11
+ | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (standalone) vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published - &#x60;STANDALONE&#x60;: campaign for single vouchers | [optional] |
12
12
  | **voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional] |
13
13
  | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
14
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. It is always &#x60;false&#x60; for standalone voucher campaigns and it cannot be changed in them. | [optional] |
14
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. It is always &#x60;false&#x60; for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always &#x60;true&#x60; for loyalty campaigns and it cannot be changed in them. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
16
16
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
17
17
  | **validity_day_of_week** | **Array&lt;Integer&gt;** | Integer array corresponding to the particular days of the week in which the voucher is valid. - &#x60;0&#x60; Sunday - &#x60;1&#x60; Monday - &#x60;2&#x60; Tuesday - &#x60;3&#x60; Wednesday - &#x60;4&#x60; Thursday - &#x60;5&#x60; Friday - &#x60;6&#x60; Saturday | [optional] |
@@ -27,14 +27,14 @@
27
27
  | **category** | **String** | Unique category name. | [optional] |
28
28
  | **creation_status** | **String** | Indicates the status of the campaign creation. | [optional] |
29
29
  | **vouchers_generation_status** | **String** | Indicates the status of the campaign&#39;s voucher generation. | [optional] |
30
- | **readonly** | **Boolean** | Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature. It is returned only to restricted users; this field is not returned for users with other roles. | [optional] |
30
+ | **readonly** | **Boolean** | Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature. It is returned only to restricted users; this field is not returned for users with other roles. It is also not returned for restricted users who use the [GET Campaign summary](/api-reference/campaigns/get-campaign-summary) endpoint. | [optional] |
31
31
  | **protected** | **Boolean** | Indicates whether the resource can be deleted. | [optional] |
32
32
  | **category_id** | **String** | Unique category ID that this campaign belongs to. | [optional] |
33
- | **categories** | [**Array&lt;Category&gt;**](Category.md) | Contains details about the category. | [optional] |
33
+ | **categories** | [**Array&lt;Category&gt;**](Category.md) | Contains details about the campaign category. For the GET [List campaigns](/api-reference/campaigns/list-campaigns) endpoint, this is returned only if the &#x60;expand&#x3D;category&#x60; query parameter is passed in the request. Otherwise, it is returned as an empty array. For GET [Campaign summary](/api-reference/campaigns/get-campaign-summary) endpoint, it is always returned as an empty array. | [optional] |
34
34
  | **object** | **String** | The type of the object represented by JSON. This object stores information about the campaign. | [optional][default to &#39;campaign&#39;] |
35
35
  | **referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional] |
36
36
  | **loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional] |
37
+ | **access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional] |
37
38
  | **promotion** | [**PromotionTiersList**](PromotionTiersList.md) | | [optional] |
38
39
  | **validation_rules_assignments** | [**ValidationRulesAssignmentsList**](ValidationRulesAssignmentsList.md) | | [optional] |
39
- | **access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional] |
40
40
 
@@ -8,7 +8,7 @@
8
8
  | **redemption** | [**CampaignsImportVoucherItemRedemption**](CampaignsImportVoucherItemRedemption.md) | | [optional] |
9
9
  | **active** | **Boolean** | A flag to toggle the voucher on or off. You can disable a voucher even though it&#39;s within the active period defined by the &#x60;start_date&#x60; and &#x60;expiration_date&#x60;. - &#x60;true&#x60; indicates an *active* voucher - &#x60;false&#x60; indicates an *inactive* voucher | [optional] |
10
10
  | **metadata** | **Object** | The metadata object stores all custom attributes assigned to the code. A set of key/value pairs that you can attach to a voucher object. It can be useful for storing additional information about the voucher in a structured format. | [optional] |
11
- | **category** | **String** | Tag defining the category that this voucher belongs to. Useful when listing vouchers using the [List Vouchers](ref:list-vouchers) endpoint. | [optional] |
11
+ | **category** | **String** | Tag defining the category that this voucher belongs to. Useful when listing vouchers using the [List Vouchers](/api-reference/vouchers/list-vouchers) endpoint. | [optional] |
12
12
  | **start_date** | **Time** | Activation timestamp presented in the ISO 8601 format. Voucher is *inactive before* this date. Start date defines when the code starts to be active. Allowed date formats are: - YYYY-MM-DD - YYYY-MM-DDTHH - YYYY-MM-DDTHH:mm - YYYY-MM-DDTHH:mm:ss - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ss.SSSZ | [optional] |
13
13
  | **expiration_date** | **Time** | Expiration date defines when the code expires. Expiration timestamp is presented in the ISO 8601 format. Voucher is *inactive after* this date. Allowed date formats are: - YYYY-MM-DD - YYYY-MM-DDTHH - YYYY-MM-DDTHH:mm - YYYY-MM-DDTHH:mm:ss - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ss.SSSZ | [optional] |
14
14
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |