voucherify 5.0.1 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/DEPRECATED_CHANGELOG.md +35 -0
- data/Dockerfile +1 -1
- data/ENDPOINTS-COVERAGE.md +307 -824
- data/EXAMPLES.md +3 -3
- data/Gemfile.lock +9 -9
- data/README.md +948 -306
- data/__tests__/lib/campaigns.rb +27 -7
- data/__tests__/lib/config.rb +9 -4
- data/__tests__/lib/customers.rb +1 -1
- data/__tests__/lib/loyalties.rb +32 -0
- data/__tests__/lib/order.rb +67 -0
- data/__tests__/lib/stackables.rb +30 -6
- data/__tests__/lib/utils.rb +4 -0
- data/__tests__/lib/voucherify_data.rb +9 -0
- data/__tests__/spec/01_products_spec.rb +132 -0
- data/__tests__/spec/02_campaigns_spec.rb +133 -0
- data/__tests__/spec/03_customers_spec.rb +39 -0
- data/__tests__/spec/04_publications_spec.rb +31 -0
- data/__tests__/spec/05_qualifications_spec.rb +42 -0
- data/__tests__/spec/06_validations_spec.rb +140 -0
- data/__tests__/spec/07_vouchers_spec.rb +59 -0
- data/__tests__/spec/08_events_spec.rb +23 -0
- data/__tests__/spec/09_redemptions_spec.rb +47 -0
- data/__tests__/spec/10_orders_spec.rb +61 -0
- data/__tests__/spec/11_loyalties_spec.rb +40 -0
- data/__tests__/spec/12_validation_rules_spec.rb +39 -0
- data/__tests__/spec/snapshots/campaigns/added_loyalty_card_to_campaign.snap +1 -0
- data/__tests__/spec/snapshots/campaigns/added_voucher_to_campaign.snap +1 -0
- data/__tests__/spec/snapshots/campaigns/created_discount_campaign.snap +1 -0
- data/__tests__/spec/snapshots/campaigns/created_discount_campaign_with_val_rule.snap +1 -0
- data/__tests__/spec/snapshots/campaigns/created_loyalty_campaign.snap +1 -0
- data/__tests__/spec/snapshots/campaigns/created_promotion_campaign.snap +1 -0
- data/__tests__/spec/snapshots/campaigns/created_validation_rule_applicable_to.snap +1 -0
- data/__tests__/spec/snapshots/campaigns/created_validation_rule_more_than.snap +1 -0
- data/__tests__/spec/snapshots/customers/created_customer.snap +1 -0
- data/__tests__/spec/snapshots/customers/deleted_customer.snap +1 -0
- data/__tests__/spec/snapshots/events/created_event.snap +1 -0
- data/__tests__/spec/snapshots/loyalties/member_transactions.snap +1 -0
- data/__tests__/spec/snapshots/loyalties/updated_loyalty_member_card.snap +1 -0
- data/__tests__/spec/snapshots/orders/created_order.snap +1 -0
- data/__tests__/spec/snapshots/orders/list_orders.snap +1 -0
- data/__tests__/spec/snapshots/orders/updated_created_order_to_paid_status.snap +1 -0
- data/__tests__/spec/snapshots/products/added_sku_to_product.snap +1 -0
- data/__tests__/spec/snapshots/products/created_product.snap +1 -0
- data/__tests__/spec/snapshots/products/created_product2.snap +1 -0
- data/__tests__/spec/snapshots/products/get_previously_created_product.snap +1 -0
- data/__tests__/spec/snapshots/products/get_product_sku.snap +1 -0
- data/__tests__/spec/snapshots/products/list_skus.snap +1 -0
- data/__tests__/spec/snapshots/products/updated_product_price.snap +1 -0
- data/__tests__/spec/snapshots/products/updated_product_sku.snap +1 -0
- data/__tests__/spec/snapshots/publications/created_publication.snap +1 -0
- data/__tests__/spec/snapshots/qualifications/checked_eligibility.snap +1 -0
- data/__tests__/spec/snapshots/redemptions/redeem_stacked_applicable_discounts.snap +1 -0
- data/__tests__/spec/snapshots/redemptions/redeem_stacked_skipped_discounts.snap +1 -0
- data/__tests__/spec/snapshots/validation_rules/created_validation_rule_assignment.snap +1 -0
- data/__tests__/spec/snapshots/validations/applicable_stacked_validation.snap +1 -0
- data/__tests__/spec/snapshots/validations/inapplicable_stacked_validation.snap +1 -0
- data/__tests__/spec/snapshots/validations/redeemable_items_necessary_keys.snap +1 -0
- data/__tests__/spec/snapshots/validations/validations_succesful_order.snap +1 -0
- data/__tests__/spec/snapshots/validations_rules/created_validation_rule_assignment.snap +1 -0
- data/__tests__/spec/snapshots/vouchers/disabled_previously_created_voucher.snap +1 -0
- data/__tests__/spec/snapshots/vouchers/enabled_previously_created_voucher.snap +1 -0
- data/__tests__/spec/snapshots/vouchers/get_previously_created_voucher.snap +1 -0
- data/__tests__/spec/snapshots/vouchers/updated_loyalty_card_balance.snap +1 -0
- data/__tests__/spec/support/get_snapshot_without_uniq_keys.rb +47 -0
- data/__tests__/spec/support/snapshot_helper.rb +15 -0
- data/__tests__/spec/support/validate_deep_match.rb +41 -0
- data/docs/AccessSettingsCampaignAssignmentsList.md +11 -0
- data/docs/ApplicableTo.md +8 -5
- data/docs/ApplicableToResultList.md +4 -4
- data/docs/AreaStoreCampaignAssignment.md +12 -0
- data/docs/AsyncActionBase.md +17 -0
- data/docs/AsyncActionGetResponseBody.md +18 -0
- data/docs/AsyncActionsApi.md +129 -0
- data/docs/AsyncActionsListResponseBody.md +10 -0
- data/docs/BinApi.md +132 -0
- data/docs/BusValRuleAssignment.md +6 -6
- data/docs/Campaign.md +21 -18
- data/docs/CampaignBase.md +20 -18
- data/docs/CampaignLoyaltyCard.md +1 -1
- data/docs/CampaignLoyaltyCardExpirationRules.md +4 -4
- data/docs/CampaignLoyaltyVoucher.md +1 -1
- data/docs/CampaignTemplate.md +14 -0
- data/docs/CampaignVoucher.md +7 -5
- data/docs/CampaignVoucherRedemption.md +1 -1
- data/docs/CampaignsApi.md +26 -22
- data/docs/CampaignsCreateRequestBody.md +25 -54
- data/docs/CampaignsCreateRequestBodyPromotion.md +8 -0
- data/docs/CampaignsCreateRequestBodyVoucher.md +14 -0
- data/docs/CampaignsCreateRequestBodyVoucherRedemption.md +8 -0
- data/docs/CampaignsCreateResponseBody.md +21 -18
- data/docs/CampaignsGetResponseBody.md +21 -18
- data/docs/CampaignsImportCreateResponseBody.md +1 -1
- data/docs/CampaignsImportCsvCreateResponseBody.md +1 -1
- data/docs/CampaignsImportVoucherItem.md +10 -9
- data/docs/CampaignsListResponseBody.md +1 -1
- data/docs/CampaignsUpdateRequestBody.md +23 -54
- data/docs/CampaignsUpdateRequestBodyOptions.md +8 -0
- data/docs/CampaignsUpdateResponseBody.md +21 -18
- data/docs/CampaignsVouchersCreateCombinedResponseBody.md +37 -0
- data/docs/CampaignsVouchersCreateCombinedResponseBodyGift.md +10 -0
- data/docs/CampaignsVouchersCreateCombinedResponseBodyLoyaltyCard.md +11 -0
- data/docs/CampaignsVouchersCreateCombinedResponseBodyPublish.md +10 -0
- data/docs/CampaignsVouchersCreateCombinedResponseBodyRedemption.md +12 -0
- data/docs/CampaignsVouchersCreateInBulkRequestBody.md +3 -3
- data/docs/CampaignsVouchersCreateInBulkRequestBodyRedemption.md +8 -0
- data/docs/CampaignsVouchersCreateRequestBody.md +1 -1
- data/docs/CampaignsVouchersCreateRequestBodyRedemption.md +8 -0
- data/docs/CampaignsVouchersCreateResponseBody.md +12 -13
- data/docs/CampaignsVouchersCreateResponseBodyGift.md +10 -0
- data/docs/CampaignsVouchersCreateResponseBodyLoyaltyCard.md +11 -0
- data/docs/CampaignsVouchersCreateResponseBodyPublish.md +10 -0
- data/docs/CampaignsVouchersCreateResponseBodyRedemption.md +12 -0
- data/docs/CategoriesApi.md +2 -2
- data/docs/CategoriesCreateRequestBody.md +2 -2
- data/docs/CategoriesCreateResponseBody.md +5 -5
- data/docs/CategoriesGetResponseBody.md +6 -7
- data/docs/CategoriesListResponseBody.md +4 -4
- data/docs/CategoriesUpdateRequestBody.md +2 -2
- data/docs/CategoriesUpdateResponseBody.md +6 -6
- data/docs/Category.md +6 -7
- data/docs/CategoryWithStackingRulesType.md +14 -0
- data/docs/ClientEventsCreateRequestBody.md +1 -1
- data/docs/ClientEventsCreateRequestBodyLoyalty.md +1 -1
- data/docs/ClientEventsCreateRequestBodyReferral.md +1 -1
- data/docs/ClientEventsCreateResponseBody.md +5 -4
- data/docs/ClientPromotionsTiersListResponseBody.md +12 -0
- data/docs/ClientQualificationsCheckEligibilityRequestBody.md +1 -2
- data/docs/ClientRedemptionsRedeemRequestBody.md +2 -2
- data/docs/ClientRedemptionsRedeemRequestBodyOptions.md +8 -0
- data/docs/ClientRedemptionsRedeemRequestBodyRedeemablesItem.md +11 -0
- data/docs/ClientRedemptionsRedeemRequestBodyRedeemablesItemGift.md +8 -0
- data/docs/ClientRedemptionsRedeemRequestBodyRedeemablesItemReward.md +9 -0
- data/docs/ClientSideApi.md +43 -36
- data/docs/ClientValidationsValidateRequestBody.md +2 -2
- data/docs/ClientValidationsValidateRequestBodyOptions.md +8 -0
- data/docs/ClientValidationsValidateRequestBodyRedeemablesItem.md +11 -0
- data/docs/ClientValidationsValidateRequestBodyRedeemablesItemGift.md +8 -0
- data/docs/ClientValidationsValidateRequestBodyRedeemablesItemReward.md +9 -0
- data/docs/ClientValidationsValidateResponseBody.md +4 -3
- data/docs/ClientValidationsValidateResponseBodyRedeemablesItem.md +16 -0
- data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResult.md +12 -0
- data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultDetails.md +9 -0
- data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultDiscount.md +24 -0
- data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultDiscountProduct.md +10 -0
- data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultGift.md +8 -0
- data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultLoyaltyCard.md +8 -0
- data/docs/CodeConfig.md +1 -1
- data/docs/CreatePublicationCampaign.md +1 -1
- data/docs/Customer.md +4 -4
- data/docs/CustomerActivity.md +2 -1
- data/docs/CustomerAddress.md +13 -0
- data/docs/CustomerId.md +2 -2
- data/docs/CustomerLoyalty.md +3 -3
- data/docs/CustomerLoyaltyCampaignsEntry.md +10 -0
- data/docs/CustomerRedeemable.md +17 -0
- data/docs/CustomerRedeemableRedeemable.md +10 -0
- data/docs/CustomerReferrals.md +2 -2
- data/docs/CustomerSummaryOrders.md +4 -4
- data/docs/CustomerSummaryRedemptions.md +8 -8
- data/docs/CustomerSummaryRedemptionsGift.md +2 -2
- data/docs/CustomerSummaryRedemptionsLoyaltyCard.md +2 -2
- data/docs/CustomerWithSummaryLoyaltyReferrals.md +12 -12
- data/docs/CustomerWithSummaryLoyaltyReferralsAddress.md +13 -0
- data/docs/CustomerWithSummaryLoyaltyReferralsAssets.md +8 -0
- data/docs/CustomersActivitiesListResponseBody.md +4 -4
- data/docs/CustomersActivityListResponseBody.md +12 -0
- data/docs/CustomersApi.md +182 -94
- data/docs/CustomersCreateRequestBody.md +2 -2
- data/docs/CustomersCreateRequestBodyAddress.md +13 -0
- data/docs/CustomersCreateResponseBody.md +9 -9
- data/docs/CustomersCreateResponseBodyAddress.md +13 -0
- data/docs/CustomersCreateResponseBodyAssets.md +8 -0
- data/docs/CustomersGetResponseBody.md +9 -9
- data/docs/CustomersGetResponseBodyAddress.md +13 -0
- data/docs/CustomersGetResponseBodyAssets.md +8 -0
- data/docs/CustomersImportCsvCreateResponseBody.md +1 -1
- data/docs/CustomersListResponseBody.md +5 -5
- data/docs/CustomersMetadataUpdateInBulkRequestBody.md +2 -2
- data/docs/CustomersMetadataUpdateInBulkResponseBody.md +1 -1
- data/docs/CustomersPermanentDeletionCreateResponseBody.md +7 -7
- data/docs/CustomersPermanentDeletionCreateResponseBodyDataJson.md +7 -7
- data/docs/CustomersRedeemablesListResponseBody.md +13 -0
- data/docs/CustomersSegmentsListResponseBody.md +4 -4
- data/docs/CustomersUpdateInBulkRequestBody.md +3 -3
- data/docs/CustomersUpdateInBulkRequestBodyAddress.md +13 -0
- data/docs/CustomersUpdateInBulkResponseBody.md +1 -1
- data/docs/CustomersUpdateRequestBody.md +2 -2
- data/docs/CustomersUpdateRequestBodyAddress.md +13 -0
- data/docs/CustomersUpdateResponseBody.md +9 -9
- data/docs/CustomersUpdateResponseBodyAddress.md +13 -0
- data/docs/CustomersUpdateResponseBodyAssets.md +8 -0
- data/docs/Discount.md +21 -52
- data/docs/DiscountUnitMultipleOneUnit.md +2 -2
- data/docs/EarningRule.md +19 -17
- data/docs/EarningRuleCustomEvent.md +8 -0
- data/docs/EarningRuleLoyalty.md +14 -0
- data/docs/EarningRuleLoyaltyCustomEvent.md +8 -0
- data/docs/EarningRuleLoyaltyCustomEventMetadata.md +10 -0
- data/docs/EarningRuleLoyaltyCustomer.md +8 -0
- data/docs/EarningRuleLoyaltyCustomerMetadata.md +10 -0
- data/docs/EarningRuleLoyaltyOrder.md +10 -0
- data/docs/EarningRuleLoyaltyOrderAmount.md +9 -0
- data/docs/EarningRuleLoyaltyOrderItems.md +10 -0
- data/docs/EarningRuleLoyaltyOrderItemsAmount.md +11 -0
- data/docs/EarningRuleLoyaltyOrderItemsQuantity.md +11 -0
- data/docs/EarningRuleLoyaltyOrderItemsSubtotalAmount.md +11 -0
- data/docs/EarningRuleLoyaltyOrderMetadata.md +10 -0
- data/docs/EarningRuleLoyaltyOrderTotalAmount.md +9 -0
- data/docs/EarningRuleLoyaltyTier.md +8 -0
- data/docs/EarningRuleSegment.md +8 -0
- data/docs/EarningRuleSource.md +10 -0
- data/docs/Error.md +5 -5
- data/docs/EventsApi.md +1 -1
- data/docs/EventsCreateRequestBody.md +3 -3
- data/docs/EventsCreateRequestBodyLoyalty.md +8 -0
- data/docs/EventsCreateRequestBodyReferral.md +9 -0
- data/docs/EventsCreateResponseBody.md +5 -4
- data/docs/Export.md +13 -56
- data/docs/ExportParameters.md +10 -0
- data/docs/ExportParametersFilters.md +11 -0
- data/docs/ExportResult.md +8 -0
- data/docs/ExportsApi.md +19 -7
- data/docs/ExportsCreateRequestBody.md +5 -55
- data/docs/ExportsCreateRequestBodyParameters.md +10 -0
- data/docs/ExportsCreateRequestBodyParametersFilters.md +11 -0
- data/docs/ExportsCreateResponseBody.md +13 -56
- data/docs/ExportsCreateResponseBodyParameters.md +10 -0
- data/docs/ExportsCreateResponseBodyParametersFilters.md +11 -0
- data/docs/ExportsGetResponseBody.md +8 -8
- data/docs/ExportsGetResponseBodyParameters.md +10 -0
- data/docs/ExportsGetResponseBodyParametersFilters.md +11 -0
- data/docs/ExportsGetResponseBodyResult.md +8 -0
- data/docs/ExportsListResponseBody.md +4 -4
- data/docs/FilterConditionsDateTime.md +13 -0
- data/docs/FilterConditionsString.md +4 -4
- data/docs/FiltersCondition.md +25 -25
- data/docs/Gift.md +2 -2
- data/docs/InapplicableTo.md +8 -5
- data/docs/InapplicableToResultList.md +4 -4
- data/docs/ListPublicationsItemVoucher.md +3 -3
- data/docs/Location.md +13 -0
- data/docs/LocationShape.md +11 -0
- data/docs/LocationShapeDistance.md +9 -0
- data/docs/LocationShapeGeojson.md +9 -0
- data/docs/LocationsApi.md +133 -0
- data/docs/LocationsGetResponseBody.md +13 -0
- data/docs/LocationsGetResponseBodyShape.md +11 -0
- data/docs/LocationsGetResponseBodyShapeDistance.md +9 -0
- data/docs/LocationsGetResponseBodyShapeGeojson.md +9 -0
- data/docs/LocationsListResponseBody.md +12 -0
- data/docs/LoyaltiesApi.md +1492 -324
- data/docs/LoyaltiesCreateCampaignRequestBody.md +26 -0
- data/docs/LoyaltiesCreateCampaignResponseBody.md +38 -0
- data/docs/LoyaltiesDeleteResponseBody.md +1 -1
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItem.md +21 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyalty.md +14 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEventMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomer.md +8 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomerMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrder.md +10 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItems.md +10 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsQuantity.md +11 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItemsSubtotalAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderTotalAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyTier.md +8 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemSegment.md +8 -0
- data/docs/LoyaltiesEarningRulesCreateRequestBodyItemSource.md +8 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBody.md +26 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyalty.md +14 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomEventMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomer.md +8 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomerMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrder.md +10 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItems.md +10 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsQuantity.md +11 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItemsSubtotalAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderTotalAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyLoyaltyTier.md +8 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodySegment.md +8 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodySource.md +10 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBody.md +18 -16
- data/docs/LoyaltiesEarningRulesDisableResponseBodyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyalty.md +14 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomEventMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomer.md +8 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyCustomerMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrder.md +10 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItems.md +10 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsQuantity.md +11 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderItemsSubtotalAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyOrderTotalAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyLoyaltyTier.md +8 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodySegment.md +8 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodySource.md +10 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBody.md +18 -16
- data/docs/LoyaltiesEarningRulesEnableResponseBodyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyalty.md +14 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomEventMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomer.md +8 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyCustomerMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrder.md +10 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItems.md +10 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsQuantity.md +11 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderItemsSubtotalAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyOrderTotalAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyLoyaltyTier.md +8 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodySegment.md +8 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodySource.md +10 -0
- data/docs/LoyaltiesEarningRulesGetResponseBody.md +19 -17
- data/docs/LoyaltiesEarningRulesGetResponseBodyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyalty.md +14 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomEventMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomer.md +8 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyCustomerMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrder.md +10 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItems.md +10 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsQuantity.md +11 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderItemsSubtotalAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyOrderTotalAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyLoyaltyTier.md +8 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodySegment.md +8 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodySource.md +10 -0
- data/docs/LoyaltiesEarningRulesListResponseBody.md +11 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBody.md +17 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyalty.md +14 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomEventMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomer.md +8 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyCustomerMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrder.md +10 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItems.md +10 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsQuantity.md +11 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderItemsSubtotalAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodyLoyaltyOrderTotalAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesUpdateRequestBodySource.md +8 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBody.md +26 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyalty.md +14 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomEvent.md +8 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomEventMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomer.md +8 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyCustomerMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrder.md +10 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItems.md +10 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsQuantity.md +11 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderItemsSubtotalAmount.md +11 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderMetadata.md +10 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyOrderTotalAmount.md +9 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyLoyaltyTier.md +8 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodySegment.md +8 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodySource.md +10 -0
- data/docs/LoyaltiesGetCampaignResponseBody.md +38 -0
- data/docs/LoyaltiesListCampaignsResponseBody.md +11 -0
- data/docs/LoyaltiesListMembersResponseBody.md +11 -0
- data/docs/LoyaltiesLoyaltyTierReward.md +1 -1
- data/docs/LoyaltiesMemberActivityListResponseBody.md +12 -0
- data/docs/LoyaltiesMembersBalanceUpdateRequestBody.md +2 -2
- data/docs/LoyaltiesMembersBalanceUpdateResponseBody.md +6 -6
- data/docs/LoyaltiesMembersBalanceUpdateResponseBodyRelatedObject.md +2 -2
- data/docs/LoyaltiesMembersCreateRequestBody.md +12 -0
- data/docs/LoyaltiesMembersCreateResponseBody.md +33 -0
- data/docs/LoyaltiesMembersCreateResponseBodyLoyaltyCard.md +11 -0
- data/docs/LoyaltiesMembersCreateResponseBodyPublish.md +10 -0
- data/docs/LoyaltiesMembersCreateResponseBodyRedemption.md +12 -0
- data/docs/LoyaltiesMembersGetResponseBody.md +33 -0
- data/docs/LoyaltiesMembersGetResponseBodyLoyaltyCard.md +11 -0
- data/docs/LoyaltiesMembersGetResponseBodyPublish.md +10 -0
- data/docs/LoyaltiesMembersGetResponseBodyRedemption.md +12 -0
- data/docs/LoyaltiesMembersPointsExpirationListResponseBody.md +4 -4
- data/docs/LoyaltiesMembersPointsExpirationListResponseBodyDataItem.md +3 -3
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBody.md +20 -20
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyChannel.md +9 -0
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyGift.md +8 -0
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyLoyaltyCard.md +8 -0
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyRelatedRedemptions.md +9 -0
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyRelatedRedemptionsRedemptionsItem.md +9 -0
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyRelatedRedemptionsRollbacksItem.md +9 -0
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyVoucher.md +37 -0
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift.md +10 -0
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard.md +11 -0
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyVoucherPublish.md +10 -0
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyVoucherRedemption.md +12 -0
- data/docs/LoyaltiesMembersRewardsListResponseBody.md +4 -4
- data/docs/LoyaltiesMembersRewardsListResponseBodyDataItem.md +1 -1
- data/docs/LoyaltiesMembersTiersListResponseBody.md +4 -4
- data/docs/LoyaltiesMembersTransactionsExportCreateResponseBody.md +8 -8
- data/docs/LoyaltiesMembersTransactionsExportCreateResponseBodyParameters.md +10 -0
- data/docs/LoyaltiesMembersTransactionsListResponseBody.md +5 -4
- data/docs/LoyaltiesMembersTransfersCreateResponseBody.md +16 -15
- data/docs/LoyaltiesMembersTransfersCreateResponseBodyLoyaltyCard.md +2 -2
- data/docs/LoyaltiesMembersTransfersCreateResponseBodyPublish.md +2 -2
- data/docs/LoyaltiesMembersTransfersCreateResponseBodyRedemption.md +3 -4
- data/docs/LoyaltiesPointsExpirationExportCreateRequestBody.md +8 -0
- data/docs/LoyaltiesPointsExpirationExportCreateRequestBodyParameters.md +10 -0
- data/docs/LoyaltiesPointsExpirationExportCreateRequestBodyParametersFilters.md +10 -0
- data/docs/LoyaltiesPointsExpirationExportCreateRequestBodyParametersFiltersCampaignId.md +8 -0
- data/docs/LoyaltiesPointsExpirationExportCreateRequestBodyParametersFiltersCampaignIdConditions.md +11 -0
- data/docs/LoyaltiesPointsExpirationExportCreateRequestBodyParametersFiltersVoucherId.md +8 -0
- data/docs/LoyaltiesPointsExpirationExportCreateRequestBodyParametersFiltersVoucherIdConditions.md +11 -0
- data/docs/LoyaltiesPointsExpirationExportCreateResponseBody.md +16 -0
- data/docs/LoyaltiesPointsExpirationExportCreateResponseBodyParameters.md +10 -0
- data/docs/LoyaltiesPointsExpirationExportCreateResponseBodyParametersFilters.md +10 -0
- data/docs/LoyaltiesPointsExpirationExportCreateResponseBodyParametersFiltersCampaignId.md +8 -0
- data/docs/LoyaltiesPointsExpirationExportCreateResponseBodyParametersFiltersCampaignIdConditions.md +11 -0
- data/docs/LoyaltiesPointsExpirationExportCreateResponseBodyParametersFiltersVoucherId.md +8 -0
- data/docs/LoyaltiesPointsExpirationExportCreateResponseBodyParametersFiltersVoucherIdConditions.md +11 -0
- data/docs/LoyaltiesRewardAssignmentsGetResponseBody.md +8 -8
- data/docs/LoyaltiesRewardAssignmentsGetResponseBodyParameters.md +8 -0
- data/docs/LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty.md +9 -0
- data/docs/LoyaltiesRewardAssignmentsListResponseBody.md +11 -0
- data/docs/LoyaltiesRewardAssignmentsRewardGetResponseBody.md +10 -10
- data/docs/LoyaltiesRewardAssignmentsRewardGetResponseBodyAttributes.md +9 -0
- data/docs/LoyaltiesRewardsCreateAssignmentItemRequestBody.md +10 -0
- data/docs/LoyaltiesRewardsCreateAssignmentItemRequestBodyParameters.md +8 -0
- data/docs/LoyaltiesRewardsCreateAssignmentItemRequestBodyParametersLoyalty.md +8 -0
- data/docs/LoyaltiesRewardsCreateAssignmentResponseBody.md +15 -0
- data/docs/LoyaltiesRewardsCreateAssignmentResponseBodyParameters.md +8 -0
- data/docs/LoyaltiesRewardsCreateAssignmentResponseBodyParametersLoyalty.md +9 -0
- data/docs/LoyaltiesRewardsGetResponseBody.md +8 -8
- data/docs/LoyaltiesRewardsGetResponseBodyParameters.md +8 -0
- data/docs/LoyaltiesRewardsGetResponseBodyParametersLoyalty.md +9 -0
- data/docs/LoyaltiesRewardsListAssignmentsResponseBody.md +11 -0
- data/docs/LoyaltiesRewardsUpdateAssignmentRequestBody.md +8 -0
- data/docs/LoyaltiesRewardsUpdateAssignmentRequestBodyParameters.md +8 -0
- data/docs/LoyaltiesRewardsUpdateAssignmentRequestBodyParametersLoyalty.md +9 -0
- data/docs/LoyaltiesRewardsUpdateAssignmentResponseBody.md +15 -0
- data/docs/LoyaltiesRewardsUpdateAssignmentResponseBodyParameters.md +8 -0
- data/docs/LoyaltiesRewardsUpdateAssignmentResponseBodyParametersLoyalty.md +9 -0
- data/docs/LoyaltiesTiersCreateInBulkRequestBodyItem.md +2 -2
- data/docs/LoyaltiesTiersEarningRulesListResponseBody.md +4 -4
- data/docs/LoyaltiesTiersGetResponseBody.md +9 -9
- data/docs/LoyaltiesTiersGetResponseBodyConfig.md +8 -0
- data/docs/LoyaltiesTiersGetResponseBodyConfigPoints.md +9 -0
- data/docs/LoyaltiesTiersGetResponseBodyPoints.md +9 -0
- data/docs/LoyaltiesTiersListResponseBody.md +4 -4
- data/docs/LoyaltiesTiersRewardsListResponseBody.md +4 -4
- data/docs/LoyaltiesTransferPoints.md +3 -3
- data/docs/LoyaltiesUpdateCampaignRequestBody.md +23 -0
- data/docs/LoyaltiesUpdateCampaignRequestBodyOptions.md +8 -0
- data/docs/LoyaltiesUpdateCampaignResponseBody.md +38 -0
- data/docs/LoyaltyCampaign.md +38 -0
- data/docs/LoyaltyCampaignVoucher.md +17 -0
- data/docs/LoyaltyCampaignVoucherRedemption.md +8 -0
- data/docs/LoyaltyCardTransaction.md +9 -9
- data/docs/LoyaltyCardTransactionDetails.md +20 -0
- data/docs/LoyaltyCardTransactionDetailsBalance.md +13 -0
- data/docs/LoyaltyCardTransactionDetailsBalanceRelatedObject.md +9 -0
- data/docs/LoyaltyCardTransactionDetailsCustomEvent.md +9 -0
- data/docs/LoyaltyCardTransactionDetailsEarningRule.md +9 -0
- data/docs/LoyaltyCardTransactionDetailsEarningRuleSource.md +8 -0
- data/docs/LoyaltyCardTransactionDetailsEvent.md +9 -0
- data/docs/LoyaltyCardTransactionDetailsEventSchema.md +9 -0
- data/docs/LoyaltyCardTransactionDetailsLoyaltyTier.md +9 -0
- data/docs/LoyaltyCardTransactionDetailsOrder.md +9 -0
- data/docs/LoyaltyCardTransactionDetailsRedemption.md +8 -0
- data/docs/LoyaltyCardTransactionDetailsReward.md +9 -0
- data/docs/LoyaltyCardTransactionDetailsRollback.md +8 -0
- data/docs/LoyaltyCardTransactionDetailsSegment.md +9 -0
- data/docs/LoyaltyMember.md +33 -0
- data/docs/LoyaltyMemberLoyaltyCard.md +11 -0
- data/docs/LoyaltyMemberPublish.md +10 -0
- data/docs/LoyaltyMemberRedemption.md +12 -0
- data/docs/LoyaltyTier.md +9 -9
- data/docs/LoyaltyTierBase.md +2 -2
- data/docs/LoyaltyTierConfig.md +8 -0
- data/docs/LoyaltyTierConfigPoints.md +9 -0
- data/docs/LoyaltyTierExpiration.md +5 -5
- data/docs/LoyaltyTierPoints.md +9 -0
- data/docs/LoyaltyTiersExpirationAll.md +3 -3
- data/docs/LoyaltyTiersExpirationAllExpirationDate.md +2 -2
- data/docs/LoyaltyTiersExpirationAllStartDate.md +1 -1
- data/docs/ManagementApi.md +2348 -0
- data/docs/ManagementProject.md +30 -0
- data/docs/ManagementProjectApiUsageNotifications.md +13 -0
- data/docs/ManagementProjectDefaultCodeConfig.md +8 -0
- data/docs/ManagementProjectLimits.md +9 -0
- data/docs/ManagementProjectLimitsApiCallsItem.md +9 -0
- data/docs/ManagementProjectLimitsBulkApiCallsItem.md +9 -0
- data/docs/ManagementProjectWebhooksCalloutNotifications.md +9 -0
- data/docs/ManagementProjectWebhooksCalloutNotificationsDistributions.md +10 -0
- data/docs/ManagementProjectWebhooksCalloutNotificationsWebhooks.md +10 -0
- data/docs/ManagementProjectsBranding.md +12 -0
- data/docs/ManagementProjectsBrandingAddress.md +12 -0
- data/docs/ManagementProjectsBrandingBrand.md +12 -0
- data/docs/ManagementProjectsBrandingCockpits.md +15 -0
- data/docs/ManagementProjectsBrandingContact.md +9 -0
- data/docs/ManagementProjectsBrandingCreateRequestBody.md +11 -0
- data/docs/ManagementProjectsBrandingCreateRequestBodyAddress.md +12 -0
- data/docs/ManagementProjectsBrandingCreateRequestBodyBrand.md +12 -0
- data/docs/ManagementProjectsBrandingCreateRequestBodyCockpits.md +15 -0
- data/docs/ManagementProjectsBrandingCreateRequestBodyContact.md +9 -0
- data/docs/ManagementProjectsBrandingCreateResponseBody.md +12 -0
- data/docs/ManagementProjectsBrandingCreateResponseBodyAddress.md +12 -0
- data/docs/ManagementProjectsBrandingCreateResponseBodyBrand.md +12 -0
- data/docs/ManagementProjectsBrandingCreateResponseBodyCockpits.md +15 -0
- data/docs/ManagementProjectsBrandingCreateResponseBodyContact.md +9 -0
- data/docs/ManagementProjectsBrandingGetResponseBody.md +12 -0
- data/docs/ManagementProjectsBrandingGetResponseBodyAddress.md +12 -0
- data/docs/ManagementProjectsBrandingGetResponseBodyBrand.md +12 -0
- data/docs/ManagementProjectsBrandingGetResponseBodyCockpits.md +15 -0
- data/docs/ManagementProjectsBrandingGetResponseBodyContact.md +9 -0
- data/docs/ManagementProjectsBrandingListResponseBody.md +11 -0
- data/docs/ManagementProjectsBrandingUpdateRequestBody.md +11 -0
- data/docs/ManagementProjectsBrandingUpdateRequestBodyAddress.md +12 -0
- data/docs/ManagementProjectsBrandingUpdateRequestBodyBrand.md +12 -0
- data/docs/ManagementProjectsBrandingUpdateRequestBodyCockpits.md +15 -0
- data/docs/ManagementProjectsBrandingUpdateRequestBodyContact.md +9 -0
- data/docs/ManagementProjectsBrandingUpdateResponseBody.md +12 -0
- data/docs/ManagementProjectsBrandingUpdateResponseBodyAddress.md +12 -0
- data/docs/ManagementProjectsBrandingUpdateResponseBodyBrand.md +12 -0
- data/docs/ManagementProjectsBrandingUpdateResponseBodyCockpits.md +15 -0
- data/docs/ManagementProjectsBrandingUpdateResponseBodyContact.md +9 -0
- data/docs/ManagementProjectsCreateRequestBody.md +26 -0
- data/docs/ManagementProjectsCreateRequestBodyApiUsageNotifications.md +12 -0
- data/docs/ManagementProjectsCreateRequestBodyUsersItem.md +10 -0
- data/docs/ManagementProjectsCreateRequestBodyWebhooksCalloutNotifications.md +9 -0
- data/docs/ManagementProjectsCreateRequestBodyWebhooksCalloutNotificationsDistributions.md +10 -0
- data/docs/ManagementProjectsCreateRequestBodyWebhooksCalloutNotificationsWebhooks.md +10 -0
- data/docs/ManagementProjectsCreateResponseBody.md +30 -0
- data/docs/ManagementProjectsCreateResponseBodyApiUsageNotifications.md +13 -0
- data/docs/ManagementProjectsCreateResponseBodyClientSideKey.md +9 -0
- data/docs/ManagementProjectsCreateResponseBodyServerSideKey.md +9 -0
- data/docs/ManagementProjectsCreateResponseBodyWebhooksCalloutNotifications.md +9 -0
- data/docs/ManagementProjectsCreateResponseBodyWebhooksCalloutNotificationsDistributions.md +10 -0
- data/docs/ManagementProjectsCreateResponseBodyWebhooksCalloutNotificationsWebhooks.md +10 -0
- data/docs/ManagementProjectsCustomEventSchema.md +13 -0
- data/docs/ManagementProjectsCustomEventSchemaSchema.md +8 -0
- data/docs/ManagementProjectsCustomEventSchemasCreateRequestBody.md +9 -0
- data/docs/ManagementProjectsCustomEventSchemasCreateRequestBodySchema.md +8 -0
- data/docs/ManagementProjectsCustomEventSchemasCreateRequestBodySchemaPropertiesEntry.md +10 -0
- data/docs/ManagementProjectsCustomEventSchemasCreateResponseBody.md +13 -0
- data/docs/ManagementProjectsCustomEventSchemasCreateResponseBodySchema.md +8 -0
- data/docs/ManagementProjectsCustomEventSchemasGetResponseBody.md +13 -0
- data/docs/ManagementProjectsCustomEventSchemasGetResponseBodySchema.md +8 -0
- data/docs/ManagementProjectsCustomEventSchemasListResponseBody.md +11 -0
- data/docs/ManagementProjectsCustomEventSchemasUpdateRequestBody.md +8 -0
- data/docs/ManagementProjectsCustomEventSchemasUpdateRequestBodySchema.md +8 -0
- data/docs/ManagementProjectsCustomEventSchemasUpdateResponseBody.md +13 -0
- data/docs/ManagementProjectsCustomEventSchemasUpdateResponseBodySchema.md +8 -0
- data/docs/ManagementProjectsGetResponseBody.md +30 -0
- data/docs/ManagementProjectsGetResponseBodyApiUsageNotifications.md +13 -0
- data/docs/ManagementProjectsGetResponseBodyDefaultCodeConfig.md +8 -0
- data/docs/ManagementProjectsGetResponseBodyLimits.md +9 -0
- data/docs/ManagementProjectsGetResponseBodyLimitsApiCallsItem.md +9 -0
- data/docs/ManagementProjectsGetResponseBodyLimitsBulkApiCallsItem.md +9 -0
- data/docs/ManagementProjectsGetResponseBodyWebhooksCalloutNotifications.md +9 -0
- data/docs/ManagementProjectsGetResponseBodyWebhooksCalloutNotificationsDistributions.md +10 -0
- data/docs/ManagementProjectsGetResponseBodyWebhooksCalloutNotificationsWebhooks.md +10 -0
- data/docs/ManagementProjectsListResponseBody.md +11 -0
- data/docs/ManagementProjectsMetadataSchema.md +14 -0
- data/docs/ManagementProjectsMetadataSchemaDefinition.md +21 -0
- data/docs/ManagementProjectsMetadataSchemasCreateRequestBody.md +10 -0
- data/docs/ManagementProjectsMetadataSchemasCreateResponseBody.md +14 -0
- data/docs/ManagementProjectsMetadataSchemasGetResponseBody.md +14 -0
- data/docs/ManagementProjectsMetadataSchemasListResponseBody.md +11 -0
- data/docs/ManagementProjectsMetadataSchemasUpdateRequestBody.md +9 -0
- data/docs/ManagementProjectsMetadataSchemasUpdateResponseBody.md +14 -0
- data/docs/ManagementProjectsStackingRules.md +22 -0
- data/docs/ManagementProjectsStackingRulesCreateRequestBody.md +19 -0
- data/docs/ManagementProjectsStackingRulesCreateResponseBody.md +22 -0
- data/docs/ManagementProjectsStackingRulesGetResponseBody.md +22 -0
- data/docs/ManagementProjectsStackingRulesListResponseBody.md +11 -0
- data/docs/ManagementProjectsStackingRulesUpdateRequestBody.md +19 -0
- data/docs/ManagementProjectsStackingRulesUpdateResponseBody.md +22 -0
- data/docs/ManagementProjectsTemplatesCampaignsCopyCreateRequestBody.md +10 -0
- data/docs/ManagementProjectsTemplatesCampaignsCopyCreateResponseBody.md +13 -0
- data/docs/ManagementProjectsTemplatesCampaignsListResponseBody.md +13 -0
- data/docs/ManagementProjectsUpdateRequestBody.md +23 -0
- data/docs/ManagementProjectsUpdateRequestBodyApiUsageNotifications.md +12 -0
- data/docs/ManagementProjectsUpdateRequestBodyDefaultCodeConfig.md +8 -0
- data/docs/ManagementProjectsUpdateRequestBodyWebhooksCalloutNotifications.md +9 -0
- data/docs/ManagementProjectsUpdateRequestBodyWebhooksCalloutNotificationsDistributions.md +10 -0
- data/docs/ManagementProjectsUpdateRequestBodyWebhooksCalloutNotificationsWebhooks.md +10 -0
- data/docs/ManagementProjectsUpdateResponseBody.md +30 -0
- data/docs/ManagementProjectsUpdateResponseBodyApiUsageNotifications.md +13 -0
- data/docs/ManagementProjectsUpdateResponseBodyDefaultCodeConfig.md +8 -0
- data/docs/ManagementProjectsUpdateResponseBodyLimits.md +9 -0
- data/docs/ManagementProjectsUpdateResponseBodyLimitsApiCallsItem.md +9 -0
- data/docs/ManagementProjectsUpdateResponseBodyLimitsBulkApiCallsItem.md +9 -0
- data/docs/ManagementProjectsUpdateResponseBodyWebhooksCalloutNotifications.md +9 -0
- data/docs/ManagementProjectsUpdateResponseBodyWebhooksCalloutNotificationsDistributions.md +10 -0
- data/docs/ManagementProjectsUpdateResponseBodyWebhooksCalloutNotificationsWebhooks.md +10 -0
- data/docs/ManagementProjectsUsersAssignRequestBody.md +10 -0
- data/docs/ManagementProjectsUsersAssignResponseBody.md +14 -0
- data/docs/ManagementProjectsUsersGetUserResponseBody.md +14 -0
- data/docs/ManagementProjectsUsersInviteCreateRequestBody.md +11 -0
- data/docs/ManagementProjectsUsersListResponseBody.md +11 -0
- data/docs/ManagementProjectsUsersUpdateRoleRequestBody.md +8 -0
- data/docs/ManagementProjectsUsersUpdateRoleResponseBody.md +14 -0
- data/docs/ManagementProjectsWebhook.md +13 -0
- data/docs/ManagementProjectsWebhooksCreateRequestBody.md +10 -0
- data/docs/ManagementProjectsWebhooksCreateResponseBody.md +13 -0
- data/docs/ManagementProjectsWebhooksGetResponseBody.md +13 -0
- data/docs/ManagementProjectsWebhooksListResponseBody.md +11 -0
- data/docs/ManagementProjectsWebhooksUpdateRequestBody.md +10 -0
- data/docs/ManagementProjectsWebhooksUpdateResponseBody.md +13 -0
- data/docs/MappingPoints.md +6 -45
- data/docs/MemberActivity.md +12 -0
- data/docs/MetadataSchemaDefinitionDeprecated.md +21 -0
- data/docs/MetadataSchemaDeprecated.md +14 -0
- data/docs/MetadataSchemasApi.md +122 -0
- data/docs/MetadataSchemasGetResponseBody.md +14 -0
- data/docs/MetadataSchemasListResponseBody.md +11 -0
- data/docs/Order.md +5 -9
- data/docs/OrderCalculated.md +10 -10
- data/docs/OrderCalculatedItem.md +28 -0
- data/docs/OrderCalculatedItemProduct.md +13 -0
- data/docs/OrderCalculatedItemSku.md +12 -0
- data/docs/OrderItem.md +5 -5
- data/docs/OrderItemProduct.md +2 -2
- data/docs/OrderItemSku.md +1 -1
- data/docs/OrderRedemptionsEntry.md +15 -0
- data/docs/OrdersApi.md +4 -4
- data/docs/OrdersCreateRequestBody.md +6 -6
- data/docs/OrdersCreateResponseBody.md +10 -10
- data/docs/OrdersExportCreateResponseBody.md +8 -8
- data/docs/OrdersExportCreateResponseBodyParameters.md +10 -0
- data/docs/OrdersGetResponseBody.md +8 -8
- data/docs/OrdersImportCreateRequestBodyItem.md +8 -7
- data/docs/OrdersImportCreateResponseBody.md +1 -1
- data/docs/OrdersListResponseBody.md +4 -4
- data/docs/OrdersUpdateRequestBody.md +7 -6
- data/docs/OrdersUpdateResponseBody.md +10 -10
- data/docs/ParameterActivityCategory.md +7 -0
- data/docs/ParameterCreatedBeforeAfter.md +2 -2
- data/docs/ParameterFiltersListBin.md +12 -0
- data/docs/ParameterFiltersListBinId.md +8 -0
- data/docs/ParameterFiltersListBinResourceId.md +8 -0
- data/docs/ParameterFiltersListBinResourceName.md +8 -0
- data/docs/ParameterFiltersListBinResourceType.md +8 -0
- data/docs/ParameterFiltersListBinResourceTypeConditions.md +15 -0
- data/docs/ParameterFiltersListCampaigns.md +14 -0
- data/docs/ParameterFiltersListCampaignsCampaignStatus.md +8 -0
- data/docs/ParameterFiltersListCampaignsCampaignStatusConditions.md +15 -0
- data/docs/ParameterFiltersListCampaignsCategories.md +8 -0
- data/docs/ParameterFiltersListCampaignsCategoryIds.md +8 -0
- data/docs/ParameterFiltersListCampaignsIsReferralCode.md +9 -0
- data/docs/ParameterFiltersListCampaignsValidityTimeframe.md +8 -0
- data/docs/ParameterFiltersListCampaignsVoucherType.md +8 -0
- data/docs/ParameterFiltersListCustomerRedeemables.md +16 -0
- data/docs/ParameterFiltersListCustomerRedeemablesCampaignId.md +8 -0
- data/docs/ParameterFiltersListCustomerRedeemablesCampaignType.md +8 -0
- data/docs/ParameterFiltersListCustomerRedeemablesCampaignTypeConditions.md +15 -0
- data/docs/ParameterFiltersListCustomerRedeemablesCreatedAt.md +8 -0
- data/docs/ParameterFiltersListCustomerRedeemablesHolderRole.md +8 -0
- data/docs/ParameterFiltersListCustomerRedeemablesHolderRoleConditions.md +15 -0
- data/docs/ParameterFiltersListCustomerRedeemablesId.md +8 -0
- data/docs/ParameterFiltersListCustomerRedeemablesRedeemableId.md +8 -0
- data/docs/ParameterFiltersListCustomerRedeemablesRedeemableObject.md +8 -0
- data/docs/ParameterFiltersListCustomerRedeemablesRedeemableObjectConditions.md +15 -0
- data/docs/ParameterFiltersListCustomerRedeemablesVoucherType.md +8 -0
- data/docs/ParameterFiltersListCustomerRedeemablesVoucherTypeConditions.md +15 -0
- data/docs/ParameterFiltersListLocations.md +10 -0
- data/docs/ParameterFiltersListLocationsCreatedAt.md +8 -0
- data/docs/ParameterFiltersListLocationsName.md +8 -0
- data/docs/ParameterFiltersListLocationsUpdatedAt.md +8 -0
- data/docs/ParameterFiltersListPublications.md +17 -0
- data/docs/ParameterFiltersListPublicationsCampaignName.md +8 -0
- data/docs/ParameterFiltersListPublicationsCustomerId.md +8 -0
- data/docs/ParameterFiltersListPublicationsFailureCode.md +8 -0
- data/docs/ParameterFiltersListPublicationsIsReferralCode.md +8 -0
- data/docs/ParameterFiltersListPublicationsParentObjectId.md +8 -0
- data/docs/ParameterFiltersListPublicationsRelatedObjectId.md +8 -0
- data/docs/ParameterFiltersListPublicationsResult.md +8 -0
- data/docs/ParameterFiltersListPublicationsSourceId.md +8 -0
- data/docs/ParameterFiltersListPublicationsVoucherType.md +8 -0
- data/docs/ParameterFiltersListRedemptions.md +1 -0
- data/docs/ParameterFiltersListRedemptionsCampaignName.md +0 -1
- data/docs/ParameterFiltersListRedemptionsCustomerId.md +0 -1
- data/docs/ParameterFiltersListRedemptionsFailureCode.md +0 -1
- data/docs/ParameterFiltersListRedemptionsObject.md +0 -1
- data/docs/ParameterFiltersListRedemptionsParentRedemptionId.md +0 -1
- data/docs/ParameterFiltersListRedemptionsRelatedObjectId.md +0 -1
- data/docs/ParameterFiltersListRedemptionsRelatedObjectParentId.md +0 -1
- data/docs/ParameterFiltersListRedemptionsResult.md +0 -1
- data/docs/ParameterFiltersListRedemptionsUserLogin.md +0 -1
- data/docs/ParameterFiltersListRedemptionsVoucherCode.md +0 -1
- data/docs/ParameterFiltersListReferralsRedeemableHolders.md +12 -0
- data/docs/ParameterFiltersListReferralsRedeemableHoldersCreatedAt.md +8 -0
- data/docs/ParameterFiltersListReferralsRedeemableHoldersCustomerId.md +8 -0
- data/docs/ParameterFiltersListReferralsRedeemableHoldersHolderRole.md +8 -0
- data/docs/ParameterFiltersListReferralsRedeemableHoldersHolderRoleConditions.md +15 -0
- data/docs/ParameterFiltersListReferralsRedeemableHoldersId.md +8 -0
- data/docs/ParameterFiltersListTemplates.md +11 -0
- data/docs/ParameterFiltersListTemplatesCampaignType.md +8 -0
- data/docs/ParameterFiltersListTemplatesCampaignTypeConditions.md +15 -0
- data/docs/ParameterFiltersListTemplatesId.md +8 -0
- data/docs/ParameterFiltersListTemplatesName.md +8 -0
- data/docs/ParameterOrderCreatedAt.md +7 -0
- data/docs/ParameterOrderListBin.md +7 -0
- data/docs/ParameterOrderListEarningRules.md +7 -0
- data/docs/ParameterOrderListLocations.md +7 -0
- data/docs/ParameterOrderListPromotionTiers.md +7 -0
- data/docs/ParameterOrderListPromotionTiersClientSide.md +7 -0
- data/docs/ParameterOrderListRedeemables.md +7 -0
- data/docs/ParameterOrderListTransactions.md +7 -0
- data/docs/ParameterOrderVouchers.md +7 -0
- data/docs/ParameterTemplatesList.md +7 -0
- data/docs/ParameterUpdatedBeforeAfter.md +2 -2
- data/docs/Product.md +9 -9
- data/docs/ProductCollectionsApi.md +9 -9
- data/docs/ProductCollectionsCreateRequestBody.md +8 -46
- data/docs/ProductCollectionsCreateRequestBodyProductsItem.md +10 -0
- data/docs/ProductCollectionsCreateResponseBody.md +7 -7
- data/docs/ProductCollectionsCreateResponseBodyProductsItem.md +10 -0
- data/docs/ProductCollectionsGetResponseBody.md +7 -7
- data/docs/ProductCollectionsGetResponseBodyProductsItem.md +10 -0
- data/docs/ProductCollectionsItem.md +6 -6
- data/docs/ProductCollectionsItemProductsItem.md +1 -1
- data/docs/ProductCollectionsListResponseBody.md +4 -4
- data/docs/ProductCollectionsProductsListResponseBody.md +4 -4
- data/docs/ProductCollectionsProductsListResponseBodyDataItem.md +21 -0
- data/docs/ProductWithoutSkus.md +9 -9
- data/docs/ProductsApi.md +38 -34
- data/docs/ProductsCreateResponseBody.md +9 -9
- data/docs/ProductsGetResponseBody.md +9 -9
- data/docs/ProductsImportCsvCreateResponseBody.md +1 -1
- data/docs/ProductsListResponseBody.md +4 -4
- data/docs/ProductsMetadataUpdateInBulkRequestBody.md +2 -2
- data/docs/ProductsMetadataUpdateInBulkResponseBody.md +1 -1
- data/docs/ProductsSkusCreateResponseBody.md +11 -11
- data/docs/ProductsSkusListResponseBody.md +4 -4
- data/docs/ProductsSkusUpdateResponseBody.md +11 -11
- data/docs/ProductsUpdateInBulkRequestBody.md +1 -1
- data/docs/ProductsUpdateInBulkResponseBody.md +1 -1
- data/docs/ProductsUpdateResponseBody.md +9 -9
- data/docs/PromotionStack.md +9 -9
- data/docs/PromotionStackBase.md +2 -2
- data/docs/PromotionStackBaseTiers.md +1 -1
- data/docs/PromotionStackTiers.md +9 -0
- data/docs/PromotionTier.md +6 -5
- data/docs/PromotionTierCampaign.md +4 -3
- data/docs/PromotionTierCreateParams.md +5 -4
- data/docs/PromotionTierCreateParamsAction.md +8 -0
- data/docs/PromotionTiersList.md +2 -2
- data/docs/PromotionsApi.md +198 -5
- data/docs/PromotionsStacksCreateRequestBody.md +2 -2
- data/docs/PromotionsStacksCreateRequestBodyTiers.md +9 -0
- data/docs/PromotionsStacksCreateResponseBody.md +8 -8
- data/docs/PromotionsStacksCreateResponseBodyTiers.md +9 -0
- data/docs/PromotionsStacksGetResponseBody.md +9 -9
- data/docs/PromotionsStacksGetResponseBodyTiers.md +9 -0
- data/docs/PromotionsStacksListResponseBody.md +4 -4
- data/docs/PromotionsStacksUpdateRequestBodyTiers.md +1 -1
- data/docs/PromotionsStacksUpdateResponseBody.md +9 -9
- data/docs/PromotionsStacksUpdateResponseBodyTiers.md +9 -0
- data/docs/PromotionsTiersCreateRequestBody.md +21 -0
- data/docs/PromotionsTiersCreateRequestBodyAction.md +8 -0
- data/docs/PromotionsTiersCreateResponseBody.md +29 -0
- data/docs/PromotionsTiersCreateResponseBodyAction.md +8 -0
- data/docs/PromotionsTiersCreateResponseBodyCampaign.md +16 -0
- data/docs/PromotionsTiersCreateResponseBodySummary.md +9 -0
- data/docs/PromotionsTiersCreateResponseBodySummaryOrders.md +9 -0
- data/docs/PromotionsTiersCreateResponseBodySummaryRedemptions.md +8 -0
- data/docs/PromotionsTiersDisableResponseBody.md +9 -8
- data/docs/PromotionsTiersDisableResponseBodyAction.md +8 -0
- data/docs/PromotionsTiersDisableResponseBodyCampaign.md +16 -0
- data/docs/PromotionsTiersDisableResponseBodySummary.md +9 -0
- data/docs/PromotionsTiersDisableResponseBodySummaryOrders.md +9 -0
- data/docs/PromotionsTiersDisableResponseBodySummaryRedemptions.md +8 -0
- data/docs/PromotionsTiersEnableResponseBody.md +9 -8
- data/docs/PromotionsTiersEnableResponseBodyAction.md +8 -0
- data/docs/PromotionsTiersEnableResponseBodyCampaign.md +16 -0
- data/docs/PromotionsTiersEnableResponseBodySummary.md +9 -0
- data/docs/PromotionsTiersEnableResponseBodySummaryOrders.md +9 -0
- data/docs/PromotionsTiersEnableResponseBodySummaryRedemptions.md +8 -0
- data/docs/PromotionsTiersGetResponseBody.md +9 -8
- data/docs/PromotionsTiersGetResponseBodyAction.md +8 -0
- data/docs/PromotionsTiersGetResponseBodyCampaign.md +16 -0
- data/docs/PromotionsTiersGetResponseBodySummary.md +9 -0
- data/docs/PromotionsTiersGetResponseBodySummaryOrders.md +9 -0
- data/docs/PromotionsTiersGetResponseBodySummaryRedemptions.md +8 -0
- data/docs/PromotionsTiersListResponseBody.md +2 -2
- data/docs/PromotionsTiersUpdateRequestBody.md +20 -0
- data/docs/PromotionsTiersUpdateRequestBodyAction.md +8 -0
- data/docs/PromotionsTiersUpdateResponseBody.md +29 -0
- data/docs/PromotionsTiersUpdateResponseBodyAction.md +8 -0
- data/docs/PromotionsTiersUpdateResponseBodyCampaign.md +16 -0
- data/docs/PromotionsTiersUpdateResponseBodySummary.md +9 -0
- data/docs/PromotionsTiersUpdateResponseBodySummaryOrders.md +9 -0
- data/docs/PromotionsTiersUpdateResponseBodySummaryRedemptions.md +8 -0
- data/docs/PublicationsApi.md +10 -10
- data/docs/PublicationsCreateRequestBody.md +10 -46
- data/docs/PublicationsCreateResponseBody.md +17 -46
- data/docs/PublicationsListResponseBody.md +4 -4
- data/docs/PublicationsListResponseBodyPublicationsItem.md +19 -48
- data/docs/PublicationsListResponseBodyPublicationsItemMetadata.md +10 -0
- data/docs/QualificationsApi.md +1 -1
- data/docs/QualificationsCheckEligibilityRequestBody.md +1 -2
- data/docs/QualificationsFiltersCondition.md +6 -6
- data/docs/QualificationsOption.md +1 -1
- data/docs/QualificationsOptionFilters.md +2 -0
- data/docs/QualificationsOptionFiltersCampaignType.md +8 -0
- data/docs/QualificationsOptionFiltersCampaignTypeConditions.md +11 -0
- data/docs/QualificationsOptionFiltersHolderRole.md +8 -0
- data/docs/QualificationsOptionFiltersHolderRoleConditions.md +11 -0
- data/docs/QualificationsOptionFiltersResourceTypeConditions.md +4 -4
- data/docs/QualificationsRedeemable.md +2 -2
- data/docs/QualificationsRedeemableBase.md +2 -2
- data/docs/QualificationsRedeemables.md +6 -6
- data/docs/RedeemableHolder.md +18 -0
- data/docs/RedeemableLoyaltyCard.md +1 -1
- data/docs/RedeemableVoucher.md +35 -0
- data/docs/RedeemableVoucherGift.md +10 -0
- data/docs/RedeemableVoucherLoyaltyCard.md +11 -0
- data/docs/RedeemableVoucherPublish.md +10 -0
- data/docs/RedeemableVoucherRedemption.md +12 -0
- data/docs/Redemption.md +16 -16
- data/docs/RedemptionChannel.md +2 -2
- data/docs/RedemptionEntry.md +31 -0
- data/docs/RedemptionEntryChannel.md +9 -0
- data/docs/RedemptionEntryCustomer.md +13 -0
- data/docs/RedemptionEntryGift.md +8 -0
- data/docs/RedemptionEntryLoyaltyCard.md +8 -0
- data/docs/RedemptionEntryOrder.md +29 -0
- data/docs/RedemptionEntryOrderCustomer.md +9 -0
- data/docs/RedemptionEntryOrderReferrer.md +9 -0
- data/docs/RedemptionEntryPromotionTier.md +29 -0
- data/docs/RedemptionEntryPromotionTierAction.md +8 -0
- data/docs/RedemptionEntryPromotionTierCampaign.md +16 -0
- data/docs/RedemptionEntryPromotionTierSummary.md +9 -0
- data/docs/RedemptionEntryPromotionTierSummaryOrders.md +9 -0
- data/docs/RedemptionEntryPromotionTierSummaryRedemptions.md +8 -0
- data/docs/RedemptionEntryRelatedRedemptions.md +9 -0
- data/docs/RedemptionEntryRelatedRedemptionsRedemptionsItem.md +9 -0
- data/docs/RedemptionEntryRelatedRedemptionsRollbacksItem.md +9 -0
- data/docs/RedemptionEntryVoucher.md +37 -0
- data/docs/RedemptionEntryVoucherGift.md +10 -0
- data/docs/RedemptionEntryVoucherLoyaltyCard.md +11 -0
- data/docs/RedemptionEntryVoucherPublish.md +10 -0
- data/docs/RedemptionEntryVoucherRedemption.md +12 -0
- data/docs/RedemptionGift.md +1 -1
- data/docs/RedemptionLoyaltyCard.md +1 -1
- data/docs/RedemptionRelatedRedemptions.md +1 -1
- data/docs/RedemptionRelatedRedemptionsRedemptionsItem.md +9 -0
- data/docs/RedemptionRelatedRedemptionsRollbacksItem.md +1 -1
- data/docs/RedemptionRewardResult.md +9 -8
- data/docs/RedemptionRewardResultParametersProduct.md +1 -1
- data/docs/RedemptionRollback.md +17 -17
- data/docs/RedemptionRollbackChannel.md +9 -0
- data/docs/RedemptionRollbackGift.md +8 -0
- data/docs/RedemptionRollbackLoyaltyCard.md +8 -0
- data/docs/RedemptionRollbackRelatedRedemptions.md +1 -1
- data/docs/RedemptionRollbackRelatedRedemptionsRedemptionsItem.md +9 -0
- data/docs/RedemptionRollbackRelatedRedemptionsRollbacksItem.md +2 -2
- data/docs/RedemptionVoucher.md +37 -0
- data/docs/RedemptionVoucherGift.md +10 -0
- data/docs/RedemptionVoucherLoyaltyCard.md +11 -0
- data/docs/RedemptionVoucherPublish.md +10 -0
- data/docs/RedemptionVoucherRedemption.md +12 -0
- data/docs/RedemptionsApi.md +7 -7
- data/docs/RedemptionsGetResponseBody.md +28 -46
- data/docs/RedemptionsGetResponseBodyChannel.md +9 -0
- data/docs/RedemptionsGetResponseBodyCustomer.md +13 -0
- data/docs/RedemptionsGetResponseBodyGift.md +8 -0
- data/docs/RedemptionsGetResponseBodyLoyaltyCard.md +8 -0
- data/docs/RedemptionsGetResponseBodyOrder.md +29 -0
- data/docs/RedemptionsGetResponseBodyOrderCustomer.md +9 -0
- data/docs/RedemptionsGetResponseBodyOrderReferrer.md +9 -0
- data/docs/RedemptionsGetResponseBodyPromotionTier.md +29 -0
- data/docs/RedemptionsGetResponseBodyPromotionTierAction.md +8 -0
- data/docs/RedemptionsGetResponseBodyPromotionTierCampaign.md +16 -0
- data/docs/RedemptionsGetResponseBodyPromotionTierSummary.md +9 -0
- data/docs/RedemptionsGetResponseBodyPromotionTierSummaryOrders.md +9 -0
- data/docs/RedemptionsGetResponseBodyPromotionTierSummaryRedemptions.md +8 -0
- data/docs/RedemptionsGetResponseBodyRelatedRedemptions.md +9 -0
- data/docs/RedemptionsGetResponseBodyRelatedRedemptionsRedemptionsItem.md +9 -0
- data/docs/RedemptionsGetResponseBodyRelatedRedemptionsRollbacksItem.md +9 -0
- data/docs/RedemptionsGetResponseBodyVoucher.md +37 -0
- data/docs/RedemptionsGetResponseBodyVoucherGift.md +10 -0
- data/docs/RedemptionsGetResponseBodyVoucherLoyaltyCard.md +11 -0
- data/docs/RedemptionsGetResponseBodyVoucherPublish.md +10 -0
- data/docs/RedemptionsGetResponseBodyVoucherRedemption.md +12 -0
- data/docs/RedemptionsListResponseBody.md +4 -4
- data/docs/RedemptionsListResponseBodyRedemptionsItem.md +28 -46
- data/docs/RedemptionsListResponseBodyRedemptionsItemChannel.md +9 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemCustomer.md +13 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemGift.md +8 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemLoyaltyCard.md +8 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemOrder.md +29 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemOrderCustomer.md +9 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemOrderReferrer.md +9 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemPromotionTier.md +29 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemPromotionTierAction.md +8 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemPromotionTierCampaign.md +16 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemPromotionTierSummary.md +9 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemPromotionTierSummaryOrders.md +9 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemPromotionTierSummaryRedemptions.md +8 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemRelatedRedemptions.md +9 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemRelatedRedemptionsRedemptionsItem.md +9 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemRelatedRedemptionsRollbacksItem.md +9 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemVoucher.md +37 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemVoucherGift.md +10 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemVoucherLoyaltyCard.md +11 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemVoucherPublish.md +10 -0
- data/docs/RedemptionsListResponseBodyRedemptionsItemVoucherRedemption.md +12 -0
- data/docs/RedemptionsRedeemRequestBody.md +2 -2
- data/docs/RedemptionsRedeemRequestBodyOptions.md +8 -0
- data/docs/RedemptionsRedeemRequestBodyRedeemablesItem.md +11 -0
- data/docs/RedemptionsRedeemRequestBodyRedeemablesItemGift.md +8 -0
- data/docs/RedemptionsRedeemRequestBodyRedeemablesItemReward.md +9 -0
- data/docs/RedemptionsRollbackCreateResponseBody.md +18 -18
- data/docs/RedemptionsRollbackCreateResponseBodyChannel.md +9 -0
- data/docs/RedemptionsRollbackCreateResponseBodyGift.md +8 -0
- data/docs/RedemptionsRollbackCreateResponseBodyLoyaltyCard.md +8 -0
- data/docs/RedemptionsRollbackCreateResponseBodyRelatedRedemptions.md +9 -0
- data/docs/RedemptionsRollbackCreateResponseBodyRelatedRedemptionsRedemptionsItem.md +9 -0
- data/docs/RedemptionsRollbackCreateResponseBodyRelatedRedemptionsRollbacksItem.md +9 -0
- data/docs/RedemptionsRollbacksCreateResponseBody.md +1 -1
- data/docs/ReferralsApi.md +397 -0
- data/docs/ReferralsMembersHoldersCreateInBulkRequestBody.md +9 -0
- data/docs/ReferralsMembersHoldersCreateInBulkResponseBody.md +8 -0
- data/docs/ReferralsMembersHoldersListResponseBody.md +13 -0
- data/docs/Referrer.md +2 -2
- data/docs/ReferrerAddress.md +13 -0
- data/docs/ReferrerId.md +2 -2
- data/docs/Reward.md +9 -9
- data/docs/RewardAssignment.md +8 -8
- data/docs/RewardAssignmentParameters.md +1 -1
- data/docs/RewardAssignmentParametersLoyalty.md +9 -0
- data/docs/RewardType.md +6 -47
- data/docs/RewardTypeCampaign.md +3 -1
- data/docs/RewardTypeCoin.md +2 -1
- data/docs/RewardTypeProduct.md +9 -0
- data/docs/RewardsApi.md +253 -5
- data/docs/RewardsAssignmentsCreateRequestBody.md +6 -45
- data/docs/RewardsAssignmentsCreateRequestBodyParameters.md +8 -0
- data/docs/RewardsAssignmentsCreateRequestBodyParametersLoyalty.md +9 -0
- data/docs/RewardsAssignmentsCreateResponseBody.md +8 -8
- data/docs/RewardsAssignmentsCreateResponseBodyParameters.md +8 -0
- data/docs/RewardsAssignmentsCreateResponseBodyParametersLoyalty.md +9 -0
- data/docs/RewardsAssignmentsGetResponseBody.md +8 -8
- data/docs/RewardsAssignmentsGetResponseBodyParameters.md +8 -0
- data/docs/RewardsAssignmentsGetResponseBodyParametersLoyalty.md +9 -0
- data/docs/RewardsAssignmentsListResponseBody.md +4 -4
- data/docs/RewardsAssignmentsUpdateRequestBodyParametersLoyalty.md +1 -0
- data/docs/RewardsAssignmentsUpdateResponseBody.md +8 -8
- data/docs/RewardsAssignmentsUpdateResponseBodyParameters.md +8 -0
- data/docs/RewardsAssignmentsUpdateResponseBodyParametersLoyalty.md +9 -0
- data/docs/RewardsCreateRequestBody.md +12 -0
- data/docs/RewardsCreateRequestBodyAttributes.md +9 -0
- data/docs/RewardsCreateRequestBodyParameters.md +10 -0
- data/docs/RewardsCreateRequestBodyParametersCampaign.md +9 -0
- data/docs/RewardsCreateRequestBodyParametersCoin.md +9 -0
- data/docs/RewardsCreateRequestBodyParametersProduct.md +9 -0
- data/docs/RewardsCreateResponseBody.md +18 -0
- data/docs/RewardsCreateResponseBodyAttributes.md +9 -0
- data/docs/RewardsListResponseBody.md +11 -0
- data/docs/RewardsUpdateRequestBody.md +12 -0
- data/docs/RewardsUpdateRequestBodyAttributes.md +9 -0
- data/docs/RewardsUpdateRequestBodyParameters.md +10 -0
- data/docs/RewardsUpdateRequestBodyParametersCampaign.md +9 -0
- data/docs/RewardsUpdateRequestBodyParametersCoin.md +9 -0
- data/docs/RewardsUpdateRequestBodyParametersProduct.md +9 -0
- data/docs/RewardsUpdateResponseBody.md +18 -0
- data/docs/RewardsUpdateResponseBodyAttributes.md +9 -0
- data/docs/SegmentsApi.md +120 -0
- data/docs/SegmentsCreateRequestBody.md +11 -0
- data/docs/SegmentsCreateResponseBody.md +14 -0
- data/docs/SegmentsGetResponseBody.md +14 -0
- data/docs/Session.md +2 -2
- data/docs/SimpleCustomer.md +4 -4
- data/docs/SimpleCustomerRequiredObjectType.md +2 -2
- data/docs/SimpleLoyaltyCard.md +11 -0
- data/docs/SimpleProductDiscountUnit.md +2 -2
- data/docs/SimpleSegment.md +3 -3
- data/docs/SimpleSkuDiscountUnit.md +2 -2
- data/docs/SimpleVoucher.md +16 -8
- data/docs/SimpleVoucherRedemption.md +9 -0
- data/docs/Sku.md +11 -11
- data/docs/SkusGetResponseBody.md +11 -11
- data/docs/SkusImportCsvCreateResponseBody.md +1 -1
- data/docs/SkusListForProduct.md +4 -4
- data/docs/StackingRules.md +8 -5
- data/docs/TemplatesApi.md +443 -0
- data/docs/TemplatesCampaignsCampaignSetupCreateRequestBody.md +24 -0
- data/docs/TemplatesCampaignsCampaignSetupCreateRequestBodyVoucher.md +9 -0
- data/docs/TemplatesCampaignsCampaignSetupCreateRequestBodyVoucherRedemption.md +8 -0
- data/docs/TemplatesCampaignsCampaignSetupCreateResponseBody.md +10 -0
- data/docs/TemplatesCampaignsCampaignSetupCreateResponseBodyCreatedResourcesItem.md +9 -0
- data/docs/TemplatesCampaignsCreateRequestBody.md +11 -0
- data/docs/TemplatesCampaignsCreateTemplateResponseBody.md +13 -0
- data/docs/TemplatesCampaignsGetResponseBody.md +14 -0
- data/docs/TemplatesCampaignsListResponseBody.md +13 -0
- data/docs/TemplatesCampaignsTierSetupCreateRequestBody.md +20 -0
- data/docs/TemplatesCampaignsTierSetupCreateResponseBody.md +10 -0
- data/docs/TemplatesCampaignsTierSetupCreateResponseBodyCreatedResourcesItem.md +9 -0
- data/docs/TemplatesCampaignsUpdateRequestBody.md +9 -0
- data/docs/TemplatesCampaignsUpdateResponseBody.md +14 -0
- data/docs/TrashBinItem.md +15 -0
- data/docs/TrashBinListResponseBody.md +13 -0
- data/docs/UsageNotifications.md +11 -0
- data/docs/User.md +14 -0
- data/docs/ValidationRule.md +10 -10
- data/docs/ValidationRuleApplicableTo.md +10 -0
- data/docs/ValidationRuleAssignment.md +6 -6
- data/docs/ValidationRuleAssignmentsList.md +4 -4
- data/docs/ValidationRuleError.md +8 -0
- data/docs/ValidationRulesApi.md +13 -13
- data/docs/ValidationRulesAssignmentsCreateRequestBody.md +2 -2
- data/docs/ValidationRulesAssignmentsCreateResponseBody.md +6 -6
- data/docs/ValidationRulesAssignmentsList.md +4 -4
- data/docs/ValidationRulesAssignmentsListResponseBody.md +4 -4
- data/docs/ValidationRulesCreateRequestBody.md +4 -4
- data/docs/ValidationRulesCreateRequestBodyApplicableTo.md +10 -0
- data/docs/ValidationRulesCreateRequestBodyError.md +8 -0
- data/docs/ValidationRulesCreateResponseBody.md +10 -10
- data/docs/ValidationRulesCreateResponseBodyApplicableTo.md +10 -0
- data/docs/ValidationRulesCreateResponseBodyError.md +8 -0
- data/docs/ValidationRulesGetResponseBody.md +10 -10
- data/docs/ValidationRulesGetResponseBodyApplicableTo.md +10 -0
- data/docs/ValidationRulesGetResponseBodyError.md +8 -0
- data/docs/ValidationRulesListResponseBody.md +4 -4
- data/docs/ValidationRulesUpdateRequestBody.md +3 -3
- data/docs/ValidationRulesUpdateRequestBodyApplicableTo.md +10 -0
- data/docs/ValidationRulesUpdateRequestBodyError.md +8 -0
- data/docs/ValidationRulesUpdateResponseBody.md +10 -10
- data/docs/ValidationRulesUpdateResponseBodyApplicableTo.md +10 -0
- data/docs/ValidationRulesUpdateResponseBodyError.md +8 -0
- data/docs/ValidationsApi.md +1 -1
- data/docs/ValidationsRedeemableInapplicable.md +2 -0
- data/docs/ValidationsRedeemableInapplicableResult.md +1 -0
- data/docs/ValidationsRedeemableInapplicableResultDetails.md +9 -0
- data/docs/ValidationsRedeemableSkipped.md +3 -1
- data/docs/ValidationsRedeemableSkippedResult.md +8 -0
- data/docs/ValidationsRedeemableSkippedResultDetails.md +9 -0
- data/docs/ValidationsValidateRequestBody.md +2 -2
- data/docs/ValidationsValidateRequestBodyOptions.md +8 -0
- data/docs/ValidationsValidateRequestBodyRedeemablesItem.md +11 -0
- data/docs/ValidationsValidateRequestBodyRedeemablesItemGift.md +8 -0
- data/docs/ValidationsValidateRequestBodyRedeemablesItemReward.md +9 -0
- data/docs/ValidationsValidateResponseBody.md +4 -3
- data/docs/ValidationsValidateResponseBodyRedeemablesItem.md +16 -0
- data/docs/ValidationsValidateResponseBodyRedeemablesItemResult.md +12 -0
- data/docs/ValidationsValidateResponseBodyRedeemablesItemResultDetails.md +9 -0
- data/docs/ValidationsValidateResponseBodyRedeemablesItemResultDiscount.md +24 -0
- data/docs/ValidationsValidateResponseBodyRedeemablesItemResultDiscountProduct.md +10 -0
- data/docs/ValidationsValidateResponseBodyRedeemablesItemResultGift.md +8 -0
- data/docs/ValidationsValidateResponseBodyRedeemablesItemResultLoyaltyCard.md +8 -0
- data/docs/ValidityHours.md +8 -0
- data/docs/ValidityHoursDailyItem.md +10 -0
- data/docs/ValidityTimeframe.md +9 -0
- data/docs/Voucher.md +9 -10
- data/docs/VoucherAssets.md +2 -2
- data/docs/VoucherAssetsBarcode.md +9 -0
- data/docs/VoucherAssetsQr.md +9 -0
- data/docs/VoucherLoyaltyCard.md +1 -1
- data/docs/VoucherPublish.md +2 -2
- data/docs/VoucherRedemption.md +2 -3
- data/docs/VoucherTransaction.md +9 -9
- data/docs/VoucherTransactionDetailsBalance.md +6 -6
- data/docs/VoucherTransactionDetailsBalanceRelatedObject.md +2 -2
- data/docs/VoucherTransactionDetailsCustomEvent.md +2 -2
- data/docs/VoucherTransactionDetailsEarningRule.md +2 -2
- data/docs/VoucherTransactionDetailsEarningRuleSource.md +1 -1
- data/docs/VoucherTransactionDetailsEvent.md +2 -2
- data/docs/VoucherTransactionDetailsEventSchema.md +2 -2
- data/docs/VoucherTransactionDetailsLoyaltyTier.md +2 -2
- data/docs/VoucherTransactionDetailsOrder.md +2 -2
- data/docs/VoucherTransactionDetailsRedemption.md +1 -1
- data/docs/VoucherTransactionDetailsReward.md +2 -2
- data/docs/VoucherTransactionDetailsRollback.md +1 -1
- data/docs/VoucherTransactionDetailsSegment.md +2 -2
- data/docs/VoucherTransactionsExportFilterConditions.md +1 -1
- data/docs/VoucherTransactionsExportFilterConditionsVoucherId.md +1 -1
- data/docs/VoucherTransactionsExportFilterConditionsVoucherIdConditions.md +1 -1
- data/docs/VoucherTransactionsExportParameters.md +1 -1
- data/docs/VoucherTransactionsFilters.md +1 -1
- data/docs/VoucherWithCategories.md +35 -0
- data/docs/VoucherWithCategoriesGift.md +10 -0
- data/docs/VoucherWithCategoriesLoyaltyCard.md +11 -0
- data/docs/VoucherWithCategoriesPublish.md +10 -0
- data/docs/VoucherWithCategoriesRedemption.md +12 -0
- data/docs/VouchersApi.md +459 -12
- data/docs/VouchersBalanceUpdateRequestBody.md +2 -2
- data/docs/VouchersBalanceUpdateResponseBody.md +7 -7
- data/docs/VouchersBalanceUpdateResponseBodyRelatedObject.md +2 -2
- data/docs/VouchersCreateResponseBody.md +36 -0
- data/docs/VouchersCreateResponseBodyGift.md +10 -0
- data/docs/VouchersCreateResponseBodyLoyaltyCard.md +11 -0
- data/docs/VouchersCreateResponseBodyPublish.md +10 -0
- data/docs/VouchersCreateResponseBodyRedemption.md +12 -0
- data/docs/VouchersCreateWithSpecificCodeRequestBody.md +25 -0
- data/docs/VouchersCreateWithSpecificCodeRequestBodyRedemption.md +8 -0
- data/docs/VouchersDisableResponseBody.md +12 -13
- data/docs/VouchersDisableResponseBodyGift.md +10 -0
- data/docs/VouchersDisableResponseBodyLoyaltyCard.md +11 -0
- data/docs/VouchersDisableResponseBodyPublish.md +10 -0
- data/docs/VouchersDisableResponseBodyRedemption.md +12 -0
- data/docs/VouchersEnableResponseBody.md +12 -13
- data/docs/VouchersEnableResponseBodyGift.md +10 -0
- data/docs/VouchersEnableResponseBodyLoyaltyCard.md +11 -0
- data/docs/VouchersEnableResponseBodyPublish.md +10 -0
- data/docs/VouchersEnableResponseBodyRedemption.md +12 -0
- data/docs/VouchersGetResponseBody.md +12 -13
- data/docs/VouchersGetResponseBodyGift.md +10 -0
- data/docs/VouchersGetResponseBodyLoyaltyCard.md +11 -0
- data/docs/VouchersGetResponseBodyPublish.md +10 -0
- data/docs/VouchersGetResponseBodyRedemption.md +12 -0
- data/docs/VouchersImportCreateItemRequestBody.md +20 -0
- data/docs/VouchersImportCreateItemRequestBodyRedemption.md +8 -0
- data/docs/VouchersImportCreateResponseBody.md +8 -0
- data/docs/VouchersImportCsvCreateResponseBody.md +1 -1
- data/docs/VouchersListResponseBody.md +11 -0
- data/docs/VouchersMetadataUpdateInBulkRequestBody.md +9 -0
- data/docs/VouchersMetadataUpdateInBulkResponseBody.md +8 -0
- data/docs/VouchersRedemptionGetResponseBody.md +7 -7
- data/docs/VouchersTransactionsExportCreateResponseBody.md +8 -8
- data/docs/VouchersTransactionsExportCreateResponseBodyResult.md +8 -0
- data/docs/VouchersTransactionsListResponseBody.md +5 -4
- data/docs/VouchersUpdateInBulkItemRequestBody.md +9 -0
- data/docs/VouchersUpdateInBulkResponseBody.md +8 -0
- data/docs/VouchersUpdateRequestBody.md +21 -0
- data/docs/VouchersUpdateResponseBody.md +36 -0
- data/docs/VouchersUpdateResponseBodyGift.md +10 -0
- data/docs/VouchersUpdateResponseBodyLoyaltyCard.md +11 -0
- data/docs/VouchersUpdateResponseBodyPublish.md +10 -0
- data/docs/VouchersUpdateResponseBodyRedemption.md +12 -0
- data/lib/VoucherifySdk/api/async_actions_api.rb +144 -0
- data/lib/VoucherifySdk/api/bin_api.rb +148 -0
- data/lib/VoucherifySdk/api/campaigns_api.rb +26 -79
- data/lib/VoucherifySdk/api/categories_api.rb +0 -12
- data/lib/VoucherifySdk/api/client_side_api.rb +69 -77
- data/lib/VoucherifySdk/api/customers_api.rb +191 -150
- data/lib/VoucherifySdk/api/exports_api.rb +7 -31
- data/lib/VoucherifySdk/api/locations_api.rb +150 -0
- data/lib/VoucherifySdk/api/loyalties_api.rb +1315 -337
- data/lib/VoucherifySdk/api/management_api.rb +2407 -0
- data/lib/VoucherifySdk/api/metadata_schemas_api.rb +138 -0
- data/lib/VoucherifySdk/api/orders_api.rb +4 -24
- data/lib/VoucherifySdk/api/product_collections_api.rb +8 -44
- data/lib/VoucherifySdk/api/products_api.rb +40 -112
- data/lib/VoucherifySdk/api/promotions_api.rb +205 -68
- data/lib/VoucherifySdk/api/publications_api.rb +8 -24
- data/lib/VoucherifySdk/api/qualifications_api.rb +2 -2
- data/lib/VoucherifySdk/api/redemptions_api.rb +8 -36
- data/lib/VoucherifySdk/api/referrals_api.rb +420 -0
- data/lib/VoucherifySdk/api/rewards_api.rb +259 -52
- data/lib/VoucherifySdk/api/segments_api.rb +123 -4
- data/lib/VoucherifySdk/api/templates_api.rb +472 -0
- data/lib/VoucherifySdk/api/validation_rules_api.rb +12 -76
- data/lib/VoucherifySdk/api/vouchers_api.rb +495 -70
- data/lib/VoucherifySdk/api_client.rb +22 -1
- data/lib/VoucherifySdk/configuration.rb +14 -0
- data/lib/VoucherifySdk/models/access_settings_campaign_assignments_list.rb +280 -0
- data/lib/VoucherifySdk/models/applicable_to.rb +54 -45
- data/lib/VoucherifySdk/models/applicable_to_effect.rb +6 -4
- data/lib/VoucherifySdk/models/applicable_to_result_list.rb +8 -69
- data/lib/VoucherifySdk/models/area_store_campaign_assignment.rb +280 -0
- data/lib/VoucherifySdk/models/async_action_base.rb +347 -0
- data/lib/VoucherifySdk/models/async_action_get_response_body.rb +357 -0
- data/lib/VoucherifySdk/models/async_actions_list_response_body.rb +263 -0
- data/lib/VoucherifySdk/models/bus_val_rule_assignment.rb +11 -62
- data/lib/VoucherifySdk/models/campaign.rb +63 -157
- data/lib/VoucherifySdk/models/campaign_base.rb +51 -147
- data/lib/VoucherifySdk/models/campaign_loyalty_card.rb +2 -14
- data/lib/VoucherifySdk/models/campaign_loyalty_card_expiration_rules.rb +31 -34
- data/lib/VoucherifySdk/models/campaign_loyalty_voucher.rb +2 -22
- data/lib/VoucherifySdk/models/campaign_loyalty_voucher_redemption.rb +0 -7
- data/lib/VoucherifySdk/models/campaign_template.rb +303 -0
- data/lib/VoucherifySdk/models/campaign_voucher.rb +53 -33
- data/lib/VoucherifySdk/models/campaign_voucher_redemption.rb +0 -9
- data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +425 -82
- data/lib/VoucherifySdk/models/campaigns_create_request_body_promotion.rb +210 -0
- data/lib/VoucherifySdk/models/campaigns_create_request_body_voucher.rb +289 -0
- data/lib/VoucherifySdk/models/campaigns_create_request_body_voucher_redemption.rb +209 -0
- data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +64 -158
- data/lib/VoucherifySdk/models/campaigns_delete_response_body.rb +1 -7
- data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +64 -158
- data/lib/VoucherifySdk/models/campaigns_import_create_response_body.rb +2 -22
- data/lib/VoucherifySdk/models/campaigns_import_csv_create_response_body.rb +2 -22
- data/lib/VoucherifySdk/models/campaigns_import_voucher_item.rb +47 -55
- data/lib/VoucherifySdk/models/campaigns_import_voucher_item_redemption.rb +1 -8
- data/lib/VoucherifySdk/models/campaigns_list_response_body.rb +6 -9
- data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +392 -82
- data/lib/VoucherifySdk/models/campaigns_update_request_body_options.rb +209 -0
- data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +64 -158
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body.rb +543 -0
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_gift.rb +256 -0
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_publish.rb +234 -0
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_in_bulk_request_body.rb +32 -39
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_in_bulk_request_body_redemption.rb +210 -0
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_request_body.rb +8 -16
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_request_body_redemption.rb +210 -0
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body.rb +71 -85
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_gift.rb +256 -0
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_publish.rb +234 -0
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/categories_create_request_body.rb +7 -21
- data/lib/VoucherifySdk/models/categories_create_response_body.rb +11 -51
- data/lib/VoucherifySdk/models/categories_get_response_body.rb +18 -86
- data/lib/VoucherifySdk/models/categories_list_response_body.rb +6 -53
- data/lib/VoucherifySdk/models/categories_update_request_body.rb +7 -21
- data/lib/VoucherifySdk/models/categories_update_response_body.rb +13 -59
- data/lib/VoucherifySdk/models/category.rb +17 -78
- data/lib/VoucherifySdk/models/category_with_stacking_rules_type.rb +309 -0
- data/lib/VoucherifySdk/models/client_events_create_request_body.rb +9 -37
- data/lib/VoucherifySdk/models/client_events_create_request_body_loyalty.rb +1 -14
- data/lib/VoucherifySdk/models/client_events_create_request_body_referral.rb +2 -14
- data/lib/VoucherifySdk/models/client_events_create_response_body.rb +18 -39
- data/lib/VoucherifySdk/models/client_promotions_tiers_list_response_body.rb +260 -0
- data/lib/VoucherifySdk/models/client_qualifications_check_eligibility_request_body.rb +6 -42
- data/lib/VoucherifySdk/models/client_qualifications_check_eligibility_response_body.rb +2 -8
- data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body.rb +19 -65
- data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body_options.rb +234 -0
- data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body_redeemables_item.rb +260 -0
- data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body_redeemables_item_gift.rb +210 -0
- data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body_redeemables_item_reward.rb +221 -0
- data/lib/VoucherifySdk/models/client_redemptions_redeem_response_body.rb +4 -8
- data/lib/VoucherifySdk/models/client_validations_validate_request_body.rb +19 -65
- data/lib/VoucherifySdk/models/client_validations_validate_request_body_options.rb +234 -0
- data/lib/VoucherifySdk/models/client_validations_validate_request_body_redeemables_item.rb +260 -0
- data/lib/VoucherifySdk/models/client_validations_validate_request_body_redeemables_item_gift.rb +210 -0
- data/lib/VoucherifySdk/models/client_validations_validate_request_body_redeemables_item_reward.rb +221 -0
- data/lib/VoucherifySdk/models/client_validations_validate_response_body.rb +26 -34
- data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item.rb +312 -0
- data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result.rb +244 -0
- data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_details.rb +216 -0
- data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_discount.rb +400 -0
- data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_discount_product.rb +231 -0
- data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_gift.rb +210 -0
- data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_loyalty_card.rb +209 -0
- data/lib/VoucherifySdk/models/code_config.rb +8 -9
- data/lib/VoucherifySdk/models/create_publication_campaign.rb +2 -32
- data/lib/VoucherifySdk/models/customer.rb +35 -40
- data/lib/VoucherifySdk/models/customer_activity.rb +20 -48
- data/lib/VoucherifySdk/models/customer_address.rb +265 -0
- data/lib/VoucherifySdk/models/customer_id.rb +3 -30
- data/lib/VoucherifySdk/models/customer_loyalty.rb +4 -29
- data/lib/VoucherifySdk/models/customer_loyalty_campaigns_entry.rb +229 -0
- data/lib/VoucherifySdk/models/customer_redeemable.rb +342 -0
- data/lib/VoucherifySdk/models/customer_redeemable_redeemable.rb +263 -0
- data/lib/VoucherifySdk/models/customer_referrals.rb +2 -21
- data/lib/VoucherifySdk/models/customer_referrals_campaigns_item.rb +0 -7
- data/lib/VoucherifySdk/models/customer_summary.rb +0 -7
- data/lib/VoucherifySdk/models/customer_summary_orders.rb +5 -35
- data/lib/VoucherifySdk/models/customer_summary_redemptions.rb +8 -63
- data/lib/VoucherifySdk/models/customer_summary_redemptions_gift.rb +2 -17
- data/lib/VoucherifySdk/models/customer_summary_redemptions_loyalty_card.rb +2 -21
- data/lib/VoucherifySdk/models/customer_with_summary_loyalty_referrals.rb +101 -125
- data/lib/VoucherifySdk/models/customer_with_summary_loyalty_referrals_address.rb +265 -0
- data/lib/VoucherifySdk/models/customer_with_summary_loyalty_referrals_assets.rb +210 -0
- data/lib/VoucherifySdk/models/customers_activities_list_response_body.rb +6 -33
- data/lib/VoucherifySdk/models/customers_activity_list_response_body.rb +284 -0
- data/lib/VoucherifySdk/models/customers_create_request_body.rb +12 -17
- data/lib/VoucherifySdk/models/customers_create_request_body_address.rb +265 -0
- data/lib/VoucherifySdk/models/customers_create_response_body.rb +21 -45
- data/lib/VoucherifySdk/models/customers_create_response_body_address.rb +265 -0
- data/lib/VoucherifySdk/models/customers_create_response_body_assets.rb +210 -0
- data/lib/VoucherifySdk/models/customers_get_response_body.rb +21 -45
- data/lib/VoucherifySdk/models/customers_get_response_body_address.rb +265 -0
- data/lib/VoucherifySdk/models/customers_get_response_body_assets.rb +210 -0
- data/lib/VoucherifySdk/models/customers_import_csv_create_response_body.rb +2 -22
- data/lib/VoucherifySdk/models/customers_list_response_body.rb +8 -34
- data/lib/VoucherifySdk/models/customers_metadata_update_in_bulk_request_body.rb +3 -22
- data/lib/VoucherifySdk/models/customers_metadata_update_in_bulk_response_body.rb +2 -22
- data/lib/VoucherifySdk/models/customers_permanent_deletion_create_response_body.rb +9 -52
- data/lib/VoucherifySdk/models/customers_permanent_deletion_create_response_body_data_json.rb +7 -54
- data/lib/VoucherifySdk/models/customers_redeemables_list_response_body.rb +271 -0
- data/lib/VoucherifySdk/models/customers_segments_list_response_body.rb +6 -40
- data/lib/VoucherifySdk/models/customers_update_in_bulk_request_body.rb +25 -38
- data/lib/VoucherifySdk/models/customers_update_in_bulk_request_body_address.rb +265 -0
- data/lib/VoucherifySdk/models/customers_update_in_bulk_response_body.rb +2 -22
- data/lib/VoucherifySdk/models/customers_update_request_body.rb +10 -17
- data/lib/VoucherifySdk/models/customers_update_request_body_address.rb +265 -0
- data/lib/VoucherifySdk/models/customers_update_response_body.rb +21 -45
- data/lib/VoucherifySdk/models/customers_update_response_body_address.rb +265 -0
- data/lib/VoucherifySdk/models/customers_update_response_body_assets.rb +210 -0
- data/lib/VoucherifySdk/models/discount.rb +374 -81
- data/lib/VoucherifySdk/models/discount_unit_multiple_one_unit.rb +4 -31
- data/lib/VoucherifySdk/models/earning_rule.rb +43 -94
- data/lib/VoucherifySdk/models/earning_rule_custom_event.rb +210 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty.rb +295 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_custom_event.rb +208 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_custom_event_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_customer.rb +208 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_customer_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_order.rb +228 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_order_amount.rb +221 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items.rb +228 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_amount.rb +267 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_quantity.rb +267 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_order_items_subtotal_amount.rb +267 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_order_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_order_total_amount.rb +221 -0
- data/lib/VoucherifySdk/models/earning_rule_loyalty_tier.rb +210 -0
- data/lib/VoucherifySdk/models/earning_rule_segment.rb +210 -0
- data/lib/VoucherifySdk/models/earning_rule_source.rb +258 -0
- data/lib/VoucherifySdk/models/error.rb +8 -43
- data/lib/VoucherifySdk/models/events_create_request_body.rb +11 -39
- data/lib/VoucherifySdk/models/events_create_request_body_loyalty.rb +210 -0
- data/lib/VoucherifySdk/models/events_create_request_body_referral.rb +221 -0
- data/lib/VoucherifySdk/models/events_create_response_body.rb +18 -39
- data/lib/VoucherifySdk/models/export.rb +293 -79
- data/lib/VoucherifySdk/models/export_parameters.rb +255 -0
- data/lib/VoucherifySdk/models/export_parameters_filters.rb +256 -0
- data/lib/VoucherifySdk/models/export_result.rb +209 -0
- data/lib/VoucherifySdk/models/export_voucher_transactions_filters.rb +0 -7
- data/lib/VoucherifySdk/models/exports_create_request_body.rb +211 -80
- data/lib/VoucherifySdk/models/exports_create_request_body_parameters.rb +255 -0
- data/lib/VoucherifySdk/models/exports_create_request_body_parameters_filters.rb +256 -0
- data/lib/VoucherifySdk/models/exports_create_response_body.rb +296 -80
- data/lib/VoucherifySdk/models/exports_create_response_body_parameters.rb +255 -0
- data/lib/VoucherifySdk/models/exports_create_response_body_parameters_filters.rb +256 -0
- data/lib/VoucherifySdk/models/exports_get_response_body.rb +11 -86
- data/lib/VoucherifySdk/models/exports_get_response_body_parameters.rb +255 -0
- data/lib/VoucherifySdk/models/exports_get_response_body_parameters_filters.rb +256 -0
- data/lib/VoucherifySdk/models/exports_get_response_body_result.rb +209 -0
- data/lib/VoucherifySdk/models/exports_list_response_body.rb +6 -53
- data/lib/VoucherifySdk/models/field_conditions.rb +0 -7
- data/lib/VoucherifySdk/models/filter_conditions_date_time.rb +265 -0
- data/lib/VoucherifySdk/models/filter_conditions_string.rb +13 -12
- data/lib/VoucherifySdk/models/filters_condition.rb +50 -32
- data/lib/VoucherifySdk/models/gift.rb +3 -31
- data/lib/VoucherifySdk/models/inapplicable_to.rb +54 -52
- data/lib/VoucherifySdk/models/inapplicable_to_result_list.rb +8 -69
- data/lib/VoucherifySdk/models/list_publications_item_voucher.rb +6 -37
- data/lib/VoucherifySdk/models/location.rb +290 -0
- data/lib/VoucherifySdk/models/location_shape.rb +264 -0
- data/lib/VoucherifySdk/models/location_shape_distance.rb +221 -0
- data/lib/VoucherifySdk/models/location_shape_geojson.rb +244 -0
- data/lib/VoucherifySdk/models/locations_get_response_body.rb +290 -0
- data/lib/VoucherifySdk/models/locations_get_response_body_shape.rb +264 -0
- data/lib/VoucherifySdk/models/locations_get_response_body_shape_distance.rb +221 -0
- data/lib/VoucherifySdk/models/locations_get_response_body_shape_geojson.rb +244 -0
- data/lib/VoucherifySdk/models/locations_list_response_body.rb +260 -0
- data/lib/VoucherifySdk/models/loyalties_create_campaign_request_body.rb +438 -0
- data/lib/VoucherifySdk/models/loyalties_create_campaign_response_body.rb +565 -0
- data/lib/VoucherifySdk/models/loyalties_delete_response_body.rb +1 -21
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item.rb +360 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_custom_event.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty.rb +291 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_custom_event.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_custom_event_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_customer.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_customer_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_quantity.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_items_subtotal_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_total_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_tier.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_segment.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_source.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body.rb +424 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_custom_event.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty.rb +295 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_custom_event.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_custom_event_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_customer.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_customer_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_quantity.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_items_subtotal_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_order_total_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_loyalty_tier.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_segment.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_source.rb +258 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body.rb +44 -91
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_custom_event.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty.rb +295 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_custom_event.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_custom_event_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_customer.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_customer_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_quantity.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_items_subtotal_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_order_total_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_loyalty_tier.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_segment.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_source.rb +258 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body.rb +44 -91
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_custom_event.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty.rb +295 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_custom_event.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_custom_event_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_customer.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_customer_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_quantity.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_items_subtotal_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_order_total_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_loyalty_tier.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_segment.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_source.rb +258 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body.rb +44 -95
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_custom_event.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty.rb +295 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_custom_event.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_custom_event_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_customer.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_customer_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_quantity.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_items_subtotal_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_order_total_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_loyalty_tier.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_segment.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_source.rb +258 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_list_response_body.rb +273 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body.rb +325 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty.rb +295 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_custom_event.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_custom_event_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_customer.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_customer_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_quantity.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_items_subtotal_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_loyalty_order_total_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body_source.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body.rb +424 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_custom_event.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty.rb +295 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_custom_event.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_custom_event_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_customer.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_customer_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items.rb +228 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_quantity.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_items_subtotal_amount.rb +267 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_metadata.rb +232 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_order_total_amount.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_loyalty_tier.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_segment.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_source.rb +258 -0
- data/lib/VoucherifySdk/models/loyalties_get_campaign_response_body.rb +565 -0
- data/lib/VoucherifySdk/models/loyalties_list_campaigns_response_body.rb +273 -0
- data/lib/VoucherifySdk/models/loyalties_list_members_response_body.rb +273 -0
- data/lib/VoucherifySdk/models/loyalties_loyalty_tier_reward.rb +1 -18
- data/lib/VoucherifySdk/models/loyalties_member_activity_list_response_body.rb +284 -0
- data/lib/VoucherifySdk/models/loyalties_members_balance_update_request_body.rb +6 -16
- data/lib/VoucherifySdk/models/loyalties_members_balance_update_response_body.rb +13 -97
- data/lib/VoucherifySdk/models/loyalties_members_balance_update_response_body_related_object.rb +2 -29
- data/lib/VoucherifySdk/models/loyalties_members_create_request_body.rb +252 -0
- data/lib/VoucherifySdk/models/loyalties_members_create_response_body.rb +503 -0
- data/lib/VoucherifySdk/models/loyalties_members_create_response_body_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/loyalties_members_create_response_body_publish.rb +234 -0
- data/lib/VoucherifySdk/models/loyalties_members_create_response_body_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/loyalties_members_get_response_body.rb +503 -0
- data/lib/VoucherifySdk/models/loyalties_members_get_response_body_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/loyalties_members_get_response_body_publish.rb +234 -0
- data/lib/VoucherifySdk/models/loyalties_members_get_response_body_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body.rb +10 -57
- data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item.rb +3 -20
- data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item_bucket.rb +0 -7
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_request_body.rb +3 -8
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_request_body_reward.rb +2 -7
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body.rb +36 -150
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_channel.rb +245 -0
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_gift.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_loyalty_card.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_related_redemptions.rb +222 -0
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_related_redemptions_redemptions_item.rb +218 -0
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_related_redemptions_rollbacks_item.rb +218 -0
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher.rb +542 -0
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_gift.rb +256 -0
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_publish.rb +234 -0
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/loyalties_members_rewards_list_response_body.rb +8 -69
- data/lib/VoucherifySdk/models/loyalties_members_rewards_list_response_body_data_item.rb +1 -18
- data/lib/VoucherifySdk/models/loyalties_members_tiers_list_response_body.rb +6 -53
- data/lib/VoucherifySdk/models/loyalties_members_transactions_export_create_request_body.rb +2 -8
- data/lib/VoucherifySdk/models/loyalties_members_transactions_export_create_request_body_parameters.rb +1 -7
- data/lib/VoucherifySdk/models/loyalties_members_transactions_export_create_response_body.rb +10 -84
- data/lib/VoucherifySdk/models/loyalties_members_transactions_export_create_response_body_parameters.rb +252 -0
- data/lib/VoucherifySdk/models/loyalties_members_transactions_list_response_body.rb +26 -62
- data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body.rb +35 -83
- data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_assets.rb +2 -7
- data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_assets_barcode.rb +2 -7
- data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_assets_qr.rb +2 -7
- data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_loyalty_card.rb +5 -22
- data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_publish.rb +6 -24
- data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_redemption.rb +7 -33
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_request_body.rb +208 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_request_body_parameters.rb +256 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_request_body_parameters_filters.rb +250 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_request_body_parameters_filters_campaign_id.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_request_body_parameters_filters_campaign_id_conditions.rb +247 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_request_body_parameters_filters_voucher_id.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_request_body_parameters_filters_voucher_id_conditions.rb +247 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_response_body.rb +332 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_response_body_parameters.rb +256 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_response_body_parameters_filters.rb +250 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_response_body_parameters_filters_campaign_id.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_response_body_parameters_filters_campaign_id_conditions.rb +247 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_response_body_parameters_filters_voucher_id.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_points_expiration_export_create_response_body_parameters_filters_voucher_id_conditions.rb +247 -0
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body.rb +12 -79
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body_parameters.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body_parameters_loyalty.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_list_response_body.rb +273 -0
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_reward_get_response_body.rb +11 -80
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_reward_get_response_body_attributes.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_item_request_body.rb +231 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_item_request_body_parameters.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_item_request_body_parameters_loyalty.rb +210 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_response_body.rb +316 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_response_body_parameters.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_response_body_parameters_loyalty.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body.rb +12 -79
- data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body_parameters.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body_parameters_loyalty.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_list_assignments_response_body.rb +273 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_request_body.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_request_body_parameters.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_request_body_parameters_loyalty.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_response_body.rb +316 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_response_body_parameters.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_response_body_parameters_loyalty.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_tiers_create_in_bulk_request_body_item.rb +4 -21
- data/lib/VoucherifySdk/models/loyalties_tiers_earning_rules_list_response_body.rb +6 -53
- data/lib/VoucherifySdk/models/loyalties_tiers_get_response_body.rb +15 -79
- data/lib/VoucherifySdk/models/loyalties_tiers_get_response_body_config.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_tiers_get_response_body_config_points.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_tiers_get_response_body_points.rb +221 -0
- data/lib/VoucherifySdk/models/loyalties_tiers_list_response_body.rb +7 -54
- data/lib/VoucherifySdk/models/loyalties_tiers_rewards_list_response_body.rb +6 -33
- data/lib/VoucherifySdk/models/loyalties_transfer_points.rb +5 -29
- data/lib/VoucherifySdk/models/loyalties_update_campaign_request_body.rb +395 -0
- data/lib/VoucherifySdk/models/loyalties_update_campaign_request_body_options.rb +209 -0
- data/lib/VoucherifySdk/models/loyalties_update_campaign_response_body.rb +565 -0
- data/lib/VoucherifySdk/models/loyalty_campaign.rb +564 -0
- data/lib/VoucherifySdk/models/loyalty_campaign_voucher.rb +334 -0
- data/lib/VoucherifySdk/models/loyalty_campaign_voucher_redemption.rb +210 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction.rb +8 -60
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details.rb +327 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_balance.rb +306 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_balance_related_object.rb +253 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_custom_event.rb +221 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_earning_rule.rb +220 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_earning_rule_source.rb +210 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_event.rb +221 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_event_schema.rb +221 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_loyalty_tier.rb +219 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_order.rb +221 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_redemption.rb +210 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_reward.rb +221 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_rollback.rb +210 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_segment.rb +219 -0
- data/lib/VoucherifySdk/models/loyalty_card_transactions_type.rb +1 -2
- data/lib/VoucherifySdk/models/loyalty_member.rb +503 -0
- data/lib/VoucherifySdk/models/loyalty_member_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/loyalty_member_publish.rb +234 -0
- data/lib/VoucherifySdk/models/loyalty_member_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/loyalty_tier.rb +14 -78
- data/lib/VoucherifySdk/models/loyalty_tier_base.rb +4 -21
- data/lib/VoucherifySdk/models/loyalty_tier_base_points.rb +2 -7
- data/lib/VoucherifySdk/models/loyalty_tier_config.rb +209 -0
- data/lib/VoucherifySdk/models/loyalty_tier_config_points.rb +221 -0
- data/lib/VoucherifySdk/models/loyalty_tier_expiration.rb +9 -37
- data/lib/VoucherifySdk/models/loyalty_tier_points.rb +221 -0
- data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all.rb +4 -48
- data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all_expiration_date.rb +2 -31
- data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all_expiration_date_rounding.rb +4 -37
- data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all_start_date.rb +1 -24
- data/lib/VoucherifySdk/models/management_project.rb +479 -0
- data/lib/VoucherifySdk/models/management_project_api_usage_notifications.rb +253 -0
- data/lib/VoucherifySdk/models/management_project_default_code_config.rb +210 -0
- data/lib/VoucherifySdk/models/management_project_limits.rb +223 -0
- data/lib/VoucherifySdk/models/management_project_limits_api_calls_item.rb +219 -0
- data/lib/VoucherifySdk/models/management_project_limits_bulk_api_calls_item.rb +219 -0
- data/lib/VoucherifySdk/models/management_project_webhooks_callout_notifications.rb +219 -0
- data/lib/VoucherifySdk/models/management_project_webhooks_callout_notifications_distributions.rb +234 -0
- data/lib/VoucherifySdk/models/management_project_webhooks_callout_notifications_webhooks.rb +234 -0
- data/lib/VoucherifySdk/models/management_projects_branding.rb +250 -0
- data/lib/VoucherifySdk/models/management_projects_branding_address.rb +254 -0
- data/lib/VoucherifySdk/models/management_projects_branding_brand.rb +254 -0
- data/lib/VoucherifySdk/models/management_projects_branding_cockpits.rb +311 -0
- data/lib/VoucherifySdk/models/management_projects_branding_contact.rb +221 -0
- data/lib/VoucherifySdk/models/management_projects_branding_create_request_body.rb +239 -0
- data/lib/VoucherifySdk/models/management_projects_branding_create_request_body_address.rb +254 -0
- data/lib/VoucherifySdk/models/management_projects_branding_create_request_body_brand.rb +256 -0
- data/lib/VoucherifySdk/models/management_projects_branding_create_request_body_cockpits.rb +325 -0
- data/lib/VoucherifySdk/models/management_projects_branding_create_request_body_contact.rb +221 -0
- data/lib/VoucherifySdk/models/management_projects_branding_create_response_body.rb +250 -0
- data/lib/VoucherifySdk/models/management_projects_branding_create_response_body_address.rb +254 -0
- data/lib/VoucherifySdk/models/management_projects_branding_create_response_body_brand.rb +254 -0
- data/lib/VoucherifySdk/models/management_projects_branding_create_response_body_cockpits.rb +311 -0
- data/lib/VoucherifySdk/models/management_projects_branding_create_response_body_contact.rb +221 -0
- data/lib/VoucherifySdk/models/management_projects_branding_get_response_body.rb +250 -0
- data/lib/VoucherifySdk/models/management_projects_branding_get_response_body_address.rb +254 -0
- data/lib/VoucherifySdk/models/management_projects_branding_get_response_body_brand.rb +254 -0
- data/lib/VoucherifySdk/models/management_projects_branding_get_response_body_cockpits.rb +311 -0
- data/lib/VoucherifySdk/models/management_projects_branding_get_response_body_contact.rb +221 -0
- data/lib/VoucherifySdk/models/management_projects_branding_list_response_body.rb +275 -0
- data/lib/VoucherifySdk/models/management_projects_branding_update_request_body.rb +238 -0
- data/lib/VoucherifySdk/models/management_projects_branding_update_request_body_address.rb +254 -0
- data/lib/VoucherifySdk/models/management_projects_branding_update_request_body_brand.rb +254 -0
- data/lib/VoucherifySdk/models/management_projects_branding_update_request_body_cockpits.rb +311 -0
- data/lib/VoucherifySdk/models/management_projects_branding_update_request_body_contact.rb +221 -0
- data/lib/VoucherifySdk/models/management_projects_branding_update_response_body.rb +250 -0
- data/lib/VoucherifySdk/models/management_projects_branding_update_response_body_address.rb +254 -0
- data/lib/VoucherifySdk/models/management_projects_branding_update_response_body_brand.rb +254 -0
- data/lib/VoucherifySdk/models/management_projects_branding_update_response_body_cockpits.rb +311 -0
- data/lib/VoucherifySdk/models/management_projects_branding_update_response_body_contact.rb +221 -0
- data/lib/VoucherifySdk/models/management_projects_create_request_body.rb +440 -0
- data/lib/VoucherifySdk/models/management_projects_create_request_body_api_usage_notifications.rb +244 -0
- data/lib/VoucherifySdk/models/management_projects_create_request_body_users_item.rb +236 -0
- data/lib/VoucherifySdk/models/management_projects_create_request_body_webhooks_callout_notifications.rb +219 -0
- data/lib/VoucherifySdk/models/management_projects_create_request_body_webhooks_callout_notifications_distributions.rb +234 -0
- data/lib/VoucherifySdk/models/management_projects_create_request_body_webhooks_callout_notifications_webhooks.rb +234 -0
- data/lib/VoucherifySdk/models/management_projects_create_response_body.rb +480 -0
- data/lib/VoucherifySdk/models/management_projects_create_response_body_api_usage_notifications.rb +253 -0
- data/lib/VoucherifySdk/models/management_projects_create_response_body_client_side_key.rb +221 -0
- data/lib/VoucherifySdk/models/management_projects_create_response_body_server_side_key.rb +221 -0
- data/lib/VoucherifySdk/models/management_projects_create_response_body_webhooks_callout_notifications.rb +219 -0
- data/lib/VoucherifySdk/models/management_projects_create_response_body_webhooks_callout_notifications_distributions.rb +234 -0
- data/lib/VoucherifySdk/models/management_projects_create_response_body_webhooks_callout_notifications_webhooks.rb +234 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schema.rb +290 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schema_schema.rb +212 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_create_request_body.rb +220 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_create_request_body_schema.rb +212 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_create_request_body_schema_properties_entry.rb +267 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_create_response_body.rb +290 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_create_response_body_schema.rb +212 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_get_response_body.rb +290 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_get_response_body_schema.rb +212 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_list_response_body.rb +275 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_update_request_body.rb +209 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_update_request_body_schema.rb +212 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_update_response_body.rb +290 -0
- data/lib/VoucherifySdk/models/management_projects_custom_event_schemas_update_response_body_schema.rb +212 -0
- data/lib/VoucherifySdk/models/management_projects_get_response_body.rb +479 -0
- data/lib/VoucherifySdk/models/management_projects_get_response_body_api_usage_notifications.rb +253 -0
- data/lib/VoucherifySdk/models/management_projects_get_response_body_default_code_config.rb +210 -0
- data/lib/VoucherifySdk/models/management_projects_get_response_body_limits.rb +223 -0
- data/lib/VoucherifySdk/models/management_projects_get_response_body_limits_api_calls_item.rb +219 -0
- data/lib/VoucherifySdk/models/management_projects_get_response_body_limits_bulk_api_calls_item.rb +219 -0
- data/lib/VoucherifySdk/models/management_projects_get_response_body_webhooks_callout_notifications.rb +219 -0
- data/lib/VoucherifySdk/models/management_projects_get_response_body_webhooks_callout_notifications_distributions.rb +234 -0
- data/lib/VoucherifySdk/models/management_projects_get_response_body_webhooks_callout_notifications_webhooks.rb +234 -0
- data/lib/VoucherifySdk/models/management_projects_list_response_body.rb +275 -0
- data/lib/VoucherifySdk/models/management_projects_metadata_schema.rb +280 -0
- data/lib/VoucherifySdk/models/management_projects_metadata_schema_definition.rb +380 -0
- data/lib/VoucherifySdk/models/management_projects_metadata_schemas_create_request_body.rb +236 -0
- data/lib/VoucherifySdk/models/management_projects_metadata_schemas_create_response_body.rb +280 -0
- data/lib/VoucherifySdk/models/management_projects_metadata_schemas_get_response_body.rb +280 -0
- data/lib/VoucherifySdk/models/management_projects_metadata_schemas_list_response_body.rb +275 -0
- data/lib/VoucherifySdk/models/management_projects_metadata_schemas_update_request_body.rb +223 -0
- data/lib/VoucherifySdk/models/management_projects_metadata_schemas_update_response_body.rb +280 -0
- data/lib/VoucherifySdk/models/management_projects_stacking_rules.rb +425 -0
- data/lib/VoucherifySdk/models/management_projects_stacking_rules_create_request_body.rb +392 -0
- data/lib/VoucherifySdk/models/management_projects_stacking_rules_create_response_body.rb +425 -0
- data/lib/VoucherifySdk/models/management_projects_stacking_rules_get_response_body.rb +425 -0
- data/lib/VoucherifySdk/models/management_projects_stacking_rules_list_response_body.rb +275 -0
- data/lib/VoucherifySdk/models/management_projects_stacking_rules_update_request_body.rb +392 -0
- data/lib/VoucherifySdk/models/management_projects_stacking_rules_update_response_body.rb +425 -0
- data/lib/VoucherifySdk/models/management_projects_templates_campaigns_copy_create_request_body.rb +232 -0
- data/lib/VoucherifySdk/models/management_projects_templates_campaigns_copy_create_response_body.rb +293 -0
- data/lib/VoucherifySdk/models/management_projects_templates_campaigns_list_response_body.rb +297 -0
- data/lib/VoucherifySdk/models/management_projects_update_request_body.rb +400 -0
- data/lib/VoucherifySdk/models/management_projects_update_request_body_api_usage_notifications.rb +244 -0
- data/lib/VoucherifySdk/models/management_projects_update_request_body_default_code_config.rb +210 -0
- data/lib/VoucherifySdk/models/management_projects_update_request_body_webhooks_callout_notifications.rb +219 -0
- data/lib/VoucherifySdk/models/management_projects_update_request_body_webhooks_callout_notifications_distributions.rb +234 -0
- data/lib/VoucherifySdk/models/management_projects_update_request_body_webhooks_callout_notifications_webhooks.rb +234 -0
- data/lib/VoucherifySdk/models/management_projects_update_response_body.rb +479 -0
- data/lib/VoucherifySdk/models/management_projects_update_response_body_api_usage_notifications.rb +253 -0
- data/lib/VoucherifySdk/models/management_projects_update_response_body_default_code_config.rb +210 -0
- data/lib/VoucherifySdk/models/management_projects_update_response_body_limits.rb +223 -0
- data/lib/VoucherifySdk/models/management_projects_update_response_body_limits_api_calls_item.rb +219 -0
- data/lib/VoucherifySdk/models/management_projects_update_response_body_limits_bulk_api_calls_item.rb +219 -0
- data/lib/VoucherifySdk/models/management_projects_update_response_body_webhooks_callout_notifications.rb +219 -0
- data/lib/VoucherifySdk/models/management_projects_update_response_body_webhooks_callout_notifications_distributions.rb +234 -0
- data/lib/VoucherifySdk/models/management_projects_update_response_body_webhooks_callout_notifications_webhooks.rb +234 -0
- data/lib/VoucherifySdk/models/management_projects_users_assign_request_body.rb +231 -0
- data/lib/VoucherifySdk/models/management_projects_users_assign_response_body.rb +278 -0
- data/lib/VoucherifySdk/models/management_projects_users_get_user_response_body.rb +278 -0
- data/lib/VoucherifySdk/models/management_projects_users_invite_create_request_body.rb +245 -0
- data/lib/VoucherifySdk/models/management_projects_users_list_response_body.rb +275 -0
- data/lib/VoucherifySdk/models/management_projects_users_update_role_request_body.rb +209 -0
- data/lib/VoucherifySdk/models/management_projects_users_update_role_response_body.rb +278 -0
- data/lib/VoucherifySdk/models/management_projects_webhook.rb +295 -0
- data/lib/VoucherifySdk/models/management_projects_webhooks_create_request_body.rb +258 -0
- data/lib/VoucherifySdk/models/management_projects_webhooks_create_response_body.rb +295 -0
- data/lib/VoucherifySdk/models/management_projects_webhooks_get_response_body.rb +295 -0
- data/lib/VoucherifySdk/models/management_projects_webhooks_list_response_body.rb +275 -0
- data/lib/VoucherifySdk/models/management_projects_webhooks_update_request_body.rb +258 -0
- data/lib/VoucherifySdk/models/management_projects_webhooks_update_response_body.rb +295 -0
- data/lib/VoucherifySdk/models/mapping_points.rb +223 -74
- data/lib/VoucherifySdk/models/member_activity.rb +254 -0
- data/lib/VoucherifySdk/models/metadata_schema_definition_deprecated.rb +380 -0
- data/lib/VoucherifySdk/models/metadata_schema_deprecated.rb +280 -0
- data/lib/VoucherifySdk/models/metadata_schemas_get_response_body.rb +280 -0
- data/lib/VoucherifySdk/models/metadata_schemas_list_response_body.rb +275 -0
- data/lib/VoucherifySdk/models/order.rb +45 -98
- data/lib/VoucherifySdk/models/order_calculated.rb +66 -94
- data/lib/VoucherifySdk/models/order_calculated_item.rb +455 -0
- data/lib/VoucherifySdk/models/order_calculated_item_product.rb +265 -0
- data/lib/VoucherifySdk/models/order_calculated_item_sku.rb +254 -0
- data/lib/VoucherifySdk/models/order_item.rb +19 -22
- data/lib/VoucherifySdk/models/order_item_product.rb +8 -9
- data/lib/VoucherifySdk/models/order_item_sku.rb +6 -8
- data/lib/VoucherifySdk/models/order_redemptions_entry.rb +292 -0
- data/lib/VoucherifySdk/models/orders_create_request_body.rb +53 -67
- data/lib/VoucherifySdk/models/orders_create_response_body.rb +66 -95
- data/lib/VoucherifySdk/models/orders_export_create_request_body.rb +2 -8
- data/lib/VoucherifySdk/models/orders_export_create_request_body_parameters.rb +1 -7
- data/lib/VoucherifySdk/models/orders_export_create_response_body.rb +10 -85
- data/lib/VoucherifySdk/models/orders_export_create_response_body_parameters.rb +253 -0
- data/lib/VoucherifySdk/models/orders_get_response_body.rb +65 -94
- data/lib/VoucherifySdk/models/orders_import_create_request_body_item.rb +69 -67
- data/lib/VoucherifySdk/models/orders_import_create_response_body.rb +2 -22
- data/lib/VoucherifySdk/models/orders_list_response_body.rb +7 -54
- data/lib/VoucherifySdk/models/orders_update_request_body.rb +62 -67
- data/lib/VoucherifySdk/models/orders_update_response_body.rb +66 -95
- data/lib/VoucherifySdk/models/parameter_activity_category.rb +40 -0
- data/lib/VoucherifySdk/models/parameter_campaign_type.rb +1 -2
- data/lib/VoucherifySdk/models/parameter_created_before_after.rb +4 -9
- data/lib/VoucherifySdk/models/parameter_filters_list_bin.rb +269 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_bin_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_bin_resource_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_bin_resource_name.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_bin_resource_type.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_bin_resource_type_conditions.rb +316 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_campaigns.rb +289 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_campaign_status.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_campaign_status_conditions.rb +316 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_categories.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_category_ids.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_is_referral_code.rb +247 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_validity_timeframe.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_campaigns_voucher_type.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables.rb +309 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_campaign_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_campaign_type.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_campaign_type_conditions.rb +316 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_created_at.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_holder_role.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_holder_role_conditions.rb +316 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_redeemable_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_redeemable_object.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_redeemable_object_conditions.rb +320 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_voucher_type.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_voucher_type_conditions.rb +316 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_locations.rb +228 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_locations_created_at.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_locations_name.rb +207 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_locations_updated_at.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_publications.rb +319 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_publications_campaign_name.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_publications_customer_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_publications_failure_code.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_publications_is_referral_code.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_publications_parent_object_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_publications_related_object_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_publications_result.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_publications_source_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_publications_voucher_type.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_redemptions.rb +45 -11
- data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_campaign_name.rb +4 -42
- data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_customer_id.rb +4 -42
- data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_failure_code.rb +4 -42
- data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_object.rb +4 -42
- data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_parent_redemption_id.rb +4 -42
- data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_related_object_id.rb +4 -42
- data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_related_object_parent_id.rb +4 -42
- data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_result.rb +4 -42
- data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_user_login.rb +4 -42
- data/lib/VoucherifySdk/models/parameter_filters_list_redemptions_voucher_code.rb +4 -42
- data/lib/VoucherifySdk/models/parameter_filters_list_referrals_redeemable_holders.rb +269 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_referrals_redeemable_holders_created_at.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_referrals_redeemable_holders_customer_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_referrals_redeemable_holders_holder_role.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_referrals_redeemable_holders_holder_role_conditions.rb +316 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_referrals_redeemable_holders_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_templates.rb +259 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_templates_campaign_type.rb +209 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_templates_campaign_type_conditions.rb +317 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_templates_id.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_filters_list_templates_name.rb +208 -0
- data/lib/VoucherifySdk/models/parameter_order_created_at.rb +40 -0
- data/lib/VoucherifySdk/models/parameter_order_list_bin.rb +40 -0
- data/lib/VoucherifySdk/models/parameter_order_list_earning_rules.rb +42 -0
- data/lib/VoucherifySdk/models/parameter_order_list_locations.rb +42 -0
- data/lib/VoucherifySdk/models/parameter_order_list_promotion_tiers.rb +42 -0
- data/lib/VoucherifySdk/models/parameter_order_list_promotion_tiers_client_side.rb +42 -0
- data/lib/VoucherifySdk/models/parameter_order_list_redeemables.rb +40 -0
- data/lib/VoucherifySdk/models/parameter_order_list_transactions.rb +40 -0
- data/lib/VoucherifySdk/models/parameter_order_vouchers.rb +44 -0
- data/lib/VoucherifySdk/models/parameter_templates_list.rb +40 -0
- data/lib/VoucherifySdk/models/parameter_updated_before_after.rb +4 -9
- data/lib/VoucherifySdk/models/parameter_voucher_type_list_publications.rb +1 -2
- data/lib/VoucherifySdk/models/product.rb +8 -59
- data/lib/VoucherifySdk/models/product_collections_create_request_body.rb +238 -75
- data/lib/VoucherifySdk/models/product_collections_create_request_body_products_item.rb +266 -0
- data/lib/VoucherifySdk/models/product_collections_create_response_body.rb +13 -72
- data/lib/VoucherifySdk/models/product_collections_create_response_body_products_item.rb +266 -0
- data/lib/VoucherifySdk/models/product_collections_get_response_body.rb +13 -72
- data/lib/VoucherifySdk/models/product_collections_get_response_body_products_item.rb +266 -0
- data/lib/VoucherifySdk/models/product_collections_item.rb +11 -63
- data/lib/VoucherifySdk/models/product_collections_item_products_item.rb +1 -18
- data/lib/VoucherifySdk/models/product_collections_list_response_body.rb +6 -60
- data/lib/VoucherifySdk/models/product_collections_products_list_response_body.rb +7 -42
- data/lib/VoucherifySdk/models/product_collections_products_list_response_body_data_item.rb +362 -0
- data/lib/VoucherifySdk/models/product_without_skus.rb +8 -52
- data/lib/VoucherifySdk/models/products_create_request_body.rb +8 -8
- data/lib/VoucherifySdk/models/products_create_response_body.rb +9 -60
- data/lib/VoucherifySdk/models/products_get_response_body.rb +9 -60
- data/lib/VoucherifySdk/models/products_import_csv_create_response_body.rb +2 -22
- data/lib/VoucherifySdk/models/products_list_response_body.rb +6 -33
- data/lib/VoucherifySdk/models/products_metadata_update_in_bulk_request_body.rb +3 -22
- data/lib/VoucherifySdk/models/products_metadata_update_in_bulk_response_body.rb +2 -22
- data/lib/VoucherifySdk/models/products_skus_create_request_body.rb +9 -8
- data/lib/VoucherifySdk/models/products_skus_create_response_body.rb +10 -78
- data/lib/VoucherifySdk/models/products_skus_list_response_body.rb +6 -40
- data/lib/VoucherifySdk/models/products_skus_update_request_body.rb +7 -8
- data/lib/VoucherifySdk/models/products_skus_update_response_body.rb +10 -78
- data/lib/VoucherifySdk/models/products_update_in_bulk_request_body.rb +7 -15
- data/lib/VoucherifySdk/models/products_update_in_bulk_response_body.rb +2 -22
- data/lib/VoucherifySdk/models/products_update_request_body.rb +6 -8
- data/lib/VoucherifySdk/models/products_update_response_body.rb +9 -60
- data/lib/VoucherifySdk/models/promotion_stack.rb +12 -77
- data/lib/VoucherifySdk/models/promotion_stack_base.rb +2 -21
- data/lib/VoucherifySdk/models/promotion_stack_base_tiers.rb +5 -41
- data/lib/VoucherifySdk/models/promotion_stack_tiers.rb +253 -0
- data/lib/VoucherifySdk/models/promotion_tier.rb +55 -13
- data/lib/VoucherifySdk/models/promotion_tier_action.rb +0 -7
- data/lib/VoucherifySdk/models/promotion_tier_campaign.rb +41 -11
- data/lib/VoucherifySdk/models/promotion_tier_create_params.rb +46 -18
- data/lib/VoucherifySdk/models/promotion_tier_create_params_action.rb +208 -0
- data/lib/VoucherifySdk/models/promotion_tier_summary.rb +2 -7
- data/lib/VoucherifySdk/models/promotion_tier_summary_orders.rb +2 -7
- data/lib/VoucherifySdk/models/promotion_tier_summary_redemptions.rb +1 -7
- data/lib/VoucherifySdk/models/promotion_tiers_list.rb +7 -9
- data/lib/VoucherifySdk/models/promotions_stacks_create_request_body.rb +5 -30
- data/lib/VoucherifySdk/models/promotions_stacks_create_request_body_tiers.rb +253 -0
- data/lib/VoucherifySdk/models/promotions_stacks_create_response_body.rb +11 -77
- data/lib/VoucherifySdk/models/promotions_stacks_create_response_body_tiers.rb +253 -0
- data/lib/VoucherifySdk/models/promotions_stacks_get_response_body.rb +13 -78
- data/lib/VoucherifySdk/models/promotions_stacks_get_response_body_tiers.rb +253 -0
- data/lib/VoucherifySdk/models/promotions_stacks_list_response_body.rb +8 -69
- data/lib/VoucherifySdk/models/promotions_stacks_update_request_body.rb +4 -8
- data/lib/VoucherifySdk/models/promotions_stacks_update_request_body_tiers.rb +4 -19
- data/lib/VoucherifySdk/models/promotions_stacks_update_response_body.rb +13 -85
- data/lib/VoucherifySdk/models/promotions_stacks_update_response_body_tiers.rb +253 -0
- data/lib/VoucherifySdk/models/promotions_tiers_create_request_body.rb +369 -0
- data/lib/VoucherifySdk/models/promotions_tiers_create_request_body_action.rb +208 -0
- data/lib/VoucherifySdk/models/promotions_tiers_create_response_body.rb +458 -0
- data/lib/VoucherifySdk/models/promotions_tiers_create_response_body_action.rb +208 -0
- data/lib/VoucherifySdk/models/promotions_tiers_create_response_body_campaign.rb +319 -0
- data/lib/VoucherifySdk/models/promotions_tiers_create_response_body_summary.rb +219 -0
- data/lib/VoucherifySdk/models/promotions_tiers_create_response_body_summary_orders.rb +221 -0
- data/lib/VoucherifySdk/models/promotions_tiers_create_response_body_summary_redemptions.rb +210 -0
- data/lib/VoucherifySdk/models/promotions_tiers_disable_response_body.rb +59 -24
- data/lib/VoucherifySdk/models/promotions_tiers_disable_response_body_action.rb +208 -0
- data/lib/VoucherifySdk/models/promotions_tiers_disable_response_body_campaign.rb +319 -0
- data/lib/VoucherifySdk/models/promotions_tiers_disable_response_body_summary.rb +219 -0
- data/lib/VoucherifySdk/models/promotions_tiers_disable_response_body_summary_orders.rb +221 -0
- data/lib/VoucherifySdk/models/promotions_tiers_disable_response_body_summary_redemptions.rb +210 -0
- data/lib/VoucherifySdk/models/promotions_tiers_enable_response_body.rb +59 -24
- data/lib/VoucherifySdk/models/promotions_tiers_enable_response_body_action.rb +208 -0
- data/lib/VoucherifySdk/models/promotions_tiers_enable_response_body_campaign.rb +319 -0
- data/lib/VoucherifySdk/models/promotions_tiers_enable_response_body_summary.rb +219 -0
- data/lib/VoucherifySdk/models/promotions_tiers_enable_response_body_summary_orders.rb +221 -0
- data/lib/VoucherifySdk/models/promotions_tiers_enable_response_body_summary_redemptions.rb +210 -0
- data/lib/VoucherifySdk/models/promotions_tiers_get_response_body.rb +59 -24
- data/lib/VoucherifySdk/models/promotions_tiers_get_response_body_action.rb +208 -0
- data/lib/VoucherifySdk/models/promotions_tiers_get_response_body_campaign.rb +319 -0
- data/lib/VoucherifySdk/models/promotions_tiers_get_response_body_summary.rb +219 -0
- data/lib/VoucherifySdk/models/promotions_tiers_get_response_body_summary_orders.rb +221 -0
- data/lib/VoucherifySdk/models/promotions_tiers_get_response_body_summary_redemptions.rb +210 -0
- data/lib/VoucherifySdk/models/promotions_tiers_list_response_body.rb +8 -17
- data/lib/VoucherifySdk/models/promotions_tiers_update_request_body.rb +358 -0
- data/lib/VoucherifySdk/models/promotions_tiers_update_request_body_action.rb +208 -0
- data/lib/VoucherifySdk/models/promotions_tiers_update_response_body.rb +458 -0
- data/lib/VoucherifySdk/models/promotions_tiers_update_response_body_action.rb +208 -0
- data/lib/VoucherifySdk/models/promotions_tiers_update_response_body_campaign.rb +319 -0
- data/lib/VoucherifySdk/models/promotions_tiers_update_response_body_summary.rb +219 -0
- data/lib/VoucherifySdk/models/promotions_tiers_update_response_body_summary_orders.rb +221 -0
- data/lib/VoucherifySdk/models/promotions_tiers_update_response_body_summary_redemptions.rb +210 -0
- data/lib/VoucherifySdk/models/publications_create_request_body.rb +229 -76
- data/lib/VoucherifySdk/models/publications_create_response_body.rb +346 -78
- data/lib/VoucherifySdk/models/publications_list_response_body.rb +7 -34
- data/lib/VoucherifySdk/models/publications_list_response_body_publications_item.rb +358 -79
- data/lib/VoucherifySdk/models/publications_list_response_body_publications_item_metadata.rb +231 -0
- data/lib/VoucherifySdk/models/qualifications_check_eligibility_request_body.rb +6 -42
- data/lib/VoucherifySdk/models/qualifications_check_eligibility_response_body.rb +2 -8
- data/lib/VoucherifySdk/models/qualifications_field_conditions.rb +0 -7
- data/lib/VoucherifySdk/models/qualifications_filters_condition.rb +24 -17
- data/lib/VoucherifySdk/models/qualifications_option.rb +5 -32
- data/lib/VoucherifySdk/models/qualifications_option_filters.rb +25 -11
- data/lib/VoucherifySdk/models/qualifications_option_filters_campaign_type.rb +209 -0
- data/lib/VoucherifySdk/models/qualifications_option_filters_campaign_type_conditions.rb +247 -0
- data/lib/VoucherifySdk/models/qualifications_option_filters_holder_role.rb +208 -0
- data/lib/VoucherifySdk/models/qualifications_option_filters_holder_role_conditions.rb +273 -0
- data/lib/VoucherifySdk/models/qualifications_option_filters_resource_type.rb +1 -7
- data/lib/VoucherifySdk/models/qualifications_option_filters_resource_type_conditions.rb +13 -36
- data/lib/VoucherifySdk/models/qualifications_redeemable.rb +13 -26
- data/lib/VoucherifySdk/models/qualifications_redeemable_base.rb +12 -19
- data/lib/VoucherifySdk/models/qualifications_redeemables.rb +9 -61
- data/lib/VoucherifySdk/models/redeemable_gift.rb +2 -7
- data/lib/VoucherifySdk/models/redeemable_holder.rb +354 -0
- data/lib/VoucherifySdk/models/redeemable_loyalty_card.rb +6 -8
- data/lib/VoucherifySdk/models/redeemable_result.rb +0 -7
- data/lib/VoucherifySdk/models/redeemable_voucher.rb +524 -0
- data/lib/VoucherifySdk/models/redeemable_voucher_gift.rb +256 -0
- data/lib/VoucherifySdk/models/redeemable_voucher_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/redeemable_voucher_publish.rb +234 -0
- data/lib/VoucherifySdk/models/redeemable_voucher_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/redemption.rb +33 -133
- data/lib/VoucherifySdk/models/redemption_channel.rb +5 -20
- data/lib/VoucherifySdk/models/redemption_entry.rb +477 -0
- data/lib/VoucherifySdk/models/redemption_entry_channel.rb +242 -0
- data/lib/VoucherifySdk/models/redemption_entry_customer.rb +289 -0
- data/lib/VoucherifySdk/models/redemption_entry_gift.rb +209 -0
- data/lib/VoucherifySdk/models/redemption_entry_loyalty_card.rb +209 -0
- data/lib/VoucherifySdk/models/redemption_entry_order.rb +466 -0
- data/lib/VoucherifySdk/models/redemption_entry_order_customer.rb +246 -0
- data/lib/VoucherifySdk/models/redemption_entry_order_referrer.rb +246 -0
- data/lib/VoucherifySdk/models/redemption_entry_promotion_tier.rb +456 -0
- data/lib/VoucherifySdk/models/redemption_entry_promotion_tier_action.rb +207 -0
- data/lib/VoucherifySdk/models/redemption_entry_promotion_tier_campaign.rb +318 -0
- data/lib/VoucherifySdk/models/redemption_entry_promotion_tier_summary.rb +218 -0
- data/lib/VoucherifySdk/models/redemption_entry_promotion_tier_summary_orders.rb +220 -0
- data/lib/VoucherifySdk/models/redemption_entry_promotion_tier_summary_redemptions.rb +209 -0
- data/lib/VoucherifySdk/models/redemption_entry_related_redemptions.rb +222 -0
- data/lib/VoucherifySdk/models/redemption_entry_related_redemptions_redemptions_item.rb +218 -0
- data/lib/VoucherifySdk/models/redemption_entry_related_redemptions_rollbacks_item.rb +217 -0
- data/lib/VoucherifySdk/models/redemption_entry_voucher.rb +540 -0
- data/lib/VoucherifySdk/models/redemption_entry_voucher_gift.rb +255 -0
- data/lib/VoucherifySdk/models/redemption_entry_voucher_loyalty_card.rb +242 -0
- data/lib/VoucherifySdk/models/redemption_entry_voucher_publish.rb +233 -0
- data/lib/VoucherifySdk/models/redemption_entry_voucher_redemption.rb +255 -0
- data/lib/VoucherifySdk/models/redemption_gift.rb +3 -9
- data/lib/VoucherifySdk/models/redemption_loyalty_card.rb +3 -9
- data/lib/VoucherifySdk/models/redemption_related_redemptions.rb +3 -8
- data/lib/VoucherifySdk/models/redemption_related_redemptions_redemptions_item.rb +218 -0
- data/lib/VoucherifySdk/models/redemption_related_redemptions_rollbacks_item.rb +1 -8
- data/lib/VoucherifySdk/models/redemption_reward_result.rb +24 -49
- data/lib/VoucherifySdk/models/redemption_reward_result_parameters.rb +3 -7
- data/lib/VoucherifySdk/models/redemption_reward_result_parameters_campaign.rb +3 -7
- data/lib/VoucherifySdk/models/redemption_reward_result_parameters_coin.rb +2 -7
- data/lib/VoucherifySdk/models/redemption_reward_result_parameters_product.rb +3 -8
- data/lib/VoucherifySdk/models/redemption_rollback.rb +24 -124
- data/lib/VoucherifySdk/models/redemption_rollback_channel.rb +245 -0
- data/lib/VoucherifySdk/models/redemption_rollback_gift.rb +210 -0
- data/lib/VoucherifySdk/models/redemption_rollback_loyalty_card.rb +210 -0
- data/lib/VoucherifySdk/models/redemption_rollback_related_redemptions.rb +3 -8
- data/lib/VoucherifySdk/models/redemption_rollback_related_redemptions_redemptions_item.rb +218 -0
- data/lib/VoucherifySdk/models/redemption_rollback_related_redemptions_rollbacks_item.rb +2 -9
- data/lib/VoucherifySdk/models/redemption_voucher.rb +542 -0
- data/lib/VoucherifySdk/models/redemption_voucher_gift.rb +256 -0
- data/lib/VoucherifySdk/models/redemption_voucher_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/redemption_voucher_publish.rb +234 -0
- data/lib/VoucherifySdk/models/redemption_voucher_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body.rb +449 -78
- data/lib/VoucherifySdk/models/redemptions_get_response_body_channel.rb +242 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_customer.rb +289 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_gift.rb +209 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_loyalty_card.rb +209 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_order.rb +466 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_order_customer.rb +246 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_order_referrer.rb +246 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_promotion_tier.rb +456 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_promotion_tier_action.rb +207 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_promotion_tier_campaign.rb +318 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_promotion_tier_summary.rb +218 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_promotion_tier_summary_orders.rb +220 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_promotion_tier_summary_redemptions.rb +209 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_related_redemptions.rb +222 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_related_redemptions_redemptions_item.rb +218 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_related_redemptions_rollbacks_item.rb +217 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher.rb +540 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher_gift.rb +255 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher_loyalty_card.rb +242 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher_publish.rb +233 -0
- data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher_redemption.rb +255 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body.rb +6 -33
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item.rb +435 -77
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_channel.rb +240 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_customer.rb +288 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_gift.rb +208 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_loyalty_card.rb +208 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_order.rb +462 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_order_customer.rb +246 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_order_referrer.rb +246 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_promotion_tier.rb +452 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_promotion_tier_action.rb +207 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_promotion_tier_campaign.rb +318 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_promotion_tier_summary.rb +216 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_promotion_tier_summary_orders.rb +220 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_promotion_tier_summary_redemptions.rb +209 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_related_redemptions.rb +221 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_related_redemptions_redemptions_item.rb +218 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_related_redemptions_rollbacks_item.rb +217 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher.rb +535 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher_gift.rb +255 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher_loyalty_card.rb +242 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher_publish.rb +233 -0
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher_redemption.rb +255 -0
- data/lib/VoucherifySdk/models/redemptions_redeem_request_body.rb +19 -65
- data/lib/VoucherifySdk/models/redemptions_redeem_request_body_options.rb +234 -0
- data/lib/VoucherifySdk/models/redemptions_redeem_request_body_redeemables_item.rb +260 -0
- data/lib/VoucherifySdk/models/redemptions_redeem_request_body_redeemables_item_gift.rb +210 -0
- data/lib/VoucherifySdk/models/redemptions_redeem_request_body_redeemables_item_reward.rb +221 -0
- data/lib/VoucherifySdk/models/redemptions_redeem_response_body.rb +4 -8
- data/lib/VoucherifySdk/models/redemptions_rollback_create_request_body.rb +4 -8
- data/lib/VoucherifySdk/models/redemptions_rollback_create_response_body.rb +26 -133
- data/lib/VoucherifySdk/models/redemptions_rollback_create_response_body_channel.rb +245 -0
- data/lib/VoucherifySdk/models/redemptions_rollback_create_response_body_gift.rb +210 -0
- data/lib/VoucherifySdk/models/redemptions_rollback_create_response_body_loyalty_card.rb +210 -0
- data/lib/VoucherifySdk/models/redemptions_rollback_create_response_body_related_redemptions.rb +222 -0
- data/lib/VoucherifySdk/models/redemptions_rollback_create_response_body_related_redemptions_redemptions_item.rb +218 -0
- data/lib/VoucherifySdk/models/redemptions_rollback_create_response_body_related_redemptions_rollbacks_item.rb +218 -0
- data/lib/VoucherifySdk/models/redemptions_rollbacks_create_request_body.rb +4 -8
- data/lib/VoucherifySdk/models/redemptions_rollbacks_create_response_body.rb +3 -9
- data/lib/VoucherifySdk/models/referral_program.rb +3 -17
- data/lib/VoucherifySdk/models/referral_program_custom_event.rb +2 -7
- data/lib/VoucherifySdk/models/referral_program_referee_reward.rb +4 -18
- data/lib/VoucherifySdk/models/referral_program_referee_reward_related_object_parent.rb +3 -17
- data/lib/VoucherifySdk/models/referrals_members_holders_create_in_bulk_request_body.rb +223 -0
- data/lib/VoucherifySdk/models/referrals_members_holders_create_in_bulk_response_body.rb +212 -0
- data/lib/VoucherifySdk/models/referrals_members_holders_list_response_body.rb +271 -0
- data/lib/VoucherifySdk/models/referrer.rb +11 -16
- data/lib/VoucherifySdk/models/referrer_address.rb +265 -0
- data/lib/VoucherifySdk/models/referrer_id.rb +3 -37
- data/lib/VoucherifySdk/models/reward.rb +9 -71
- data/lib/VoucherifySdk/models/reward_assignment.rb +11 -79
- data/lib/VoucherifySdk/models/reward_assignment_parameters.rb +9 -14
- data/lib/VoucherifySdk/models/reward_assignment_parameters_loyalty.rb +221 -0
- data/lib/VoucherifySdk/models/reward_attributes.rb +2 -7
- data/lib/VoucherifySdk/models/reward_type.rb +198 -76
- data/lib/VoucherifySdk/models/reward_type_campaign.rb +56 -21
- data/lib/VoucherifySdk/models/reward_type_coin.rb +21 -21
- data/lib/VoucherifySdk/models/reward_type_product.rb +221 -0
- data/lib/VoucherifySdk/models/rewards_assignments_create_request_body.rb +201 -76
- data/lib/VoucherifySdk/models/rewards_assignments_create_request_body_parameters.rb +209 -0
- data/lib/VoucherifySdk/models/rewards_assignments_create_request_body_parameters_loyalty.rb +226 -0
- data/lib/VoucherifySdk/models/rewards_assignments_create_response_body.rb +12 -79
- data/lib/VoucherifySdk/models/rewards_assignments_create_response_body_parameters.rb +209 -0
- data/lib/VoucherifySdk/models/rewards_assignments_create_response_body_parameters_loyalty.rb +221 -0
- data/lib/VoucherifySdk/models/rewards_assignments_get_response_body.rb +12 -79
- data/lib/VoucherifySdk/models/rewards_assignments_get_response_body_parameters.rb +209 -0
- data/lib/VoucherifySdk/models/rewards_assignments_get_response_body_parameters_loyalty.rb +221 -0
- data/lib/VoucherifySdk/models/rewards_assignments_list_response_body.rb +6 -33
- data/lib/VoucherifySdk/models/rewards_assignments_update_request_body.rb +2 -8
- data/lib/VoucherifySdk/models/rewards_assignments_update_request_body_parameters.rb +1 -7
- data/lib/VoucherifySdk/models/rewards_assignments_update_request_body_parameters_loyalty.rb +16 -11
- data/lib/VoucherifySdk/models/rewards_assignments_update_response_body.rb +12 -79
- data/lib/VoucherifySdk/models/rewards_assignments_update_response_body_parameters.rb +209 -0
- data/lib/VoucherifySdk/models/rewards_assignments_update_response_body_parameters_loyalty.rb +221 -0
- data/lib/VoucherifySdk/models/rewards_create_request_body.rb +250 -0
- data/lib/VoucherifySdk/models/rewards_create_request_body_attributes.rb +221 -0
- data/lib/VoucherifySdk/models/rewards_create_request_body_parameters.rb +228 -0
- data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_campaign.rb +219 -0
- data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_coin.rb +221 -0
- data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_product.rb +221 -0
- data/lib/VoucherifySdk/models/rewards_create_response_body.rb +349 -0
- data/lib/VoucherifySdk/models/rewards_create_response_body_attributes.rb +221 -0
- data/lib/VoucherifySdk/models/rewards_list_response_body.rb +249 -0
- data/lib/VoucherifySdk/models/rewards_update_request_body.rb +250 -0
- data/lib/VoucherifySdk/models/rewards_update_request_body_attributes.rb +221 -0
- data/lib/VoucherifySdk/models/rewards_update_request_body_parameters.rb +228 -0
- data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_campaign.rb +219 -0
- data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_coin.rb +221 -0
- data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_product.rb +221 -0
- data/lib/VoucherifySdk/models/rewards_update_response_body.rb +349 -0
- data/lib/VoucherifySdk/models/rewards_update_response_body_attributes.rb +221 -0
- data/lib/VoucherifySdk/models/segments_create_request_body.rb +267 -0
- data/lib/VoucherifySdk/models/segments_create_response_body.rb +305 -0
- data/lib/VoucherifySdk/models/segments_get_response_body.rb +305 -0
- data/lib/VoucherifySdk/models/session.rb +5 -42
- data/lib/VoucherifySdk/models/simple_customer.rb +21 -31
- data/lib/VoucherifySdk/models/simple_customer_required_object_type.rb +8 -14
- data/lib/VoucherifySdk/models/simple_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/simple_product_discount_unit.rb +3 -21
- data/lib/VoucherifySdk/models/simple_segment.rb +4 -37
- data/lib/VoucherifySdk/models/simple_sku_discount_unit.rb +3 -21
- data/lib/VoucherifySdk/models/simple_voucher.rb +110 -47
- data/lib/VoucherifySdk/models/simple_voucher_redemption.rb +221 -0
- data/lib/VoucherifySdk/models/sku.rb +9 -70
- data/lib/VoucherifySdk/models/skus_get_response_body.rb +10 -78
- data/lib/VoucherifySdk/models/skus_import_csv_create_response_body.rb +2 -22
- data/lib/VoucherifySdk/models/skus_list_for_product.rb +5 -32
- data/lib/VoucherifySdk/models/stacking_rules.rb +85 -156
- data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body.rb +406 -0
- data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body_voucher.rb +218 -0
- data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body_voucher_redemption.rb +210 -0
- data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_response_body.rb +265 -0
- data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_response_body_created_resources_item.rb +242 -0
- data/lib/VoucherifySdk/models/templates_campaigns_create_request_body.rb +243 -0
- data/lib/VoucherifySdk/models/templates_campaigns_create_template_response_body.rb +293 -0
- data/lib/VoucherifySdk/models/templates_campaigns_get_response_body.rb +304 -0
- data/lib/VoucherifySdk/models/templates_campaigns_list_response_body.rb +297 -0
- data/lib/VoucherifySdk/models/templates_campaigns_tier_setup_create_request_body.rb +361 -0
- data/lib/VoucherifySdk/models/templates_campaigns_tier_setup_create_response_body.rb +258 -0
- data/lib/VoucherifySdk/models/templates_campaigns_tier_setup_create_response_body_created_resources_item.rb +242 -0
- data/lib/VoucherifySdk/models/templates_campaigns_update_request_body.rb +221 -0
- data/lib/VoucherifySdk/models/templates_campaigns_update_response_body.rb +304 -0
- data/lib/VoucherifySdk/models/trash_bin_item.rb +313 -0
- data/lib/VoucherifySdk/models/trash_bin_list_response_body.rb +297 -0
- data/lib/VoucherifySdk/models/usage_notifications.rb +254 -0
- data/lib/VoucherifySdk/models/user.rb +278 -0
- data/lib/VoucherifySdk/models/validation_rule.rb +17 -91
- data/lib/VoucherifySdk/models/validation_rule_applicable_to.rb +235 -0
- data/lib/VoucherifySdk/models/validation_rule_assignment.rb +8 -69
- data/lib/VoucherifySdk/models/validation_rule_assignments_list.rb +5 -32
- data/lib/VoucherifySdk/models/validation_rule_error.rb +210 -0
- data/lib/VoucherifySdk/models/validation_rules_assignments_create_request_body.rb +5 -20
- data/lib/VoucherifySdk/models/validation_rules_assignments_create_response_body.rb +9 -77
- data/lib/VoucherifySdk/models/validation_rules_assignments_list.rb +7 -68
- data/lib/VoucherifySdk/models/validation_rules_assignments_list_response_body.rb +6 -40
- data/lib/VoucherifySdk/models/validation_rules_create_request_body.rb +10 -46
- data/lib/VoucherifySdk/models/validation_rules_create_request_body_applicable_to.rb +235 -0
- data/lib/VoucherifySdk/models/validation_rules_create_request_body_error.rb +210 -0
- data/lib/VoucherifySdk/models/validation_rules_create_response_body.rb +18 -92
- data/lib/VoucherifySdk/models/validation_rules_create_response_body_applicable_to.rb +235 -0
- data/lib/VoucherifySdk/models/validation_rules_create_response_body_error.rb +210 -0
- data/lib/VoucherifySdk/models/validation_rules_get_response_body.rb +18 -92
- data/lib/VoucherifySdk/models/validation_rules_get_response_body_applicable_to.rb +235 -0
- data/lib/VoucherifySdk/models/validation_rules_get_response_body_error.rb +210 -0
- data/lib/VoucherifySdk/models/validation_rules_list_response_body.rb +6 -33
- data/lib/VoucherifySdk/models/validation_rules_update_request_body.rb +10 -39
- data/lib/VoucherifySdk/models/validation_rules_update_request_body_applicable_to.rb +235 -0
- data/lib/VoucherifySdk/models/validation_rules_update_request_body_error.rb +210 -0
- data/lib/VoucherifySdk/models/validation_rules_update_response_body.rb +18 -92
- data/lib/VoucherifySdk/models/validation_rules_update_response_body_applicable_to.rb +235 -0
- data/lib/VoucherifySdk/models/validation_rules_update_response_body_error.rb +210 -0
- data/lib/VoucherifySdk/models/validations_redeemable_inapplicable.rb +31 -31
- data/lib/VoucherifySdk/models/validations_redeemable_inapplicable_result.rb +15 -11
- data/lib/VoucherifySdk/models/validations_redeemable_inapplicable_result_details.rb +221 -0
- data/lib/VoucherifySdk/models/validations_redeemable_skipped.rb +31 -31
- data/lib/VoucherifySdk/models/validations_redeemable_skipped_result.rb +209 -0
- data/lib/VoucherifySdk/models/validations_redeemable_skipped_result_details.rb +242 -0
- data/lib/VoucherifySdk/models/validations_validate_request_body.rb +19 -65
- data/lib/VoucherifySdk/models/validations_validate_request_body_options.rb +234 -0
- data/lib/VoucherifySdk/models/validations_validate_request_body_redeemables_item.rb +260 -0
- data/lib/VoucherifySdk/models/validations_validate_request_body_redeemables_item_gift.rb +210 -0
- data/lib/VoucherifySdk/models/validations_validate_request_body_redeemables_item_reward.rb +221 -0
- data/lib/VoucherifySdk/models/validations_validate_response_body.rb +26 -27
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item.rb +312 -0
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result.rb +244 -0
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_details.rb +216 -0
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_discount.rb +400 -0
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_discount_product.rb +231 -0
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_gift.rb +210 -0
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_loyalty_card.rb +209 -0
- data/lib/VoucherifySdk/models/validity_hours.rb +212 -0
- data/lib/VoucherifySdk/models/validity_hours_daily_item.rb +253 -0
- data/lib/VoucherifySdk/models/validity_timeframe.rb +221 -0
- data/lib/VoucherifySdk/models/voucher.rb +68 -75
- data/lib/VoucherifySdk/models/voucher_assets.rb +4 -9
- data/lib/VoucherifySdk/models/voucher_assets_barcode.rb +221 -0
- data/lib/VoucherifySdk/models/voucher_assets_qr.rb +221 -0
- data/lib/VoucherifySdk/models/voucher_gift.rb +3 -17
- data/lib/VoucherifySdk/models/voucher_loyalty_card.rb +5 -8
- data/lib/VoucherifySdk/models/voucher_publish.rb +6 -10
- data/lib/VoucherifySdk/models/voucher_redemption.rb +8 -20
- data/lib/VoucherifySdk/models/voucher_transaction.rb +7 -52
- data/lib/VoucherifySdk/models/voucher_transaction_details.rb +11 -7
- data/lib/VoucherifySdk/models/voucher_transaction_details_balance.rb +14 -73
- data/lib/VoucherifySdk/models/voucher_transaction_details_balance_related_object.rb +4 -31
- data/lib/VoucherifySdk/models/voucher_transaction_details_custom_event.rb +2 -21
- data/lib/VoucherifySdk/models/voucher_transaction_details_earning_rule.rb +2 -21
- data/lib/VoucherifySdk/models/voucher_transaction_details_earning_rule_source.rb +1 -14
- data/lib/VoucherifySdk/models/voucher_transaction_details_event.rb +2 -21
- data/lib/VoucherifySdk/models/voucher_transaction_details_event_schema.rb +2 -21
- data/lib/VoucherifySdk/models/voucher_transaction_details_loyalty_tier.rb +2 -21
- data/lib/VoucherifySdk/models/voucher_transaction_details_order.rb +3 -22
- data/lib/VoucherifySdk/models/voucher_transaction_details_redemption.rb +1 -14
- data/lib/VoucherifySdk/models/voucher_transaction_details_reward.rb +2 -21
- data/lib/VoucherifySdk/models/voucher_transaction_details_rollback.rb +1 -14
- data/lib/VoucherifySdk/models/voucher_transaction_details_segment.rb +2 -21
- data/lib/VoucherifySdk/models/voucher_transactions_export_filter_conditions.rb +1 -14
- data/lib/VoucherifySdk/models/voucher_transactions_export_filter_conditions_voucher_id.rb +2 -15
- data/lib/VoucherifySdk/models/voucher_transactions_export_filter_conditions_voucher_id_conditions.rb +6 -37
- data/lib/VoucherifySdk/models/voucher_transactions_export_parameters.rb +3 -18
- data/lib/VoucherifySdk/models/voucher_transactions_filters.rb +3 -18
- data/lib/VoucherifySdk/models/voucher_with_categories.rb +524 -0
- data/lib/VoucherifySdk/models/voucher_with_categories_gift.rb +256 -0
- data/lib/VoucherifySdk/models/voucher_with_categories_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/voucher_with_categories_publish.rb +234 -0
- data/lib/VoucherifySdk/models/voucher_with_categories_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/vouchers_balance_update_request_body.rb +4 -15
- data/lib/VoucherifySdk/models/vouchers_balance_update_response_body.rb +8 -83
- data/lib/VoucherifySdk/models/vouchers_balance_update_response_body_related_object.rb +2 -29
- data/lib/VoucherifySdk/models/vouchers_create_response_body.rb +533 -0
- data/lib/VoucherifySdk/models/vouchers_create_response_body_gift.rb +256 -0
- data/lib/VoucherifySdk/models/vouchers_create_response_body_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/vouchers_create_response_body_publish.rb +234 -0
- data/lib/VoucherifySdk/models/vouchers_create_response_body_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/vouchers_create_with_specific_code_request_body.rb +410 -0
- data/lib/VoucherifySdk/models/vouchers_create_with_specific_code_request_body_redemption.rb +209 -0
- data/lib/VoucherifySdk/models/vouchers_disable_response_body.rb +71 -85
- data/lib/VoucherifySdk/models/vouchers_disable_response_body_gift.rb +256 -0
- data/lib/VoucherifySdk/models/vouchers_disable_response_body_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/vouchers_disable_response_body_publish.rb +234 -0
- data/lib/VoucherifySdk/models/vouchers_disable_response_body_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/vouchers_enable_response_body.rb +71 -85
- data/lib/VoucherifySdk/models/vouchers_enable_response_body_gift.rb +256 -0
- data/lib/VoucherifySdk/models/vouchers_enable_response_body_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/vouchers_enable_response_body_publish.rb +234 -0
- data/lib/VoucherifySdk/models/vouchers_enable_response_body_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/vouchers_get_response_body.rb +71 -85
- data/lib/VoucherifySdk/models/vouchers_get_response_body_gift.rb +256 -0
- data/lib/VoucherifySdk/models/vouchers_get_response_body_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/vouchers_get_response_body_publish.rb +234 -0
- data/lib/VoucherifySdk/models/vouchers_get_response_body_redemption.rb +256 -0
- data/lib/VoucherifySdk/models/vouchers_import_create_item_request_body.rb +357 -0
- data/lib/VoucherifySdk/models/vouchers_import_create_item_request_body_redemption.rb +209 -0
- data/lib/VoucherifySdk/models/vouchers_import_create_response_body.rb +210 -0
- data/lib/VoucherifySdk/models/vouchers_import_csv_create_response_body.rb +2 -22
- data/lib/VoucherifySdk/models/vouchers_list_response_body.rb +275 -0
- data/lib/VoucherifySdk/models/vouchers_metadata_update_in_bulk_request_body.rb +223 -0
- data/lib/VoucherifySdk/models/vouchers_metadata_update_in_bulk_response_body.rb +210 -0
- data/lib/VoucherifySdk/models/vouchers_redemption_get_response_body.rb +8 -43
- data/lib/VoucherifySdk/models/vouchers_transactions_export_create_request_body.rb +1 -8
- data/lib/VoucherifySdk/models/vouchers_transactions_export_create_response_body.rb +8 -84
- data/lib/VoucherifySdk/models/vouchers_transactions_export_create_response_body_result.rb +210 -0
- data/lib/VoucherifySdk/models/vouchers_transactions_list_response_body.rb +48 -38
- data/lib/VoucherifySdk/models/vouchers_update_in_bulk_item_request_body.rb +220 -0
- data/lib/VoucherifySdk/models/vouchers_update_in_bulk_response_body.rb +210 -0
- data/lib/VoucherifySdk/models/vouchers_update_request_body.rb +365 -0
- data/lib/VoucherifySdk/models/vouchers_update_response_body.rb +533 -0
- data/lib/VoucherifySdk/models/vouchers_update_response_body_gift.rb +256 -0
- data/lib/VoucherifySdk/models/vouchers_update_response_body_loyalty_card.rb +243 -0
- data/lib/VoucherifySdk/models/vouchers_update_response_body_publish.rb +234 -0
- data/lib/VoucherifySdk/models/vouchers_update_response_body_redemption.rb +256 -0
- data/lib/VoucherifySdk/version.rb +1 -1
- data/lib/VoucherifySdk.rb +769 -294
- metadata +1649 -622
- data/CHANGELOG.md +0 -33
- data/__tests__/spec/1_products_spec.rb +0 -101
- data/__tests__/spec/2_campaigns_spec.rb +0 -95
- data/__tests__/spec/3_customers_spec.rb +0 -24
- data/__tests__/spec/4_publications_spec.rb +0 -23
- data/__tests__/spec/5_qualifications_spec.rb +0 -27
- data/__tests__/spec/6_validations_spec.rb +0 -126
- data/__tests__/spec/7_vouchers_spec.rb +0 -40
- data/__tests__/spec/8_events_spec.rb +0 -16
- data/__tests__/spec/9_redemptions_spec.rb +0 -14
- data/__tests__/spec/a1_validation_rules_spec.rb +0 -33
- data/docs/Any.md +0 -53
- data/docs/ArrayInner.md +0 -51
- data/docs/AsyncActions.md +0 -8
- data/docs/CampaignBaseValidityTimeframe.md +0 -9
- data/docs/CampaignsCreateBase.md +0 -23
- data/docs/CampaignsCreateDiscountCouponsCampaign.md +0 -25
- data/docs/CampaignsCreateGiftCampaign.md +0 -25
- data/docs/CampaignsCreateGiveawayCampaign.md +0 -26
- data/docs/CampaignsCreateLoyaltyCampaign.md +0 -25
- data/docs/CampaignsCreatePromotionCampaign.md +0 -25
- data/docs/CampaignsCreateReferralCampaign.md +0 -26
- data/docs/CampaignsDisableResponseBody.md +0 -7
- data/docs/CampaignsEnableResponseBody.md +0 -7
- data/docs/CampaignsImportVoucherLoyaltyCard.md +0 -8
- data/docs/CampaignsUpdateBase.md +0 -16
- data/docs/CampaignsUpdateCouponCampaignBase.md +0 -20
- data/docs/CampaignsUpdateDiscountCouponsCampaign.md +0 -21
- data/docs/CampaignsUpdateGiftCampaign.md +0 -21
- data/docs/CampaignsUpdateGiveawayCampaign.md +0 -23
- data/docs/CampaignsUpdateLoyaltyCampaign.md +0 -22
- data/docs/CampaignsUpdatePromotionCampaign.md +0 -16
- data/docs/CampaignsUpdateReferralCampaign.md +0 -22
- data/docs/CampaignsVouchersCreateBaseRequestBody.md +0 -13
- data/docs/CampaignsVouchersCreateInBulkResponseBody.md +0 -8
- data/docs/ClientQualificationsCheckEligibilityRequestBodyOptions.md +0 -12
- data/docs/ClientQualificationsCheckEligibilityRequestBodyOptionsFilters.md +0 -14
- data/docs/ClientRedemptionsRedeemRequestBodyAllOfOptions.md +0 -8
- data/docs/ClientValidationsValidateRequestBodyAllOfOptions.md +0 -8
- data/docs/CodeConfigRequiredLengthCharsetPattern.md +0 -13
- data/docs/CreatePublicationBase.md +0 -10
- data/docs/CreatePublicationWithCampaign.md +0 -11
- data/docs/CreatePublicationWithSpecificVoucher.md +0 -11
- data/docs/CustomEvent.md +0 -15
- data/docs/CustomEventReferral.md +0 -10
- data/docs/CustomerActivityData.md +0 -183
- data/docs/CustomerBase.md +0 -15
- data/docs/CustomerBaseAddress.md +0 -13
- data/docs/CustomerLoyaltyCampaignsValue.md +0 -10
- data/docs/CustomerResponseDataAssets.md +0 -8
- data/docs/CustomerSegmentsList.md +0 -11
- data/docs/DiscountAmount.md +0 -13
- data/docs/DiscountAmountVouchersEffectTypes.md +0 -7
- data/docs/DiscountCouponsCampaignVoucher.md +0 -11
- data/docs/DiscountFixed.md +0 -12
- data/docs/DiscountFixedVouchersEffectTypes.md +0 -7
- data/docs/DiscountPercent.md +0 -14
- data/docs/DiscountPercentVouchersEffectTypes.md +0 -7
- data/docs/DiscountUnit.md +0 -15
- data/docs/DiscountUnitMultiple.md +0 -10
- data/docs/DiscountUnitVouchersEffectTypes.md +0 -7
- data/docs/EarningRuleBase.md +0 -21
- data/docs/EarningRuleBaseCustomEvent.md +0 -8
- data/docs/EarningRuleBaseLoyalty.md +0 -49
- data/docs/EarningRuleBaseSegment.md +0 -8
- data/docs/EarningRuleBaseSource.md +0 -10
- data/docs/EarningRuleBaseValidityTimeframe.md +0 -9
- data/docs/EarningRuleEvent.md +0 -7
- data/docs/EarningRuleFixed.md +0 -9
- data/docs/EarningRuleProportional.md +0 -53
- data/docs/EarningRuleProportionalCustomEvent.md +0 -10
- data/docs/EarningRuleProportionalCustomEventCustomEvent.md +0 -8
- data/docs/EarningRuleProportionalCustomEventCustomEventMetadata.md +0 -10
- data/docs/EarningRuleProportionalCustomerMetadata.md +0 -10
- data/docs/EarningRuleProportionalCustomerMetadataCustomer.md +0 -8
- data/docs/EarningRuleProportionalCustomerMetadataCustomerMetadata.md +0 -10
- data/docs/EarningRuleProportionalOrder.md +0 -51
- data/docs/EarningRuleProportionalOrderAmount.md +0 -10
- data/docs/EarningRuleProportionalOrderAmountOrder.md +0 -8
- data/docs/EarningRuleProportionalOrderAmountOrderAmount.md +0 -9
- data/docs/EarningRuleProportionalOrderItems.md +0 -51
- data/docs/EarningRuleProportionalOrderItemsAmount.md +0 -10
- data/docs/EarningRuleProportionalOrderItemsAmountOrderItems.md +0 -8
- data/docs/EarningRuleProportionalOrderItemsAmountOrderItemsAmount.md +0 -11
- data/docs/EarningRuleProportionalOrderItemsQuantity.md +0 -10
- data/docs/EarningRuleProportionalOrderItemsQuantityOrderItems.md +0 -8
- data/docs/EarningRuleProportionalOrderItemsSubtotalAmount.md +0 -10
- data/docs/EarningRuleProportionalOrderItemsSubtotalAmountOrderItems.md +0 -8
- data/docs/EarningRuleProportionalOrderMetadata.md +0 -10
- data/docs/EarningRuleProportionalOrderMetadataOrder.md +0 -8
- data/docs/EarningRuleProportionalOrderMetadataOrderMetadata.md +0 -10
- data/docs/EarningRuleProportionalOrderTotalAmount.md +0 -10
- data/docs/EarningRuleProportionalOrderTotalAmountOrder.md +0 -8
- data/docs/EventCustomerActiveCampaignFailed.md +0 -10
- data/docs/EventCustomerActiveCampaignRecovered.md +0 -10
- data/docs/EventCustomerActiveCampaignSent.md +0 -10
- data/docs/EventCustomerBatchFailed.md +0 -10
- data/docs/EventCustomerBatchRecovered.md +0 -10
- data/docs/EventCustomerBatchSent.md +0 -10
- data/docs/EventCustomerBrazeFailed.md +0 -10
- data/docs/EventCustomerBrazeRecovered.md +0 -10
- data/docs/EventCustomerBrazeSent.md +0 -10
- data/docs/EventCustomerConfirmed.md +0 -9
- data/docs/EventCustomerConfirmedUnconfirmedCustomer.md +0 -8
- data/docs/EventCustomerConsents.md +0 -9
- data/docs/EventCustomerConsentsGiven.md +0 -9
- data/docs/EventCustomerConsentsRevoked.md +0 -9
- data/docs/EventCustomerCreated.md +0 -8
- data/docs/EventCustomerCustomEvent.md +0 -8
- data/docs/EventCustomerDeleted.md +0 -8
- data/docs/EventCustomerEmailFailed.md +0 -10
- data/docs/EventCustomerEmailRecovered.md +0 -10
- data/docs/EventCustomerEmailSent.md +0 -10
- data/docs/EventCustomerFailed.md +0 -10
- data/docs/EventCustomerGiftVoucherBalanceAdded.md +0 -12
- data/docs/EventCustomerIntercomFailed.md +0 -10
- data/docs/EventCustomerIntercomRecovered.md +0 -10
- data/docs/EventCustomerIntercomSent.md +0 -10
- data/docs/EventCustomerKlaviyoFailed.md +0 -10
- data/docs/EventCustomerKlaviyoRecovered.md +0 -10
- data/docs/EventCustomerKlaviyoSent.md +0 -10
- data/docs/EventCustomerLoyaltyCardPointsAdded.md +0 -12
- data/docs/EventCustomerLoyaltyCardPointsTransferred.md +0 -14
- data/docs/EventCustomerLoyaltyTierBase.md +0 -9
- data/docs/EventCustomerLoyaltyTierDowngraded.md +0 -12
- data/docs/EventCustomerLoyaltyTierExpirationChanged.md +0 -12
- data/docs/EventCustomerLoyaltyTierJoined.md +0 -11
- data/docs/EventCustomerLoyaltyTierLeft.md +0 -11
- data/docs/EventCustomerLoyaltyTierProlonged.md +0 -11
- data/docs/EventCustomerLoyaltyTierUpgraded.md +0 -12
- data/docs/EventCustomerLoyaltyUpdated.md +0 -11
- data/docs/EventCustomerMailchimpFailed.md +0 -10
- data/docs/EventCustomerMailchimpRecovered.md +0 -10
- data/docs/EventCustomerMailchimpSent.md +0 -10
- data/docs/EventCustomerOrder.md +0 -11
- data/docs/EventCustomerOrderCanceled.md +0 -11
- data/docs/EventCustomerOrderCreated.md +0 -11
- data/docs/EventCustomerOrderFulfilled.md +0 -11
- data/docs/EventCustomerOrderPaid.md +0 -11
- data/docs/EventCustomerOrderProcessing.md +0 -11
- data/docs/EventCustomerOrderUpdated.md +0 -11
- data/docs/EventCustomerPublicationFailed.md +0 -10
- data/docs/EventCustomerPublicationSucceeded.md +0 -10
- data/docs/EventCustomerRecovered.md +0 -10
- data/docs/EventCustomerRedemption.md +0 -14
- data/docs/EventCustomerRedemptionFailed.md +0 -14
- data/docs/EventCustomerRedemptionRollbackFailed.md +0 -15
- data/docs/EventCustomerRedemptionRollbackSucceeded.md +0 -15
- data/docs/EventCustomerRedemptionSucceeded.md +0 -14
- data/docs/EventCustomerReferred.md +0 -13
- data/docs/EventCustomerRewardRedemptions.md +0 -16
- data/docs/EventCustomerRewardRedemptionsCompleted.md +0 -16
- data/docs/EventCustomerRewardRedemptionsCreated.md +0 -16
- data/docs/EventCustomerRewardRedemptionsPending.md +0 -16
- data/docs/EventCustomerRewardRedemptionsRolledBack.md +0 -16
- data/docs/EventCustomerRewarded.md +0 -17
- data/docs/EventCustomerRewardedLoyaltyPoints.md +0 -16
- data/docs/EventCustomerSegmentEntered.md +0 -9
- data/docs/EventCustomerSegmentLeft.md +0 -9
- data/docs/EventCustomerSent.md +0 -10
- data/docs/EventCustomerShopifyFailed.md +0 -10
- data/docs/EventCustomerShopifyRecovered.md +0 -10
- data/docs/EventCustomerShopifySent.md +0 -10
- data/docs/EventCustomerSmsFailed.md +0 -10
- data/docs/EventCustomerSmsRecovered.md +0 -10
- data/docs/EventCustomerSmsSent.md +0 -10
- data/docs/EventCustomerUpdated.md +0 -8
- data/docs/EventCustomerValidationFailed.md +0 -9
- data/docs/EventCustomerValidationSucceeded.md +0 -9
- data/docs/EventCustomerVoucherDeleted.md +0 -10
- data/docs/EventCustomerVouchersLoyaltyPointsExpired.md +0 -13
- data/docs/ExportBase.md +0 -14
- data/docs/ExportBaseResult.md +0 -8
- data/docs/ExportCustomer.md +0 -16
- data/docs/ExportCustomerBase.md +0 -9
- data/docs/ExportCustomerBaseParameters.md +0 -10
- data/docs/ExportCustomerFields.md +0 -7
- data/docs/ExportCustomerFilters.md +0 -38
- data/docs/ExportCustomerOrder.md +0 -7
- data/docs/ExportCustomerScheduled.md +0 -16
- data/docs/ExportOrder.md +0 -16
- data/docs/ExportOrderBase.md +0 -9
- data/docs/ExportOrderFilters.md +0 -21
- data/docs/ExportOrderScheduled.md +0 -16
- data/docs/ExportPointsExpiration.md +0 -16
- data/docs/ExportPointsExpirationBase.md +0 -9
- data/docs/ExportPointsExpirationBaseParameters.md +0 -10
- data/docs/ExportPointsExpirationFields.md +0 -7
- data/docs/ExportPointsExpirationFilters.md +0 -10
- data/docs/ExportPointsExpirationOrder.md +0 -7
- data/docs/ExportPointsExpirationScheduled.md +0 -16
- data/docs/ExportPublication.md +0 -16
- data/docs/ExportPublicationBase.md +0 -9
- data/docs/ExportPublicationBaseParameters.md +0 -10
- data/docs/ExportPublicationFields.md +0 -7
- data/docs/ExportPublicationFilters.md +0 -16
- data/docs/ExportPublicationOrder.md +0 -7
- data/docs/ExportPublicationScheduled.md +0 -16
- data/docs/ExportRedemption.md +0 -16
- data/docs/ExportRedemptionBase.md +0 -9
- data/docs/ExportRedemptionBaseParameters.md +0 -10
- data/docs/ExportRedemptionFields.md +0 -7
- data/docs/ExportRedemptionFilters.md +0 -25
- data/docs/ExportRedemptionOrder.md +0 -7
- data/docs/ExportRedemptionScheduled.md +0 -16
- data/docs/ExportScheduledBase.md +0 -14
- data/docs/ExportVoucher.md +0 -16
- data/docs/ExportVoucherBase.md +0 -9
- data/docs/ExportVoucherBaseParameters.md +0 -10
- data/docs/ExportVoucherFields.md +0 -7
- data/docs/ExportVoucherFilters.md +0 -38
- data/docs/ExportVoucherOrder.md +0 -7
- data/docs/ExportVoucherScheduled.md +0 -16
- data/docs/ExportVoucherTransactions.md +0 -16
- data/docs/ExportVoucherTransactionsBase.md +0 -9
- data/docs/ExportVoucherTransactionsScheduled.md +0 -16
- data/docs/GiftCampaignVoucher.md +0 -11
- data/docs/GiveawayCampaignVoucher.md +0 -12
- data/docs/ListPublicationsItemBase.md +0 -17
- data/docs/ListPublicationsItemInvalid.md +0 -20
- data/docs/ListPublicationsItemValidMultipleVouchers.md +0 -19
- data/docs/ListPublicationsItemValidSingleVoucher.md +0 -19
- data/docs/LoyaltiesMembersTransfersCreateResponseBodyValidityTimeframe.md +0 -9
- data/docs/LoyaltyTierAllOfConfig.md +0 -8
- data/docs/LoyaltyTierAllOfConfigPoints.md +0 -9
- data/docs/LuckyDraw.md +0 -10
- data/docs/MappingFixed.md +0 -9
- data/docs/MappingMultiply.md +0 -9
- data/docs/OrderBase.md +0 -17
- data/docs/OrderCalculatedBase.md +0 -27
- data/docs/OrderCalculatedCustomer.md +0 -49
- data/docs/OrderCalculatedNoCustomerData.md +0 -29
- data/docs/OrderCalculatedReferrer.md +0 -49
- data/docs/OrderItemCalculated.md +0 -25
- data/docs/OrderRedemptions.md +0 -15
- data/docs/ProductCollectionsCreateDynamicRequestBody.md +0 -10
- data/docs/ProductCollectionsCreateDynamicRequestBodyFilter.md +0 -20
- data/docs/ProductCollectionsCreateDynamicRequestBodyProductsItem.md +0 -10
- data/docs/ProductCollectionsCreateStaticRequestBody.md +0 -10
- data/docs/ProductCollectionsList.md +0 -11
- data/docs/ProductCollectionsProductsList.md +0 -11
- data/docs/ProductCollectionsProductsListProductsItem.md +0 -49
- data/docs/PromotionTierCampaignValidityTimeframe.md +0 -9
- data/docs/PromotionTierValidityTimeframe.md +0 -9
- data/docs/PropertiesForLoyaltyCampaignOptions.md +0 -8
- data/docs/PublicationsCreateBaseResponseBody.md +0 -18
- data/docs/PublicationsCreateVoucherResponseBody.md +0 -19
- data/docs/PublicationsCreateVouchersResponseBody.md +0 -19
- data/docs/QualificationsStackingRules.md +0 -12
- data/docs/RedeemGiftCard.md +0 -10
- data/docs/RedeemGiftCardAllOfGift.md +0 -8
- data/docs/RedeemLoyaltyCard.md +0 -10
- data/docs/RedeemLoyaltyCardAllOfReward.md +0 -9
- data/docs/RedeemPromotionStack.md +0 -9
- data/docs/RedeemPromotionTier.md +0 -9
- data/docs/RedeemVoucher.md +0 -9
- data/docs/RedeemableResultGiftCard.md +0 -8
- data/docs/RedeemableResultGiftCardGift.md +0 -8
- data/docs/RedeemableResultLoyaltyCard.md +0 -8
- data/docs/RedeemableResultLoyaltyCardLoyaltyCard.md +0 -8
- data/docs/RedeemableResultPromotionStack.md +0 -8
- data/docs/RedeemableResultPromotionTier.md +0 -8
- data/docs/RedeemableResultPromotionTierDiscount.md +0 -55
- data/docs/RedeemableResultVoucherCode.md +0 -8
- data/docs/RedemptionInternal.md +0 -34
- data/docs/RedemptionInternalRelatedRedemptions.md +0 -9
- data/docs/RedemptionInternalRelatedRedemptionsItem.md +0 -9
- data/docs/RedemptionInternalRelatedRedemptionsRollbacksItem.md +0 -9
- data/docs/RedemptionRelatedRedemptionsItem.md +0 -9
- data/docs/RedemptionRewardResultProduct.md +0 -18
- data/docs/RedemptionRewardResultSku.md +0 -19
- data/docs/RedemptionRewardResultVoucher.md +0 -37
- data/docs/RedemptionRollbackRelatedRedemptionsItem.md +0 -9
- data/docs/ReferralCampaignVoucher.md +0 -12
- data/docs/ReferrerWithSummaryLoyaltyReferrals.md +0 -25
- data/docs/RewardAssignmentBase.md +0 -14
- data/docs/RewardAssignmentParametersParameters.md +0 -8
- data/docs/RewardAssignmentParametersParametersLoyalty.md +0 -8
- data/docs/RewardAssignmentsCreateCoinRewardRequestBody.md +0 -9
- data/docs/RewardAssignmentsCreateDigitalOrMaterialRewardRequestBody.md +0 -9
- data/docs/RewardAssignmentsCreateDigitalOrMaterialRewardRequestBodyParameters.md +0 -8
- data/docs/RewardAssignmentsCreateDigitalOrMaterialRewardRequestBodyParametersLoyalty.md +0 -8
- data/docs/RewardTypeCampaignCampaign.md +0 -10
- data/docs/RewardTypeCoinCoin.md +0 -9
- data/docs/RewardTypeMaterial.md +0 -8
- data/docs/RewardTypeMaterialProduct.md +0 -9
- data/docs/SchemaThatContainsUniquePropertiesForPromotionCampaignPromotion.md +0 -8
- data/docs/SimpleCampaign.md +0 -20
- data/docs/SimpleConsent.md +0 -10
- data/docs/SimpleOrder.md +0 -23
- data/docs/SimpleOrderItem.md +0 -18
- data/docs/SimpleProduct.md +0 -10
- data/docs/SimplePromotionTier.md +0 -11
- data/docs/SimplePromotionTierCampaign.md +0 -8
- data/docs/SimpleRedemption.md +0 -20
- data/docs/SimpleRedemptionRewardResult.md +0 -20
- data/docs/SimpleReferralTier.md +0 -11
- data/docs/SimpleSku.md +0 -10
- data/docs/SkuWithProduct.md +0 -20
- data/docs/SkusList.md +0 -11
- data/docs/StackableDiscountsApi.md +0 -412
- data/docs/StackableValidateRedeemBase.md +0 -13
- data/docs/StackableValidateRedeemBaseRedeemablesItem.md +0 -55
- data/docs/ValidationEntity.md +0 -15
- data/docs/ValidationRuleBase.md +0 -13
- data/docs/ValidationRuleBaseApplicableTo.md +0 -10
- data/docs/ValidationRuleBaseError.md +0 -8
- data/docs/ValidationsRedeemableApplicable.md +0 -16
- data/docs/ValidationsRedeemableApplicableResult.md +0 -55
- data/docs/ValidationsValidateAllResponseBody.md +0 -13
- data/docs/ValidationsValidateAllResponseBodyRedeemablesItem.md +0 -51
- data/docs/ValidationsValidatePartialResponseBody.md +0 -14
- data/docs/VoucherTransactionsExport.md +0 -16
- data/docs/VoucherTransactionsExportResult.md +0 -8
- data/docs/VoucherValidityTimeframe.md +0 -9
- data/docs/VouchersRedemptionGetResponseBodyRedemptionEntriesItem.md +0 -49
- data/lib/VoucherifySdk/models/any.rb +0 -107
- data/lib/VoucherifySdk/models/array_inner.rb +0 -106
- data/lib/VoucherifySdk/models/async_actions.rb +0 -223
- data/lib/VoucherifySdk/models/campaign_base_validity_timeframe.rb +0 -226
- data/lib/VoucherifySdk/models/campaigns_create_base.rb +0 -422
- data/lib/VoucherifySdk/models/campaigns_create_discount_coupons_campaign.rb +0 -461
- data/lib/VoucherifySdk/models/campaigns_create_gift_campaign.rb +0 -461
- data/lib/VoucherifySdk/models/campaigns_create_giveaway_campaign.rb +0 -470
- data/lib/VoucherifySdk/models/campaigns_create_loyalty_campaign.rb +0 -461
- data/lib/VoucherifySdk/models/campaigns_create_promotion_campaign.rb +0 -461
- data/lib/VoucherifySdk/models/campaigns_create_referral_campaign.rb +0 -470
- data/lib/VoucherifySdk/models/campaigns_disable_response_body.rb +0 -206
- data/lib/VoucherifySdk/models/campaigns_enable_response_body.rb +0 -206
- data/lib/VoucherifySdk/models/campaigns_import_voucher_loyalty_card.rb +0 -223
- data/lib/VoucherifySdk/models/campaigns_update_base.rb +0 -300
- data/lib/VoucherifySdk/models/campaigns_update_coupon_campaign_base.rb +0 -381
- data/lib/VoucherifySdk/models/campaigns_update_discount_coupons_campaign.rb +0 -389
- data/lib/VoucherifySdk/models/campaigns_update_gift_campaign.rb +0 -389
- data/lib/VoucherifySdk/models/campaigns_update_giveaway_campaign.rb +0 -420
- data/lib/VoucherifySdk/models/campaigns_update_loyalty_campaign.rb +0 -398
- data/lib/VoucherifySdk/models/campaigns_update_promotion_campaign.rb +0 -306
- data/lib/VoucherifySdk/models/campaigns_update_referral_campaign.rb +0 -398
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_base_request_body.rb +0 -264
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_in_bulk_response_body.rb +0 -230
- data/lib/VoucherifySdk/models/client_redemptions_redeem_request_body_all_of_options.rb +0 -240
- data/lib/VoucherifySdk/models/client_validations_validate_request_body_all_of_options.rb +0 -240
- data/lib/VoucherifySdk/models/code_config_required_length_charset_pattern.rb +0 -293
- data/lib/VoucherifySdk/models/create_publication_base.rb +0 -242
- data/lib/VoucherifySdk/models/create_publication_with_campaign.rb +0 -265
- data/lib/VoucherifySdk/models/create_publication_with_specific_voucher.rb +0 -266
- data/lib/VoucherifySdk/models/custom_event.rb +0 -351
- data/lib/VoucherifySdk/models/custom_event_referral.rb +0 -236
- data/lib/VoucherifySdk/models/customer_activity_data.rb +0 -173
- data/lib/VoucherifySdk/models/customer_base.rb +0 -285
- data/lib/VoucherifySdk/models/customer_base_address.rb +0 -266
- data/lib/VoucherifySdk/models/customer_loyalty_campaigns_value.rb +0 -236
- data/lib/VoucherifySdk/models/customer_response_data_assets.rb +0 -216
- data/lib/VoucherifySdk/models/customer_segments_list.rb +0 -276
- data/lib/VoucherifySdk/models/discount_amount.rb +0 -311
- data/lib/VoucherifySdk/models/discount_amount_vouchers_effect_types.rb +0 -43
- data/lib/VoucherifySdk/models/discount_coupons_campaign_voucher.rb +0 -290
- data/lib/VoucherifySdk/models/discount_fixed.rb +0 -301
- data/lib/VoucherifySdk/models/discount_fixed_vouchers_effect_types.rb +0 -40
- data/lib/VoucherifySdk/models/discount_percent.rb +0 -321
- data/lib/VoucherifySdk/models/discount_percent_vouchers_effect_types.rb +0 -40
- data/lib/VoucherifySdk/models/discount_unit.rb +0 -329
- data/lib/VoucherifySdk/models/discount_unit_multiple.rb +0 -298
- data/lib/VoucherifySdk/models/discount_unit_vouchers_effect_types.rb +0 -41
- data/lib/VoucherifySdk/models/earning_rule_base.rb +0 -424
- data/lib/VoucherifySdk/models/earning_rule_base_custom_event.rb +0 -221
- data/lib/VoucherifySdk/models/earning_rule_base_loyalty.rb +0 -105
- data/lib/VoucherifySdk/models/earning_rule_base_segment.rb +0 -223
- data/lib/VoucherifySdk/models/earning_rule_base_source.rb +0 -284
- data/lib/VoucherifySdk/models/earning_rule_base_validity_timeframe.rb +0 -240
- data/lib/VoucherifySdk/models/earning_rule_event.rb +0 -46
- data/lib/VoucherifySdk/models/earning_rule_fixed.rb +0 -261
- data/lib/VoucherifySdk/models/earning_rule_proportional.rb +0 -107
- data/lib/VoucherifySdk/models/earning_rule_proportional_custom_event.rb +0 -301
- data/lib/VoucherifySdk/models/earning_rule_proportional_custom_event_custom_event.rb +0 -221
- data/lib/VoucherifySdk/models/earning_rule_proportional_custom_event_custom_event_metadata.rb +0 -257
- data/lib/VoucherifySdk/models/earning_rule_proportional_customer_metadata.rb +0 -301
- data/lib/VoucherifySdk/models/earning_rule_proportional_customer_metadata_customer.rb +0 -221
- data/lib/VoucherifySdk/models/earning_rule_proportional_customer_metadata_customer_metadata.rb +0 -257
- data/lib/VoucherifySdk/models/earning_rule_proportional_order.rb +0 -106
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_amount.rb +0 -301
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_amount_order.rb +0 -221
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_amount_order_amount.rb +0 -240
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_items.rb +0 -106
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_amount.rb +0 -301
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_amount_order_items.rb +0 -221
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_amount_order_items_amount.rb +0 -308
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_quantity.rb +0 -301
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_quantity_order_items.rb +0 -221
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_subtotal_amount.rb +0 -301
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_items_subtotal_amount_order_items.rb +0 -221
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_metadata.rb +0 -301
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_metadata_order.rb +0 -222
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_metadata_order_metadata.rb +0 -257
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_total_amount.rb +0 -301
- data/lib/VoucherifySdk/models/earning_rule_proportional_order_total_amount_order.rb +0 -221
- data/lib/VoucherifySdk/models/event_customer_active_campaign_failed.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_active_campaign_recovered.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_active_campaign_sent.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_batch_failed.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_batch_recovered.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_batch_sent.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_braze_failed.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_braze_recovered.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_braze_sent.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_confirmed.rb +0 -224
- data/lib/VoucherifySdk/models/event_customer_confirmed_unconfirmed_customer.rb +0 -214
- data/lib/VoucherifySdk/models/event_customer_consents.rb +0 -225
- data/lib/VoucherifySdk/models/event_customer_consents_given.rb +0 -233
- data/lib/VoucherifySdk/models/event_customer_consents_revoked.rb +0 -233
- data/lib/VoucherifySdk/models/event_customer_created.rb +0 -215
- data/lib/VoucherifySdk/models/event_customer_custom_event.rb +0 -222
- data/lib/VoucherifySdk/models/event_customer_deleted.rb +0 -215
- data/lib/VoucherifySdk/models/event_customer_email_failed.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_email_recovered.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_email_sent.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_failed.rb +0 -240
- data/lib/VoucherifySdk/models/event_customer_gift_voucher_balance_added.rb +0 -251
- data/lib/VoucherifySdk/models/event_customer_intercom_failed.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_intercom_recovered.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_intercom_sent.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_klaviyo_failed.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_klaviyo_recovered.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_klaviyo_sent.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_loyalty_card_points_added.rb +0 -251
- data/lib/VoucherifySdk/models/event_customer_loyalty_card_points_transferred.rb +0 -269
- data/lib/VoucherifySdk/models/event_customer_loyalty_tier_base.rb +0 -223
- data/lib/VoucherifySdk/models/event_customer_loyalty_tier_downgraded.rb +0 -279
- data/lib/VoucherifySdk/models/event_customer_loyalty_tier_expiration_changed.rb +0 -279
- data/lib/VoucherifySdk/models/event_customer_loyalty_tier_joined.rb +0 -263
- data/lib/VoucherifySdk/models/event_customer_loyalty_tier_left.rb +0 -263
- data/lib/VoucherifySdk/models/event_customer_loyalty_tier_prolonged.rb +0 -263
- data/lib/VoucherifySdk/models/event_customer_loyalty_tier_upgraded.rb +0 -272
- data/lib/VoucherifySdk/models/event_customer_loyalty_updated.rb +0 -249
- data/lib/VoucherifySdk/models/event_customer_mailchimp_failed.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_mailchimp_recovered.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_mailchimp_sent.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_order.rb +0 -241
- data/lib/VoucherifySdk/models/event_customer_order_canceled.rb +0 -249
- data/lib/VoucherifySdk/models/event_customer_order_created.rb +0 -249
- data/lib/VoucherifySdk/models/event_customer_order_fulfilled.rb +0 -249
- data/lib/VoucherifySdk/models/event_customer_order_paid.rb +0 -249
- data/lib/VoucherifySdk/models/event_customer_order_processing.rb +0 -249
- data/lib/VoucherifySdk/models/event_customer_order_updated.rb +0 -249
- data/lib/VoucherifySdk/models/event_customer_publication_failed.rb +0 -233
- data/lib/VoucherifySdk/models/event_customer_publication_succeeded.rb +0 -233
- data/lib/VoucherifySdk/models/event_customer_recovered.rb +0 -240
- data/lib/VoucherifySdk/models/event_customer_redemption.rb +0 -268
- data/lib/VoucherifySdk/models/event_customer_redemption_failed.rb +0 -276
- data/lib/VoucherifySdk/models/event_customer_redemption_rollback_failed.rb +0 -285
- data/lib/VoucherifySdk/models/event_customer_redemption_rollback_succeeded.rb +0 -285
- data/lib/VoucherifySdk/models/event_customer_redemption_succeeded.rb +0 -276
- data/lib/VoucherifySdk/models/event_customer_referred.rb +0 -288
- data/lib/VoucherifySdk/models/event_customer_reward_redemptions.rb +0 -286
- data/lib/VoucherifySdk/models/event_customer_reward_redemptions_completed.rb +0 -294
- data/lib/VoucherifySdk/models/event_customer_reward_redemptions_created.rb +0 -294
- data/lib/VoucherifySdk/models/event_customer_reward_redemptions_pending.rb +0 -294
- data/lib/VoucherifySdk/models/event_customer_reward_redemptions_rolled_back.rb +0 -294
- data/lib/VoucherifySdk/models/event_customer_rewarded.rb +0 -296
- data/lib/VoucherifySdk/models/event_customer_rewarded_loyalty_points.rb +0 -287
- data/lib/VoucherifySdk/models/event_customer_segment_entered.rb +0 -238
- data/lib/VoucherifySdk/models/event_customer_segment_left.rb +0 -238
- data/lib/VoucherifySdk/models/event_customer_sent.rb +0 -240
- data/lib/VoucherifySdk/models/event_customer_shopify_failed.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_shopify_recovered.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_shopify_sent.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_sms_failed.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_sms_recovered.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_sms_sent.rb +0 -248
- data/lib/VoucherifySdk/models/event_customer_updated.rb +0 -215
- data/lib/VoucherifySdk/models/event_customer_validation_failed.rb +0 -224
- data/lib/VoucherifySdk/models/event_customer_validation_succeeded.rb +0 -224
- data/lib/VoucherifySdk/models/event_customer_voucher_deleted.rb +0 -233
- data/lib/VoucherifySdk/models/event_customer_vouchers_loyalty_points_expired.rb +0 -262
- data/lib/VoucherifySdk/models/export_base.rb +0 -354
- data/lib/VoucherifySdk/models/export_base_result.rb +0 -223
- data/lib/VoucherifySdk/models/export_customer.rb +0 -400
- data/lib/VoucherifySdk/models/export_customer_base.rb +0 -265
- data/lib/VoucherifySdk/models/export_customer_base_parameters.rb +0 -259
- data/lib/VoucherifySdk/models/export_customer_fields.rb +0 -68
- data/lib/VoucherifySdk/models/export_customer_order.rb +0 -50
- data/lib/VoucherifySdk/models/export_customer_scheduled.rb +0 -405
- data/lib/VoucherifySdk/models/export_order.rb +0 -400
- data/lib/VoucherifySdk/models/export_order_base.rb +0 -265
- data/lib/VoucherifySdk/models/export_order_scheduled.rb +0 -405
- data/lib/VoucherifySdk/models/export_points_expiration.rb +0 -400
- data/lib/VoucherifySdk/models/export_points_expiration_base.rb +0 -265
- data/lib/VoucherifySdk/models/export_points_expiration_base_parameters.rb +0 -258
- data/lib/VoucherifySdk/models/export_points_expiration_fields.rb +0 -44
- data/lib/VoucherifySdk/models/export_points_expiration_filters.rb +0 -254
- data/lib/VoucherifySdk/models/export_points_expiration_order.rb +0 -40
- data/lib/VoucherifySdk/models/export_points_expiration_scheduled.rb +0 -405
- data/lib/VoucherifySdk/models/export_publication.rb +0 -400
- data/lib/VoucherifySdk/models/export_publication_base.rb +0 -265
- data/lib/VoucherifySdk/models/export_publication_base_parameters.rb +0 -259
- data/lib/VoucherifySdk/models/export_publication_fields.rb +0 -46
- data/lib/VoucherifySdk/models/export_publication_order.rb +0 -50
- data/lib/VoucherifySdk/models/export_publication_scheduled.rb +0 -405
- data/lib/VoucherifySdk/models/export_redemption.rb +0 -400
- data/lib/VoucherifySdk/models/export_redemption_base.rb +0 -265
- data/lib/VoucherifySdk/models/export_redemption_base_parameters.rb +0 -259
- data/lib/VoucherifySdk/models/export_redemption_fields.rb +0 -55
- data/lib/VoucherifySdk/models/export_redemption_order.rb +0 -48
- data/lib/VoucherifySdk/models/export_redemption_scheduled.rb +0 -405
- data/lib/VoucherifySdk/models/export_scheduled_base.rb +0 -359
- data/lib/VoucherifySdk/models/export_voucher.rb +0 -400
- data/lib/VoucherifySdk/models/export_voucher_base.rb +0 -265
- data/lib/VoucherifySdk/models/export_voucher_base_parameters.rb +0 -258
- data/lib/VoucherifySdk/models/export_voucher_fields.rb +0 -68
- data/lib/VoucherifySdk/models/export_voucher_order.rb +0 -44
- data/lib/VoucherifySdk/models/export_voucher_scheduled.rb +0 -405
- data/lib/VoucherifySdk/models/export_voucher_transactions.rb +0 -400
- data/lib/VoucherifySdk/models/export_voucher_transactions_base.rb +0 -265
- data/lib/VoucherifySdk/models/export_voucher_transactions_scheduled.rb +0 -405
- data/lib/VoucherifySdk/models/gift_campaign_voucher.rb +0 -291
- data/lib/VoucherifySdk/models/giveaway_campaign_voucher.rb +0 -300
- data/lib/VoucherifySdk/models/list_publications_item_base.rb +0 -399
- data/lib/VoucherifySdk/models/list_publications_item_invalid.rb +0 -455
- data/lib/VoucherifySdk/models/list_publications_item_valid_multiple_vouchers.rb +0 -454
- data/lib/VoucherifySdk/models/list_publications_item_valid_single_voucher.rb +0 -451
- data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_validity_timeframe.rb +0 -226
- data/lib/VoucherifySdk/models/loyalty_tier_all_of_config.rb +0 -222
- data/lib/VoucherifySdk/models/loyalty_tier_all_of_config_points.rb +0 -226
- data/lib/VoucherifySdk/models/lucky_draw.rb +0 -246
- data/lib/VoucherifySdk/models/mapping_fixed.rb +0 -261
- data/lib/VoucherifySdk/models/mapping_multiply.rb +0 -261
- data/lib/VoucherifySdk/models/order_base.rb +0 -339
- data/lib/VoucherifySdk/models/order_calculated_base.rb +0 -472
- data/lib/VoucherifySdk/models/order_calculated_customer.rb +0 -105
- data/lib/VoucherifySdk/models/order_calculated_no_customer_data.rb +0 -496
- data/lib/VoucherifySdk/models/order_calculated_referrer.rb +0 -105
- data/lib/VoucherifySdk/models/order_item_calculated.rb +0 -436
- data/lib/VoucherifySdk/models/order_redemptions.rb +0 -291
- data/lib/VoucherifySdk/models/product_collections_create_dynamic_request_body.rb +0 -290
- data/lib/VoucherifySdk/models/product_collections_create_dynamic_request_body_filter.rb +0 -352
- data/lib/VoucherifySdk/models/product_collections_create_dynamic_request_body_products_item.rb +0 -283
- data/lib/VoucherifySdk/models/product_collections_create_static_request_body.rb +0 -286
- data/lib/VoucherifySdk/models/product_collections_list.rb +0 -322
- data/lib/VoucherifySdk/models/product_collections_products_list.rb +0 -276
- data/lib/VoucherifySdk/models/product_collections_products_list_products_item.rb +0 -105
- data/lib/VoucherifySdk/models/promotion_tier_campaign_validity_timeframe.rb +0 -226
- data/lib/VoucherifySdk/models/promotion_tier_validity_timeframe.rb +0 -226
- data/lib/VoucherifySdk/models/properties_for_loyalty_campaign_options.rb +0 -215
- data/lib/VoucherifySdk/models/publications_create_base_response_body.rb +0 -440
- data/lib/VoucherifySdk/models/publications_create_voucher_response_body.rb +0 -464
- data/lib/VoucherifySdk/models/publications_create_vouchers_response_body.rb +0 -467
- data/lib/VoucherifySdk/models/redeem_gift_card.rb +0 -289
- data/lib/VoucherifySdk/models/redeem_gift_card_all_of_gift.rb +0 -216
- data/lib/VoucherifySdk/models/redeem_loyalty_card.rb +0 -289
- data/lib/VoucherifySdk/models/redeem_loyalty_card_all_of_reward.rb +0 -226
- data/lib/VoucherifySdk/models/redeem_promotion_stack.rb +0 -274
- data/lib/VoucherifySdk/models/redeem_promotion_tier.rb +0 -274
- data/lib/VoucherifySdk/models/redeem_voucher.rb +0 -274
- data/lib/VoucherifySdk/models/redeemable_result_gift_card.rb +0 -215
- data/lib/VoucherifySdk/models/redeemable_result_gift_card_gift.rb +0 -216
- data/lib/VoucherifySdk/models/redeemable_result_loyalty_card.rb +0 -215
- data/lib/VoucherifySdk/models/redeemable_result_loyalty_card_loyalty_card.rb +0 -216
- data/lib/VoucherifySdk/models/redeemable_result_promotion_stack.rb +0 -215
- data/lib/VoucherifySdk/models/redeemable_result_promotion_tier.rb +0 -215
- data/lib/VoucherifySdk/models/redeemable_result_promotion_tier_discount.rb +0 -109
- data/lib/VoucherifySdk/models/redeemable_result_voucher_code.rb +0 -215
- data/lib/VoucherifySdk/models/redemption_internal.rb +0 -542
- data/lib/VoucherifySdk/models/redemption_internal_related_redemptions.rb +0 -227
- data/lib/VoucherifySdk/models/redemption_internal_related_redemptions_item.rb +0 -225
- data/lib/VoucherifySdk/models/redemption_internal_related_redemptions_rollbacks_item.rb +0 -225
- data/lib/VoucherifySdk/models/redemption_related_redemptions_item.rb +0 -225
- data/lib/VoucherifySdk/models/redemption_reward_result_product.rb +0 -397
- data/lib/VoucherifySdk/models/redemption_reward_result_sku.rb +0 -425
- data/lib/VoucherifySdk/models/redemption_reward_result_voucher.rb +0 -547
- data/lib/VoucherifySdk/models/redemption_rollback_related_redemptions_item.rb +0 -225
- data/lib/VoucherifySdk/models/referral_campaign_voucher.rb +0 -307
- data/lib/VoucherifySdk/models/referrer_with_summary_loyalty_referrals.rb +0 -438
- data/lib/VoucherifySdk/models/reward_assignment_base.rb +0 -366
- data/lib/VoucherifySdk/models/reward_assignment_parameters_parameters.rb +0 -222
- data/lib/VoucherifySdk/models/reward_assignment_parameters_parameters_loyalty.rb +0 -216
- data/lib/VoucherifySdk/models/reward_assignments_create_coin_reward_request_body.rb +0 -234
- data/lib/VoucherifySdk/models/reward_assignments_create_digital_or_material_reward_request_body.rb +0 -239
- data/lib/VoucherifySdk/models/reward_assignments_create_digital_or_material_reward_request_body_parameters.rb +0 -222
- data/lib/VoucherifySdk/models/reward_assignments_create_digital_or_material_reward_request_body_parameters_loyalty.rb +0 -216
- data/lib/VoucherifySdk/models/reward_type_campaign_campaign.rb +0 -284
- data/lib/VoucherifySdk/models/reward_type_coin_coin.rb +0 -233
- data/lib/VoucherifySdk/models/reward_type_material.rb +0 -221
- data/lib/VoucherifySdk/models/reward_type_material_product.rb +0 -236
- data/lib/VoucherifySdk/models/schema_that_contains_unique_properties_for_promotion_campaign_promotion.rb +0 -217
- data/lib/VoucherifySdk/models/simple_campaign.rb +0 -381
- data/lib/VoucherifySdk/models/simple_consent.rb +0 -273
- data/lib/VoucherifySdk/models/simple_order.rb +0 -423
- data/lib/VoucherifySdk/models/simple_order_item.rb +0 -363
- data/lib/VoucherifySdk/models/simple_product.rb +0 -235
- data/lib/VoucherifySdk/models/simple_promotion_tier.rb +0 -245
- data/lib/VoucherifySdk/models/simple_promotion_tier_campaign.rb +0 -216
- data/lib/VoucherifySdk/models/simple_redemption.rb +0 -368
- data/lib/VoucherifySdk/models/simple_redemption_reward_result.rb +0 -380
- data/lib/VoucherifySdk/models/simple_referral_tier.rb +0 -245
- data/lib/VoucherifySdk/models/simple_sku.rb +0 -235
- data/lib/VoucherifySdk/models/sku_with_product.rb +0 -433
- data/lib/VoucherifySdk/models/skus_list.rb +0 -276
- data/lib/VoucherifySdk/models/stackable_validate_redeem_base.rb +0 -299
- data/lib/VoucherifySdk/models/stackable_validate_redeem_base_redeemables_item.rb +0 -108
- data/lib/VoucherifySdk/models/validation_entity.rb +0 -325
- data/lib/VoucherifySdk/models/validation_rule_base.rb +0 -314
- data/lib/VoucherifySdk/models/validation_rule_base_applicable_to.rb +0 -239
- data/lib/VoucherifySdk/models/validation_rule_base_error.rb +0 -216
- data/lib/VoucherifySdk/models/validations_redeemable_applicable.rb +0 -340
- data/lib/VoucherifySdk/models/validations_redeemable_applicable_result.rb +0 -109
- data/lib/VoucherifySdk/models/validations_validate_all_response_body_redeemables_item.rb +0 -106
- data/lib/VoucherifySdk/models/voucher_transactions_export.rb +0 -407
- data/lib/VoucherifySdk/models/voucher_transactions_export_result.rb +0 -223
- data/lib/VoucherifySdk/models/voucher_validity_timeframe.rb +0 -226
- data/lib/VoucherifySdk/models/vouchers_redemption_get_response_body_redemption_entries_item.rb +0 -105
@@ -19,6 +19,138 @@ module VoucherifySdk
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add Member
|
23
|
+
# This method assigns a loyalty card to a customer. It selects a loyalty card suitable for publication, adds a publish entry, and returns the published voucher. A voucher is suitable for publication when its active and hasnt been published yet. 📘 Auto-update campaign In case you want to ensure the number of publishable codes increases automatically with the number of customers, you should use **auto-update** campaign.
|
24
|
+
# @param campaign_id [String] Unique campaign ID of the loyalty program.
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [LoyaltiesMembersCreateRequestBody] :loyalties_members_create_request_body Provide details to whom the loyalty card should be assigned. You can choose to either specify the exact loyalty card code that you want to publish from existin (non-assigned) codes, or choose not to specify a voucher code. If you choose not to specify a code in the request paylaod, then the system will choose the next available voucher code available to be assigned to a customer. You can also include metadata in the request payload. This metadata will be assigned to the publication object, but will not be returned in the response to this endpoint. To see of publications (assignments of particular codes to customers) and publication metadata, use the List Publications endpoint.
|
27
|
+
# @return [LoyaltiesMembersCreateResponseBody]
|
28
|
+
def add_member(campaign_id, opts = {})
|
29
|
+
data, _status_code, _headers = add_member_with_http_info(campaign_id, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Add Member
|
34
|
+
# This method assigns a loyalty card to a customer. It selects a loyalty card suitable for publication, adds a publish entry, and returns the published voucher. A voucher is suitable for publication when its active and hasnt been published yet. 📘 Auto-update campaign In case you want to ensure the number of publishable codes increases automatically with the number of customers, you should use **auto-update** campaign.
|
35
|
+
# @param campaign_id [String] Unique campaign ID of the loyalty program.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [LoyaltiesMembersCreateRequestBody] :loyalties_members_create_request_body Provide details to whom the loyalty card should be assigned. You can choose to either specify the exact loyalty card code that you want to publish from existin (non-assigned) codes, or choose not to specify a voucher code. If you choose not to specify a code in the request paylaod, then the system will choose the next available voucher code available to be assigned to a customer. You can also include metadata in the request payload. This metadata will be assigned to the publication object, but will not be returned in the response to this endpoint. To see of publications (assignments of particular codes to customers) and publication metadata, use the List Publications endpoint.
|
38
|
+
# @return [Array<(LoyaltiesMembersCreateResponseBody, Integer, Hash)>] LoyaltiesMembersCreateResponseBody data, response status code and response headers
|
39
|
+
private def add_member_with_http_info(campaign_id, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.add_member ...'
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/v1/loyalties/{campaignId}/members'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
# HTTP header 'Content-Type'
|
54
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
55
|
+
if !content_type.nil?
|
56
|
+
header_params['Content-Type'] = content_type
|
57
|
+
end
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = opts[:form_params] || {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'loyalties_members_create_request_body'])
|
64
|
+
|
65
|
+
# return_type
|
66
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesMembersCreateResponseBody'
|
67
|
+
|
68
|
+
# auth_names
|
69
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
70
|
+
|
71
|
+
new_options = opts.merge(
|
72
|
+
:operation => :"LoyaltiesApi.add_member",
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => return_type
|
79
|
+
)
|
80
|
+
|
81
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
82
|
+
if @api_client.config.debugging
|
83
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#add_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
+
end
|
85
|
+
return data, status_code, headers
|
86
|
+
end
|
87
|
+
|
88
|
+
# Create Earning Rule
|
89
|
+
# Create earning rules for a loyalty campaign.
|
90
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [Array<LoyaltiesEarningRulesCreateRequestBodyItem>] :loyalties_earning_rules_create_request_body_item Customize the request body based on the type of earning rules you would like to create. The request body is an array of objects. The required minimum properties to include in the payload for each object are event and loyalty. Additionally, if you choose to add a validity_timeframe, you must include a start_date. Furthermore, an earning rule event type: - customer.segment.entered requires a segment object - a custom event requires a custom_event object - a customer.loyalty.tier.joined, customer.loyalty.tier.left, customer.loyalty.tier.upgraded, customer.loyalty.tier.downgraded, customer.loyalty.tier.prolonged requires a loyalty_tier object
|
93
|
+
# @return [Array<LoyaltiesEarningRulesCreateResponseBody>]
|
94
|
+
def create_earning_rule(campaign_id, opts = {})
|
95
|
+
data, _status_code, _headers = create_earning_rule_with_http_info(campaign_id, opts)
|
96
|
+
data
|
97
|
+
end
|
98
|
+
|
99
|
+
# Create Earning Rule
|
100
|
+
# Create earning rules for a loyalty campaign.
|
101
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [Array<LoyaltiesEarningRulesCreateRequestBodyItem>] :loyalties_earning_rules_create_request_body_item Customize the request body based on the type of earning rules you would like to create. The request body is an array of objects. The required minimum properties to include in the payload for each object are event and loyalty. Additionally, if you choose to add a validity_timeframe, you must include a start_date. Furthermore, an earning rule event type: - customer.segment.entered requires a segment object - a custom event requires a custom_event object - a customer.loyalty.tier.joined, customer.loyalty.tier.left, customer.loyalty.tier.upgraded, customer.loyalty.tier.downgraded, customer.loyalty.tier.prolonged requires a loyalty_tier object
|
104
|
+
# @return [Array<(Array<LoyaltiesEarningRulesCreateResponseBody>, Integer, Hash)>] Array<LoyaltiesEarningRulesCreateResponseBody> data, response status code and response headers
|
105
|
+
private def create_earning_rule_with_http_info(campaign_id, opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.create_earning_rule ...'
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '/v1/loyalties/{campaignId}/earning-rules'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
# HTTP header 'Accept' (if needed)
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
119
|
+
# HTTP header 'Content-Type'
|
120
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
121
|
+
if !content_type.nil?
|
122
|
+
header_params['Content-Type'] = content_type
|
123
|
+
end
|
124
|
+
|
125
|
+
# form parameters
|
126
|
+
form_params = opts[:form_params] || {}
|
127
|
+
|
128
|
+
# http body (model)
|
129
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'loyalties_earning_rules_create_request_body_item'])
|
130
|
+
|
131
|
+
# return_type
|
132
|
+
return_type = opts[:debug_return_type] || 'Array<LoyaltiesEarningRulesCreateResponseBody>'
|
133
|
+
|
134
|
+
# auth_names
|
135
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
136
|
+
|
137
|
+
new_options = opts.merge(
|
138
|
+
:operation => :"LoyaltiesApi.create_earning_rule",
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names,
|
144
|
+
:return_type => return_type
|
145
|
+
)
|
146
|
+
|
147
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
148
|
+
if @api_client.config.debugging
|
149
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#create_earning_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
150
|
+
end
|
151
|
+
return data, status_code, headers
|
152
|
+
end
|
153
|
+
|
22
154
|
# Create loyalty tiers
|
23
155
|
# Creates loyalty tiers for desired campaign.
|
24
156
|
# @param campaign_id [String] Unique loyalty campaign ID or name.
|
@@ -40,10 +172,6 @@ module VoucherifySdk
|
|
40
172
|
if @api_client.config.debugging
|
41
173
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.create_in_bulk_loyalty_tiers ...'
|
42
174
|
end
|
43
|
-
# verify the required parameter 'campaign_id' is set
|
44
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.create_in_bulk_loyalty_tiers"
|
46
|
-
end
|
47
175
|
# resource path
|
48
176
|
local_var_path = '/v1/loyalties/{campaignId}/tiers'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
49
177
|
|
@@ -89,6 +217,202 @@ module VoucherifySdk
|
|
89
217
|
return data, status_code, headers
|
90
218
|
end
|
91
219
|
|
220
|
+
# Create Loyalty Campaign
|
221
|
+
# Creates a batch of loyalty cards aggregated in a single loyalty campaign. It also allows you to define a custom codes pattern. 📘 Global uniqueness All codes are unique across the whole project. Voucherify wont allow to generate the same codes in any of your campaigns. 🚧 Asyncronous action! This is an asynchronous action, you cant read or modify a newly created campaign until the code generation is completed. See creation_status field in the loyalty campaign object description.
|
222
|
+
# @param [Hash] opts the optional parameters
|
223
|
+
# @option opts [LoyaltiesCreateCampaignRequestBody] :loyalties_create_campaign_request_body Specify the loyalty campaign details.
|
224
|
+
# @return [LoyaltiesCreateCampaignResponseBody]
|
225
|
+
def create_loyalty_program(opts = {})
|
226
|
+
data, _status_code, _headers = create_loyalty_program_with_http_info(opts)
|
227
|
+
data
|
228
|
+
end
|
229
|
+
|
230
|
+
# Create Loyalty Campaign
|
231
|
+
# Creates a batch of loyalty cards aggregated in a single loyalty campaign. It also allows you to define a custom codes pattern. 📘 Global uniqueness All codes are unique across the whole project. Voucherify wont allow to generate the same codes in any of your campaigns. 🚧 Asyncronous action! This is an asynchronous action, you cant read or modify a newly created campaign until the code generation is completed. See creation_status field in the loyalty campaign object description.
|
232
|
+
# @param [Hash] opts the optional parameters
|
233
|
+
# @option opts [LoyaltiesCreateCampaignRequestBody] :loyalties_create_campaign_request_body Specify the loyalty campaign details.
|
234
|
+
# @return [Array<(LoyaltiesCreateCampaignResponseBody, Integer, Hash)>] LoyaltiesCreateCampaignResponseBody data, response status code and response headers
|
235
|
+
private def create_loyalty_program_with_http_info(opts = {})
|
236
|
+
if @api_client.config.debugging
|
237
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.create_loyalty_program ...'
|
238
|
+
end
|
239
|
+
# resource path
|
240
|
+
local_var_path = '/v1/loyalties'
|
241
|
+
|
242
|
+
# query parameters
|
243
|
+
query_params = opts[:query_params] || {}
|
244
|
+
|
245
|
+
# header parameters
|
246
|
+
header_params = opts[:header_params] || {}
|
247
|
+
# HTTP header 'Accept' (if needed)
|
248
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
249
|
+
# HTTP header 'Content-Type'
|
250
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
251
|
+
if !content_type.nil?
|
252
|
+
header_params['Content-Type'] = content_type
|
253
|
+
end
|
254
|
+
|
255
|
+
# form parameters
|
256
|
+
form_params = opts[:form_params] || {}
|
257
|
+
|
258
|
+
# http body (model)
|
259
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'loyalties_create_campaign_request_body'])
|
260
|
+
|
261
|
+
# return_type
|
262
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesCreateCampaignResponseBody'
|
263
|
+
|
264
|
+
# auth_names
|
265
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
266
|
+
|
267
|
+
new_options = opts.merge(
|
268
|
+
:operation => :"LoyaltiesApi.create_loyalty_program",
|
269
|
+
:header_params => header_params,
|
270
|
+
:query_params => query_params,
|
271
|
+
:form_params => form_params,
|
272
|
+
:body => post_body,
|
273
|
+
:auth_names => auth_names,
|
274
|
+
:return_type => return_type
|
275
|
+
)
|
276
|
+
|
277
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
278
|
+
if @api_client.config.debugging
|
279
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#create_loyalty_program\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
280
|
+
end
|
281
|
+
return data, status_code, headers
|
282
|
+
end
|
283
|
+
|
284
|
+
# Create Points Expiration Export
|
285
|
+
# Schedule the generation of a points expiration CSV file for a particular campaign.
|
286
|
+
# @param campaign_id [String] Unique campaign ID or name.
|
287
|
+
# @param [Hash] opts the optional parameters
|
288
|
+
# @option opts [LoyaltiesPointsExpirationExportCreateRequestBody] :loyalties_points_expiration_export_create_request_body Specify the data filters, types of data to return and order in which the results should be returned.
|
289
|
+
# @return [LoyaltiesPointsExpirationExportCreateResponseBody]
|
290
|
+
def create_points_expiration_export(campaign_id, opts = {})
|
291
|
+
data, _status_code, _headers = create_points_expiration_export_with_http_info(campaign_id, opts)
|
292
|
+
data
|
293
|
+
end
|
294
|
+
|
295
|
+
# Create Points Expiration Export
|
296
|
+
# Schedule the generation of a points expiration CSV file for a particular campaign.
|
297
|
+
# @param campaign_id [String] Unique campaign ID or name.
|
298
|
+
# @param [Hash] opts the optional parameters
|
299
|
+
# @option opts [LoyaltiesPointsExpirationExportCreateRequestBody] :loyalties_points_expiration_export_create_request_body Specify the data filters, types of data to return and order in which the results should be returned.
|
300
|
+
# @return [Array<(LoyaltiesPointsExpirationExportCreateResponseBody, Integer, Hash)>] LoyaltiesPointsExpirationExportCreateResponseBody data, response status code and response headers
|
301
|
+
private def create_points_expiration_export_with_http_info(campaign_id, opts = {})
|
302
|
+
if @api_client.config.debugging
|
303
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.create_points_expiration_export ...'
|
304
|
+
end
|
305
|
+
# resource path
|
306
|
+
local_var_path = '/v1/loyalties/{campaignId}/points-expiration/export'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
307
|
+
|
308
|
+
# query parameters
|
309
|
+
query_params = opts[:query_params] || {}
|
310
|
+
|
311
|
+
# header parameters
|
312
|
+
header_params = opts[:header_params] || {}
|
313
|
+
# HTTP header 'Accept' (if needed)
|
314
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
315
|
+
# HTTP header 'Content-Type'
|
316
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
317
|
+
if !content_type.nil?
|
318
|
+
header_params['Content-Type'] = content_type
|
319
|
+
end
|
320
|
+
|
321
|
+
# form parameters
|
322
|
+
form_params = opts[:form_params] || {}
|
323
|
+
|
324
|
+
# http body (model)
|
325
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'loyalties_points_expiration_export_create_request_body'])
|
326
|
+
|
327
|
+
# return_type
|
328
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesPointsExpirationExportCreateResponseBody'
|
329
|
+
|
330
|
+
# auth_names
|
331
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
332
|
+
|
333
|
+
new_options = opts.merge(
|
334
|
+
:operation => :"LoyaltiesApi.create_points_expiration_export",
|
335
|
+
:header_params => header_params,
|
336
|
+
:query_params => query_params,
|
337
|
+
:form_params => form_params,
|
338
|
+
:body => post_body,
|
339
|
+
:auth_names => auth_names,
|
340
|
+
:return_type => return_type
|
341
|
+
)
|
342
|
+
|
343
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
344
|
+
if @api_client.config.debugging
|
345
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#create_points_expiration_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
346
|
+
end
|
347
|
+
return data, status_code, headers
|
348
|
+
end
|
349
|
+
|
350
|
+
# Create Reward Assignment
|
351
|
+
# Add rewards to a loyalty campaign.
|
352
|
+
# @param campaign_id [String] Unique campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
353
|
+
# @param [Hash] opts the optional parameters
|
354
|
+
# @option opts [Array<LoyaltiesRewardsCreateAssignmentItemRequestBody>] :loyalties_rewards_create_assignment_item_request_body Define the cost of the rewards in loyalty points.
|
355
|
+
# @return [LoyaltiesRewardsCreateAssignmentResponseBody]
|
356
|
+
def create_reward_assignment1(campaign_id, opts = {})
|
357
|
+
data, _status_code, _headers = create_reward_assignment1_with_http_info(campaign_id, opts)
|
358
|
+
data
|
359
|
+
end
|
360
|
+
|
361
|
+
# Create Reward Assignment
|
362
|
+
# Add rewards to a loyalty campaign.
|
363
|
+
# @param campaign_id [String] Unique campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
364
|
+
# @param [Hash] opts the optional parameters
|
365
|
+
# @option opts [Array<LoyaltiesRewardsCreateAssignmentItemRequestBody>] :loyalties_rewards_create_assignment_item_request_body Define the cost of the rewards in loyalty points.
|
366
|
+
# @return [Array<(LoyaltiesRewardsCreateAssignmentResponseBody, Integer, Hash)>] LoyaltiesRewardsCreateAssignmentResponseBody data, response status code and response headers
|
367
|
+
private def create_reward_assignment1_with_http_info(campaign_id, opts = {})
|
368
|
+
if @api_client.config.debugging
|
369
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.create_reward_assignment1 ...'
|
370
|
+
end
|
371
|
+
# resource path
|
372
|
+
local_var_path = '/v1/loyalties/{campaignId}/rewards'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
373
|
+
|
374
|
+
# query parameters
|
375
|
+
query_params = opts[:query_params] || {}
|
376
|
+
|
377
|
+
# header parameters
|
378
|
+
header_params = opts[:header_params] || {}
|
379
|
+
# HTTP header 'Accept' (if needed)
|
380
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
381
|
+
# HTTP header 'Content-Type'
|
382
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
383
|
+
if !content_type.nil?
|
384
|
+
header_params['Content-Type'] = content_type
|
385
|
+
end
|
386
|
+
|
387
|
+
# form parameters
|
388
|
+
form_params = opts[:form_params] || {}
|
389
|
+
|
390
|
+
# http body (model)
|
391
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'loyalties_rewards_create_assignment_item_request_body'])
|
392
|
+
|
393
|
+
# return_type
|
394
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesRewardsCreateAssignmentResponseBody'
|
395
|
+
|
396
|
+
# auth_names
|
397
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
398
|
+
|
399
|
+
new_options = opts.merge(
|
400
|
+
:operation => :"LoyaltiesApi.create_reward_assignment1",
|
401
|
+
:header_params => header_params,
|
402
|
+
:query_params => query_params,
|
403
|
+
:form_params => form_params,
|
404
|
+
:body => post_body,
|
405
|
+
:auth_names => auth_names,
|
406
|
+
:return_type => return_type
|
407
|
+
)
|
408
|
+
|
409
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
410
|
+
if @api_client.config.debugging
|
411
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#create_reward_assignment1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
412
|
+
end
|
413
|
+
return data, status_code, headers
|
414
|
+
end
|
415
|
+
|
92
416
|
# Delete Earning Rule
|
93
417
|
# This method deletes an earning rule for a specific loyalty campaign.
|
94
418
|
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
@@ -110,14 +434,6 @@ module VoucherifySdk
|
|
110
434
|
if @api_client.config.debugging
|
111
435
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.delete_earning_rule ...'
|
112
436
|
end
|
113
|
-
# verify the required parameter 'campaign_id' is set
|
114
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
115
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.delete_earning_rule"
|
116
|
-
end
|
117
|
-
# verify the required parameter 'earning_rule_id' is set
|
118
|
-
if @api_client.config.client_side_validation && earning_rule_id.nil?
|
119
|
-
fail ArgumentError, "Missing the required parameter 'earning_rule_id' when calling LoyaltiesApi.delete_earning_rule"
|
120
|
-
end
|
121
437
|
# resource path
|
122
438
|
local_var_path = '/v1/loyalties/{campaignId}/earning-rules/{earningRuleId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'earningRuleId' + '}', CGI.escape(earning_rule_id.to_s))
|
123
439
|
|
@@ -157,10 +473,10 @@ module VoucherifySdk
|
|
157
473
|
end
|
158
474
|
|
159
475
|
# Delete Loyalty Campaign
|
160
|
-
#
|
476
|
+
# Deletes a loyalty campaign and all related loyalty cards. This action cannot be undone. Also, it immediately removes any redemptions on loyalty cards. If the force parameter is set to false or not set at all, the loyalty campaign and all related loyalty cards will be moved to the bin.
|
161
477
|
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
162
478
|
# @param [Hash] opts the optional parameters
|
163
|
-
# @option opts [Boolean] :force If this flag is set to true, the campaign and related vouchers will be removed permanently. Going forward, the user will be able to create the next campaign with the same name.
|
479
|
+
# @option opts [Boolean] :force If this flag is set to true, the campaign and related vouchers will be removed permanently. If it is set to false or not set at all, the loyalty campaign and all related loyalty cards will be moved to the bin. Going forward, the user will be able to create the next campaign with the same name.
|
164
480
|
# @return [LoyaltiesDeleteResponseBody]
|
165
481
|
def delete_loyalty_program(campaign_id, opts = {})
|
166
482
|
data, _status_code, _headers = delete_loyalty_program_with_http_info(campaign_id, opts)
|
@@ -168,19 +484,15 @@ module VoucherifySdk
|
|
168
484
|
end
|
169
485
|
|
170
486
|
# Delete Loyalty Campaign
|
171
|
-
#
|
487
|
+
# Deletes a loyalty campaign and all related loyalty cards. This action cannot be undone. Also, it immediately removes any redemptions on loyalty cards. If the force parameter is set to false or not set at all, the loyalty campaign and all related loyalty cards will be moved to the bin.
|
172
488
|
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
173
489
|
# @param [Hash] opts the optional parameters
|
174
|
-
# @option opts [Boolean] :force If this flag is set to true, the campaign and related vouchers will be removed permanently. Going forward, the user will be able to create the next campaign with the same name.
|
490
|
+
# @option opts [Boolean] :force If this flag is set to true, the campaign and related vouchers will be removed permanently. If it is set to false or not set at all, the loyalty campaign and all related loyalty cards will be moved to the bin. Going forward, the user will be able to create the next campaign with the same name.
|
175
491
|
# @return [Array<(LoyaltiesDeleteResponseBody, Integer, Hash)>] LoyaltiesDeleteResponseBody data, response status code and response headers
|
176
492
|
private def delete_loyalty_program_with_http_info(campaign_id, opts = {})
|
177
493
|
if @api_client.config.debugging
|
178
494
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.delete_loyalty_program ...'
|
179
495
|
end
|
180
|
-
# verify the required parameter 'campaign_id' is set
|
181
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
182
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.delete_loyalty_program"
|
183
|
-
end
|
184
496
|
# resource path
|
185
497
|
local_var_path = '/v1/loyalties/{campaignId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
186
498
|
|
@@ -243,14 +555,6 @@ module VoucherifySdk
|
|
243
555
|
if @api_client.config.debugging
|
244
556
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.delete_reward_assignment1 ...'
|
245
557
|
end
|
246
|
-
# verify the required parameter 'campaign_id' is set
|
247
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
248
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.delete_reward_assignment1"
|
249
|
-
end
|
250
|
-
# verify the required parameter 'assignment_id' is set
|
251
|
-
if @api_client.config.client_side_validation && assignment_id.nil?
|
252
|
-
fail ArgumentError, "Missing the required parameter 'assignment_id' when calling LoyaltiesApi.delete_reward_assignment1"
|
253
|
-
end
|
254
558
|
# resource path
|
255
559
|
local_var_path = '/v1/loyalties/{campaignId}/rewards/{assignmentId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'assignmentId' + '}', CGI.escape(assignment_id.to_s))
|
256
560
|
|
@@ -310,14 +614,6 @@ module VoucherifySdk
|
|
310
614
|
if @api_client.config.debugging
|
311
615
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.disable_earning_rule ...'
|
312
616
|
end
|
313
|
-
# verify the required parameter 'campaign_id' is set
|
314
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
315
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.disable_earning_rule"
|
316
|
-
end
|
317
|
-
# verify the required parameter 'earning_rule_id' is set
|
318
|
-
if @api_client.config.client_side_validation && earning_rule_id.nil?
|
319
|
-
fail ArgumentError, "Missing the required parameter 'earning_rule_id' when calling LoyaltiesApi.disable_earning_rule"
|
320
|
-
end
|
321
617
|
# resource path
|
322
618
|
local_var_path = '/v1/loyalties/{campaignId}/earning-rules/{earningRuleId}/disable'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'earningRuleId' + '}', CGI.escape(earning_rule_id.to_s))
|
323
619
|
|
@@ -379,14 +675,6 @@ module VoucherifySdk
|
|
379
675
|
if @api_client.config.debugging
|
380
676
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.enable_earning_rule ...'
|
381
677
|
end
|
382
|
-
# verify the required parameter 'campaign_id' is set
|
383
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
384
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.enable_earning_rule"
|
385
|
-
end
|
386
|
-
# verify the required parameter 'earning_rule_id' is set
|
387
|
-
if @api_client.config.client_side_validation && earning_rule_id.nil?
|
388
|
-
fail ArgumentError, "Missing the required parameter 'earning_rule_id' when calling LoyaltiesApi.enable_earning_rule"
|
389
|
-
end
|
390
678
|
# resource path
|
391
679
|
local_var_path = '/v1/loyalties/{campaignId}/earning-rules/{earningRuleId}/enable'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'earningRuleId' + '}', CGI.escape(earning_rule_id.to_s))
|
392
680
|
|
@@ -448,10 +736,6 @@ module VoucherifySdk
|
|
448
736
|
if @api_client.config.debugging
|
449
737
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.export_loyalty_card_transactions ...'
|
450
738
|
end
|
451
|
-
# verify the required parameter 'member_id' is set
|
452
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
453
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.export_loyalty_card_transactions"
|
454
|
-
end
|
455
739
|
# resource path
|
456
740
|
local_var_path = '/v1/loyalties/members/{memberId}/transactions/export'.sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
457
741
|
|
@@ -520,14 +804,6 @@ module VoucherifySdk
|
|
520
804
|
if @api_client.config.debugging
|
521
805
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.export_loyalty_card_transactions1 ...'
|
522
806
|
end
|
523
|
-
# verify the required parameter 'campaign_id' is set
|
524
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
525
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.export_loyalty_card_transactions1"
|
526
|
-
end
|
527
|
-
# verify the required parameter 'member_id' is set
|
528
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
529
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.export_loyalty_card_transactions1"
|
530
|
-
end
|
531
807
|
# resource path
|
532
808
|
local_var_path = '/v1/loyalties/{campaignId}/members/{memberId}/transactions/export'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
533
809
|
|
@@ -594,14 +870,6 @@ module VoucherifySdk
|
|
594
870
|
if @api_client.config.debugging
|
595
871
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.get_earning_rule ...'
|
596
872
|
end
|
597
|
-
# verify the required parameter 'campaign_id' is set
|
598
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
599
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.get_earning_rule"
|
600
|
-
end
|
601
|
-
# verify the required parameter 'earning_rule_id' is set
|
602
|
-
if @api_client.config.client_side_validation && earning_rule_id.nil?
|
603
|
-
fail ArgumentError, "Missing the required parameter 'earning_rule_id' when calling LoyaltiesApi.get_earning_rule"
|
604
|
-
end
|
605
873
|
# resource path
|
606
874
|
local_var_path = '/v1/loyalties/{campaignId}/earning-rules/{earningRuleId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'earningRuleId' + '}', CGI.escape(earning_rule_id.to_s))
|
607
875
|
|
@@ -642,8 +910,67 @@ module VoucherifySdk
|
|
642
910
|
return data, status_code, headers
|
643
911
|
end
|
644
912
|
|
645
|
-
# Get Loyalty
|
646
|
-
# Retrieve a
|
913
|
+
# Get Loyalty Campaign
|
914
|
+
# Retrieve a specific loyalty campaign.
|
915
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
916
|
+
# @param [Hash] opts the optional parameters
|
917
|
+
# @return [LoyaltiesGetCampaignResponseBody]
|
918
|
+
def get_loyalty_program(campaign_id, opts = {})
|
919
|
+
data, _status_code, _headers = get_loyalty_program_with_http_info(campaign_id, opts)
|
920
|
+
data
|
921
|
+
end
|
922
|
+
|
923
|
+
# Get Loyalty Campaign
|
924
|
+
# Retrieve a specific loyalty campaign.
|
925
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
926
|
+
# @param [Hash] opts the optional parameters
|
927
|
+
# @return [Array<(LoyaltiesGetCampaignResponseBody, Integer, Hash)>] LoyaltiesGetCampaignResponseBody data, response status code and response headers
|
928
|
+
private def get_loyalty_program_with_http_info(campaign_id, opts = {})
|
929
|
+
if @api_client.config.debugging
|
930
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.get_loyalty_program ...'
|
931
|
+
end
|
932
|
+
# resource path
|
933
|
+
local_var_path = '/v1/loyalties/{campaignId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
934
|
+
|
935
|
+
# query parameters
|
936
|
+
query_params = opts[:query_params] || {}
|
937
|
+
|
938
|
+
# header parameters
|
939
|
+
header_params = opts[:header_params] || {}
|
940
|
+
# HTTP header 'Accept' (if needed)
|
941
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
942
|
+
|
943
|
+
# form parameters
|
944
|
+
form_params = opts[:form_params] || {}
|
945
|
+
|
946
|
+
# http body (model)
|
947
|
+
post_body = opts[:debug_body]
|
948
|
+
|
949
|
+
# return_type
|
950
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesGetCampaignResponseBody'
|
951
|
+
|
952
|
+
# auth_names
|
953
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
954
|
+
|
955
|
+
new_options = opts.merge(
|
956
|
+
:operation => :"LoyaltiesApi.get_loyalty_program",
|
957
|
+
:header_params => header_params,
|
958
|
+
:query_params => query_params,
|
959
|
+
:form_params => form_params,
|
960
|
+
:body => post_body,
|
961
|
+
:auth_names => auth_names,
|
962
|
+
:return_type => return_type
|
963
|
+
)
|
964
|
+
|
965
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
966
|
+
if @api_client.config.debugging
|
967
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#get_loyalty_program\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
968
|
+
end
|
969
|
+
return data, status_code, headers
|
970
|
+
end
|
971
|
+
|
972
|
+
# Get Loyalty Tier
|
973
|
+
# Retrieve a loyalty tier from a loyalty campaign by the loyalty tier ID.
|
647
974
|
# @param campaign_id [String] Unique loyalty campaign ID or name.
|
648
975
|
# @param loyalty_tier_id [String] Unique loyalty tier ID.
|
649
976
|
# @param [Hash] opts the optional parameters
|
@@ -663,14 +990,6 @@ module VoucherifySdk
|
|
663
990
|
if @api_client.config.debugging
|
664
991
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.get_loyalty_tier ...'
|
665
992
|
end
|
666
|
-
# verify the required parameter 'campaign_id' is set
|
667
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
668
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.get_loyalty_tier"
|
669
|
-
end
|
670
|
-
# verify the required parameter 'loyalty_tier_id' is set
|
671
|
-
if @api_client.config.client_side_validation && loyalty_tier_id.nil?
|
672
|
-
fail ArgumentError, "Missing the required parameter 'loyalty_tier_id' when calling LoyaltiesApi.get_loyalty_tier"
|
673
|
-
end
|
674
993
|
# resource path
|
675
994
|
local_var_path = '/v1/loyalties/{campaignId}/tiers/{loyaltyTierId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'loyaltyTierId' + '}', CGI.escape(loyalty_tier_id.to_s))
|
676
995
|
|
@@ -711,6 +1030,126 @@ module VoucherifySdk
|
|
711
1030
|
return data, status_code, headers
|
712
1031
|
end
|
713
1032
|
|
1033
|
+
# Get Member
|
1034
|
+
# Retrieve loyalty card with the given member ID (i.e. voucher code). 📘 Alternative endpoint This endpoint is an alternative to this endpoint. The URL was re-designed to allow you to retrieve loyalty card details without having to provide the campaignId as a path parameter.
|
1035
|
+
# @param member_id [String] Unique loyalty card code assigned to a particular customer.
|
1036
|
+
# @param [Hash] opts the optional parameters
|
1037
|
+
# @return [LoyaltiesMembersGetResponseBody]
|
1038
|
+
def get_member(member_id, opts = {})
|
1039
|
+
data, _status_code, _headers = get_member_with_http_info(member_id, opts)
|
1040
|
+
data
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
# Get Member
|
1044
|
+
# Retrieve loyalty card with the given member ID (i.e. voucher code). 📘 Alternative endpoint This endpoint is an alternative to this endpoint. The URL was re-designed to allow you to retrieve loyalty card details without having to provide the campaignId as a path parameter.
|
1045
|
+
# @param member_id [String] Unique loyalty card code assigned to a particular customer.
|
1046
|
+
# @param [Hash] opts the optional parameters
|
1047
|
+
# @return [Array<(LoyaltiesMembersGetResponseBody, Integer, Hash)>] LoyaltiesMembersGetResponseBody data, response status code and response headers
|
1048
|
+
private def get_member_with_http_info(member_id, opts = {})
|
1049
|
+
if @api_client.config.debugging
|
1050
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.get_member ...'
|
1051
|
+
end
|
1052
|
+
# resource path
|
1053
|
+
local_var_path = '/v1/loyalties/members/{memberId}'.sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1054
|
+
|
1055
|
+
# query parameters
|
1056
|
+
query_params = opts[:query_params] || {}
|
1057
|
+
|
1058
|
+
# header parameters
|
1059
|
+
header_params = opts[:header_params] || {}
|
1060
|
+
# HTTP header 'Accept' (if needed)
|
1061
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1062
|
+
|
1063
|
+
# form parameters
|
1064
|
+
form_params = opts[:form_params] || {}
|
1065
|
+
|
1066
|
+
# http body (model)
|
1067
|
+
post_body = opts[:debug_body]
|
1068
|
+
|
1069
|
+
# return_type
|
1070
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesMembersGetResponseBody'
|
1071
|
+
|
1072
|
+
# auth_names
|
1073
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1074
|
+
|
1075
|
+
new_options = opts.merge(
|
1076
|
+
:operation => :"LoyaltiesApi.get_member",
|
1077
|
+
:header_params => header_params,
|
1078
|
+
:query_params => query_params,
|
1079
|
+
:form_params => form_params,
|
1080
|
+
:body => post_body,
|
1081
|
+
:auth_names => auth_names,
|
1082
|
+
:return_type => return_type
|
1083
|
+
)
|
1084
|
+
|
1085
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1086
|
+
if @api_client.config.debugging
|
1087
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#get_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1088
|
+
end
|
1089
|
+
return data, status_code, headers
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
# Get Member
|
1093
|
+
# Retrieves the loyalty card with the given member ID (i.e. voucher code).
|
1094
|
+
# @param campaign_id [String] Unique campaign ID.
|
1095
|
+
# @param member_id [String] Unique code that identifies the loyalty card.
|
1096
|
+
# @param [Hash] opts the optional parameters
|
1097
|
+
# @return [LoyaltiesMembersGetResponseBody]
|
1098
|
+
def get_member1(campaign_id, member_id, opts = {})
|
1099
|
+
data, _status_code, _headers = get_member1_with_http_info(campaign_id, member_id, opts)
|
1100
|
+
data
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# Get Member
|
1104
|
+
# Retrieves the loyalty card with the given member ID (i.e. voucher code).
|
1105
|
+
# @param campaign_id [String] Unique campaign ID.
|
1106
|
+
# @param member_id [String] Unique code that identifies the loyalty card.
|
1107
|
+
# @param [Hash] opts the optional parameters
|
1108
|
+
# @return [Array<(LoyaltiesMembersGetResponseBody, Integer, Hash)>] LoyaltiesMembersGetResponseBody data, response status code and response headers
|
1109
|
+
private def get_member1_with_http_info(campaign_id, member_id, opts = {})
|
1110
|
+
if @api_client.config.debugging
|
1111
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.get_member1 ...'
|
1112
|
+
end
|
1113
|
+
# resource path
|
1114
|
+
local_var_path = '/v1/loyalties/{campaignId}/members/{memberId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1115
|
+
|
1116
|
+
# query parameters
|
1117
|
+
query_params = opts[:query_params] || {}
|
1118
|
+
|
1119
|
+
# header parameters
|
1120
|
+
header_params = opts[:header_params] || {}
|
1121
|
+
# HTTP header 'Accept' (if needed)
|
1122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1123
|
+
|
1124
|
+
# form parameters
|
1125
|
+
form_params = opts[:form_params] || {}
|
1126
|
+
|
1127
|
+
# http body (model)
|
1128
|
+
post_body = opts[:debug_body]
|
1129
|
+
|
1130
|
+
# return_type
|
1131
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesMembersGetResponseBody'
|
1132
|
+
|
1133
|
+
# auth_names
|
1134
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1135
|
+
|
1136
|
+
new_options = opts.merge(
|
1137
|
+
:operation => :"LoyaltiesApi.get_member1",
|
1138
|
+
:header_params => header_params,
|
1139
|
+
:query_params => query_params,
|
1140
|
+
:form_params => form_params,
|
1141
|
+
:body => post_body,
|
1142
|
+
:auth_names => auth_names,
|
1143
|
+
:return_type => return_type
|
1144
|
+
)
|
1145
|
+
|
1146
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1147
|
+
if @api_client.config.debugging
|
1148
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#get_member1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1149
|
+
end
|
1150
|
+
return data, status_code, headers
|
1151
|
+
end
|
1152
|
+
|
714
1153
|
# Get Reward Assignment
|
715
1154
|
# Retrieve specific reward assignment.
|
716
1155
|
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
@@ -732,14 +1171,6 @@ module VoucherifySdk
|
|
732
1171
|
if @api_client.config.debugging
|
733
1172
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.get_reward_assignment1 ...'
|
734
1173
|
end
|
735
|
-
# verify the required parameter 'campaign_id' is set
|
736
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
737
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.get_reward_assignment1"
|
738
|
-
end
|
739
|
-
# verify the required parameter 'assignment_id' is set
|
740
|
-
if @api_client.config.client_side_validation && assignment_id.nil?
|
741
|
-
fail ArgumentError, "Missing the required parameter 'assignment_id' when calling LoyaltiesApi.get_reward_assignment1"
|
742
|
-
end
|
743
1174
|
# resource path
|
744
1175
|
local_var_path = '/v1/loyalties/{campaignId}/reward-assignments/{assignmentId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'assignmentId' + '}', CGI.escape(assignment_id.to_s))
|
745
1176
|
|
@@ -801,14 +1232,6 @@ module VoucherifySdk
|
|
801
1232
|
if @api_client.config.debugging
|
802
1233
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.get_reward_assignment2 ...'
|
803
1234
|
end
|
804
|
-
# verify the required parameter 'campaign_id' is set
|
805
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
806
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.get_reward_assignment2"
|
807
|
-
end
|
808
|
-
# verify the required parameter 'assignment_id' is set
|
809
|
-
if @api_client.config.client_side_validation && assignment_id.nil?
|
810
|
-
fail ArgumentError, "Missing the required parameter 'assignment_id' when calling LoyaltiesApi.get_reward_assignment2"
|
811
|
-
end
|
812
1235
|
# resource path
|
813
1236
|
local_var_path = '/v1/loyalties/{campaignId}/rewards/{assignmentId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'assignmentId' + '}', CGI.escape(assignment_id.to_s))
|
814
1237
|
|
@@ -870,14 +1293,6 @@ module VoucherifySdk
|
|
870
1293
|
if @api_client.config.debugging
|
871
1294
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.get_reward_details ...'
|
872
1295
|
end
|
873
|
-
# verify the required parameter 'campaign_id' is set
|
874
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
875
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.get_reward_details"
|
876
|
-
end
|
877
|
-
# verify the required parameter 'assignment_id' is set
|
878
|
-
if @api_client.config.client_side_validation && assignment_id.nil?
|
879
|
-
fail ArgumentError, "Missing the required parameter 'assignment_id' when calling LoyaltiesApi.get_reward_details"
|
880
|
-
end
|
881
1296
|
# resource path
|
882
1297
|
local_var_path = '/v1/loyalties/{campaignId}/reward-assignments/{assignmentId}/reward'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'assignmentId' + '}', CGI.escape(assignment_id.to_s))
|
883
1298
|
|
@@ -918,12 +1333,81 @@ module VoucherifySdk
|
|
918
1333
|
return data, status_code, headers
|
919
1334
|
end
|
920
1335
|
|
1336
|
+
# List Earning Rules
|
1337
|
+
# Returns a list of all earning rules within a given campaign.
|
1338
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
1339
|
+
# @param [Hash] opts the optional parameters
|
1340
|
+
# @option opts [Integer] :limit 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.
|
1341
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
1342
|
+
# @option opts [ParameterOrderListEarningRules] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1343
|
+
# @return [LoyaltiesEarningRulesListResponseBody]
|
1344
|
+
def list_earning_rules(campaign_id, opts = {})
|
1345
|
+
data, _status_code, _headers = list_earning_rules_with_http_info(campaign_id, opts)
|
1346
|
+
data
|
1347
|
+
end
|
1348
|
+
|
1349
|
+
# List Earning Rules
|
1350
|
+
# Returns a list of all earning rules within a given campaign.
|
1351
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
1352
|
+
# @param [Hash] opts the optional parameters
|
1353
|
+
# @option opts [Integer] :limit 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.
|
1354
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
1355
|
+
# @option opts [ParameterOrderListEarningRules] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1356
|
+
# @return [Array<(LoyaltiesEarningRulesListResponseBody, Integer, Hash)>] LoyaltiesEarningRulesListResponseBody data, response status code and response headers
|
1357
|
+
private def list_earning_rules_with_http_info(campaign_id, opts = {})
|
1358
|
+
if @api_client.config.debugging
|
1359
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_earning_rules ...'
|
1360
|
+
end
|
1361
|
+
# resource path
|
1362
|
+
local_var_path = '/v1/loyalties/{campaignId}/earning-rules'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
1363
|
+
|
1364
|
+
# query parameters
|
1365
|
+
query_params = opts[:query_params] || {}
|
1366
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1367
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1368
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1369
|
+
|
1370
|
+
# header parameters
|
1371
|
+
header_params = opts[:header_params] || {}
|
1372
|
+
# HTTP header 'Accept' (if needed)
|
1373
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1374
|
+
|
1375
|
+
# form parameters
|
1376
|
+
form_params = opts[:form_params] || {}
|
1377
|
+
|
1378
|
+
# http body (model)
|
1379
|
+
post_body = opts[:debug_body]
|
1380
|
+
|
1381
|
+
# return_type
|
1382
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesEarningRulesListResponseBody'
|
1383
|
+
|
1384
|
+
# auth_names
|
1385
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1386
|
+
|
1387
|
+
new_options = opts.merge(
|
1388
|
+
:operation => :"LoyaltiesApi.list_earning_rules",
|
1389
|
+
:header_params => header_params,
|
1390
|
+
:query_params => query_params,
|
1391
|
+
:form_params => form_params,
|
1392
|
+
:body => post_body,
|
1393
|
+
:auth_names => auth_names,
|
1394
|
+
:return_type => return_type
|
1395
|
+
)
|
1396
|
+
|
1397
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1398
|
+
if @api_client.config.debugging
|
1399
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_earning_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1400
|
+
end
|
1401
|
+
return data, status_code, headers
|
1402
|
+
end
|
1403
|
+
|
921
1404
|
# List Loyalty Card Transactions
|
922
1405
|
# Retrieve transaction data related to point movements for a specific loyalty card.
|
923
1406
|
# @param member_id [String] A unique code identifying the loyalty card that you are looking to retrieve transaction data for.
|
924
1407
|
# @param [Hash] opts the optional parameters
|
925
|
-
# @option opts [Integer] :limit
|
926
|
-
# @option opts [
|
1408
|
+
# @option opts [Integer] :limit 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.
|
1409
|
+
# @option opts [ParameterOrderListTransactions] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1410
|
+
# @option opts [String] :starting_after_id A cursor for pagination. It retrieves the transactions starting after a transaction with the given ID.
|
927
1411
|
# @return [LoyaltiesMembersTransactionsListResponseBody]
|
928
1412
|
def list_loyalty_card_transactions(member_id, opts = {})
|
929
1413
|
data, _status_code, _headers = list_loyalty_card_transactions_with_http_info(member_id, opts)
|
@@ -934,36 +1418,22 @@ module VoucherifySdk
|
|
934
1418
|
# Retrieve transaction data related to point movements for a specific loyalty card.
|
935
1419
|
# @param member_id [String] A unique code identifying the loyalty card that you are looking to retrieve transaction data for.
|
936
1420
|
# @param [Hash] opts the optional parameters
|
937
|
-
# @option opts [Integer] :limit
|
938
|
-
# @option opts [
|
1421
|
+
# @option opts [Integer] :limit 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.
|
1422
|
+
# @option opts [ParameterOrderListTransactions] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1423
|
+
# @option opts [String] :starting_after_id A cursor for pagination. It retrieves the transactions starting after a transaction with the given ID.
|
939
1424
|
# @return [Array<(LoyaltiesMembersTransactionsListResponseBody, Integer, Hash)>] LoyaltiesMembersTransactionsListResponseBody data, response status code and response headers
|
940
1425
|
private def list_loyalty_card_transactions_with_http_info(member_id, opts = {})
|
941
1426
|
if @api_client.config.debugging
|
942
1427
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_loyalty_card_transactions ...'
|
943
1428
|
end
|
944
|
-
# verify the required parameter 'member_id' is set
|
945
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
946
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.list_loyalty_card_transactions"
|
947
|
-
end
|
948
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
949
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LoyaltiesApi.list_loyalty_card_transactions, must be smaller than or equal to 100.'
|
950
|
-
end
|
951
|
-
|
952
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
953
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LoyaltiesApi.list_loyalty_card_transactions, must be greater than or equal to 1.'
|
954
|
-
end
|
955
|
-
|
956
|
-
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 100
|
957
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling LoyaltiesApi.list_loyalty_card_transactions, must be smaller than or equal to 100.'
|
958
|
-
end
|
959
|
-
|
960
1429
|
# resource path
|
961
1430
|
local_var_path = '/v1/loyalties/members/{memberId}/transactions'.sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
962
1431
|
|
963
1432
|
# query parameters
|
964
1433
|
query_params = opts[:query_params] || {}
|
965
1434
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
966
|
-
query_params[:'
|
1435
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1436
|
+
query_params[:'starting_after_id'] = opts[:'starting_after_id'] if !opts[:'starting_after_id'].nil?
|
967
1437
|
|
968
1438
|
# header parameters
|
969
1439
|
header_params = opts[:header_params] || {}
|
@@ -1004,8 +1474,9 @@ module VoucherifySdk
|
|
1004
1474
|
# @param campaign_id [String] A unique identifier of the loyalty campaign containing the voucher whose transactions you would like to return.
|
1005
1475
|
# @param member_id [String] A unique code identifying the loyalty card that you are looking to retrieve transaction data for.
|
1006
1476
|
# @param [Hash] opts the optional parameters
|
1007
|
-
# @option opts [Integer] :limit
|
1008
|
-
# @option opts [
|
1477
|
+
# @option opts [Integer] :limit 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.
|
1478
|
+
# @option opts [ParameterOrderListTransactions] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1479
|
+
# @option opts [String] :starting_after_id A cursor for pagination. It retrieves the transactions starting after a transaction with the given ID.
|
1009
1480
|
# @return [LoyaltiesMembersTransactionsListResponseBody]
|
1010
1481
|
def list_loyalty_card_transactions1(campaign_id, member_id, opts = {})
|
1011
1482
|
data, _status_code, _headers = list_loyalty_card_transactions1_with_http_info(campaign_id, member_id, opts)
|
@@ -1017,40 +1488,22 @@ module VoucherifySdk
|
|
1017
1488
|
# @param campaign_id [String] A unique identifier of the loyalty campaign containing the voucher whose transactions you would like to return.
|
1018
1489
|
# @param member_id [String] A unique code identifying the loyalty card that you are looking to retrieve transaction data for.
|
1019
1490
|
# @param [Hash] opts the optional parameters
|
1020
|
-
# @option opts [Integer] :limit
|
1021
|
-
# @option opts [
|
1491
|
+
# @option opts [Integer] :limit 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.
|
1492
|
+
# @option opts [ParameterOrderListTransactions] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1493
|
+
# @option opts [String] :starting_after_id A cursor for pagination. It retrieves the transactions starting after a transaction with the given ID.
|
1022
1494
|
# @return [Array<(LoyaltiesMembersTransactionsListResponseBody, Integer, Hash)>] LoyaltiesMembersTransactionsListResponseBody data, response status code and response headers
|
1023
1495
|
private def list_loyalty_card_transactions1_with_http_info(campaign_id, member_id, opts = {})
|
1024
1496
|
if @api_client.config.debugging
|
1025
1497
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_loyalty_card_transactions1 ...'
|
1026
1498
|
end
|
1027
|
-
# verify the required parameter 'campaign_id' is set
|
1028
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
1029
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.list_loyalty_card_transactions1"
|
1030
|
-
end
|
1031
|
-
# verify the required parameter 'member_id' is set
|
1032
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
1033
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.list_loyalty_card_transactions1"
|
1034
|
-
end
|
1035
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
1036
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LoyaltiesApi.list_loyalty_card_transactions1, must be smaller than or equal to 100.'
|
1037
|
-
end
|
1038
|
-
|
1039
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1040
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LoyaltiesApi.list_loyalty_card_transactions1, must be greater than or equal to 1.'
|
1041
|
-
end
|
1042
|
-
|
1043
|
-
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 100
|
1044
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling LoyaltiesApi.list_loyalty_card_transactions1, must be smaller than or equal to 100.'
|
1045
|
-
end
|
1046
|
-
|
1047
1499
|
# resource path
|
1048
1500
|
local_var_path = '/v1/loyalties/{campaignId}/members/{memberId}/transactions'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1049
1501
|
|
1050
1502
|
# query parameters
|
1051
1503
|
query_params = opts[:query_params] || {}
|
1052
1504
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1053
|
-
query_params[:'
|
1505
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1506
|
+
query_params[:'starting_after_id'] = opts[:'starting_after_id'] if !opts[:'starting_after_id'].nil?
|
1054
1507
|
|
1055
1508
|
# header parameters
|
1056
1509
|
header_params = opts[:header_params] || {}
|
@@ -1086,58 +1539,37 @@ module VoucherifySdk
|
|
1086
1539
|
return data, status_code, headers
|
1087
1540
|
end
|
1088
1541
|
|
1089
|
-
# List Loyalty
|
1090
|
-
#
|
1091
|
-
# @param campaign_id [String] Unique campaign ID or name.
|
1092
|
-
# @param loyalty_tier_id [String] Unique loyalty tier ID.
|
1542
|
+
# List Loyalty Campaigns
|
1543
|
+
# Returns a list of your loyalty campaigns.
|
1093
1544
|
# @param [Hash] opts the optional parameters
|
1094
|
-
# @option opts [Integer] :limit
|
1095
|
-
# @option opts [Integer] :page Which page of results to return.
|
1096
|
-
# @
|
1097
|
-
|
1098
|
-
|
1545
|
+
# @option opts [Integer] :limit 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.
|
1546
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
1547
|
+
# @option opts [ParameterOrderListCampaigns] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1548
|
+
# @return [LoyaltiesListCampaignsResponseBody]
|
1549
|
+
def list_loyalty_programs(opts = {})
|
1550
|
+
data, _status_code, _headers = list_loyalty_programs_with_http_info(opts)
|
1099
1551
|
data
|
1100
1552
|
end
|
1101
1553
|
|
1102
|
-
# List Loyalty
|
1103
|
-
#
|
1104
|
-
# @param campaign_id [String] Unique campaign ID or name.
|
1105
|
-
# @param loyalty_tier_id [String] Unique loyalty tier ID.
|
1554
|
+
# List Loyalty Campaigns
|
1555
|
+
# Returns a list of your loyalty campaigns.
|
1106
1556
|
# @param [Hash] opts the optional parameters
|
1107
|
-
# @option opts [Integer] :limit
|
1108
|
-
# @option opts [Integer] :page Which page of results to return.
|
1109
|
-
# @
|
1110
|
-
|
1557
|
+
# @option opts [Integer] :limit 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.
|
1558
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
1559
|
+
# @option opts [ParameterOrderListCampaigns] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1560
|
+
# @return [Array<(LoyaltiesListCampaignsResponseBody, Integer, Hash)>] LoyaltiesListCampaignsResponseBody data, response status code and response headers
|
1561
|
+
private def list_loyalty_programs_with_http_info(opts = {})
|
1111
1562
|
if @api_client.config.debugging
|
1112
|
-
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.
|
1113
|
-
end
|
1114
|
-
# verify the required parameter 'campaign_id' is set
|
1115
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
1116
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.list_loyalty_tier_earning_rules"
|
1117
|
-
end
|
1118
|
-
# verify the required parameter 'loyalty_tier_id' is set
|
1119
|
-
if @api_client.config.client_side_validation && loyalty_tier_id.nil?
|
1120
|
-
fail ArgumentError, "Missing the required parameter 'loyalty_tier_id' when calling LoyaltiesApi.list_loyalty_tier_earning_rules"
|
1121
|
-
end
|
1122
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
1123
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LoyaltiesApi.list_loyalty_tier_earning_rules, must be smaller than or equal to 100.'
|
1124
|
-
end
|
1125
|
-
|
1126
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1127
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LoyaltiesApi.list_loyalty_tier_earning_rules, must be greater than or equal to 1.'
|
1128
|
-
end
|
1129
|
-
|
1130
|
-
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 100
|
1131
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling LoyaltiesApi.list_loyalty_tier_earning_rules, must be smaller than or equal to 100.'
|
1563
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_loyalty_programs ...'
|
1132
1564
|
end
|
1133
|
-
|
1134
1565
|
# resource path
|
1135
|
-
local_var_path = '/v1/loyalties
|
1566
|
+
local_var_path = '/v1/loyalties'
|
1136
1567
|
|
1137
1568
|
# query parameters
|
1138
1569
|
query_params = opts[:query_params] || {}
|
1139
1570
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1140
1571
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1572
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1141
1573
|
|
1142
1574
|
# header parameters
|
1143
1575
|
header_params = opts[:header_params] || {}
|
@@ -1151,13 +1583,13 @@ module VoucherifySdk
|
|
1151
1583
|
post_body = opts[:debug_body]
|
1152
1584
|
|
1153
1585
|
# return_type
|
1154
|
-
return_type = opts[:debug_return_type] || '
|
1586
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesListCampaignsResponseBody'
|
1155
1587
|
|
1156
1588
|
# auth_names
|
1157
1589
|
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1158
1590
|
|
1159
1591
|
new_options = opts.merge(
|
1160
|
-
:operation => :"LoyaltiesApi.
|
1592
|
+
:operation => :"LoyaltiesApi.list_loyalty_programs",
|
1161
1593
|
:header_params => header_params,
|
1162
1594
|
:query_params => query_params,
|
1163
1595
|
:form_params => form_params,
|
@@ -1168,39 +1600,98 @@ module VoucherifySdk
|
|
1168
1600
|
|
1169
1601
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1170
1602
|
if @api_client.config.debugging
|
1171
|
-
@api_client.config.logger.debug "API called: LoyaltiesApi#
|
1603
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_loyalty_programs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1172
1604
|
end
|
1173
1605
|
return data, status_code, headers
|
1174
1606
|
end
|
1175
1607
|
|
1176
|
-
# List Loyalty Tier
|
1177
|
-
#
|
1608
|
+
# List Loyalty Tier Earning Rules
|
1609
|
+
# Retrieve available earning rules for a given tier and the calculation method for earning points.
|
1178
1610
|
# @param campaign_id [String] Unique campaign ID or name.
|
1179
1611
|
# @param loyalty_tier_id [String] Unique loyalty tier ID.
|
1180
1612
|
# @param [Hash] opts the optional parameters
|
1181
|
-
# @
|
1182
|
-
|
1183
|
-
|
1613
|
+
# @option opts [Integer] :limit 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.
|
1614
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
1615
|
+
# @return [LoyaltiesTiersEarningRulesListResponseBody]
|
1616
|
+
def list_loyalty_tier_earning_rules(campaign_id, loyalty_tier_id, opts = {})
|
1617
|
+
data, _status_code, _headers = list_loyalty_tier_earning_rules_with_http_info(campaign_id, loyalty_tier_id, opts)
|
1184
1618
|
data
|
1185
1619
|
end
|
1186
1620
|
|
1187
|
-
# List Loyalty Tier
|
1188
|
-
#
|
1621
|
+
# List Loyalty Tier Earning Rules
|
1622
|
+
# Retrieve available earning rules for a given tier and the calculation method for earning points.
|
1189
1623
|
# @param campaign_id [String] Unique campaign ID or name.
|
1190
1624
|
# @param loyalty_tier_id [String] Unique loyalty tier ID.
|
1191
1625
|
# @param [Hash] opts the optional parameters
|
1192
|
-
# @
|
1193
|
-
|
1626
|
+
# @option opts [Integer] :limit 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.
|
1627
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
1628
|
+
# @return [Array<(LoyaltiesTiersEarningRulesListResponseBody, Integer, Hash)>] LoyaltiesTiersEarningRulesListResponseBody data, response status code and response headers
|
1629
|
+
private def list_loyalty_tier_earning_rules_with_http_info(campaign_id, loyalty_tier_id, opts = {})
|
1194
1630
|
if @api_client.config.debugging
|
1195
|
-
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.
|
1631
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_loyalty_tier_earning_rules ...'
|
1196
1632
|
end
|
1197
|
-
#
|
1198
|
-
|
1199
|
-
|
1633
|
+
# resource path
|
1634
|
+
local_var_path = '/v1/loyalties/{campaignId}/tiers/{loyaltyTierId}/earning-rules'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'loyaltyTierId' + '}', CGI.escape(loyalty_tier_id.to_s))
|
1635
|
+
|
1636
|
+
# query parameters
|
1637
|
+
query_params = opts[:query_params] || {}
|
1638
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1639
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1640
|
+
|
1641
|
+
# header parameters
|
1642
|
+
header_params = opts[:header_params] || {}
|
1643
|
+
# HTTP header 'Accept' (if needed)
|
1644
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1645
|
+
|
1646
|
+
# form parameters
|
1647
|
+
form_params = opts[:form_params] || {}
|
1648
|
+
|
1649
|
+
# http body (model)
|
1650
|
+
post_body = opts[:debug_body]
|
1651
|
+
|
1652
|
+
# return_type
|
1653
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesTiersEarningRulesListResponseBody'
|
1654
|
+
|
1655
|
+
# auth_names
|
1656
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1657
|
+
|
1658
|
+
new_options = opts.merge(
|
1659
|
+
:operation => :"LoyaltiesApi.list_loyalty_tier_earning_rules",
|
1660
|
+
:header_params => header_params,
|
1661
|
+
:query_params => query_params,
|
1662
|
+
:form_params => form_params,
|
1663
|
+
:body => post_body,
|
1664
|
+
:auth_names => auth_names,
|
1665
|
+
:return_type => return_type
|
1666
|
+
)
|
1667
|
+
|
1668
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1669
|
+
if @api_client.config.debugging
|
1670
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_loyalty_tier_earning_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1200
1671
|
end
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1672
|
+
return data, status_code, headers
|
1673
|
+
end
|
1674
|
+
|
1675
|
+
# List Loyalty Tier Rewards
|
1676
|
+
# Get available rewards for a given tier.
|
1677
|
+
# @param campaign_id [String] Unique campaign ID or name.
|
1678
|
+
# @param loyalty_tier_id [String] Unique loyalty tier ID.
|
1679
|
+
# @param [Hash] opts the optional parameters
|
1680
|
+
# @return [LoyaltiesTiersRewardsListResponseBody]
|
1681
|
+
def list_loyalty_tier_rewards(campaign_id, loyalty_tier_id, opts = {})
|
1682
|
+
data, _status_code, _headers = list_loyalty_tier_rewards_with_http_info(campaign_id, loyalty_tier_id, opts)
|
1683
|
+
data
|
1684
|
+
end
|
1685
|
+
|
1686
|
+
# List Loyalty Tier Rewards
|
1687
|
+
# Get available rewards for a given tier.
|
1688
|
+
# @param campaign_id [String] Unique campaign ID or name.
|
1689
|
+
# @param loyalty_tier_id [String] Unique loyalty tier ID.
|
1690
|
+
# @param [Hash] opts the optional parameters
|
1691
|
+
# @return [Array<(LoyaltiesTiersRewardsListResponseBody, Integer, Hash)>] LoyaltiesTiersRewardsListResponseBody data, response status code and response headers
|
1692
|
+
private def list_loyalty_tier_rewards_with_http_info(campaign_id, loyalty_tier_id, opts = {})
|
1693
|
+
if @api_client.config.debugging
|
1694
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_loyalty_tier_rewards ...'
|
1204
1695
|
end
|
1205
1696
|
# resource path
|
1206
1697
|
local_var_path = '/v1/loyalties/{campaignId}/tiers/{loyaltyTierId}/rewards'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'loyaltyTierId' + '}', CGI.escape(loyalty_tier_id.to_s))
|
@@ -1246,7 +1737,7 @@ module VoucherifySdk
|
|
1246
1737
|
# Retrieve a list of loyalty tiers which were added to the loyalty program.
|
1247
1738
|
# @param campaign_id [String] Unique loyalty campaign ID or name.
|
1248
1739
|
# @param [Hash] opts the optional parameters
|
1249
|
-
# @option opts [Integer] :limit
|
1740
|
+
# @option opts [Integer] :limit 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.
|
1250
1741
|
# @option opts [ParameterOrderListLoyaltyTiers] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1251
1742
|
# @return [LoyaltiesTiersListResponseBody]
|
1252
1743
|
def list_loyalty_tiers(campaign_id, opts = {})
|
@@ -1258,32 +1749,362 @@ module VoucherifySdk
|
|
1258
1749
|
# Retrieve a list of loyalty tiers which were added to the loyalty program.
|
1259
1750
|
# @param campaign_id [String] Unique loyalty campaign ID or name.
|
1260
1751
|
# @param [Hash] opts the optional parameters
|
1261
|
-
# @option opts [Integer] :limit
|
1752
|
+
# @option opts [Integer] :limit 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.
|
1262
1753
|
# @option opts [ParameterOrderListLoyaltyTiers] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1263
1754
|
# @return [Array<(LoyaltiesTiersListResponseBody, Integer, Hash)>] LoyaltiesTiersListResponseBody data, response status code and response headers
|
1264
1755
|
private def list_loyalty_tiers_with_http_info(campaign_id, opts = {})
|
1265
1756
|
if @api_client.config.debugging
|
1266
1757
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_loyalty_tiers ...'
|
1267
1758
|
end
|
1268
|
-
#
|
1269
|
-
|
1270
|
-
|
1759
|
+
# resource path
|
1760
|
+
local_var_path = '/v1/loyalties/{campaignId}/tiers'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
1761
|
+
|
1762
|
+
# query parameters
|
1763
|
+
query_params = opts[:query_params] || {}
|
1764
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1765
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1766
|
+
|
1767
|
+
# header parameters
|
1768
|
+
header_params = opts[:header_params] || {}
|
1769
|
+
# HTTP header 'Accept' (if needed)
|
1770
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1771
|
+
|
1772
|
+
# form parameters
|
1773
|
+
form_params = opts[:form_params] || {}
|
1774
|
+
|
1775
|
+
# http body (model)
|
1776
|
+
post_body = opts[:debug_body]
|
1777
|
+
|
1778
|
+
# return_type
|
1779
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesTiersListResponseBody'
|
1780
|
+
|
1781
|
+
# auth_names
|
1782
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1783
|
+
|
1784
|
+
new_options = opts.merge(
|
1785
|
+
:operation => :"LoyaltiesApi.list_loyalty_tiers",
|
1786
|
+
:header_params => header_params,
|
1787
|
+
:query_params => query_params,
|
1788
|
+
:form_params => form_params,
|
1789
|
+
:body => post_body,
|
1790
|
+
:auth_names => auth_names,
|
1791
|
+
:return_type => return_type
|
1792
|
+
)
|
1793
|
+
|
1794
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1795
|
+
if @api_client.config.debugging
|
1796
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_loyalty_tiers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1797
|
+
end
|
1798
|
+
return data, status_code, headers
|
1799
|
+
end
|
1800
|
+
|
1801
|
+
# List Member Activity
|
1802
|
+
# 📘 Alternative endpoint This endpoint is an alternative to this endpoint. The URL was re-designed to allow you to get member activities without having to provide the campaignId as a path parameter. Retrieves the list of activities for the given member ID related to a voucher and customer who is the holder of the voucher.
|
1803
|
+
# @param member_id [String] Unique loyalty card assigned to a particular customer.
|
1804
|
+
# @param [Hash] opts the optional parameters
|
1805
|
+
# @option opts [Integer] :limit 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.
|
1806
|
+
# @option opts [ParameterOrderCreatedAt] :order Apply this filter to order the events according the date and time when it was created. The dash - preceding a sorting option means sorting in a descending order.
|
1807
|
+
# @option opts [String] :starting_after_id A cursor for pagination. It retrieves the events starting after an event with the given ID.
|
1808
|
+
# @return [LoyaltiesMemberActivityListResponseBody]
|
1809
|
+
def list_member_activity(member_id, opts = {})
|
1810
|
+
data, _status_code, _headers = list_member_activity_with_http_info(member_id, opts)
|
1811
|
+
data
|
1812
|
+
end
|
1813
|
+
|
1814
|
+
# List Member Activity
|
1815
|
+
# 📘 Alternative endpoint This endpoint is an alternative to this endpoint. The URL was re-designed to allow you to get member activities without having to provide the campaignId as a path parameter. Retrieves the list of activities for the given member ID related to a voucher and customer who is the holder of the voucher.
|
1816
|
+
# @param member_id [String] Unique loyalty card assigned to a particular customer.
|
1817
|
+
# @param [Hash] opts the optional parameters
|
1818
|
+
# @option opts [Integer] :limit 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.
|
1819
|
+
# @option opts [ParameterOrderCreatedAt] :order Apply this filter to order the events according the date and time when it was created. The dash - preceding a sorting option means sorting in a descending order.
|
1820
|
+
# @option opts [String] :starting_after_id A cursor for pagination. It retrieves the events starting after an event with the given ID.
|
1821
|
+
# @return [Array<(LoyaltiesMemberActivityListResponseBody, Integer, Hash)>] LoyaltiesMemberActivityListResponseBody data, response status code and response headers
|
1822
|
+
private def list_member_activity_with_http_info(member_id, opts = {})
|
1823
|
+
if @api_client.config.debugging
|
1824
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_member_activity ...'
|
1825
|
+
end
|
1826
|
+
# resource path
|
1827
|
+
local_var_path = '/v1/loyalties/members/{memberId}/activity'.sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1828
|
+
|
1829
|
+
# query parameters
|
1830
|
+
query_params = opts[:query_params] || {}
|
1831
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1832
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1833
|
+
query_params[:'starting_after_id'] = opts[:'starting_after_id'] if !opts[:'starting_after_id'].nil?
|
1834
|
+
|
1835
|
+
# header parameters
|
1836
|
+
header_params = opts[:header_params] || {}
|
1837
|
+
# HTTP header 'Accept' (if needed)
|
1838
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1839
|
+
|
1840
|
+
# form parameters
|
1841
|
+
form_params = opts[:form_params] || {}
|
1842
|
+
|
1843
|
+
# http body (model)
|
1844
|
+
post_body = opts[:debug_body]
|
1845
|
+
|
1846
|
+
# return_type
|
1847
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesMemberActivityListResponseBody'
|
1848
|
+
|
1849
|
+
# auth_names
|
1850
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1851
|
+
|
1852
|
+
new_options = opts.merge(
|
1853
|
+
:operation => :"LoyaltiesApi.list_member_activity",
|
1854
|
+
:header_params => header_params,
|
1855
|
+
:query_params => query_params,
|
1856
|
+
:form_params => form_params,
|
1857
|
+
:body => post_body,
|
1858
|
+
:auth_names => auth_names,
|
1859
|
+
:return_type => return_type
|
1860
|
+
)
|
1861
|
+
|
1862
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1863
|
+
if @api_client.config.debugging
|
1864
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_member_activity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1271
1865
|
end
|
1272
|
-
|
1273
|
-
|
1866
|
+
return data, status_code, headers
|
1867
|
+
end
|
1868
|
+
|
1869
|
+
# List Member Activity
|
1870
|
+
# Retrieves the list of activities for the given member ID related to a voucher and customer who is the holder of the voucher.
|
1871
|
+
# @param campaign_id [String] Unique campaign ID.
|
1872
|
+
# @param member_id [String] A code that identifies the loyalty card.
|
1873
|
+
# @param [Hash] opts the optional parameters
|
1874
|
+
# @option opts [Integer] :limit 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.
|
1875
|
+
# @option opts [ParameterOrderCreatedAt] :order Apply this filter to order the events according the date and time when it was created. The dash - preceding a sorting option means sorting in a descending order.
|
1876
|
+
# @option opts [String] :starting_after_id A cursor for pagination. It retrieves the events starting after an event with the given ID.
|
1877
|
+
# @return [LoyaltiesMemberActivityListResponseBody]
|
1878
|
+
def list_member_activity1(campaign_id, member_id, opts = {})
|
1879
|
+
data, _status_code, _headers = list_member_activity1_with_http_info(campaign_id, member_id, opts)
|
1880
|
+
data
|
1881
|
+
end
|
1882
|
+
|
1883
|
+
# List Member Activity
|
1884
|
+
# Retrieves the list of activities for the given member ID related to a voucher and customer who is the holder of the voucher.
|
1885
|
+
# @param campaign_id [String] Unique campaign ID.
|
1886
|
+
# @param member_id [String] A code that identifies the loyalty card.
|
1887
|
+
# @param [Hash] opts the optional parameters
|
1888
|
+
# @option opts [Integer] :limit 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.
|
1889
|
+
# @option opts [ParameterOrderCreatedAt] :order Apply this filter to order the events according the date and time when it was created. The dash - preceding a sorting option means sorting in a descending order.
|
1890
|
+
# @option opts [String] :starting_after_id A cursor for pagination. It retrieves the events starting after an event with the given ID.
|
1891
|
+
# @return [Array<(LoyaltiesMemberActivityListResponseBody, Integer, Hash)>] LoyaltiesMemberActivityListResponseBody data, response status code and response headers
|
1892
|
+
private def list_member_activity1_with_http_info(campaign_id, member_id, opts = {})
|
1893
|
+
if @api_client.config.debugging
|
1894
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_member_activity1 ...'
|
1274
1895
|
end
|
1896
|
+
# resource path
|
1897
|
+
local_var_path = '/v1/loyalties/{campaignId}/members/{memberId}/activity'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1898
|
+
|
1899
|
+
# query parameters
|
1900
|
+
query_params = opts[:query_params] || {}
|
1901
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1902
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1903
|
+
query_params[:'starting_after_id'] = opts[:'starting_after_id'] if !opts[:'starting_after_id'].nil?
|
1904
|
+
|
1905
|
+
# header parameters
|
1906
|
+
header_params = opts[:header_params] || {}
|
1907
|
+
# HTTP header 'Accept' (if needed)
|
1908
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1909
|
+
|
1910
|
+
# form parameters
|
1911
|
+
form_params = opts[:form_params] || {}
|
1912
|
+
|
1913
|
+
# http body (model)
|
1914
|
+
post_body = opts[:debug_body]
|
1915
|
+
|
1916
|
+
# return_type
|
1917
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesMemberActivityListResponseBody'
|
1918
|
+
|
1919
|
+
# auth_names
|
1920
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1921
|
+
|
1922
|
+
new_options = opts.merge(
|
1923
|
+
:operation => :"LoyaltiesApi.list_member_activity1",
|
1924
|
+
:header_params => header_params,
|
1925
|
+
:query_params => query_params,
|
1926
|
+
:form_params => form_params,
|
1927
|
+
:body => post_body,
|
1928
|
+
:auth_names => auth_names,
|
1929
|
+
:return_type => return_type
|
1930
|
+
)
|
1931
|
+
|
1932
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1933
|
+
if @api_client.config.debugging
|
1934
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_member_activity1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1935
|
+
end
|
1936
|
+
return data, status_code, headers
|
1937
|
+
end
|
1938
|
+
|
1939
|
+
# List Member's Loyalty Tiers
|
1940
|
+
# Retrieve member tiers using the loyalty card ID.
|
1941
|
+
# @param member_id [String] Unique loyalty card assigned to a particular customer.
|
1942
|
+
# @param [Hash] opts the optional parameters
|
1943
|
+
# @return [LoyaltiesMembersTiersListResponseBody]
|
1944
|
+
def list_member_loyalty_tier(member_id, opts = {})
|
1945
|
+
data, _status_code, _headers = list_member_loyalty_tier_with_http_info(member_id, opts)
|
1946
|
+
data
|
1947
|
+
end
|
1948
|
+
|
1949
|
+
# List Member's Loyalty Tiers
|
1950
|
+
# Retrieve member tiers using the loyalty card ID.
|
1951
|
+
# @param member_id [String] Unique loyalty card assigned to a particular customer.
|
1952
|
+
# @param [Hash] opts the optional parameters
|
1953
|
+
# @return [Array<(LoyaltiesMembersTiersListResponseBody, Integer, Hash)>] LoyaltiesMembersTiersListResponseBody data, response status code and response headers
|
1954
|
+
private def list_member_loyalty_tier_with_http_info(member_id, opts = {})
|
1955
|
+
if @api_client.config.debugging
|
1956
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_member_loyalty_tier ...'
|
1957
|
+
end
|
1958
|
+
# resource path
|
1959
|
+
local_var_path = '/v1/loyalties/members/{memberId}/tiers'.sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1960
|
+
|
1961
|
+
# query parameters
|
1962
|
+
query_params = opts[:query_params] || {}
|
1963
|
+
|
1964
|
+
# header parameters
|
1965
|
+
header_params = opts[:header_params] || {}
|
1966
|
+
# HTTP header 'Accept' (if needed)
|
1967
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1968
|
+
|
1969
|
+
# form parameters
|
1970
|
+
form_params = opts[:form_params] || {}
|
1971
|
+
|
1972
|
+
# http body (model)
|
1973
|
+
post_body = opts[:debug_body]
|
1974
|
+
|
1975
|
+
# return_type
|
1976
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesMembersTiersListResponseBody'
|
1977
|
+
|
1978
|
+
# auth_names
|
1979
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1980
|
+
|
1981
|
+
new_options = opts.merge(
|
1982
|
+
:operation => :"LoyaltiesApi.list_member_loyalty_tier",
|
1983
|
+
:header_params => header_params,
|
1984
|
+
:query_params => query_params,
|
1985
|
+
:form_params => form_params,
|
1986
|
+
:body => post_body,
|
1987
|
+
:auth_names => auth_names,
|
1988
|
+
:return_type => return_type
|
1989
|
+
)
|
1990
|
+
|
1991
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1992
|
+
if @api_client.config.debugging
|
1993
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_member_loyalty_tier\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1994
|
+
end
|
1995
|
+
return data, status_code, headers
|
1996
|
+
end
|
1997
|
+
|
1998
|
+
# List Member Rewards
|
1999
|
+
# Retrieves the list of rewards that the given customer (identified by member_id, which is a loyalty card assigned to a particular customer) **can get in exchange for loyalty points**. You can use the affordable_only parameter to limit the results to rewards that the customer can actually afford (only rewards whose price in points is not higher than the loyalty points balance on a loyalty card). Please note that rewards that are disabled (i.e. set to Not Available in the Dashboard) for a given loyalty tier reward mapping will not be returned in this endpoint.
|
2000
|
+
# @param member_id [String] Unique loyalty card assigned to a particular customer.
|
2001
|
+
# @param [Hash] opts the optional parameters
|
2002
|
+
# @option opts [Boolean] :affordable_only Limit the results to rewards that the customer can actually afford (only rewards whose price in points is not higher than the loyalty points balance on a loyalty card). Set this flag to true to return rewards which the customer can actually afford.
|
2003
|
+
# @return [LoyaltiesMembersRewardsListResponseBody]
|
2004
|
+
def list_member_rewards(member_id, opts = {})
|
2005
|
+
data, _status_code, _headers = list_member_rewards_with_http_info(member_id, opts)
|
2006
|
+
data
|
2007
|
+
end
|
2008
|
+
|
2009
|
+
# List Member Rewards
|
2010
|
+
# Retrieves the list of rewards that the given customer (identified by member_id, which is a loyalty card assigned to a particular customer) **can get in exchange for loyalty points**. You can use the affordable_only parameter to limit the results to rewards that the customer can actually afford (only rewards whose price in points is not higher than the loyalty points balance on a loyalty card). Please note that rewards that are disabled (i.e. set to Not Available in the Dashboard) for a given loyalty tier reward mapping will not be returned in this endpoint.
|
2011
|
+
# @param member_id [String] Unique loyalty card assigned to a particular customer.
|
2012
|
+
# @param [Hash] opts the optional parameters
|
2013
|
+
# @option opts [Boolean] :affordable_only Limit the results to rewards that the customer can actually afford (only rewards whose price in points is not higher than the loyalty points balance on a loyalty card). Set this flag to true to return rewards which the customer can actually afford.
|
2014
|
+
# @return [Array<(LoyaltiesMembersRewardsListResponseBody, Integer, Hash)>] LoyaltiesMembersRewardsListResponseBody data, response status code and response headers
|
2015
|
+
private def list_member_rewards_with_http_info(member_id, opts = {})
|
2016
|
+
if @api_client.config.debugging
|
2017
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_member_rewards ...'
|
2018
|
+
end
|
2019
|
+
# resource path
|
2020
|
+
local_var_path = '/v1/loyalties/members/{memberId}/rewards'.sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
2021
|
+
|
2022
|
+
# query parameters
|
2023
|
+
query_params = opts[:query_params] || {}
|
2024
|
+
query_params[:'affordable_only'] = opts[:'affordable_only'] if !opts[:'affordable_only'].nil?
|
2025
|
+
|
2026
|
+
# header parameters
|
2027
|
+
header_params = opts[:header_params] || {}
|
2028
|
+
# HTTP header 'Accept' (if needed)
|
2029
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2030
|
+
|
2031
|
+
# form parameters
|
2032
|
+
form_params = opts[:form_params] || {}
|
2033
|
+
|
2034
|
+
# http body (model)
|
2035
|
+
post_body = opts[:debug_body]
|
2036
|
+
|
2037
|
+
# return_type
|
2038
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesMembersRewardsListResponseBody'
|
2039
|
+
|
2040
|
+
# auth_names
|
2041
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
2042
|
+
|
2043
|
+
new_options = opts.merge(
|
2044
|
+
:operation => :"LoyaltiesApi.list_member_rewards",
|
2045
|
+
:header_params => header_params,
|
2046
|
+
:query_params => query_params,
|
2047
|
+
:form_params => form_params,
|
2048
|
+
:body => post_body,
|
2049
|
+
:auth_names => auth_names,
|
2050
|
+
:return_type => return_type
|
2051
|
+
)
|
2052
|
+
|
2053
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2054
|
+
if @api_client.config.debugging
|
2055
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_member_rewards\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2056
|
+
end
|
2057
|
+
return data, status_code, headers
|
2058
|
+
end
|
2059
|
+
|
2060
|
+
# List Members
|
2061
|
+
# Returns a list of your loyalty cards. The loyalty cards are sorted by creation date, with the most recent loyalty cards appearing first.
|
2062
|
+
# @param campaign_id [String] Unique campaign ID of the loyalty program.
|
2063
|
+
# @param [Hash] opts the optional parameters
|
2064
|
+
# @option opts [Integer] :limit 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.
|
2065
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
2066
|
+
# @option opts [String] :customer A tracking identifier of a customer who is the holder of the vouchers. It can be an id generated by Voucherify or the source_id. Remember to use the proper URL escape codes if the source_id contains special characters.
|
2067
|
+
# @option opts [ParameterCreatedBeforeAfter] :created_at A filter on the list based on the object created_at field. The value is a dictionary with the following options: before, after. A date value must be presented in ISO 8601 format (2016-11-16T14:14:31Z or 2016-11-16). An example: [created_at][before] 2017-09-08T13:52:18.227Z
|
2068
|
+
# @option opts [ParameterUpdatedBeforeAfter] :updated_at A filter on the list based on the object updated_at field. The value is a dictionary with the following options: before, after. A date value must be presented in ISO 8601 format (2016-11-16T14:14:31Z or 2016-11-16). An example: [updated_at][before] 2017-09-08T13:52:18.227Z
|
2069
|
+
# @option opts [ParameterOrderVouchers] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
2070
|
+
# @option opts [String] :code
|
2071
|
+
# @option opts [Array<String>] :ids
|
2072
|
+
# @return [LoyaltiesListMembersResponseBody]
|
2073
|
+
def list_members(campaign_id, opts = {})
|
2074
|
+
data, _status_code, _headers = list_members_with_http_info(campaign_id, opts)
|
2075
|
+
data
|
2076
|
+
end
|
1275
2077
|
|
1276
|
-
|
1277
|
-
|
2078
|
+
# List Members
|
2079
|
+
# Returns a list of your loyalty cards. The loyalty cards are sorted by creation date, with the most recent loyalty cards appearing first.
|
2080
|
+
# @param campaign_id [String] Unique campaign ID of the loyalty program.
|
2081
|
+
# @param [Hash] opts the optional parameters
|
2082
|
+
# @option opts [Integer] :limit 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.
|
2083
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
2084
|
+
# @option opts [String] :customer A tracking identifier of a customer who is the holder of the vouchers. It can be an id generated by Voucherify or the source_id. Remember to use the proper URL escape codes if the source_id contains special characters.
|
2085
|
+
# @option opts [ParameterCreatedBeforeAfter] :created_at A filter on the list based on the object created_at field. The value is a dictionary with the following options: before, after. A date value must be presented in ISO 8601 format (2016-11-16T14:14:31Z or 2016-11-16). An example: [created_at][before] 2017-09-08T13:52:18.227Z
|
2086
|
+
# @option opts [ParameterUpdatedBeforeAfter] :updated_at A filter on the list based on the object updated_at field. The value is a dictionary with the following options: before, after. A date value must be presented in ISO 8601 format (2016-11-16T14:14:31Z or 2016-11-16). An example: [updated_at][before] 2017-09-08T13:52:18.227Z
|
2087
|
+
# @option opts [ParameterOrderVouchers] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
2088
|
+
# @option opts [String] :code
|
2089
|
+
# @option opts [Array<String>] :ids
|
2090
|
+
# @return [Array<(LoyaltiesListMembersResponseBody, Integer, Hash)>] LoyaltiesListMembersResponseBody data, response status code and response headers
|
2091
|
+
private def list_members_with_http_info(campaign_id, opts = {})
|
2092
|
+
if @api_client.config.debugging
|
2093
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_members ...'
|
1278
2094
|
end
|
1279
|
-
|
1280
2095
|
# resource path
|
1281
|
-
local_var_path = '/v1/loyalties/{campaignId}/
|
2096
|
+
local_var_path = '/v1/loyalties/{campaignId}/members'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
1282
2097
|
|
1283
2098
|
# query parameters
|
1284
2099
|
query_params = opts[:query_params] || {}
|
1285
2100
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2101
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
2102
|
+
query_params[:'customer'] = opts[:'customer'] if !opts[:'customer'].nil?
|
2103
|
+
query_params[:'created_at'] = opts[:'created_at'] if !opts[:'created_at'].nil?
|
2104
|
+
query_params[:'updated_at'] = opts[:'updated_at'] if !opts[:'updated_at'].nil?
|
1286
2105
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
2106
|
+
query_params[:'code'] = opts[:'code'] if !opts[:'code'].nil?
|
2107
|
+
query_params[:'ids'] = @api_client.build_collection_param(opts[:'ids'], :multi) if !opts[:'ids'].nil?
|
1287
2108
|
|
1288
2109
|
# header parameters
|
1289
2110
|
header_params = opts[:header_params] || {}
|
@@ -1297,13 +2118,13 @@ module VoucherifySdk
|
|
1297
2118
|
post_body = opts[:debug_body]
|
1298
2119
|
|
1299
2120
|
# return_type
|
1300
|
-
return_type = opts[:debug_return_type] || '
|
2121
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesListMembersResponseBody'
|
1301
2122
|
|
1302
2123
|
# auth_names
|
1303
2124
|
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1304
2125
|
|
1305
2126
|
new_options = opts.merge(
|
1306
|
-
:operation => :"LoyaltiesApi.
|
2127
|
+
:operation => :"LoyaltiesApi.list_members",
|
1307
2128
|
:header_params => header_params,
|
1308
2129
|
:query_params => query_params,
|
1309
2130
|
:form_params => form_params,
|
@@ -1314,39 +2135,43 @@ module VoucherifySdk
|
|
1314
2135
|
|
1315
2136
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1316
2137
|
if @api_client.config.debugging
|
1317
|
-
@api_client.config.logger.debug "API called: LoyaltiesApi#
|
2138
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1318
2139
|
end
|
1319
2140
|
return data, status_code, headers
|
1320
2141
|
end
|
1321
2142
|
|
1322
|
-
#
|
1323
|
-
# Retrieve
|
1324
|
-
# @param
|
2143
|
+
# Get Points Expiration
|
2144
|
+
# Retrieve loyalty point expiration buckets for a given loyalty card. Expired point buckets are not returned in this endpoint. You can use the Exports API to retrieve a list of both ACTIVE and EXPIRED point buckets.
|
2145
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
2146
|
+
# @param member_id [String] Loyalty card code.
|
1325
2147
|
# @param [Hash] opts the optional parameters
|
1326
|
-
# @
|
1327
|
-
|
1328
|
-
|
2148
|
+
# @option opts [Integer] :limit 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.
|
2149
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
2150
|
+
# @return [LoyaltiesMembersPointsExpirationListResponseBody]
|
2151
|
+
def list_points_expiration(campaign_id, member_id, opts = {})
|
2152
|
+
data, _status_code, _headers = list_points_expiration_with_http_info(campaign_id, member_id, opts)
|
1329
2153
|
data
|
1330
2154
|
end
|
1331
2155
|
|
1332
|
-
#
|
1333
|
-
# Retrieve
|
1334
|
-
# @param
|
2156
|
+
# Get Points Expiration
|
2157
|
+
# Retrieve loyalty point expiration buckets for a given loyalty card. Expired point buckets are not returned in this endpoint. You can use the Exports API to retrieve a list of both ACTIVE and EXPIRED point buckets.
|
2158
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
2159
|
+
# @param member_id [String] Loyalty card code.
|
1335
2160
|
# @param [Hash] opts the optional parameters
|
1336
|
-
# @
|
1337
|
-
|
2161
|
+
# @option opts [Integer] :limit 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.
|
2162
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
2163
|
+
# @return [Array<(LoyaltiesMembersPointsExpirationListResponseBody, Integer, Hash)>] LoyaltiesMembersPointsExpirationListResponseBody data, response status code and response headers
|
2164
|
+
private def list_points_expiration_with_http_info(campaign_id, member_id, opts = {})
|
1338
2165
|
if @api_client.config.debugging
|
1339
|
-
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.
|
1340
|
-
end
|
1341
|
-
# verify the required parameter 'member_id' is set
|
1342
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
1343
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.list_member_loyalty_tier"
|
2166
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_points_expiration ...'
|
1344
2167
|
end
|
1345
2168
|
# resource path
|
1346
|
-
local_var_path = '/v1/loyalties/members/{memberId}/
|
2169
|
+
local_var_path = '/v1/loyalties/{campaignId}/members/{memberId}/points-expiration'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1347
2170
|
|
1348
2171
|
# query parameters
|
1349
2172
|
query_params = opts[:query_params] || {}
|
2173
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2174
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1350
2175
|
|
1351
2176
|
# header parameters
|
1352
2177
|
header_params = opts[:header_params] || {}
|
@@ -1360,13 +2185,13 @@ module VoucherifySdk
|
|
1360
2185
|
post_body = opts[:debug_body]
|
1361
2186
|
|
1362
2187
|
# return_type
|
1363
|
-
return_type = opts[:debug_return_type] || '
|
2188
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesMembersPointsExpirationListResponseBody'
|
1364
2189
|
|
1365
2190
|
# auth_names
|
1366
2191
|
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1367
2192
|
|
1368
2193
|
new_options = opts.merge(
|
1369
|
-
:operation => :"LoyaltiesApi.
|
2194
|
+
:operation => :"LoyaltiesApi.list_points_expiration",
|
1370
2195
|
:header_params => header_params,
|
1371
2196
|
:query_params => query_params,
|
1372
2197
|
:form_params => form_params,
|
@@ -1377,42 +2202,44 @@ module VoucherifySdk
|
|
1377
2202
|
|
1378
2203
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1379
2204
|
if @api_client.config.debugging
|
1380
|
-
@api_client.config.logger.debug "API called: LoyaltiesApi#
|
2205
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_points_expiration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1381
2206
|
end
|
1382
2207
|
return data, status_code, headers
|
1383
2208
|
end
|
1384
2209
|
|
1385
|
-
# List
|
1386
|
-
#
|
1387
|
-
# @param
|
2210
|
+
# List Reward Assignments
|
2211
|
+
# Returns reward assignments from a given loyalty campaign. 📘 Alternative endpoint This endpoint is an alternative to this endpoint. The URL was re-designed to be more contextual to the type of data returned in the response.
|
2212
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
1388
2213
|
# @param [Hash] opts the optional parameters
|
1389
|
-
# @option opts [
|
1390
|
-
# @
|
1391
|
-
|
1392
|
-
|
2214
|
+
# @option opts [Integer] :limit 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.
|
2215
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
2216
|
+
# @option opts [String] :assignment_id A unique reward assignment ID.
|
2217
|
+
# @return [LoyaltiesRewardAssignmentsListResponseBody]
|
2218
|
+
def list_reward_assignments1(campaign_id, opts = {})
|
2219
|
+
data, _status_code, _headers = list_reward_assignments1_with_http_info(campaign_id, opts)
|
1393
2220
|
data
|
1394
2221
|
end
|
1395
2222
|
|
1396
|
-
# List
|
1397
|
-
#
|
1398
|
-
# @param
|
2223
|
+
# List Reward Assignments
|
2224
|
+
# Returns reward assignments from a given loyalty campaign. 📘 Alternative endpoint This endpoint is an alternative to this endpoint. The URL was re-designed to be more contextual to the type of data returned in the response.
|
2225
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
1399
2226
|
# @param [Hash] opts the optional parameters
|
1400
|
-
# @option opts [
|
1401
|
-
# @
|
1402
|
-
|
2227
|
+
# @option opts [Integer] :limit 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.
|
2228
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
2229
|
+
# @option opts [String] :assignment_id A unique reward assignment ID.
|
2230
|
+
# @return [Array<(LoyaltiesRewardAssignmentsListResponseBody, Integer, Hash)>] LoyaltiesRewardAssignmentsListResponseBody data, response status code and response headers
|
2231
|
+
private def list_reward_assignments1_with_http_info(campaign_id, opts = {})
|
1403
2232
|
if @api_client.config.debugging
|
1404
|
-
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.
|
1405
|
-
end
|
1406
|
-
# verify the required parameter 'member_id' is set
|
1407
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
1408
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.list_member_rewards"
|
2233
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_reward_assignments1 ...'
|
1409
2234
|
end
|
1410
2235
|
# resource path
|
1411
|
-
local_var_path = '/v1/loyalties/
|
2236
|
+
local_var_path = '/v1/loyalties/{campaignId}/reward-assignments'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
1412
2237
|
|
1413
2238
|
# query parameters
|
1414
2239
|
query_params = opts[:query_params] || {}
|
1415
|
-
query_params[:'
|
2240
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2241
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
2242
|
+
query_params[:'assignmentId'] = opts[:'assignment_id'] if !opts[:'assignment_id'].nil?
|
1416
2243
|
|
1417
2244
|
# header parameters
|
1418
2245
|
header_params = opts[:header_params] || {}
|
@@ -1426,13 +2253,13 @@ module VoucherifySdk
|
|
1426
2253
|
post_body = opts[:debug_body]
|
1427
2254
|
|
1428
2255
|
# return_type
|
1429
|
-
return_type = opts[:debug_return_type] || '
|
2256
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesRewardAssignmentsListResponseBody'
|
1430
2257
|
|
1431
2258
|
# auth_names
|
1432
2259
|
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1433
2260
|
|
1434
2261
|
new_options = opts.merge(
|
1435
|
-
:operation => :"LoyaltiesApi.
|
2262
|
+
:operation => :"LoyaltiesApi.list_reward_assignments1",
|
1436
2263
|
:header_params => header_params,
|
1437
2264
|
:query_params => query_params,
|
1438
2265
|
:form_params => form_params,
|
@@ -1443,63 +2270,44 @@ module VoucherifySdk
|
|
1443
2270
|
|
1444
2271
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1445
2272
|
if @api_client.config.debugging
|
1446
|
-
@api_client.config.logger.debug "API called: LoyaltiesApi#
|
2273
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_reward_assignments1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1447
2274
|
end
|
1448
2275
|
return data, status_code, headers
|
1449
2276
|
end
|
1450
2277
|
|
1451
|
-
#
|
1452
|
-
#
|
1453
|
-
# @param campaign_id [String]
|
1454
|
-
# @param member_id [String] Loyalty card code.
|
2278
|
+
# List Reward Assignments
|
2279
|
+
# Returns active rewards from a given loyalty campaign.
|
2280
|
+
# @param campaign_id [String] Unique campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
1455
2281
|
# @param [Hash] opts the optional parameters
|
1456
|
-
# @option opts [Integer] :limit
|
1457
|
-
# @option opts [Integer] :page Which page of results to return.
|
1458
|
-
# @
|
1459
|
-
|
1460
|
-
|
2282
|
+
# @option opts [Integer] :limit 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.
|
2283
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
2284
|
+
# @option opts [String] :assignment_id A unique reward assignment ID.
|
2285
|
+
# @return [LoyaltiesRewardsListAssignmentsResponseBody]
|
2286
|
+
def list_reward_assignments2(campaign_id, opts = {})
|
2287
|
+
data, _status_code, _headers = list_reward_assignments2_with_http_info(campaign_id, opts)
|
1461
2288
|
data
|
1462
2289
|
end
|
1463
2290
|
|
1464
|
-
#
|
1465
|
-
#
|
1466
|
-
# @param campaign_id [String]
|
1467
|
-
# @param member_id [String] Loyalty card code.
|
2291
|
+
# List Reward Assignments
|
2292
|
+
# Returns active rewards from a given loyalty campaign.
|
2293
|
+
# @param campaign_id [String] Unique campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
1468
2294
|
# @param [Hash] opts the optional parameters
|
1469
|
-
# @option opts [Integer] :limit
|
1470
|
-
# @option opts [Integer] :page Which page of results to return.
|
1471
|
-
# @
|
1472
|
-
|
2295
|
+
# @option opts [Integer] :limit 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.
|
2296
|
+
# @option opts [Integer] :page Which page of results to return. The lowest value is 1.
|
2297
|
+
# @option opts [String] :assignment_id A unique reward assignment ID.
|
2298
|
+
# @return [Array<(LoyaltiesRewardsListAssignmentsResponseBody, Integer, Hash)>] LoyaltiesRewardsListAssignmentsResponseBody data, response status code and response headers
|
2299
|
+
private def list_reward_assignments2_with_http_info(campaign_id, opts = {})
|
1473
2300
|
if @api_client.config.debugging
|
1474
|
-
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.
|
1475
|
-
end
|
1476
|
-
# verify the required parameter 'campaign_id' is set
|
1477
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
1478
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.list_points_expiration"
|
1479
|
-
end
|
1480
|
-
# verify the required parameter 'member_id' is set
|
1481
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
1482
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.list_points_expiration"
|
1483
|
-
end
|
1484
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
1485
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LoyaltiesApi.list_points_expiration, must be smaller than or equal to 100.'
|
2301
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.list_reward_assignments2 ...'
|
1486
2302
|
end
|
1487
|
-
|
1488
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1489
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LoyaltiesApi.list_points_expiration, must be greater than or equal to 1.'
|
1490
|
-
end
|
1491
|
-
|
1492
|
-
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 100
|
1493
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling LoyaltiesApi.list_points_expiration, must be smaller than or equal to 100.'
|
1494
|
-
end
|
1495
|
-
|
1496
2303
|
# resource path
|
1497
|
-
local_var_path = '/v1/loyalties/{campaignId}/
|
2304
|
+
local_var_path = '/v1/loyalties/{campaignId}/rewards'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
1498
2305
|
|
1499
2306
|
# query parameters
|
1500
2307
|
query_params = opts[:query_params] || {}
|
1501
2308
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1502
2309
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
2310
|
+
query_params[:'assignment_id'] = opts[:'assignment_id'] if !opts[:'assignment_id'].nil?
|
1503
2311
|
|
1504
2312
|
# header parameters
|
1505
2313
|
header_params = opts[:header_params] || {}
|
@@ -1513,13 +2321,13 @@ module VoucherifySdk
|
|
1513
2321
|
post_body = opts[:debug_body]
|
1514
2322
|
|
1515
2323
|
# return_type
|
1516
|
-
return_type = opts[:debug_return_type] || '
|
2324
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesRewardsListAssignmentsResponseBody'
|
1517
2325
|
|
1518
2326
|
# auth_names
|
1519
2327
|
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
1520
2328
|
|
1521
2329
|
new_options = opts.merge(
|
1522
|
-
:operation => :"LoyaltiesApi.
|
2330
|
+
:operation => :"LoyaltiesApi.list_reward_assignments2",
|
1523
2331
|
:header_params => header_params,
|
1524
2332
|
:query_params => query_params,
|
1525
2333
|
:form_params => form_params,
|
@@ -1530,7 +2338,7 @@ module VoucherifySdk
|
|
1530
2338
|
|
1531
2339
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1532
2340
|
if @api_client.config.debugging
|
1533
|
-
@api_client.config.logger.debug "API called: LoyaltiesApi#
|
2341
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#list_reward_assignments2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1534
2342
|
end
|
1535
2343
|
return data, status_code, headers
|
1536
2344
|
end
|
@@ -1556,10 +2364,6 @@ module VoucherifySdk
|
|
1556
2364
|
if @api_client.config.debugging
|
1557
2365
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.redeem_reward ...'
|
1558
2366
|
end
|
1559
|
-
# verify the required parameter 'member_id' is set
|
1560
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
1561
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.redeem_reward"
|
1562
|
-
end
|
1563
2367
|
# resource path
|
1564
2368
|
local_var_path = '/v1/loyalties/members/{memberId}/redemption'.sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1565
2369
|
|
@@ -1628,14 +2432,6 @@ module VoucherifySdk
|
|
1628
2432
|
if @api_client.config.debugging
|
1629
2433
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.redeem_reward1 ...'
|
1630
2434
|
end
|
1631
|
-
# verify the required parameter 'campaign_id' is set
|
1632
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
1633
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.redeem_reward1"
|
1634
|
-
end
|
1635
|
-
# verify the required parameter 'member_id' is set
|
1636
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
1637
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.redeem_reward1"
|
1638
|
-
end
|
1639
2435
|
# resource path
|
1640
2436
|
local_var_path = '/v1/loyalties/{campaignId}/members/{memberId}/redemption'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1641
2437
|
|
@@ -1704,14 +2500,6 @@ module VoucherifySdk
|
|
1704
2500
|
if @api_client.config.debugging
|
1705
2501
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.transfer_points ...'
|
1706
2502
|
end
|
1707
|
-
# verify the required parameter 'campaign_id' is set
|
1708
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
1709
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.transfer_points"
|
1710
|
-
end
|
1711
|
-
# verify the required parameter 'member_id' is set
|
1712
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
1713
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.transfer_points"
|
1714
|
-
end
|
1715
2503
|
# resource path
|
1716
2504
|
local_var_path = '/v1/loyalties/{campaignId}/members/{memberId}/transfers'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1717
2505
|
|
@@ -1757,8 +2545,76 @@ module VoucherifySdk
|
|
1757
2545
|
return data, status_code, headers
|
1758
2546
|
end
|
1759
2547
|
|
2548
|
+
# Update Earning Rule
|
2549
|
+
# Update an earning rule definition.
|
2550
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
2551
|
+
# @param earning_rule_id [String] A unique earning rule ID.
|
2552
|
+
# @param [Hash] opts the optional parameters
|
2553
|
+
# @option opts [LoyaltiesEarningRulesUpdateRequestBody] :loyalties_earning_rules_update_request_body Specify the parameters that you would like to update for the given earning rule.
|
2554
|
+
# @return [LoyaltiesEarningRulesUpdateResponseBody]
|
2555
|
+
def update_earning_rule(campaign_id, earning_rule_id, opts = {})
|
2556
|
+
data, _status_code, _headers = update_earning_rule_with_http_info(campaign_id, earning_rule_id, opts)
|
2557
|
+
data
|
2558
|
+
end
|
2559
|
+
|
2560
|
+
# Update Earning Rule
|
2561
|
+
# Update an earning rule definition.
|
2562
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
2563
|
+
# @param earning_rule_id [String] A unique earning rule ID.
|
2564
|
+
# @param [Hash] opts the optional parameters
|
2565
|
+
# @option opts [LoyaltiesEarningRulesUpdateRequestBody] :loyalties_earning_rules_update_request_body Specify the parameters that you would like to update for the given earning rule.
|
2566
|
+
# @return [Array<(LoyaltiesEarningRulesUpdateResponseBody, Integer, Hash)>] LoyaltiesEarningRulesUpdateResponseBody data, response status code and response headers
|
2567
|
+
private def update_earning_rule_with_http_info(campaign_id, earning_rule_id, opts = {})
|
2568
|
+
if @api_client.config.debugging
|
2569
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.update_earning_rule ...'
|
2570
|
+
end
|
2571
|
+
# resource path
|
2572
|
+
local_var_path = '/v1/loyalties/{campaignId}/earning-rules/{earningRuleId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'earningRuleId' + '}', CGI.escape(earning_rule_id.to_s))
|
2573
|
+
|
2574
|
+
# query parameters
|
2575
|
+
query_params = opts[:query_params] || {}
|
2576
|
+
|
2577
|
+
# header parameters
|
2578
|
+
header_params = opts[:header_params] || {}
|
2579
|
+
# HTTP header 'Accept' (if needed)
|
2580
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2581
|
+
# HTTP header 'Content-Type'
|
2582
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2583
|
+
if !content_type.nil?
|
2584
|
+
header_params['Content-Type'] = content_type
|
2585
|
+
end
|
2586
|
+
|
2587
|
+
# form parameters
|
2588
|
+
form_params = opts[:form_params] || {}
|
2589
|
+
|
2590
|
+
# http body (model)
|
2591
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'loyalties_earning_rules_update_request_body'])
|
2592
|
+
|
2593
|
+
# return_type
|
2594
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesEarningRulesUpdateResponseBody'
|
2595
|
+
|
2596
|
+
# auth_names
|
2597
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
2598
|
+
|
2599
|
+
new_options = opts.merge(
|
2600
|
+
:operation => :"LoyaltiesApi.update_earning_rule",
|
2601
|
+
:header_params => header_params,
|
2602
|
+
:query_params => query_params,
|
2603
|
+
:form_params => form_params,
|
2604
|
+
:body => post_body,
|
2605
|
+
:auth_names => auth_names,
|
2606
|
+
:return_type => return_type
|
2607
|
+
)
|
2608
|
+
|
2609
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2610
|
+
if @api_client.config.debugging
|
2611
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#update_earning_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2612
|
+
end
|
2613
|
+
return data, status_code, headers
|
2614
|
+
end
|
2615
|
+
|
1760
2616
|
# Add or Remove Loyalty Card Balance
|
1761
|
-
# This method gives adds or removes balance to an existing loyalty card. The removal of points will consume the points that expire the soonest. 📘 Alternative endpoint This endpoint is an alternative to this endpoint. The URL was re-designed to allow you to add or remove loyalty card balance without having to provide the campaignId as a path parameter.
|
2617
|
+
# This method gives adds or removes balance to an existing loyalty card. The removal of points will consume the points that expire the soonest. >🚧 Async Action This is an async action. If you want to perform several add or remove loyalty card balance actions in a short time and their order matters, set up sufficient time-out between the calls. 📘 Alternative endpoint This endpoint is an alternative to this endpoint. The URL was re-designed to allow you to add or remove loyalty card balance without having to provide the campaignId as a path parameter.
|
1762
2618
|
# @param member_id [String] Unique loyalty card assigned to a particular customer.
|
1763
2619
|
# @param [Hash] opts the optional parameters
|
1764
2620
|
# @option opts [LoyaltiesMembersBalanceUpdateRequestBody] :loyalties_members_balance_update_request_body Specify the point adjustment along with the expiration mechanism.
|
@@ -1769,7 +2625,7 @@ module VoucherifySdk
|
|
1769
2625
|
end
|
1770
2626
|
|
1771
2627
|
# Add or Remove Loyalty Card Balance
|
1772
|
-
# This method gives adds or removes balance to an existing loyalty card. The removal of points will consume the points that expire the soonest. 📘 Alternative endpoint This endpoint is an alternative to this endpoint. The URL was re-designed to allow you to add or remove loyalty card balance without having to provide the campaignId as a path parameter.
|
2628
|
+
# This method gives adds or removes balance to an existing loyalty card. The removal of points will consume the points that expire the soonest. >🚧 Async Action This is an async action. If you want to perform several add or remove loyalty card balance actions in a short time and their order matters, set up sufficient time-out between the calls. 📘 Alternative endpoint This endpoint is an alternative to this endpoint. The URL was re-designed to allow you to add or remove loyalty card balance without having to provide the campaignId as a path parameter.
|
1773
2629
|
# @param member_id [String] Unique loyalty card assigned to a particular customer.
|
1774
2630
|
# @param [Hash] opts the optional parameters
|
1775
2631
|
# @option opts [LoyaltiesMembersBalanceUpdateRequestBody] :loyalties_members_balance_update_request_body Specify the point adjustment along with the expiration mechanism.
|
@@ -1778,10 +2634,6 @@ module VoucherifySdk
|
|
1778
2634
|
if @api_client.config.debugging
|
1779
2635
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.update_loyalty_card_balance ...'
|
1780
2636
|
end
|
1781
|
-
# verify the required parameter 'member_id' is set
|
1782
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
1783
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.update_loyalty_card_balance"
|
1784
|
-
end
|
1785
2637
|
# resource path
|
1786
2638
|
local_var_path = '/v1/loyalties/members/{memberId}/balance'.sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1787
2639
|
|
@@ -1828,7 +2680,7 @@ module VoucherifySdk
|
|
1828
2680
|
end
|
1829
2681
|
|
1830
2682
|
# Add or Remove Loyalty Card Balance
|
1831
|
-
# This method adds or removes balance to an existing loyalty card. The removal of points will consume the points that expire the soonest.
|
2683
|
+
# This method adds or removes balance to an existing loyalty card. The removal of points will consume the points that expire the soonest. >🚧 Async Action This is an async action. If you want to perform several add or remove loyalty card balance actions in a short time and their order matters, set up sufficient time-out between the calls.
|
1832
2684
|
# @param campaign_id [String] Unique campaign ID.
|
1833
2685
|
# @param member_id [String] A code that identifies the loyalty card.
|
1834
2686
|
# @param [Hash] opts the optional parameters
|
@@ -1840,7 +2692,7 @@ module VoucherifySdk
|
|
1840
2692
|
end
|
1841
2693
|
|
1842
2694
|
# Add or Remove Loyalty Card Balance
|
1843
|
-
# This method adds or removes balance to an existing loyalty card. The removal of points will consume the points that expire the soonest.
|
2695
|
+
# This method adds or removes balance to an existing loyalty card. The removal of points will consume the points that expire the soonest. >🚧 Async Action This is an async action. If you want to perform several add or remove loyalty card balance actions in a short time and their order matters, set up sufficient time-out between the calls.
|
1844
2696
|
# @param campaign_id [String] Unique campaign ID.
|
1845
2697
|
# @param member_id [String] A code that identifies the loyalty card.
|
1846
2698
|
# @param [Hash] opts the optional parameters
|
@@ -1850,14 +2702,6 @@ module VoucherifySdk
|
|
1850
2702
|
if @api_client.config.debugging
|
1851
2703
|
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.update_loyalty_card_balance1 ...'
|
1852
2704
|
end
|
1853
|
-
# verify the required parameter 'campaign_id' is set
|
1854
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
1855
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling LoyaltiesApi.update_loyalty_card_balance1"
|
1856
|
-
end
|
1857
|
-
# verify the required parameter 'member_id' is set
|
1858
|
-
if @api_client.config.client_side_validation && member_id.nil?
|
1859
|
-
fail ArgumentError, "Missing the required parameter 'member_id' when calling LoyaltiesApi.update_loyalty_card_balance1"
|
1860
|
-
end
|
1861
2705
|
# resource path
|
1862
2706
|
local_var_path = '/v1/loyalties/{campaignId}/members/{memberId}/balance'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'memberId' + '}', CGI.escape(member_id.to_s))
|
1863
2707
|
|
@@ -1902,5 +2746,139 @@ module VoucherifySdk
|
|
1902
2746
|
end
|
1903
2747
|
return data, status_code, headers
|
1904
2748
|
end
|
2749
|
+
|
2750
|
+
# Update Loyalty Campaign
|
2751
|
+
# Updates a loyalty program. Fields other than those specified in the allowed request body payload wont be modified (even if provided they are silently skipped). Any parameters not provided will be left unchanged. This method will update the loyalty cards which have not been published or redeemed yet.
|
2752
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
2753
|
+
# @param [Hash] opts the optional parameters
|
2754
|
+
# @option opts [LoyaltiesUpdateCampaignRequestBody] :loyalties_update_campaign_request_body Specify the new values for the parameters that you would like to update for the given loyalty campaign.
|
2755
|
+
# @return [LoyaltiesUpdateCampaignResponseBody]
|
2756
|
+
def update_loyalty_program(campaign_id, opts = {})
|
2757
|
+
data, _status_code, _headers = update_loyalty_program_with_http_info(campaign_id, opts)
|
2758
|
+
data
|
2759
|
+
end
|
2760
|
+
|
2761
|
+
# Update Loyalty Campaign
|
2762
|
+
# Updates a loyalty program. Fields other than those specified in the allowed request body payload wont be modified (even if provided they are silently skipped). Any parameters not provided will be left unchanged. This method will update the loyalty cards which have not been published or redeemed yet.
|
2763
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
2764
|
+
# @param [Hash] opts the optional parameters
|
2765
|
+
# @option opts [LoyaltiesUpdateCampaignRequestBody] :loyalties_update_campaign_request_body Specify the new values for the parameters that you would like to update for the given loyalty campaign.
|
2766
|
+
# @return [Array<(LoyaltiesUpdateCampaignResponseBody, Integer, Hash)>] LoyaltiesUpdateCampaignResponseBody data, response status code and response headers
|
2767
|
+
private def update_loyalty_program_with_http_info(campaign_id, opts = {})
|
2768
|
+
if @api_client.config.debugging
|
2769
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.update_loyalty_program ...'
|
2770
|
+
end
|
2771
|
+
# resource path
|
2772
|
+
local_var_path = '/v1/loyalties/{campaignId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
|
2773
|
+
|
2774
|
+
# query parameters
|
2775
|
+
query_params = opts[:query_params] || {}
|
2776
|
+
|
2777
|
+
# header parameters
|
2778
|
+
header_params = opts[:header_params] || {}
|
2779
|
+
# HTTP header 'Accept' (if needed)
|
2780
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2781
|
+
# HTTP header 'Content-Type'
|
2782
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2783
|
+
if !content_type.nil?
|
2784
|
+
header_params['Content-Type'] = content_type
|
2785
|
+
end
|
2786
|
+
|
2787
|
+
# form parameters
|
2788
|
+
form_params = opts[:form_params] || {}
|
2789
|
+
|
2790
|
+
# http body (model)
|
2791
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'loyalties_update_campaign_request_body'])
|
2792
|
+
|
2793
|
+
# return_type
|
2794
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesUpdateCampaignResponseBody'
|
2795
|
+
|
2796
|
+
# auth_names
|
2797
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
2798
|
+
|
2799
|
+
new_options = opts.merge(
|
2800
|
+
:operation => :"LoyaltiesApi.update_loyalty_program",
|
2801
|
+
:header_params => header_params,
|
2802
|
+
:query_params => query_params,
|
2803
|
+
:form_params => form_params,
|
2804
|
+
:body => post_body,
|
2805
|
+
:auth_names => auth_names,
|
2806
|
+
:return_type => return_type
|
2807
|
+
)
|
2808
|
+
|
2809
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2810
|
+
if @api_client.config.debugging
|
2811
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#update_loyalty_program\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2812
|
+
end
|
2813
|
+
return data, status_code, headers
|
2814
|
+
end
|
2815
|
+
|
2816
|
+
# Update Reward Assignment
|
2817
|
+
# Updates rewards parameters, i.e. the points cost for the specific reward.
|
2818
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
2819
|
+
# @param assignment_id [String] A unique reward assignment ID.
|
2820
|
+
# @param [Hash] opts the optional parameters
|
2821
|
+
# @option opts [LoyaltiesRewardsUpdateAssignmentRequestBody] :loyalties_rewards_update_assignment_request_body Update the points cost for the reward assignment.
|
2822
|
+
# @return [LoyaltiesRewardsUpdateAssignmentResponseBody]
|
2823
|
+
def update_reward_assignment1(campaign_id, assignment_id, opts = {})
|
2824
|
+
data, _status_code, _headers = update_reward_assignment1_with_http_info(campaign_id, assignment_id, opts)
|
2825
|
+
data
|
2826
|
+
end
|
2827
|
+
|
2828
|
+
# Update Reward Assignment
|
2829
|
+
# Updates rewards parameters, i.e. the points cost for the specific reward.
|
2830
|
+
# @param campaign_id [String] The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.
|
2831
|
+
# @param assignment_id [String] A unique reward assignment ID.
|
2832
|
+
# @param [Hash] opts the optional parameters
|
2833
|
+
# @option opts [LoyaltiesRewardsUpdateAssignmentRequestBody] :loyalties_rewards_update_assignment_request_body Update the points cost for the reward assignment.
|
2834
|
+
# @return [Array<(LoyaltiesRewardsUpdateAssignmentResponseBody, Integer, Hash)>] LoyaltiesRewardsUpdateAssignmentResponseBody data, response status code and response headers
|
2835
|
+
private def update_reward_assignment1_with_http_info(campaign_id, assignment_id, opts = {})
|
2836
|
+
if @api_client.config.debugging
|
2837
|
+
@api_client.config.logger.debug 'Calling API: LoyaltiesApi.update_reward_assignment1 ...'
|
2838
|
+
end
|
2839
|
+
# resource path
|
2840
|
+
local_var_path = '/v1/loyalties/{campaignId}/rewards/{assignmentId}'.sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s)).sub('{' + 'assignmentId' + '}', CGI.escape(assignment_id.to_s))
|
2841
|
+
|
2842
|
+
# query parameters
|
2843
|
+
query_params = opts[:query_params] || {}
|
2844
|
+
|
2845
|
+
# header parameters
|
2846
|
+
header_params = opts[:header_params] || {}
|
2847
|
+
# HTTP header 'Accept' (if needed)
|
2848
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2849
|
+
# HTTP header 'Content-Type'
|
2850
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2851
|
+
if !content_type.nil?
|
2852
|
+
header_params['Content-Type'] = content_type
|
2853
|
+
end
|
2854
|
+
|
2855
|
+
# form parameters
|
2856
|
+
form_params = opts[:form_params] || {}
|
2857
|
+
|
2858
|
+
# http body (model)
|
2859
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'loyalties_rewards_update_assignment_request_body'])
|
2860
|
+
|
2861
|
+
# return_type
|
2862
|
+
return_type = opts[:debug_return_type] || 'LoyaltiesRewardsUpdateAssignmentResponseBody'
|
2863
|
+
|
2864
|
+
# auth_names
|
2865
|
+
auth_names = opts[:debug_auth_names] || ['X-App-Id', 'X-App-Token']
|
2866
|
+
|
2867
|
+
new_options = opts.merge(
|
2868
|
+
:operation => :"LoyaltiesApi.update_reward_assignment1",
|
2869
|
+
:header_params => header_params,
|
2870
|
+
:query_params => query_params,
|
2871
|
+
:form_params => form_params,
|
2872
|
+
:body => post_body,
|
2873
|
+
:auth_names => auth_names,
|
2874
|
+
:return_type => return_type
|
2875
|
+
)
|
2876
|
+
|
2877
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2878
|
+
if @api_client.config.debugging
|
2879
|
+
@api_client.config.logger.debug "API called: LoyaltiesApi#update_reward_assignment1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2880
|
+
end
|
2881
|
+
return data, status_code, headers
|
2882
|
+
end
|
1905
2883
|
end
|
1906
2884
|
end
|