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
@@ -0,0 +1,2407 @@
|
|
1
|
+
=begin
|
2
|
+
#Voucherify API
|
3
|
+
|
4
|
+
#Voucherify promotion engine REST API. Please see https://docs.voucherify.io/docs for more details.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v2018-08-01
|
7
|
+
Contact: support@voucherify.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module VoucherifySdk
|
16
|
+
class ManagementApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Assign User
|
23
|
+
# Assigns a user to a given project. The user must be an existing user in Voucherify. 🚧 Correct Use of Data To avoid errors, use the role key with either id or login keys.
|
24
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [ManagementProjectsUsersAssignRequestBody] :management_projects_users_assign_request_body Defines the user details.
|
27
|
+
# @return [ManagementProjectsUsersAssignResponseBody]
|
28
|
+
def assign_user(project_id, opts = {})
|
29
|
+
data, _status_code, _headers = assign_user_with_http_info(project_id, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Assign User
|
34
|
+
# Assigns a user to a given project. The user must be an existing user in Voucherify. 🚧 Correct Use of Data To avoid errors, use the role key with either id or login keys.
|
35
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [ManagementProjectsUsersAssignRequestBody] :management_projects_users_assign_request_body Defines the user details.
|
38
|
+
# @return [Array<(ManagementProjectsUsersAssignResponseBody, Integer, Hash)>] ManagementProjectsUsersAssignResponseBody data, response status code and response headers
|
39
|
+
private def assign_user_with_http_info(project_id, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.assign_user ...'
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/management/v1/projects/{projectId}/users'.sub('{' + 'projectId' + '}', CGI.escape(project_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[:'management_projects_users_assign_request_body'])
|
64
|
+
|
65
|
+
# return_type
|
66
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsUsersAssignResponseBody'
|
67
|
+
|
68
|
+
# auth_names
|
69
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
70
|
+
|
71
|
+
new_options = opts.merge(
|
72
|
+
:operation => :"ManagementApi.assign_user",
|
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: ManagementApi#assign_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
+
end
|
85
|
+
return data, status_code, headers
|
86
|
+
end
|
87
|
+
|
88
|
+
# Create Brand
|
89
|
+
# Creates a new brand configuration. You can have only one brand configured for a project. 📘 White Labelling The white labelling settings which can be found in Project Settings > Brand Details and which are available only for Enterprise clients as a separate service can be configured only in the user interface.
|
90
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [ManagementProjectsBrandingCreateRequestBody] :management_projects_branding_create_request_body Defines a brand configuration.
|
93
|
+
# @return [ManagementProjectsBrandingCreateResponseBody]
|
94
|
+
def create_brand(project_id, opts = {})
|
95
|
+
data, _status_code, _headers = create_brand_with_http_info(project_id, opts)
|
96
|
+
data
|
97
|
+
end
|
98
|
+
|
99
|
+
# Create Brand
|
100
|
+
# Creates a new brand configuration. You can have only one brand configured for a project. 📘 White Labelling The white labelling settings which can be found in Project Settings > Brand Details and which are available only for Enterprise clients as a separate service can be configured only in the user interface.
|
101
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [ManagementProjectsBrandingCreateRequestBody] :management_projects_branding_create_request_body Defines a brand configuration.
|
104
|
+
# @return [Array<(ManagementProjectsBrandingCreateResponseBody, Integer, Hash)>] ManagementProjectsBrandingCreateResponseBody data, response status code and response headers
|
105
|
+
private def create_brand_with_http_info(project_id, opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_brand ...'
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '/management/v1/projects/{projectId}/branding'.sub('{' + 'projectId' + '}', CGI.escape(project_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[:'management_projects_branding_create_request_body'])
|
130
|
+
|
131
|
+
# return_type
|
132
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsBrandingCreateResponseBody'
|
133
|
+
|
134
|
+
# auth_names
|
135
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
136
|
+
|
137
|
+
new_options = opts.merge(
|
138
|
+
:operation => :"ManagementApi.create_brand",
|
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: ManagementApi#create_brand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
150
|
+
end
|
151
|
+
return data, status_code, headers
|
152
|
+
end
|
153
|
+
|
154
|
+
# Create Custom Event Schema
|
155
|
+
# Creates a custom event schema. The properties object is required, but it can be empty, however. This object is for optional custom properties (metadata). 📘 Custom Event Documentation Read [Custom Events](https://support.voucherify.io/article/111-custom-events) article to learn how custom events work in Voucherify. Read also the details about the Track Custom Event endpoint and the Custom Event Object.
|
156
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @option opts [ManagementProjectsCustomEventSchemasCreateRequestBody] :management_projects_custom_event_schemas_create_request_body Defines the custom event schema.
|
159
|
+
# @return [ManagementProjectsCustomEventSchemasCreateResponseBody]
|
160
|
+
def create_custom_event_schema(project_id, opts = {})
|
161
|
+
data, _status_code, _headers = create_custom_event_schema_with_http_info(project_id, opts)
|
162
|
+
data
|
163
|
+
end
|
164
|
+
|
165
|
+
# Create Custom Event Schema
|
166
|
+
# Creates a custom event schema. The properties object is required, but it can be empty, however. This object is for optional custom properties (metadata). 📘 Custom Event Documentation Read [Custom Events](https://support.voucherify.io/article/111-custom-events) article to learn how custom events work in Voucherify. Read also the details about the Track Custom Event endpoint and the Custom Event Object.
|
167
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @option opts [ManagementProjectsCustomEventSchemasCreateRequestBody] :management_projects_custom_event_schemas_create_request_body Defines the custom event schema.
|
170
|
+
# @return [Array<(ManagementProjectsCustomEventSchemasCreateResponseBody, Integer, Hash)>] ManagementProjectsCustomEventSchemasCreateResponseBody data, response status code and response headers
|
171
|
+
private def create_custom_event_schema_with_http_info(project_id, opts = {})
|
172
|
+
if @api_client.config.debugging
|
173
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_custom_event_schema ...'
|
174
|
+
end
|
175
|
+
# resource path
|
176
|
+
local_var_path = '/management/v1/projects/{projectId}/custom-event-schemas'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
177
|
+
|
178
|
+
# query parameters
|
179
|
+
query_params = opts[:query_params] || {}
|
180
|
+
|
181
|
+
# header parameters
|
182
|
+
header_params = opts[:header_params] || {}
|
183
|
+
# HTTP header 'Accept' (if needed)
|
184
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
185
|
+
# HTTP header 'Content-Type'
|
186
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
187
|
+
if !content_type.nil?
|
188
|
+
header_params['Content-Type'] = content_type
|
189
|
+
end
|
190
|
+
|
191
|
+
# form parameters
|
192
|
+
form_params = opts[:form_params] || {}
|
193
|
+
|
194
|
+
# http body (model)
|
195
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_custom_event_schemas_create_request_body'])
|
196
|
+
|
197
|
+
# return_type
|
198
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsCustomEventSchemasCreateResponseBody'
|
199
|
+
|
200
|
+
# auth_names
|
201
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
202
|
+
|
203
|
+
new_options = opts.merge(
|
204
|
+
:operation => :"ManagementApi.create_custom_event_schema",
|
205
|
+
:header_params => header_params,
|
206
|
+
:query_params => query_params,
|
207
|
+
:form_params => form_params,
|
208
|
+
:body => post_body,
|
209
|
+
:auth_names => auth_names,
|
210
|
+
:return_type => return_type
|
211
|
+
)
|
212
|
+
|
213
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
214
|
+
if @api_client.config.debugging
|
215
|
+
@api_client.config.logger.debug "API called: ManagementApi#create_custom_event_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
216
|
+
end
|
217
|
+
return data, status_code, headers
|
218
|
+
end
|
219
|
+
|
220
|
+
# Create Metadata Schema
|
221
|
+
# Creates a new metadata (custom attribute) schema. The schema consists of a set of key-value pairs to customize Voucherify resources. You can nest your object within a standard metadata schema, e.g. within a campaign or customer schema. However, your nested object cannot include another nested object. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward 📘 Metadata Documentation Read the Getting Started with Metadata articles to learn how metadata work in Voucherify.
|
222
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
223
|
+
# @param [Hash] opts the optional parameters
|
224
|
+
# @option opts [ManagementProjectsMetadataSchemasCreateRequestBody] :management_projects_metadata_schemas_create_request_body Defines the metadata schema.
|
225
|
+
# @return [ManagementProjectsMetadataSchemasCreateResponseBody]
|
226
|
+
def create_metadata_schema(project_id, opts = {})
|
227
|
+
data, _status_code, _headers = create_metadata_schema_with_http_info(project_id, opts)
|
228
|
+
data
|
229
|
+
end
|
230
|
+
|
231
|
+
# Create Metadata Schema
|
232
|
+
# Creates a new metadata (custom attribute) schema. The schema consists of a set of key-value pairs to customize Voucherify resources. You can nest your object within a standard metadata schema, e.g. within a campaign or customer schema. However, your nested object cannot include another nested object. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward 📘 Metadata Documentation Read the Getting Started with Metadata articles to learn how metadata work in Voucherify.
|
233
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
234
|
+
# @param [Hash] opts the optional parameters
|
235
|
+
# @option opts [ManagementProjectsMetadataSchemasCreateRequestBody] :management_projects_metadata_schemas_create_request_body Defines the metadata schema.
|
236
|
+
# @return [Array<(ManagementProjectsMetadataSchemasCreateResponseBody, Integer, Hash)>] ManagementProjectsMetadataSchemasCreateResponseBody data, response status code and response headers
|
237
|
+
private def create_metadata_schema_with_http_info(project_id, opts = {})
|
238
|
+
if @api_client.config.debugging
|
239
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_metadata_schema ...'
|
240
|
+
end
|
241
|
+
# resource path
|
242
|
+
local_var_path = '/management/v1/projects/{projectId}/metadata-schemas'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
243
|
+
|
244
|
+
# query parameters
|
245
|
+
query_params = opts[:query_params] || {}
|
246
|
+
|
247
|
+
# header parameters
|
248
|
+
header_params = opts[:header_params] || {}
|
249
|
+
# HTTP header 'Accept' (if needed)
|
250
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
251
|
+
# HTTP header 'Content-Type'
|
252
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
253
|
+
if !content_type.nil?
|
254
|
+
header_params['Content-Type'] = content_type
|
255
|
+
end
|
256
|
+
|
257
|
+
# form parameters
|
258
|
+
form_params = opts[:form_params] || {}
|
259
|
+
|
260
|
+
# http body (model)
|
261
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_metadata_schemas_create_request_body'])
|
262
|
+
|
263
|
+
# return_type
|
264
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsMetadataSchemasCreateResponseBody'
|
265
|
+
|
266
|
+
# auth_names
|
267
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
268
|
+
|
269
|
+
new_options = opts.merge(
|
270
|
+
:operation => :"ManagementApi.create_metadata_schema",
|
271
|
+
:header_params => header_params,
|
272
|
+
:query_params => query_params,
|
273
|
+
:form_params => form_params,
|
274
|
+
:body => post_body,
|
275
|
+
:auth_names => auth_names,
|
276
|
+
:return_type => return_type
|
277
|
+
)
|
278
|
+
|
279
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
280
|
+
if @api_client.config.debugging
|
281
|
+
@api_client.config.logger.debug "API called: ManagementApi#create_metadata_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
282
|
+
end
|
283
|
+
return data, status_code, headers
|
284
|
+
end
|
285
|
+
|
286
|
+
# Create Project
|
287
|
+
# Creates a new project. You can add users, specify the cluster, timezone, currency, and other details. All owners are added to the project by default.
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @option opts [ManagementProjectsCreateRequestBody] :management_projects_create_request_body Define project details.
|
290
|
+
# @return [ManagementProjectsCreateResponseBody]
|
291
|
+
def create_project(opts = {})
|
292
|
+
data, _status_code, _headers = create_project_with_http_info(opts)
|
293
|
+
data
|
294
|
+
end
|
295
|
+
|
296
|
+
# Create Project
|
297
|
+
# Creates a new project. You can add users, specify the cluster, timezone, currency, and other details. All owners are added to the project by default.
|
298
|
+
# @param [Hash] opts the optional parameters
|
299
|
+
# @option opts [ManagementProjectsCreateRequestBody] :management_projects_create_request_body Define project details.
|
300
|
+
# @return [Array<(ManagementProjectsCreateResponseBody, Integer, Hash)>] ManagementProjectsCreateResponseBody data, response status code and response headers
|
301
|
+
private def create_project_with_http_info(opts = {})
|
302
|
+
if @api_client.config.debugging
|
303
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_project ...'
|
304
|
+
end
|
305
|
+
# resource path
|
306
|
+
local_var_path = '/management/v1/projects'
|
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[:'management_projects_create_request_body'])
|
326
|
+
|
327
|
+
# return_type
|
328
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsCreateResponseBody'
|
329
|
+
|
330
|
+
# auth_names
|
331
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
332
|
+
|
333
|
+
new_options = opts.merge(
|
334
|
+
:operation => :"ManagementApi.create_project",
|
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: ManagementApi#create_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
346
|
+
end
|
347
|
+
return data, status_code, headers
|
348
|
+
end
|
349
|
+
|
350
|
+
# Create Stacking Rules
|
351
|
+
# Overwrites the default stacking rules. If new stacking rules have been created for the project earlier (e.g. in the user interface), it returns an error. Use Update Stacking Rules endpoint to change the rules. 📘 Stacking Rules Documentation Read [the Stacking Rules article](https://support.voucherify.io/article/604-stacking-rules) to learn how they work.
|
352
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
353
|
+
# @param [Hash] opts the optional parameters
|
354
|
+
# @option opts [ManagementProjectsStackingRulesCreateRequestBody] :management_projects_stacking_rules_create_request_body Defines the stacking rule parameters.
|
355
|
+
# @return [ManagementProjectsStackingRulesCreateResponseBody]
|
356
|
+
def create_stacking_rules(project_id, opts = {})
|
357
|
+
data, _status_code, _headers = create_stacking_rules_with_http_info(project_id, opts)
|
358
|
+
data
|
359
|
+
end
|
360
|
+
|
361
|
+
# Create Stacking Rules
|
362
|
+
# Overwrites the default stacking rules. If new stacking rules have been created for the project earlier (e.g. in the user interface), it returns an error. Use Update Stacking Rules endpoint to change the rules. 📘 Stacking Rules Documentation Read [the Stacking Rules article](https://support.voucherify.io/article/604-stacking-rules) to learn how they work.
|
363
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
364
|
+
# @param [Hash] opts the optional parameters
|
365
|
+
# @option opts [ManagementProjectsStackingRulesCreateRequestBody] :management_projects_stacking_rules_create_request_body Defines the stacking rule parameters.
|
366
|
+
# @return [Array<(ManagementProjectsStackingRulesCreateResponseBody, Integer, Hash)>] ManagementProjectsStackingRulesCreateResponseBody data, response status code and response headers
|
367
|
+
private def create_stacking_rules_with_http_info(project_id, opts = {})
|
368
|
+
if @api_client.config.debugging
|
369
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_stacking_rules ...'
|
370
|
+
end
|
371
|
+
# resource path
|
372
|
+
local_var_path = '/management/v1/projects/{projectId}/stacking-rules'.sub('{' + 'projectId' + '}', CGI.escape(project_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[:'management_projects_stacking_rules_create_request_body'])
|
392
|
+
|
393
|
+
# return_type
|
394
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsStackingRulesCreateResponseBody'
|
395
|
+
|
396
|
+
# auth_names
|
397
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
398
|
+
|
399
|
+
new_options = opts.merge(
|
400
|
+
:operation => :"ManagementApi.create_stacking_rules",
|
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: ManagementApi#create_stacking_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
412
|
+
end
|
413
|
+
return data, status_code, headers
|
414
|
+
end
|
415
|
+
|
416
|
+
# Create Webhook
|
417
|
+
# Creates a new webhook configuration. 📘 Webhook Documentation Read Webhooks v2024-01-01 article to learn how webhooks work in Voucherify.
|
418
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
419
|
+
# @param [Hash] opts the optional parameters
|
420
|
+
# @option opts [ManagementProjectsWebhooksCreateRequestBody] :management_projects_webhooks_create_request_body Defines a webhook configuration.
|
421
|
+
# @return [ManagementProjectsWebhooksCreateResponseBody]
|
422
|
+
def create_webhook(project_id, opts = {})
|
423
|
+
data, _status_code, _headers = create_webhook_with_http_info(project_id, opts)
|
424
|
+
data
|
425
|
+
end
|
426
|
+
|
427
|
+
# Create Webhook
|
428
|
+
# Creates a new webhook configuration. 📘 Webhook Documentation Read Webhooks v2024-01-01 article to learn how webhooks work in Voucherify.
|
429
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
430
|
+
# @param [Hash] opts the optional parameters
|
431
|
+
# @option opts [ManagementProjectsWebhooksCreateRequestBody] :management_projects_webhooks_create_request_body Defines a webhook configuration.
|
432
|
+
# @return [Array<(ManagementProjectsWebhooksCreateResponseBody, Integer, Hash)>] ManagementProjectsWebhooksCreateResponseBody data, response status code and response headers
|
433
|
+
private def create_webhook_with_http_info(project_id, opts = {})
|
434
|
+
if @api_client.config.debugging
|
435
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_webhook ...'
|
436
|
+
end
|
437
|
+
# resource path
|
438
|
+
local_var_path = '/management/v1/projects/{projectId}/webhooks'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
439
|
+
|
440
|
+
# query parameters
|
441
|
+
query_params = opts[:query_params] || {}
|
442
|
+
|
443
|
+
# header parameters
|
444
|
+
header_params = opts[:header_params] || {}
|
445
|
+
# HTTP header 'Accept' (if needed)
|
446
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
447
|
+
# HTTP header 'Content-Type'
|
448
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
449
|
+
if !content_type.nil?
|
450
|
+
header_params['Content-Type'] = content_type
|
451
|
+
end
|
452
|
+
|
453
|
+
# form parameters
|
454
|
+
form_params = opts[:form_params] || {}
|
455
|
+
|
456
|
+
# http body (model)
|
457
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_webhooks_create_request_body'])
|
458
|
+
|
459
|
+
# return_type
|
460
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsWebhooksCreateResponseBody'
|
461
|
+
|
462
|
+
# auth_names
|
463
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
464
|
+
|
465
|
+
new_options = opts.merge(
|
466
|
+
:operation => :"ManagementApi.create_webhook",
|
467
|
+
:header_params => header_params,
|
468
|
+
:query_params => query_params,
|
469
|
+
:form_params => form_params,
|
470
|
+
:body => post_body,
|
471
|
+
:auth_names => auth_names,
|
472
|
+
:return_type => return_type
|
473
|
+
)
|
474
|
+
|
475
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
476
|
+
if @api_client.config.debugging
|
477
|
+
@api_client.config.logger.debug "API called: ManagementApi#create_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
478
|
+
end
|
479
|
+
return data, status_code, headers
|
480
|
+
end
|
481
|
+
|
482
|
+
# Delete Brand
|
483
|
+
# Deletes permanently a brand configuration.
|
484
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
485
|
+
# @param branding_id [String] Provide the unique identifier of the brand configuration.
|
486
|
+
# @param [Hash] opts the optional parameters
|
487
|
+
# @return [nil]
|
488
|
+
def delete_brand(project_id, branding_id, opts = {})
|
489
|
+
delete_brand_with_http_info(project_id, branding_id, opts)
|
490
|
+
nil
|
491
|
+
end
|
492
|
+
|
493
|
+
# Delete Brand
|
494
|
+
# Deletes permanently a brand configuration.
|
495
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
496
|
+
# @param branding_id [String] Provide the unique identifier of the brand configuration.
|
497
|
+
# @param [Hash] opts the optional parameters
|
498
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
499
|
+
private def delete_brand_with_http_info(project_id, branding_id, opts = {})
|
500
|
+
if @api_client.config.debugging
|
501
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.delete_brand ...'
|
502
|
+
end
|
503
|
+
# resource path
|
504
|
+
local_var_path = '/management/v1/projects/{projectId}/branding/{brandingId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'brandingId' + '}', CGI.escape(branding_id.to_s))
|
505
|
+
|
506
|
+
# query parameters
|
507
|
+
query_params = opts[:query_params] || {}
|
508
|
+
|
509
|
+
# header parameters
|
510
|
+
header_params = opts[:header_params] || {}
|
511
|
+
|
512
|
+
# form parameters
|
513
|
+
form_params = opts[:form_params] || {}
|
514
|
+
|
515
|
+
# http body (model)
|
516
|
+
post_body = opts[:debug_body]
|
517
|
+
|
518
|
+
# return_type
|
519
|
+
return_type = opts[:debug_return_type]
|
520
|
+
|
521
|
+
# auth_names
|
522
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
523
|
+
|
524
|
+
new_options = opts.merge(
|
525
|
+
:operation => :"ManagementApi.delete_brand",
|
526
|
+
:header_params => header_params,
|
527
|
+
:query_params => query_params,
|
528
|
+
:form_params => form_params,
|
529
|
+
:body => post_body,
|
530
|
+
:auth_names => auth_names,
|
531
|
+
:return_type => return_type
|
532
|
+
)
|
533
|
+
|
534
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
535
|
+
if @api_client.config.debugging
|
536
|
+
@api_client.config.logger.debug "API called: ManagementApi#delete_brand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
537
|
+
end
|
538
|
+
return data, status_code, headers
|
539
|
+
end
|
540
|
+
|
541
|
+
# Delete Custom Event Schema
|
542
|
+
# Deletes permanently the custom event schema with its custom properties (metadata). 📘 Custom Event Documentation Read [Custom Events](https://support.voucherify.io/article/111-custom-events) article to learn how custom events work in Voucherify. Read also the details about the Track Custom Event endpoint and the Custom Event Object.
|
543
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
544
|
+
# @param custom_event_schema_id [String] Provide the unique identifier of the custom event schema.
|
545
|
+
# @param [Hash] opts the optional parameters
|
546
|
+
# @return [nil]
|
547
|
+
def delete_custom_event_schema(project_id, custom_event_schema_id, opts = {})
|
548
|
+
delete_custom_event_schema_with_http_info(project_id, custom_event_schema_id, opts)
|
549
|
+
nil
|
550
|
+
end
|
551
|
+
|
552
|
+
# Delete Custom Event Schema
|
553
|
+
# Deletes permanently the custom event schema with its custom properties (metadata). 📘 Custom Event Documentation Read [Custom Events](https://support.voucherify.io/article/111-custom-events) article to learn how custom events work in Voucherify. Read also the details about the Track Custom Event endpoint and the Custom Event Object.
|
554
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
555
|
+
# @param custom_event_schema_id [String] Provide the unique identifier of the custom event schema.
|
556
|
+
# @param [Hash] opts the optional parameters
|
557
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
558
|
+
private def delete_custom_event_schema_with_http_info(project_id, custom_event_schema_id, opts = {})
|
559
|
+
if @api_client.config.debugging
|
560
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.delete_custom_event_schema ...'
|
561
|
+
end
|
562
|
+
# resource path
|
563
|
+
local_var_path = '/management/v1/projects/{projectId}/custom-event-schemas/{customEventSchemaId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'customEventSchemaId' + '}', CGI.escape(custom_event_schema_id.to_s))
|
564
|
+
|
565
|
+
# query parameters
|
566
|
+
query_params = opts[:query_params] || {}
|
567
|
+
|
568
|
+
# header parameters
|
569
|
+
header_params = opts[:header_params] || {}
|
570
|
+
|
571
|
+
# form parameters
|
572
|
+
form_params = opts[:form_params] || {}
|
573
|
+
|
574
|
+
# http body (model)
|
575
|
+
post_body = opts[:debug_body]
|
576
|
+
|
577
|
+
# return_type
|
578
|
+
return_type = opts[:debug_return_type]
|
579
|
+
|
580
|
+
# auth_names
|
581
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
582
|
+
|
583
|
+
new_options = opts.merge(
|
584
|
+
:operation => :"ManagementApi.delete_custom_event_schema",
|
585
|
+
:header_params => header_params,
|
586
|
+
:query_params => query_params,
|
587
|
+
:form_params => form_params,
|
588
|
+
:body => post_body,
|
589
|
+
:auth_names => auth_names,
|
590
|
+
:return_type => return_type
|
591
|
+
)
|
592
|
+
|
593
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
594
|
+
if @api_client.config.debugging
|
595
|
+
@api_client.config.logger.debug "API called: ManagementApi#delete_custom_event_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
596
|
+
end
|
597
|
+
return data, status_code, headers
|
598
|
+
end
|
599
|
+
|
600
|
+
# Delete Metadata Schema
|
601
|
+
# Deletes permanently the metadata schema. In standard metadata schemas, this endpoint removes permanently all definitions. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward If you want to delete only one definition, use the Update Metadata Schema endpoint. In the request, provide the deleted: true pair in the definition object. This definition will be moved to Removed definitions. If you want to create a new standard metadata schema, use the Create Metadata Schema endpoint. 🚧 Metadata Purging This endpoint deletes permanently the metadata schemas only. However, it does not purge the metadata from associated entities, so the metadata added to those entities will remain. If you want to purge metadata from the entities: 1. Remove all the definitions you want to purge. You can do this either in Voucherify Project Settings > Metadata Schema tab or with the Update Metadata Schema endpoint. 2. In Voucherify Project Settings > Metadata Schema tab, go to the relevant metadata schema. 3. In Removed definitions, click the bin button next to the definitions whose metadata you want to purge from entities. Note: - This is an asynchronous action. You will be notified when it has been completed. - You cannot purge metadata for the Redemption and Publication schemas. 4. Use the Delete Metadata Schema request to delete the metadata schema from Voucherify. 📘 Metadata Documentation Read the Getting Started with Metadata articles to learn how metadata work in Voucherify.
|
602
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
603
|
+
# @param metadata_schema_id [String] Provide the unique identifier of the metadata schema.
|
604
|
+
# @param [Hash] opts the optional parameters
|
605
|
+
# @return [nil]
|
606
|
+
def delete_metadata_schema(project_id, metadata_schema_id, opts = {})
|
607
|
+
delete_metadata_schema_with_http_info(project_id, metadata_schema_id, opts)
|
608
|
+
nil
|
609
|
+
end
|
610
|
+
|
611
|
+
# Delete Metadata Schema
|
612
|
+
# Deletes permanently the metadata schema. In standard metadata schemas, this endpoint removes permanently all definitions. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward If you want to delete only one definition, use the Update Metadata Schema endpoint. In the request, provide the deleted: true pair in the definition object. This definition will be moved to Removed definitions. If you want to create a new standard metadata schema, use the Create Metadata Schema endpoint. 🚧 Metadata Purging This endpoint deletes permanently the metadata schemas only. However, it does not purge the metadata from associated entities, so the metadata added to those entities will remain. If you want to purge metadata from the entities: 1. Remove all the definitions you want to purge. You can do this either in Voucherify Project Settings > Metadata Schema tab or with the Update Metadata Schema endpoint. 2. In Voucherify Project Settings > Metadata Schema tab, go to the relevant metadata schema. 3. In Removed definitions, click the bin button next to the definitions whose metadata you want to purge from entities. Note: - This is an asynchronous action. You will be notified when it has been completed. - You cannot purge metadata for the Redemption and Publication schemas. 4. Use the Delete Metadata Schema request to delete the metadata schema from Voucherify. 📘 Metadata Documentation Read the Getting Started with Metadata articles to learn how metadata work in Voucherify.
|
613
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
614
|
+
# @param metadata_schema_id [String] Provide the unique identifier of the metadata schema.
|
615
|
+
# @param [Hash] opts the optional parameters
|
616
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
617
|
+
private def delete_metadata_schema_with_http_info(project_id, metadata_schema_id, opts = {})
|
618
|
+
if @api_client.config.debugging
|
619
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.delete_metadata_schema ...'
|
620
|
+
end
|
621
|
+
# resource path
|
622
|
+
local_var_path = '/management/v1/projects/{projectId}/metadata-schemas/{metadataSchemaId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'metadataSchemaId' + '}', CGI.escape(metadata_schema_id.to_s))
|
623
|
+
|
624
|
+
# query parameters
|
625
|
+
query_params = opts[:query_params] || {}
|
626
|
+
|
627
|
+
# header parameters
|
628
|
+
header_params = opts[:header_params] || {}
|
629
|
+
|
630
|
+
# form parameters
|
631
|
+
form_params = opts[:form_params] || {}
|
632
|
+
|
633
|
+
# http body (model)
|
634
|
+
post_body = opts[:debug_body]
|
635
|
+
|
636
|
+
# return_type
|
637
|
+
return_type = opts[:debug_return_type]
|
638
|
+
|
639
|
+
# auth_names
|
640
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
641
|
+
|
642
|
+
new_options = opts.merge(
|
643
|
+
:operation => :"ManagementApi.delete_metadata_schema",
|
644
|
+
:header_params => header_params,
|
645
|
+
:query_params => query_params,
|
646
|
+
:form_params => form_params,
|
647
|
+
:body => post_body,
|
648
|
+
:auth_names => auth_names,
|
649
|
+
:return_type => return_type
|
650
|
+
)
|
651
|
+
|
652
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
653
|
+
if @api_client.config.debugging
|
654
|
+
@api_client.config.logger.debug "API called: ManagementApi#delete_metadata_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
655
|
+
end
|
656
|
+
return data, status_code, headers
|
657
|
+
end
|
658
|
+
|
659
|
+
# Delete Project
|
660
|
+
# Deletes an existing project. The users currently using the deleted project will be automatically logged out. 🚧 Sandbox Project The sandbox project cannot be deleted.
|
661
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
662
|
+
# @param [Hash] opts the optional parameters
|
663
|
+
# @return [nil]
|
664
|
+
def delete_project(project_id, opts = {})
|
665
|
+
delete_project_with_http_info(project_id, opts)
|
666
|
+
nil
|
667
|
+
end
|
668
|
+
|
669
|
+
# Delete Project
|
670
|
+
# Deletes an existing project. The users currently using the deleted project will be automatically logged out. 🚧 Sandbox Project The sandbox project cannot be deleted.
|
671
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
672
|
+
# @param [Hash] opts the optional parameters
|
673
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
674
|
+
private def delete_project_with_http_info(project_id, opts = {})
|
675
|
+
if @api_client.config.debugging
|
676
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.delete_project ...'
|
677
|
+
end
|
678
|
+
# resource path
|
679
|
+
local_var_path = '/management/v1/projects/{projectId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
680
|
+
|
681
|
+
# query parameters
|
682
|
+
query_params = opts[:query_params] || {}
|
683
|
+
|
684
|
+
# header parameters
|
685
|
+
header_params = opts[:header_params] || {}
|
686
|
+
|
687
|
+
# form parameters
|
688
|
+
form_params = opts[:form_params] || {}
|
689
|
+
|
690
|
+
# http body (model)
|
691
|
+
post_body = opts[:debug_body]
|
692
|
+
|
693
|
+
# return_type
|
694
|
+
return_type = opts[:debug_return_type]
|
695
|
+
|
696
|
+
# auth_names
|
697
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
698
|
+
|
699
|
+
new_options = opts.merge(
|
700
|
+
:operation => :"ManagementApi.delete_project",
|
701
|
+
:header_params => header_params,
|
702
|
+
:query_params => query_params,
|
703
|
+
:form_params => form_params,
|
704
|
+
:body => post_body,
|
705
|
+
:auth_names => auth_names,
|
706
|
+
:return_type => return_type
|
707
|
+
)
|
708
|
+
|
709
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
710
|
+
if @api_client.config.debugging
|
711
|
+
@api_client.config.logger.debug "API called: ManagementApi#delete_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
712
|
+
end
|
713
|
+
return data, status_code, headers
|
714
|
+
end
|
715
|
+
|
716
|
+
# Delete Stacking Rules
|
717
|
+
# Deletes permanently the current settings for the stacking rules. The stacking rules are restored to default values. 📘 Stacking Rules Documentation Read [the Stacking Rules article](https://support.voucherify.io/article/604-stacking-rules) to learn how they work.
|
718
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
719
|
+
# @param stacking_rules_id [String] Provide the unique identifier of the stacking rules.
|
720
|
+
# @param [Hash] opts the optional parameters
|
721
|
+
# @return [nil]
|
722
|
+
def delete_stacking_rules(project_id, stacking_rules_id, opts = {})
|
723
|
+
delete_stacking_rules_with_http_info(project_id, stacking_rules_id, opts)
|
724
|
+
nil
|
725
|
+
end
|
726
|
+
|
727
|
+
# Delete Stacking Rules
|
728
|
+
# Deletes permanently the current settings for the stacking rules. The stacking rules are restored to default values. 📘 Stacking Rules Documentation Read [the Stacking Rules article](https://support.voucherify.io/article/604-stacking-rules) to learn how they work.
|
729
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
730
|
+
# @param stacking_rules_id [String] Provide the unique identifier of the stacking rules.
|
731
|
+
# @param [Hash] opts the optional parameters
|
732
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
733
|
+
private def delete_stacking_rules_with_http_info(project_id, stacking_rules_id, opts = {})
|
734
|
+
if @api_client.config.debugging
|
735
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.delete_stacking_rules ...'
|
736
|
+
end
|
737
|
+
# resource path
|
738
|
+
local_var_path = '/management/v1/projects/{projectId}/stacking-rules/{stackingRulesId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'stackingRulesId' + '}', CGI.escape(stacking_rules_id.to_s))
|
739
|
+
|
740
|
+
# query parameters
|
741
|
+
query_params = opts[:query_params] || {}
|
742
|
+
|
743
|
+
# header parameters
|
744
|
+
header_params = opts[:header_params] || {}
|
745
|
+
|
746
|
+
# form parameters
|
747
|
+
form_params = opts[:form_params] || {}
|
748
|
+
|
749
|
+
# http body (model)
|
750
|
+
post_body = opts[:debug_body]
|
751
|
+
|
752
|
+
# return_type
|
753
|
+
return_type = opts[:debug_return_type]
|
754
|
+
|
755
|
+
# auth_names
|
756
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
757
|
+
|
758
|
+
new_options = opts.merge(
|
759
|
+
:operation => :"ManagementApi.delete_stacking_rules",
|
760
|
+
:header_params => header_params,
|
761
|
+
:query_params => query_params,
|
762
|
+
:form_params => form_params,
|
763
|
+
:body => post_body,
|
764
|
+
:auth_names => auth_names,
|
765
|
+
:return_type => return_type
|
766
|
+
)
|
767
|
+
|
768
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
769
|
+
if @api_client.config.debugging
|
770
|
+
@api_client.config.logger.debug "API called: ManagementApi#delete_stacking_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
771
|
+
end
|
772
|
+
return data, status_code, headers
|
773
|
+
end
|
774
|
+
|
775
|
+
# Delete Webhook
|
776
|
+
# Deletes a webhook configuration. 📘 Webhook Documentation Read Webhooks v2024-01-1 article to learn how webhooks work in Voucherify.
|
777
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
778
|
+
# @param webhook_id [String] Provide the unique identifier of the webhook configuration.
|
779
|
+
# @param [Hash] opts the optional parameters
|
780
|
+
# @return [nil]
|
781
|
+
def delete_webhook(project_id, webhook_id, opts = {})
|
782
|
+
delete_webhook_with_http_info(project_id, webhook_id, opts)
|
783
|
+
nil
|
784
|
+
end
|
785
|
+
|
786
|
+
# Delete Webhook
|
787
|
+
# Deletes a webhook configuration. 📘 Webhook Documentation Read Webhooks v2024-01-1 article to learn how webhooks work in Voucherify.
|
788
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
789
|
+
# @param webhook_id [String] Provide the unique identifier of the webhook configuration.
|
790
|
+
# @param [Hash] opts the optional parameters
|
791
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
792
|
+
private def delete_webhook_with_http_info(project_id, webhook_id, opts = {})
|
793
|
+
if @api_client.config.debugging
|
794
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.delete_webhook ...'
|
795
|
+
end
|
796
|
+
# resource path
|
797
|
+
local_var_path = '/management/v1/projects/{projectId}/webhooks/{webhookId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'webhookId' + '}', CGI.escape(webhook_id.to_s))
|
798
|
+
|
799
|
+
# query parameters
|
800
|
+
query_params = opts[:query_params] || {}
|
801
|
+
|
802
|
+
# header parameters
|
803
|
+
header_params = opts[:header_params] || {}
|
804
|
+
|
805
|
+
# form parameters
|
806
|
+
form_params = opts[:form_params] || {}
|
807
|
+
|
808
|
+
# http body (model)
|
809
|
+
post_body = opts[:debug_body]
|
810
|
+
|
811
|
+
# return_type
|
812
|
+
return_type = opts[:debug_return_type]
|
813
|
+
|
814
|
+
# auth_names
|
815
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
816
|
+
|
817
|
+
new_options = opts.merge(
|
818
|
+
:operation => :"ManagementApi.delete_webhook",
|
819
|
+
:header_params => header_params,
|
820
|
+
:query_params => query_params,
|
821
|
+
:form_params => form_params,
|
822
|
+
:body => post_body,
|
823
|
+
:auth_names => auth_names,
|
824
|
+
:return_type => return_type
|
825
|
+
)
|
826
|
+
|
827
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
828
|
+
if @api_client.config.debugging
|
829
|
+
@api_client.config.logger.debug "API called: ManagementApi#delete_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
830
|
+
end
|
831
|
+
return data, status_code, headers
|
832
|
+
end
|
833
|
+
|
834
|
+
# Get Brand
|
835
|
+
# Retrieves a brand configuration.
|
836
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
837
|
+
# @param branding_id [String] Provide the unique identifier of the brand configuration.
|
838
|
+
# @param [Hash] opts the optional parameters
|
839
|
+
# @return [ManagementProjectsBrandingGetResponseBody]
|
840
|
+
def get_brand(project_id, branding_id, opts = {})
|
841
|
+
data, _status_code, _headers = get_brand_with_http_info(project_id, branding_id, opts)
|
842
|
+
data
|
843
|
+
end
|
844
|
+
|
845
|
+
# Get Brand
|
846
|
+
# Retrieves a brand configuration.
|
847
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
848
|
+
# @param branding_id [String] Provide the unique identifier of the brand configuration.
|
849
|
+
# @param [Hash] opts the optional parameters
|
850
|
+
# @return [Array<(ManagementProjectsBrandingGetResponseBody, Integer, Hash)>] ManagementProjectsBrandingGetResponseBody data, response status code and response headers
|
851
|
+
private def get_brand_with_http_info(project_id, branding_id, opts = {})
|
852
|
+
if @api_client.config.debugging
|
853
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.get_brand ...'
|
854
|
+
end
|
855
|
+
# resource path
|
856
|
+
local_var_path = '/management/v1/projects/{projectId}/branding/{brandingId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'brandingId' + '}', CGI.escape(branding_id.to_s))
|
857
|
+
|
858
|
+
# query parameters
|
859
|
+
query_params = opts[:query_params] || {}
|
860
|
+
|
861
|
+
# header parameters
|
862
|
+
header_params = opts[:header_params] || {}
|
863
|
+
# HTTP header 'Accept' (if needed)
|
864
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
865
|
+
|
866
|
+
# form parameters
|
867
|
+
form_params = opts[:form_params] || {}
|
868
|
+
|
869
|
+
# http body (model)
|
870
|
+
post_body = opts[:debug_body]
|
871
|
+
|
872
|
+
# return_type
|
873
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsBrandingGetResponseBody'
|
874
|
+
|
875
|
+
# auth_names
|
876
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
877
|
+
|
878
|
+
new_options = opts.merge(
|
879
|
+
:operation => :"ManagementApi.get_brand",
|
880
|
+
:header_params => header_params,
|
881
|
+
:query_params => query_params,
|
882
|
+
:form_params => form_params,
|
883
|
+
:body => post_body,
|
884
|
+
:auth_names => auth_names,
|
885
|
+
:return_type => return_type
|
886
|
+
)
|
887
|
+
|
888
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
889
|
+
if @api_client.config.debugging
|
890
|
+
@api_client.config.logger.debug "API called: ManagementApi#get_brand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
891
|
+
end
|
892
|
+
return data, status_code, headers
|
893
|
+
end
|
894
|
+
|
895
|
+
# Get Custom Event Schema
|
896
|
+
# Retrieves a custom event schema. 📘 Custom Event Documentation Read [Custom Events](https://support.voucherify.io/article/111-custom-events) article to learn how custom events work in Voucherify. Read also the details about the Track Custom Event endpoint and the Custom Event Object.
|
897
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
898
|
+
# @param custom_event_schema_id [String] Provide the unique identifier of the custom event schema.
|
899
|
+
# @param [Hash] opts the optional parameters
|
900
|
+
# @return [ManagementProjectsCustomEventSchemasGetResponseBody]
|
901
|
+
def get_custom_event_schema(project_id, custom_event_schema_id, opts = {})
|
902
|
+
data, _status_code, _headers = get_custom_event_schema_with_http_info(project_id, custom_event_schema_id, opts)
|
903
|
+
data
|
904
|
+
end
|
905
|
+
|
906
|
+
# Get Custom Event Schema
|
907
|
+
# Retrieves a custom event schema. 📘 Custom Event Documentation Read [Custom Events](https://support.voucherify.io/article/111-custom-events) article to learn how custom events work in Voucherify. Read also the details about the Track Custom Event endpoint and the Custom Event Object.
|
908
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
909
|
+
# @param custom_event_schema_id [String] Provide the unique identifier of the custom event schema.
|
910
|
+
# @param [Hash] opts the optional parameters
|
911
|
+
# @return [Array<(ManagementProjectsCustomEventSchemasGetResponseBody, Integer, Hash)>] ManagementProjectsCustomEventSchemasGetResponseBody data, response status code and response headers
|
912
|
+
private def get_custom_event_schema_with_http_info(project_id, custom_event_schema_id, opts = {})
|
913
|
+
if @api_client.config.debugging
|
914
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.get_custom_event_schema ...'
|
915
|
+
end
|
916
|
+
# resource path
|
917
|
+
local_var_path = '/management/v1/projects/{projectId}/custom-event-schemas/{customEventSchemaId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'customEventSchemaId' + '}', CGI.escape(custom_event_schema_id.to_s))
|
918
|
+
|
919
|
+
# query parameters
|
920
|
+
query_params = opts[:query_params] || {}
|
921
|
+
|
922
|
+
# header parameters
|
923
|
+
header_params = opts[:header_params] || {}
|
924
|
+
# HTTP header 'Accept' (if needed)
|
925
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
926
|
+
|
927
|
+
# form parameters
|
928
|
+
form_params = opts[:form_params] || {}
|
929
|
+
|
930
|
+
# http body (model)
|
931
|
+
post_body = opts[:debug_body]
|
932
|
+
|
933
|
+
# return_type
|
934
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsCustomEventSchemasGetResponseBody'
|
935
|
+
|
936
|
+
# auth_names
|
937
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
938
|
+
|
939
|
+
new_options = opts.merge(
|
940
|
+
:operation => :"ManagementApi.get_custom_event_schema",
|
941
|
+
:header_params => header_params,
|
942
|
+
:query_params => query_params,
|
943
|
+
:form_params => form_params,
|
944
|
+
:body => post_body,
|
945
|
+
:auth_names => auth_names,
|
946
|
+
:return_type => return_type
|
947
|
+
)
|
948
|
+
|
949
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
950
|
+
if @api_client.config.debugging
|
951
|
+
@api_client.config.logger.debug "API called: ManagementApi#get_custom_event_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
952
|
+
end
|
953
|
+
return data, status_code, headers
|
954
|
+
end
|
955
|
+
|
956
|
+
# Get Metadata Schema
|
957
|
+
# Retrieves a metadata schema. 📘 Metadata Documentation Read the Getting Started with Metadata articles to learn how metadata work in Voucherify.
|
958
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
959
|
+
# @param metadata_schema_id [String] Provide the unique identifier of the metadata schema.
|
960
|
+
# @param [Hash] opts the optional parameters
|
961
|
+
# @return [ManagementProjectsMetadataSchemasGetResponseBody]
|
962
|
+
def get_metadata_schema1(project_id, metadata_schema_id, opts = {})
|
963
|
+
data, _status_code, _headers = get_metadata_schema1_with_http_info(project_id, metadata_schema_id, opts)
|
964
|
+
data
|
965
|
+
end
|
966
|
+
|
967
|
+
# Get Metadata Schema
|
968
|
+
# Retrieves a metadata schema. 📘 Metadata Documentation Read the Getting Started with Metadata articles to learn how metadata work in Voucherify.
|
969
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
970
|
+
# @param metadata_schema_id [String] Provide the unique identifier of the metadata schema.
|
971
|
+
# @param [Hash] opts the optional parameters
|
972
|
+
# @return [Array<(ManagementProjectsMetadataSchemasGetResponseBody, Integer, Hash)>] ManagementProjectsMetadataSchemasGetResponseBody data, response status code and response headers
|
973
|
+
private def get_metadata_schema1_with_http_info(project_id, metadata_schema_id, opts = {})
|
974
|
+
if @api_client.config.debugging
|
975
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.get_metadata_schema1 ...'
|
976
|
+
end
|
977
|
+
# resource path
|
978
|
+
local_var_path = '/management/v1/projects/{projectId}/metadata-schemas/{metadataSchemaId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'metadataSchemaId' + '}', CGI.escape(metadata_schema_id.to_s))
|
979
|
+
|
980
|
+
# query parameters
|
981
|
+
query_params = opts[:query_params] || {}
|
982
|
+
|
983
|
+
# header parameters
|
984
|
+
header_params = opts[:header_params] || {}
|
985
|
+
# HTTP header 'Accept' (if needed)
|
986
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
987
|
+
|
988
|
+
# form parameters
|
989
|
+
form_params = opts[:form_params] || {}
|
990
|
+
|
991
|
+
# http body (model)
|
992
|
+
post_body = opts[:debug_body]
|
993
|
+
|
994
|
+
# return_type
|
995
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsMetadataSchemasGetResponseBody'
|
996
|
+
|
997
|
+
# auth_names
|
998
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
999
|
+
|
1000
|
+
new_options = opts.merge(
|
1001
|
+
:operation => :"ManagementApi.get_metadata_schema1",
|
1002
|
+
:header_params => header_params,
|
1003
|
+
:query_params => query_params,
|
1004
|
+
:form_params => form_params,
|
1005
|
+
:body => post_body,
|
1006
|
+
:auth_names => auth_names,
|
1007
|
+
:return_type => return_type
|
1008
|
+
)
|
1009
|
+
|
1010
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1011
|
+
if @api_client.config.debugging
|
1012
|
+
@api_client.config.logger.debug "API called: ManagementApi#get_metadata_schema1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1013
|
+
end
|
1014
|
+
return data, status_code, headers
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# Get Project
|
1018
|
+
# Retrieves an existing project.
|
1019
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1020
|
+
# @param [Hash] opts the optional parameters
|
1021
|
+
# @return [ManagementProjectsGetResponseBody]
|
1022
|
+
def get_project(project_id, opts = {})
|
1023
|
+
data, _status_code, _headers = get_project_with_http_info(project_id, opts)
|
1024
|
+
data
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
# Get Project
|
1028
|
+
# Retrieves an existing project.
|
1029
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1030
|
+
# @param [Hash] opts the optional parameters
|
1031
|
+
# @return [Array<(ManagementProjectsGetResponseBody, Integer, Hash)>] ManagementProjectsGetResponseBody data, response status code and response headers
|
1032
|
+
private def get_project_with_http_info(project_id, opts = {})
|
1033
|
+
if @api_client.config.debugging
|
1034
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.get_project ...'
|
1035
|
+
end
|
1036
|
+
# resource path
|
1037
|
+
local_var_path = '/management/v1/projects/{projectId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
1038
|
+
|
1039
|
+
# query parameters
|
1040
|
+
query_params = opts[:query_params] || {}
|
1041
|
+
|
1042
|
+
# header parameters
|
1043
|
+
header_params = opts[:header_params] || {}
|
1044
|
+
# HTTP header 'Accept' (if needed)
|
1045
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1046
|
+
|
1047
|
+
# form parameters
|
1048
|
+
form_params = opts[:form_params] || {}
|
1049
|
+
|
1050
|
+
# http body (model)
|
1051
|
+
post_body = opts[:debug_body]
|
1052
|
+
|
1053
|
+
# return_type
|
1054
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsGetResponseBody'
|
1055
|
+
|
1056
|
+
# auth_names
|
1057
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1058
|
+
|
1059
|
+
new_options = opts.merge(
|
1060
|
+
:operation => :"ManagementApi.get_project",
|
1061
|
+
:header_params => header_params,
|
1062
|
+
:query_params => query_params,
|
1063
|
+
:form_params => form_params,
|
1064
|
+
:body => post_body,
|
1065
|
+
:auth_names => auth_names,
|
1066
|
+
:return_type => return_type
|
1067
|
+
)
|
1068
|
+
|
1069
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1070
|
+
if @api_client.config.debugging
|
1071
|
+
@api_client.config.logger.debug "API called: ManagementApi#get_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1072
|
+
end
|
1073
|
+
return data, status_code, headers
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
# Get Stacking Rules
|
1077
|
+
# Retrieves the stacking rules for the project. 📘 Stacking Rules Documentation Read [the Stacking Rules article](https://support.voucherify.io/article/604-stacking-rules) to learn how they work.
|
1078
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1079
|
+
# @param stacking_rules_id [String] Provide the unique identifier of the stacking rules.
|
1080
|
+
# @param [Hash] opts the optional parameters
|
1081
|
+
# @return [ManagementProjectsStackingRulesGetResponseBody]
|
1082
|
+
def get_stacking_rules(project_id, stacking_rules_id, opts = {})
|
1083
|
+
data, _status_code, _headers = get_stacking_rules_with_http_info(project_id, stacking_rules_id, opts)
|
1084
|
+
data
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
# Get Stacking Rules
|
1088
|
+
# Retrieves the stacking rules for the project. 📘 Stacking Rules Documentation Read [the Stacking Rules article](https://support.voucherify.io/article/604-stacking-rules) to learn how they work.
|
1089
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1090
|
+
# @param stacking_rules_id [String] Provide the unique identifier of the stacking rules.
|
1091
|
+
# @param [Hash] opts the optional parameters
|
1092
|
+
# @return [Array<(ManagementProjectsStackingRulesGetResponseBody, Integer, Hash)>] ManagementProjectsStackingRulesGetResponseBody data, response status code and response headers
|
1093
|
+
private def get_stacking_rules_with_http_info(project_id, stacking_rules_id, opts = {})
|
1094
|
+
if @api_client.config.debugging
|
1095
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.get_stacking_rules ...'
|
1096
|
+
end
|
1097
|
+
# resource path
|
1098
|
+
local_var_path = '/management/v1/projects/{projectId}/stacking-rules/{stackingRulesId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'stackingRulesId' + '}', CGI.escape(stacking_rules_id.to_s))
|
1099
|
+
|
1100
|
+
# query parameters
|
1101
|
+
query_params = opts[:query_params] || {}
|
1102
|
+
|
1103
|
+
# header parameters
|
1104
|
+
header_params = opts[:header_params] || {}
|
1105
|
+
# HTTP header 'Accept' (if needed)
|
1106
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1107
|
+
|
1108
|
+
# form parameters
|
1109
|
+
form_params = opts[:form_params] || {}
|
1110
|
+
|
1111
|
+
# http body (model)
|
1112
|
+
post_body = opts[:debug_body]
|
1113
|
+
|
1114
|
+
# return_type
|
1115
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsStackingRulesGetResponseBody'
|
1116
|
+
|
1117
|
+
# auth_names
|
1118
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1119
|
+
|
1120
|
+
new_options = opts.merge(
|
1121
|
+
:operation => :"ManagementApi.get_stacking_rules",
|
1122
|
+
:header_params => header_params,
|
1123
|
+
:query_params => query_params,
|
1124
|
+
:form_params => form_params,
|
1125
|
+
:body => post_body,
|
1126
|
+
:auth_names => auth_names,
|
1127
|
+
:return_type => return_type
|
1128
|
+
)
|
1129
|
+
|
1130
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1131
|
+
if @api_client.config.debugging
|
1132
|
+
@api_client.config.logger.debug "API called: ManagementApi#get_stacking_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1133
|
+
end
|
1134
|
+
return data, status_code, headers
|
1135
|
+
end
|
1136
|
+
|
1137
|
+
# Get User
|
1138
|
+
# Retrieves the project users details.
|
1139
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1140
|
+
# @param user_id [String] Provide the unique identifier of the user. Alternatively, provide the users login.
|
1141
|
+
# @param [Hash] opts the optional parameters
|
1142
|
+
# @return [ManagementProjectsUsersGetUserResponseBody]
|
1143
|
+
def get_user(project_id, user_id, opts = {})
|
1144
|
+
data, _status_code, _headers = get_user_with_http_info(project_id, user_id, opts)
|
1145
|
+
data
|
1146
|
+
end
|
1147
|
+
|
1148
|
+
# Get User
|
1149
|
+
# Retrieves the project users details.
|
1150
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1151
|
+
# @param user_id [String] Provide the unique identifier of the user. Alternatively, provide the users login.
|
1152
|
+
# @param [Hash] opts the optional parameters
|
1153
|
+
# @return [Array<(ManagementProjectsUsersGetUserResponseBody, Integer, Hash)>] ManagementProjectsUsersGetUserResponseBody data, response status code and response headers
|
1154
|
+
private def get_user_with_http_info(project_id, user_id, opts = {})
|
1155
|
+
if @api_client.config.debugging
|
1156
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.get_user ...'
|
1157
|
+
end
|
1158
|
+
# resource path
|
1159
|
+
local_var_path = '/management/v1/projects/{projectId}/users/{userId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
|
1160
|
+
|
1161
|
+
# query parameters
|
1162
|
+
query_params = opts[:query_params] || {}
|
1163
|
+
|
1164
|
+
# header parameters
|
1165
|
+
header_params = opts[:header_params] || {}
|
1166
|
+
# HTTP header 'Accept' (if needed)
|
1167
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1168
|
+
|
1169
|
+
# form parameters
|
1170
|
+
form_params = opts[:form_params] || {}
|
1171
|
+
|
1172
|
+
# http body (model)
|
1173
|
+
post_body = opts[:debug_body]
|
1174
|
+
|
1175
|
+
# return_type
|
1176
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsUsersGetUserResponseBody'
|
1177
|
+
|
1178
|
+
# auth_names
|
1179
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1180
|
+
|
1181
|
+
new_options = opts.merge(
|
1182
|
+
:operation => :"ManagementApi.get_user",
|
1183
|
+
:header_params => header_params,
|
1184
|
+
:query_params => query_params,
|
1185
|
+
:form_params => form_params,
|
1186
|
+
:body => post_body,
|
1187
|
+
:auth_names => auth_names,
|
1188
|
+
:return_type => return_type
|
1189
|
+
)
|
1190
|
+
|
1191
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1192
|
+
if @api_client.config.debugging
|
1193
|
+
@api_client.config.logger.debug "API called: ManagementApi#get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1194
|
+
end
|
1195
|
+
return data, status_code, headers
|
1196
|
+
end
|
1197
|
+
|
1198
|
+
# Get Webhook
|
1199
|
+
# Retrieves a webhook configuration. 📘 Webhook Documentation Read Webhooks v2024-01-1 article to learn how webhooks work in Voucherify.
|
1200
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1201
|
+
# @param webhook_id [String] Provide the unique identifier of the webhook configuration.
|
1202
|
+
# @param [Hash] opts the optional parameters
|
1203
|
+
# @return [ManagementProjectsWebhooksGetResponseBody]
|
1204
|
+
def get_webhook(project_id, webhook_id, opts = {})
|
1205
|
+
data, _status_code, _headers = get_webhook_with_http_info(project_id, webhook_id, opts)
|
1206
|
+
data
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
# Get Webhook
|
1210
|
+
# Retrieves a webhook configuration. 📘 Webhook Documentation Read Webhooks v2024-01-1 article to learn how webhooks work in Voucherify.
|
1211
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1212
|
+
# @param webhook_id [String] Provide the unique identifier of the webhook configuration.
|
1213
|
+
# @param [Hash] opts the optional parameters
|
1214
|
+
# @return [Array<(ManagementProjectsWebhooksGetResponseBody, Integer, Hash)>] ManagementProjectsWebhooksGetResponseBody data, response status code and response headers
|
1215
|
+
private def get_webhook_with_http_info(project_id, webhook_id, opts = {})
|
1216
|
+
if @api_client.config.debugging
|
1217
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.get_webhook ...'
|
1218
|
+
end
|
1219
|
+
# resource path
|
1220
|
+
local_var_path = '/management/v1/projects/{projectId}/webhooks/{webhookId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'webhookId' + '}', CGI.escape(webhook_id.to_s))
|
1221
|
+
|
1222
|
+
# query parameters
|
1223
|
+
query_params = opts[:query_params] || {}
|
1224
|
+
|
1225
|
+
# header parameters
|
1226
|
+
header_params = opts[:header_params] || {}
|
1227
|
+
# HTTP header 'Accept' (if needed)
|
1228
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1229
|
+
|
1230
|
+
# form parameters
|
1231
|
+
form_params = opts[:form_params] || {}
|
1232
|
+
|
1233
|
+
# http body (model)
|
1234
|
+
post_body = opts[:debug_body]
|
1235
|
+
|
1236
|
+
# return_type
|
1237
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsWebhooksGetResponseBody'
|
1238
|
+
|
1239
|
+
# auth_names
|
1240
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1241
|
+
|
1242
|
+
new_options = opts.merge(
|
1243
|
+
:operation => :"ManagementApi.get_webhook",
|
1244
|
+
:header_params => header_params,
|
1245
|
+
:query_params => query_params,
|
1246
|
+
:form_params => form_params,
|
1247
|
+
:body => post_body,
|
1248
|
+
:auth_names => auth_names,
|
1249
|
+
:return_type => return_type
|
1250
|
+
)
|
1251
|
+
|
1252
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1253
|
+
if @api_client.config.debugging
|
1254
|
+
@api_client.config.logger.debug "API called: ManagementApi#get_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1255
|
+
end
|
1256
|
+
return data, status_code, headers
|
1257
|
+
end
|
1258
|
+
|
1259
|
+
# Invite a New User
|
1260
|
+
# Sends an invitation to an email address that has not been used yet as a Voucherify user login. You can specify the projects to which the invited user will be assigned and define their roles.
|
1261
|
+
# @param [Hash] opts the optional parameters
|
1262
|
+
# @option opts [ManagementProjectsUsersInviteCreateRequestBody] :management_projects_users_invite_create_request_body Defines the details of the invitation, the project, and roles to which the user will be assigned.
|
1263
|
+
# @return [nil]
|
1264
|
+
def invite_user(opts = {})
|
1265
|
+
invite_user_with_http_info(opts)
|
1266
|
+
nil
|
1267
|
+
end
|
1268
|
+
|
1269
|
+
# Invite a New User
|
1270
|
+
# Sends an invitation to an email address that has not been used yet as a Voucherify user login. You can specify the projects to which the invited user will be assigned and define their roles.
|
1271
|
+
# @param [Hash] opts the optional parameters
|
1272
|
+
# @option opts [ManagementProjectsUsersInviteCreateRequestBody] :management_projects_users_invite_create_request_body Defines the details of the invitation, the project, and roles to which the user will be assigned.
|
1273
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1274
|
+
private def invite_user_with_http_info(opts = {})
|
1275
|
+
if @api_client.config.debugging
|
1276
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.invite_user ...'
|
1277
|
+
end
|
1278
|
+
# resource path
|
1279
|
+
local_var_path = '/management/v1/projects/users/invite'
|
1280
|
+
|
1281
|
+
# query parameters
|
1282
|
+
query_params = opts[:query_params] || {}
|
1283
|
+
|
1284
|
+
# header parameters
|
1285
|
+
header_params = opts[:header_params] || {}
|
1286
|
+
# HTTP header 'Content-Type'
|
1287
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1288
|
+
if !content_type.nil?
|
1289
|
+
header_params['Content-Type'] = content_type
|
1290
|
+
end
|
1291
|
+
|
1292
|
+
# form parameters
|
1293
|
+
form_params = opts[:form_params] || {}
|
1294
|
+
|
1295
|
+
# http body (model)
|
1296
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_users_invite_create_request_body'])
|
1297
|
+
|
1298
|
+
# return_type
|
1299
|
+
return_type = opts[:debug_return_type]
|
1300
|
+
|
1301
|
+
# auth_names
|
1302
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1303
|
+
|
1304
|
+
new_options = opts.merge(
|
1305
|
+
:operation => :"ManagementApi.invite_user",
|
1306
|
+
:header_params => header_params,
|
1307
|
+
:query_params => query_params,
|
1308
|
+
:form_params => form_params,
|
1309
|
+
:body => post_body,
|
1310
|
+
:auth_names => auth_names,
|
1311
|
+
:return_type => return_type
|
1312
|
+
)
|
1313
|
+
|
1314
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1315
|
+
if @api_client.config.debugging
|
1316
|
+
@api_client.config.logger.debug "API called: ManagementApi#invite_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1317
|
+
end
|
1318
|
+
return data, status_code, headers
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
# List Brands
|
1322
|
+
# Lists all brand configurations. Because a project can have only one brand, it always returns a list with one item. This endpoint can be used to retrieve the brand configuration created with the Voucherify Dashboard and the ID.
|
1323
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1324
|
+
# @param [Hash] opts the optional parameters
|
1325
|
+
# @return [ManagementProjectsBrandingListResponseBody]
|
1326
|
+
def list_brands(project_id, opts = {})
|
1327
|
+
data, _status_code, _headers = list_brands_with_http_info(project_id, opts)
|
1328
|
+
data
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
# List Brands
|
1332
|
+
# Lists all brand configurations. Because a project can have only one brand, it always returns a list with one item. This endpoint can be used to retrieve the brand configuration created with the Voucherify Dashboard and the ID.
|
1333
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1334
|
+
# @param [Hash] opts the optional parameters
|
1335
|
+
# @return [Array<(ManagementProjectsBrandingListResponseBody, Integer, Hash)>] ManagementProjectsBrandingListResponseBody data, response status code and response headers
|
1336
|
+
private def list_brands_with_http_info(project_id, opts = {})
|
1337
|
+
if @api_client.config.debugging
|
1338
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_brands ...'
|
1339
|
+
end
|
1340
|
+
# resource path
|
1341
|
+
local_var_path = '/management/v1/projects/{projectId}/branding'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
1342
|
+
|
1343
|
+
# query parameters
|
1344
|
+
query_params = opts[:query_params] || {}
|
1345
|
+
|
1346
|
+
# header parameters
|
1347
|
+
header_params = opts[:header_params] || {}
|
1348
|
+
# HTTP header 'Accept' (if needed)
|
1349
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1350
|
+
|
1351
|
+
# form parameters
|
1352
|
+
form_params = opts[:form_params] || {}
|
1353
|
+
|
1354
|
+
# http body (model)
|
1355
|
+
post_body = opts[:debug_body]
|
1356
|
+
|
1357
|
+
# return_type
|
1358
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsBrandingListResponseBody'
|
1359
|
+
|
1360
|
+
# auth_names
|
1361
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1362
|
+
|
1363
|
+
new_options = opts.merge(
|
1364
|
+
:operation => :"ManagementApi.list_brands",
|
1365
|
+
:header_params => header_params,
|
1366
|
+
:query_params => query_params,
|
1367
|
+
:form_params => form_params,
|
1368
|
+
:body => post_body,
|
1369
|
+
:auth_names => auth_names,
|
1370
|
+
:return_type => return_type
|
1371
|
+
)
|
1372
|
+
|
1373
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1374
|
+
if @api_client.config.debugging
|
1375
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_brands\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1376
|
+
end
|
1377
|
+
return data, status_code, headers
|
1378
|
+
end
|
1379
|
+
|
1380
|
+
# List Custom Event Schemas
|
1381
|
+
# Lists all custom event schemas available in the project. 📘 Custom Event Documentation Read [Custom Events](https://support.voucherify.io/article/111-custom-events) article to learn how custom events work in Voucherify. Read also the details about the Track Custom Event endpoint and the Custom Event Object.
|
1382
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1383
|
+
# @param [Hash] opts the optional parameters
|
1384
|
+
# @return [ManagementProjectsCustomEventSchemasListResponseBody]
|
1385
|
+
def list_custom_event_schemas(project_id, opts = {})
|
1386
|
+
data, _status_code, _headers = list_custom_event_schemas_with_http_info(project_id, opts)
|
1387
|
+
data
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
# List Custom Event Schemas
|
1391
|
+
# Lists all custom event schemas available in the project. 📘 Custom Event Documentation Read [Custom Events](https://support.voucherify.io/article/111-custom-events) article to learn how custom events work in Voucherify. Read also the details about the Track Custom Event endpoint and the Custom Event Object.
|
1392
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1393
|
+
# @param [Hash] opts the optional parameters
|
1394
|
+
# @return [Array<(ManagementProjectsCustomEventSchemasListResponseBody, Integer, Hash)>] ManagementProjectsCustomEventSchemasListResponseBody data, response status code and response headers
|
1395
|
+
private def list_custom_event_schemas_with_http_info(project_id, opts = {})
|
1396
|
+
if @api_client.config.debugging
|
1397
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_custom_event_schemas ...'
|
1398
|
+
end
|
1399
|
+
# resource path
|
1400
|
+
local_var_path = '/management/v1/projects/{projectId}/custom-event-schemas'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
1401
|
+
|
1402
|
+
# query parameters
|
1403
|
+
query_params = opts[:query_params] || {}
|
1404
|
+
|
1405
|
+
# header parameters
|
1406
|
+
header_params = opts[:header_params] || {}
|
1407
|
+
# HTTP header 'Accept' (if needed)
|
1408
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1409
|
+
|
1410
|
+
# form parameters
|
1411
|
+
form_params = opts[:form_params] || {}
|
1412
|
+
|
1413
|
+
# http body (model)
|
1414
|
+
post_body = opts[:debug_body]
|
1415
|
+
|
1416
|
+
# return_type
|
1417
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsCustomEventSchemasListResponseBody'
|
1418
|
+
|
1419
|
+
# auth_names
|
1420
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1421
|
+
|
1422
|
+
new_options = opts.merge(
|
1423
|
+
:operation => :"ManagementApi.list_custom_event_schemas",
|
1424
|
+
:header_params => header_params,
|
1425
|
+
:query_params => query_params,
|
1426
|
+
:form_params => form_params,
|
1427
|
+
:body => post_body,
|
1428
|
+
:auth_names => auth_names,
|
1429
|
+
:return_type => return_type
|
1430
|
+
)
|
1431
|
+
|
1432
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1433
|
+
if @api_client.config.debugging
|
1434
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_custom_event_schemas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1435
|
+
end
|
1436
|
+
return data, status_code, headers
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
# List Metadata Schemas
|
1440
|
+
# Lists all metadata schemas available in the project. 📘 Metadata Documentation Read the Getting Started with Metadata articles to learn how metadata work in Voucherify.
|
1441
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1442
|
+
# @param [Hash] opts the optional parameters
|
1443
|
+
# @return [ManagementProjectsMetadataSchemasListResponseBody]
|
1444
|
+
def list_metadata_schemas1(project_id, opts = {})
|
1445
|
+
data, _status_code, _headers = list_metadata_schemas1_with_http_info(project_id, opts)
|
1446
|
+
data
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
# List Metadata Schemas
|
1450
|
+
# Lists all metadata schemas available in the project. 📘 Metadata Documentation Read the Getting Started with Metadata articles to learn how metadata work in Voucherify.
|
1451
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1452
|
+
# @param [Hash] opts the optional parameters
|
1453
|
+
# @return [Array<(ManagementProjectsMetadataSchemasListResponseBody, Integer, Hash)>] ManagementProjectsMetadataSchemasListResponseBody data, response status code and response headers
|
1454
|
+
private def list_metadata_schemas1_with_http_info(project_id, opts = {})
|
1455
|
+
if @api_client.config.debugging
|
1456
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_metadata_schemas1 ...'
|
1457
|
+
end
|
1458
|
+
# resource path
|
1459
|
+
local_var_path = '/management/v1/projects/{projectId}/metadata-schemas'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
1460
|
+
|
1461
|
+
# query parameters
|
1462
|
+
query_params = opts[:query_params] || {}
|
1463
|
+
|
1464
|
+
# header parameters
|
1465
|
+
header_params = opts[:header_params] || {}
|
1466
|
+
# HTTP header 'Accept' (if needed)
|
1467
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1468
|
+
|
1469
|
+
# form parameters
|
1470
|
+
form_params = opts[:form_params] || {}
|
1471
|
+
|
1472
|
+
# http body (model)
|
1473
|
+
post_body = opts[:debug_body]
|
1474
|
+
|
1475
|
+
# return_type
|
1476
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsMetadataSchemasListResponseBody'
|
1477
|
+
|
1478
|
+
# auth_names
|
1479
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1480
|
+
|
1481
|
+
new_options = opts.merge(
|
1482
|
+
:operation => :"ManagementApi.list_metadata_schemas1",
|
1483
|
+
:header_params => header_params,
|
1484
|
+
:query_params => query_params,
|
1485
|
+
:form_params => form_params,
|
1486
|
+
:body => post_body,
|
1487
|
+
:auth_names => auth_names,
|
1488
|
+
:return_type => return_type
|
1489
|
+
)
|
1490
|
+
|
1491
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1492
|
+
if @api_client.config.debugging
|
1493
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_metadata_schemas1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1494
|
+
end
|
1495
|
+
return data, status_code, headers
|
1496
|
+
end
|
1497
|
+
|
1498
|
+
# List Projects
|
1499
|
+
# Lists all projects for the organization. The endpoint does not require any query parameters.
|
1500
|
+
# @param [Hash] opts the optional parameters
|
1501
|
+
# @return [ManagementProjectsListResponseBody]
|
1502
|
+
def list_projects(opts = {})
|
1503
|
+
data, _status_code, _headers = list_projects_with_http_info(opts)
|
1504
|
+
data
|
1505
|
+
end
|
1506
|
+
|
1507
|
+
# List Projects
|
1508
|
+
# Lists all projects for the organization. The endpoint does not require any query parameters.
|
1509
|
+
# @param [Hash] opts the optional parameters
|
1510
|
+
# @return [Array<(ManagementProjectsListResponseBody, Integer, Hash)>] ManagementProjectsListResponseBody data, response status code and response headers
|
1511
|
+
private def list_projects_with_http_info(opts = {})
|
1512
|
+
if @api_client.config.debugging
|
1513
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_projects ...'
|
1514
|
+
end
|
1515
|
+
# resource path
|
1516
|
+
local_var_path = '/management/v1/projects'
|
1517
|
+
|
1518
|
+
# query parameters
|
1519
|
+
query_params = opts[:query_params] || {}
|
1520
|
+
|
1521
|
+
# header parameters
|
1522
|
+
header_params = opts[:header_params] || {}
|
1523
|
+
# HTTP header 'Accept' (if needed)
|
1524
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1525
|
+
|
1526
|
+
# form parameters
|
1527
|
+
form_params = opts[:form_params] || {}
|
1528
|
+
|
1529
|
+
# http body (model)
|
1530
|
+
post_body = opts[:debug_body]
|
1531
|
+
|
1532
|
+
# return_type
|
1533
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsListResponseBody'
|
1534
|
+
|
1535
|
+
# auth_names
|
1536
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1537
|
+
|
1538
|
+
new_options = opts.merge(
|
1539
|
+
:operation => :"ManagementApi.list_projects",
|
1540
|
+
:header_params => header_params,
|
1541
|
+
:query_params => query_params,
|
1542
|
+
:form_params => form_params,
|
1543
|
+
:body => post_body,
|
1544
|
+
:auth_names => auth_names,
|
1545
|
+
:return_type => return_type
|
1546
|
+
)
|
1547
|
+
|
1548
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1549
|
+
if @api_client.config.debugging
|
1550
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1551
|
+
end
|
1552
|
+
return data, status_code, headers
|
1553
|
+
end
|
1554
|
+
|
1555
|
+
# List Stacking Rules
|
1556
|
+
# Lists all stacking rules. Returns always a list with one item. This endpoint can be used to retrieve the default stacking rules. The default stacking rules do not have an ID that could be used with the Get Stacking Rules or Update Stacking Rules endpoints. 📘 Stacking Rules Documentation Read [the Stacking Rules article](https://support.voucherify.io/article/604-stacking-rules) to learn how they work.
|
1557
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1558
|
+
# @param [Hash] opts the optional parameters
|
1559
|
+
# @return [ManagementProjectsStackingRulesListResponseBody]
|
1560
|
+
def list_stacking_rules(project_id, opts = {})
|
1561
|
+
data, _status_code, _headers = list_stacking_rules_with_http_info(project_id, opts)
|
1562
|
+
data
|
1563
|
+
end
|
1564
|
+
|
1565
|
+
# List Stacking Rules
|
1566
|
+
# Lists all stacking rules. Returns always a list with one item. This endpoint can be used to retrieve the default stacking rules. The default stacking rules do not have an ID that could be used with the Get Stacking Rules or Update Stacking Rules endpoints. 📘 Stacking Rules Documentation Read [the Stacking Rules article](https://support.voucherify.io/article/604-stacking-rules) to learn how they work.
|
1567
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1568
|
+
# @param [Hash] opts the optional parameters
|
1569
|
+
# @return [Array<(ManagementProjectsStackingRulesListResponseBody, Integer, Hash)>] ManagementProjectsStackingRulesListResponseBody data, response status code and response headers
|
1570
|
+
private def list_stacking_rules_with_http_info(project_id, opts = {})
|
1571
|
+
if @api_client.config.debugging
|
1572
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_stacking_rules ...'
|
1573
|
+
end
|
1574
|
+
# resource path
|
1575
|
+
local_var_path = '/management/v1/projects/{projectId}/stacking-rules'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
1576
|
+
|
1577
|
+
# query parameters
|
1578
|
+
query_params = opts[:query_params] || {}
|
1579
|
+
|
1580
|
+
# header parameters
|
1581
|
+
header_params = opts[:header_params] || {}
|
1582
|
+
# HTTP header 'Accept' (if needed)
|
1583
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1584
|
+
|
1585
|
+
# form parameters
|
1586
|
+
form_params = opts[:form_params] || {}
|
1587
|
+
|
1588
|
+
# http body (model)
|
1589
|
+
post_body = opts[:debug_body]
|
1590
|
+
|
1591
|
+
# return_type
|
1592
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsStackingRulesListResponseBody'
|
1593
|
+
|
1594
|
+
# auth_names
|
1595
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1596
|
+
|
1597
|
+
new_options = opts.merge(
|
1598
|
+
:operation => :"ManagementApi.list_stacking_rules",
|
1599
|
+
:header_params => header_params,
|
1600
|
+
:query_params => query_params,
|
1601
|
+
:form_params => form_params,
|
1602
|
+
:body => post_body,
|
1603
|
+
:auth_names => auth_names,
|
1604
|
+
:return_type => return_type
|
1605
|
+
)
|
1606
|
+
|
1607
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1608
|
+
if @api_client.config.debugging
|
1609
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_stacking_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1610
|
+
end
|
1611
|
+
return data, status_code, headers
|
1612
|
+
end
|
1613
|
+
|
1614
|
+
# List Users
|
1615
|
+
# Lists all users assigned to the project.
|
1616
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1617
|
+
# @param [Hash] opts the optional parameters
|
1618
|
+
# @return [ManagementProjectsUsersListResponseBody]
|
1619
|
+
def list_users(project_id, opts = {})
|
1620
|
+
data, _status_code, _headers = list_users_with_http_info(project_id, opts)
|
1621
|
+
data
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
# List Users
|
1625
|
+
# Lists all users assigned to the project.
|
1626
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1627
|
+
# @param [Hash] opts the optional parameters
|
1628
|
+
# @return [Array<(ManagementProjectsUsersListResponseBody, Integer, Hash)>] ManagementProjectsUsersListResponseBody data, response status code and response headers
|
1629
|
+
private def list_users_with_http_info(project_id, opts = {})
|
1630
|
+
if @api_client.config.debugging
|
1631
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_users ...'
|
1632
|
+
end
|
1633
|
+
# resource path
|
1634
|
+
local_var_path = '/management/v1/projects/{projectId}/users'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
1635
|
+
|
1636
|
+
# query parameters
|
1637
|
+
query_params = opts[:query_params] || {}
|
1638
|
+
|
1639
|
+
# header parameters
|
1640
|
+
header_params = opts[:header_params] || {}
|
1641
|
+
# HTTP header 'Accept' (if needed)
|
1642
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1643
|
+
|
1644
|
+
# form parameters
|
1645
|
+
form_params = opts[:form_params] || {}
|
1646
|
+
|
1647
|
+
# http body (model)
|
1648
|
+
post_body = opts[:debug_body]
|
1649
|
+
|
1650
|
+
# return_type
|
1651
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsUsersListResponseBody'
|
1652
|
+
|
1653
|
+
# auth_names
|
1654
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1655
|
+
|
1656
|
+
new_options = opts.merge(
|
1657
|
+
:operation => :"ManagementApi.list_users",
|
1658
|
+
:header_params => header_params,
|
1659
|
+
:query_params => query_params,
|
1660
|
+
:form_params => form_params,
|
1661
|
+
:body => post_body,
|
1662
|
+
:auth_names => auth_names,
|
1663
|
+
:return_type => return_type
|
1664
|
+
)
|
1665
|
+
|
1666
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1667
|
+
if @api_client.config.debugging
|
1668
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1669
|
+
end
|
1670
|
+
return data, status_code, headers
|
1671
|
+
end
|
1672
|
+
|
1673
|
+
# List Webhooks
|
1674
|
+
# Lists all webhook configurations for the project. 📘 Webhook Documentation Read Webhooks v2024-01-1 article to learn how webhooks work in Voucherify.
|
1675
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1676
|
+
# @param [Hash] opts the optional parameters
|
1677
|
+
# @return [ManagementProjectsWebhooksListResponseBody]
|
1678
|
+
def list_webhooks(project_id, opts = {})
|
1679
|
+
data, _status_code, _headers = list_webhooks_with_http_info(project_id, opts)
|
1680
|
+
data
|
1681
|
+
end
|
1682
|
+
|
1683
|
+
# List Webhooks
|
1684
|
+
# Lists all webhook configurations for the project. 📘 Webhook Documentation Read Webhooks v2024-01-1 article to learn how webhooks work in Voucherify.
|
1685
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1686
|
+
# @param [Hash] opts the optional parameters
|
1687
|
+
# @return [Array<(ManagementProjectsWebhooksListResponseBody, Integer, Hash)>] ManagementProjectsWebhooksListResponseBody data, response status code and response headers
|
1688
|
+
private def list_webhooks_with_http_info(project_id, opts = {})
|
1689
|
+
if @api_client.config.debugging
|
1690
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_webhooks ...'
|
1691
|
+
end
|
1692
|
+
# resource path
|
1693
|
+
local_var_path = '/management/v1/projects/{projectId}/webhooks'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
1694
|
+
|
1695
|
+
# query parameters
|
1696
|
+
query_params = opts[:query_params] || {}
|
1697
|
+
|
1698
|
+
# header parameters
|
1699
|
+
header_params = opts[:header_params] || {}
|
1700
|
+
# HTTP header 'Accept' (if needed)
|
1701
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1702
|
+
|
1703
|
+
# form parameters
|
1704
|
+
form_params = opts[:form_params] || {}
|
1705
|
+
|
1706
|
+
# http body (model)
|
1707
|
+
post_body = opts[:debug_body]
|
1708
|
+
|
1709
|
+
# return_type
|
1710
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsWebhooksListResponseBody'
|
1711
|
+
|
1712
|
+
# auth_names
|
1713
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1714
|
+
|
1715
|
+
new_options = opts.merge(
|
1716
|
+
:operation => :"ManagementApi.list_webhooks",
|
1717
|
+
:header_params => header_params,
|
1718
|
+
:query_params => query_params,
|
1719
|
+
:form_params => form_params,
|
1720
|
+
:body => post_body,
|
1721
|
+
:auth_names => auth_names,
|
1722
|
+
:return_type => return_type
|
1723
|
+
)
|
1724
|
+
|
1725
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1726
|
+
if @api_client.config.debugging
|
1727
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1728
|
+
end
|
1729
|
+
return data, status_code, headers
|
1730
|
+
end
|
1731
|
+
|
1732
|
+
# Copy Campaign Template to a Project
|
1733
|
+
# Copies a campaign template to another project. The resources, like validation rules or products, will not be copied to the destination project yet. When the template is used to create a new campaign or add a new promotion tier, the resources will be created in the destination project. 📘 Campaign Templates – Documentation Read the [Campaign Templates documentation](https://support.voucherify.io/article/620-campaign-templates) to learn more about this feature.
|
1734
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1735
|
+
# @param campaign_template_id [String] Provide the unique identifier of the campaign template.
|
1736
|
+
# @param [Hash] opts the optional parameters
|
1737
|
+
# @option opts [ManagementProjectsTemplatesCampaignsCopyCreateRequestBody] :management_projects_templates_campaigns_copy_create_request_body Determines the details about the template in the destination project as well as the destination project itself.
|
1738
|
+
# @return [ManagementProjectsTemplatesCampaignsCopyCreateResponseBody]
|
1739
|
+
def management_copy_campaign_template(project_id, campaign_template_id, opts = {})
|
1740
|
+
data, _status_code, _headers = management_copy_campaign_template_with_http_info(project_id, campaign_template_id, opts)
|
1741
|
+
data
|
1742
|
+
end
|
1743
|
+
|
1744
|
+
# Copy Campaign Template to a Project
|
1745
|
+
# Copies a campaign template to another project. The resources, like validation rules or products, will not be copied to the destination project yet. When the template is used to create a new campaign or add a new promotion tier, the resources will be created in the destination project. 📘 Campaign Templates – Documentation Read the [Campaign Templates documentation](https://support.voucherify.io/article/620-campaign-templates) to learn more about this feature.
|
1746
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1747
|
+
# @param campaign_template_id [String] Provide the unique identifier of the campaign template.
|
1748
|
+
# @param [Hash] opts the optional parameters
|
1749
|
+
# @option opts [ManagementProjectsTemplatesCampaignsCopyCreateRequestBody] :management_projects_templates_campaigns_copy_create_request_body Determines the details about the template in the destination project as well as the destination project itself.
|
1750
|
+
# @return [Array<(ManagementProjectsTemplatesCampaignsCopyCreateResponseBody, Integer, Hash)>] ManagementProjectsTemplatesCampaignsCopyCreateResponseBody data, response status code and response headers
|
1751
|
+
private def management_copy_campaign_template_with_http_info(project_id, campaign_template_id, opts = {})
|
1752
|
+
if @api_client.config.debugging
|
1753
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.management_copy_campaign_template ...'
|
1754
|
+
end
|
1755
|
+
# resource path
|
1756
|
+
local_var_path = '/management/v1/projects/{projectId}/templates/campaigns/{campaignTemplateId}/copy'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'campaignTemplateId' + '}', CGI.escape(campaign_template_id.to_s))
|
1757
|
+
|
1758
|
+
# query parameters
|
1759
|
+
query_params = opts[:query_params] || {}
|
1760
|
+
|
1761
|
+
# header parameters
|
1762
|
+
header_params = opts[:header_params] || {}
|
1763
|
+
# HTTP header 'Accept' (if needed)
|
1764
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1765
|
+
# HTTP header 'Content-Type'
|
1766
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1767
|
+
if !content_type.nil?
|
1768
|
+
header_params['Content-Type'] = content_type
|
1769
|
+
end
|
1770
|
+
|
1771
|
+
# form parameters
|
1772
|
+
form_params = opts[:form_params] || {}
|
1773
|
+
|
1774
|
+
# http body (model)
|
1775
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_templates_campaigns_copy_create_request_body'])
|
1776
|
+
|
1777
|
+
# return_type
|
1778
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsTemplatesCampaignsCopyCreateResponseBody'
|
1779
|
+
|
1780
|
+
# auth_names
|
1781
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1782
|
+
|
1783
|
+
new_options = opts.merge(
|
1784
|
+
:operation => :"ManagementApi.management_copy_campaign_template",
|
1785
|
+
:header_params => header_params,
|
1786
|
+
:query_params => query_params,
|
1787
|
+
:form_params => form_params,
|
1788
|
+
:body => post_body,
|
1789
|
+
:auth_names => auth_names,
|
1790
|
+
:return_type => return_type
|
1791
|
+
)
|
1792
|
+
|
1793
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1794
|
+
if @api_client.config.debugging
|
1795
|
+
@api_client.config.logger.debug "API called: ManagementApi#management_copy_campaign_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1796
|
+
end
|
1797
|
+
return data, status_code, headers
|
1798
|
+
end
|
1799
|
+
|
1800
|
+
# List Campaign Templates
|
1801
|
+
# Lists all campaign templates available in the project. 👍 List Campaign Templates This endpoint works in the same way as the List Campaign Templates endpoint. 📘 Campaign Templates – Documentation Read the [Campaign Templates documentation](https://support.voucherify.io/article/620-campaign-templates) to learn more about this feature.
|
1802
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1803
|
+
# @param [Hash] opts the optional parameters
|
1804
|
+
# @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.
|
1805
|
+
# @option opts [String] :starting_after_id A cursor for pagination. It retrieves the campaign templates created after a template with the given ID.
|
1806
|
+
# @option opts [ParameterTemplatesList] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1807
|
+
# @option opts [Boolean] :include_total If set to true, the response returns the number of all campaign templates, regardless of the applied filters or limits. Set to false by default.
|
1808
|
+
# @option opts [ParameterFiltersListTemplates] :filters Filters for listing templates.
|
1809
|
+
# @return [ManagementProjectsTemplatesCampaignsListResponseBody]
|
1810
|
+
def management_list_campaign_templates(project_id, opts = {})
|
1811
|
+
data, _status_code, _headers = management_list_campaign_templates_with_http_info(project_id, opts)
|
1812
|
+
data
|
1813
|
+
end
|
1814
|
+
|
1815
|
+
# List Campaign Templates
|
1816
|
+
# Lists all campaign templates available in the project. 👍 List Campaign Templates This endpoint works in the same way as the List Campaign Templates endpoint. 📘 Campaign Templates – Documentation Read the [Campaign Templates documentation](https://support.voucherify.io/article/620-campaign-templates) to learn more about this feature.
|
1817
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1818
|
+
# @param [Hash] opts the optional parameters
|
1819
|
+
# @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.
|
1820
|
+
# @option opts [String] :starting_after_id A cursor for pagination. It retrieves the campaign templates created after a template with the given ID.
|
1821
|
+
# @option opts [ParameterTemplatesList] :order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
|
1822
|
+
# @option opts [Boolean] :include_total If set to true, the response returns the number of all campaign templates, regardless of the applied filters or limits. Set to false by default.
|
1823
|
+
# @option opts [ParameterFiltersListTemplates] :filters Filters for listing templates.
|
1824
|
+
# @return [Array<(ManagementProjectsTemplatesCampaignsListResponseBody, Integer, Hash)>] ManagementProjectsTemplatesCampaignsListResponseBody data, response status code and response headers
|
1825
|
+
private def management_list_campaign_templates_with_http_info(project_id, opts = {})
|
1826
|
+
if @api_client.config.debugging
|
1827
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.management_list_campaign_templates ...'
|
1828
|
+
end
|
1829
|
+
# resource path
|
1830
|
+
local_var_path = '/management/v1/projects/{projectId}/templates/campaigns'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
1831
|
+
|
1832
|
+
# query parameters
|
1833
|
+
query_params = opts[:query_params] || {}
|
1834
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1835
|
+
query_params[:'starting_after_id'] = opts[:'starting_after_id'] if !opts[:'starting_after_id'].nil?
|
1836
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1837
|
+
query_params[:'include_total'] = opts[:'include_total'] if !opts[:'include_total'].nil?
|
1838
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1839
|
+
|
1840
|
+
# header parameters
|
1841
|
+
header_params = opts[:header_params] || {}
|
1842
|
+
# HTTP header 'Accept' (if needed)
|
1843
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1844
|
+
|
1845
|
+
# form parameters
|
1846
|
+
form_params = opts[:form_params] || {}
|
1847
|
+
|
1848
|
+
# http body (model)
|
1849
|
+
post_body = opts[:debug_body]
|
1850
|
+
|
1851
|
+
# return_type
|
1852
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsTemplatesCampaignsListResponseBody'
|
1853
|
+
|
1854
|
+
# auth_names
|
1855
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1856
|
+
|
1857
|
+
new_options = opts.merge(
|
1858
|
+
:operation => :"ManagementApi.management_list_campaign_templates",
|
1859
|
+
:header_params => header_params,
|
1860
|
+
:query_params => query_params,
|
1861
|
+
:form_params => form_params,
|
1862
|
+
:body => post_body,
|
1863
|
+
:auth_names => auth_names,
|
1864
|
+
:return_type => return_type
|
1865
|
+
)
|
1866
|
+
|
1867
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1868
|
+
if @api_client.config.debugging
|
1869
|
+
@api_client.config.logger.debug "API called: ManagementApi#management_list_campaign_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1870
|
+
end
|
1871
|
+
return data, status_code, headers
|
1872
|
+
end
|
1873
|
+
|
1874
|
+
# Unassign User
|
1875
|
+
# Unassigns the user from the project. If the user is currently logged in, they are automatically logged out. If the user is assigned to only one project, they cannot be unassigned from that project.
|
1876
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1877
|
+
# @param user_id [String] Provide the unique identifier of the user. Alternatively, provide the users login.
|
1878
|
+
# @param [Hash] opts the optional parameters
|
1879
|
+
# @return [nil]
|
1880
|
+
def unassign_user(project_id, user_id, opts = {})
|
1881
|
+
unassign_user_with_http_info(project_id, user_id, opts)
|
1882
|
+
nil
|
1883
|
+
end
|
1884
|
+
|
1885
|
+
# Unassign User
|
1886
|
+
# Unassigns the user from the project. If the user is currently logged in, they are automatically logged out. If the user is assigned to only one project, they cannot be unassigned from that project.
|
1887
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1888
|
+
# @param user_id [String] Provide the unique identifier of the user. Alternatively, provide the users login.
|
1889
|
+
# @param [Hash] opts the optional parameters
|
1890
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1891
|
+
private def unassign_user_with_http_info(project_id, user_id, opts = {})
|
1892
|
+
if @api_client.config.debugging
|
1893
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.unassign_user ...'
|
1894
|
+
end
|
1895
|
+
# resource path
|
1896
|
+
local_var_path = '/management/v1/projects/{projectId}/users/{userId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
|
1897
|
+
|
1898
|
+
# query parameters
|
1899
|
+
query_params = opts[:query_params] || {}
|
1900
|
+
|
1901
|
+
# header parameters
|
1902
|
+
header_params = opts[:header_params] || {}
|
1903
|
+
|
1904
|
+
# form parameters
|
1905
|
+
form_params = opts[:form_params] || {}
|
1906
|
+
|
1907
|
+
# http body (model)
|
1908
|
+
post_body = opts[:debug_body]
|
1909
|
+
|
1910
|
+
# return_type
|
1911
|
+
return_type = opts[:debug_return_type]
|
1912
|
+
|
1913
|
+
# auth_names
|
1914
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1915
|
+
|
1916
|
+
new_options = opts.merge(
|
1917
|
+
:operation => :"ManagementApi.unassign_user",
|
1918
|
+
:header_params => header_params,
|
1919
|
+
:query_params => query_params,
|
1920
|
+
:form_params => form_params,
|
1921
|
+
:body => post_body,
|
1922
|
+
:auth_names => auth_names,
|
1923
|
+
:return_type => return_type
|
1924
|
+
)
|
1925
|
+
|
1926
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1927
|
+
if @api_client.config.debugging
|
1928
|
+
@api_client.config.logger.debug "API called: ManagementApi#unassign_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1929
|
+
end
|
1930
|
+
return data, status_code, headers
|
1931
|
+
end
|
1932
|
+
|
1933
|
+
# Update Brand
|
1934
|
+
# Updates a brand configuration. Only the fields sent in the request will be updated. The fields omitted in the request will remain unchanged. 📘 White Labelling The white labelling settings which can be found in Project Settings > Brand Details and which are available only for Enterprise clients as a separate service can be configured only in the user interface.
|
1935
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1936
|
+
# @param branding_id [String] Provide the unique identifier of the brand configuration.
|
1937
|
+
# @param [Hash] opts the optional parameters
|
1938
|
+
# @option opts [ManagementProjectsBrandingUpdateRequestBody] :management_projects_branding_update_request_body Defines the brand configuration to be updated.
|
1939
|
+
# @return [ManagementProjectsBrandingUpdateResponseBody]
|
1940
|
+
def update_brand(project_id, branding_id, opts = {})
|
1941
|
+
data, _status_code, _headers = update_brand_with_http_info(project_id, branding_id, opts)
|
1942
|
+
data
|
1943
|
+
end
|
1944
|
+
|
1945
|
+
# Update Brand
|
1946
|
+
# Updates a brand configuration. Only the fields sent in the request will be updated. The fields omitted in the request will remain unchanged. 📘 White Labelling The white labelling settings which can be found in Project Settings > Brand Details and which are available only for Enterprise clients as a separate service can be configured only in the user interface.
|
1947
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
1948
|
+
# @param branding_id [String] Provide the unique identifier of the brand configuration.
|
1949
|
+
# @param [Hash] opts the optional parameters
|
1950
|
+
# @option opts [ManagementProjectsBrandingUpdateRequestBody] :management_projects_branding_update_request_body Defines the brand configuration to be updated.
|
1951
|
+
# @return [Array<(ManagementProjectsBrandingUpdateResponseBody, Integer, Hash)>] ManagementProjectsBrandingUpdateResponseBody data, response status code and response headers
|
1952
|
+
private def update_brand_with_http_info(project_id, branding_id, opts = {})
|
1953
|
+
if @api_client.config.debugging
|
1954
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.update_brand ...'
|
1955
|
+
end
|
1956
|
+
# resource path
|
1957
|
+
local_var_path = '/management/v1/projects/{projectId}/branding/{brandingId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'brandingId' + '}', CGI.escape(branding_id.to_s))
|
1958
|
+
|
1959
|
+
# query parameters
|
1960
|
+
query_params = opts[:query_params] || {}
|
1961
|
+
|
1962
|
+
# header parameters
|
1963
|
+
header_params = opts[:header_params] || {}
|
1964
|
+
# HTTP header 'Accept' (if needed)
|
1965
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1966
|
+
# HTTP header 'Content-Type'
|
1967
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1968
|
+
if !content_type.nil?
|
1969
|
+
header_params['Content-Type'] = content_type
|
1970
|
+
end
|
1971
|
+
|
1972
|
+
# form parameters
|
1973
|
+
form_params = opts[:form_params] || {}
|
1974
|
+
|
1975
|
+
# http body (model)
|
1976
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_branding_update_request_body'])
|
1977
|
+
|
1978
|
+
# return_type
|
1979
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsBrandingUpdateResponseBody'
|
1980
|
+
|
1981
|
+
# auth_names
|
1982
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
1983
|
+
|
1984
|
+
new_options = opts.merge(
|
1985
|
+
:operation => :"ManagementApi.update_brand",
|
1986
|
+
:header_params => header_params,
|
1987
|
+
:query_params => query_params,
|
1988
|
+
:form_params => form_params,
|
1989
|
+
:body => post_body,
|
1990
|
+
:auth_names => auth_names,
|
1991
|
+
:return_type => return_type
|
1992
|
+
)
|
1993
|
+
|
1994
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1995
|
+
if @api_client.config.debugging
|
1996
|
+
@api_client.config.logger.debug "API called: ManagementApi#update_brand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1997
|
+
end
|
1998
|
+
return data, status_code, headers
|
1999
|
+
end
|
2000
|
+
|
2001
|
+
# Update Custom Event Schema
|
2002
|
+
# Updates a custom event schema. With this request, you can: - Add a non-existing property to a custom event schema. - Update an existing property. In the request, you can provide only those properties you want to add or update. Definitions omitted in the request remain unchanged. 👍 Additional Notes - You can change the type of an existing property, e.g. from string to number. - You can remove a custom property with this endpoint by providing deleted: true in the request. However, you cannot permanently remove an event definition or its property with this endpoint. 📘 Custom Event Documentation Read [Custom Events](https://support.voucherify.io/article/111-custom-events) article to learn how custom events work in Voucherify. Read also the details about the Track Custom Event endpoint and the Custom Event Object.
|
2003
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2004
|
+
# @param custom_event_schema_id [String] Provide the unique identifier of the custom event schema.
|
2005
|
+
# @param [Hash] opts the optional parameters
|
2006
|
+
# @option opts [ManagementProjectsCustomEventSchemasUpdateRequestBody] :management_projects_custom_event_schemas_update_request_body Defines the custom event schema to be updated.
|
2007
|
+
# @return [ManagementProjectsCustomEventSchemasUpdateResponseBody]
|
2008
|
+
def update_custom_event_schema(project_id, custom_event_schema_id, opts = {})
|
2009
|
+
data, _status_code, _headers = update_custom_event_schema_with_http_info(project_id, custom_event_schema_id, opts)
|
2010
|
+
data
|
2011
|
+
end
|
2012
|
+
|
2013
|
+
# Update Custom Event Schema
|
2014
|
+
# Updates a custom event schema. With this request, you can: - Add a non-existing property to a custom event schema. - Update an existing property. In the request, you can provide only those properties you want to add or update. Definitions omitted in the request remain unchanged. 👍 Additional Notes - You can change the type of an existing property, e.g. from string to number. - You can remove a custom property with this endpoint by providing deleted: true in the request. However, you cannot permanently remove an event definition or its property with this endpoint. 📘 Custom Event Documentation Read [Custom Events](https://support.voucherify.io/article/111-custom-events) article to learn how custom events work in Voucherify. Read also the details about the Track Custom Event endpoint and the Custom Event Object.
|
2015
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2016
|
+
# @param custom_event_schema_id [String] Provide the unique identifier of the custom event schema.
|
2017
|
+
# @param [Hash] opts the optional parameters
|
2018
|
+
# @option opts [ManagementProjectsCustomEventSchemasUpdateRequestBody] :management_projects_custom_event_schemas_update_request_body Defines the custom event schema to be updated.
|
2019
|
+
# @return [Array<(ManagementProjectsCustomEventSchemasUpdateResponseBody, Integer, Hash)>] ManagementProjectsCustomEventSchemasUpdateResponseBody data, response status code and response headers
|
2020
|
+
private def update_custom_event_schema_with_http_info(project_id, custom_event_schema_id, opts = {})
|
2021
|
+
if @api_client.config.debugging
|
2022
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.update_custom_event_schema ...'
|
2023
|
+
end
|
2024
|
+
# resource path
|
2025
|
+
local_var_path = '/management/v1/projects/{projectId}/custom-event-schemas/{customEventSchemaId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'customEventSchemaId' + '}', CGI.escape(custom_event_schema_id.to_s))
|
2026
|
+
|
2027
|
+
# query parameters
|
2028
|
+
query_params = opts[:query_params] || {}
|
2029
|
+
|
2030
|
+
# header parameters
|
2031
|
+
header_params = opts[:header_params] || {}
|
2032
|
+
# HTTP header 'Accept' (if needed)
|
2033
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2034
|
+
# HTTP header 'Content-Type'
|
2035
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2036
|
+
if !content_type.nil?
|
2037
|
+
header_params['Content-Type'] = content_type
|
2038
|
+
end
|
2039
|
+
|
2040
|
+
# form parameters
|
2041
|
+
form_params = opts[:form_params] || {}
|
2042
|
+
|
2043
|
+
# http body (model)
|
2044
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_custom_event_schemas_update_request_body'])
|
2045
|
+
|
2046
|
+
# return_type
|
2047
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsCustomEventSchemasUpdateResponseBody'
|
2048
|
+
|
2049
|
+
# auth_names
|
2050
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
2051
|
+
|
2052
|
+
new_options = opts.merge(
|
2053
|
+
:operation => :"ManagementApi.update_custom_event_schema",
|
2054
|
+
:header_params => header_params,
|
2055
|
+
:query_params => query_params,
|
2056
|
+
:form_params => form_params,
|
2057
|
+
:body => post_body,
|
2058
|
+
:auth_names => auth_names,
|
2059
|
+
:return_type => return_type
|
2060
|
+
)
|
2061
|
+
|
2062
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2063
|
+
if @api_client.config.debugging
|
2064
|
+
@api_client.config.logger.debug "API called: ManagementApi#update_custom_event_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2065
|
+
end
|
2066
|
+
return data, status_code, headers
|
2067
|
+
end
|
2068
|
+
|
2069
|
+
# Update Metadata Schema
|
2070
|
+
# Updates a metadata schema. With this request, you can: - Add a non-existing attribute definition to the metadata schema. - Update an existing attribute definition by overwriting its current values. In the request, you can provide only those definitions you want to add or update. Definitions omitted in the request remain unchanged. However, if you want to update a definition, you will have to add all its current key-value pairs as well. Only the pairs sent in the request are saved for this definition. This means that the key-value pairs that are not sent in a request are restored to default values. For example, if your definition has an array with values and it is not sent in an update request, the array values will be deleted. 👍 Additional Notes - You cannot change the type of an existing schema, e.g. from string to number. - You can remove a definition with this endpoint by providing deleted: true in the request. It will be moved to the Removed definitions section in the user interface. However, you cannot permanently remove a definition with this endpoint. 📘 Metadata Documentation Read the Getting Started with Metadata articles to learn how metadata work in Voucherify.
|
2071
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2072
|
+
# @param metadata_schema_id [String] Provide the unique identifier of the metadata schema.
|
2073
|
+
# @param [Hash] opts the optional parameters
|
2074
|
+
# @option opts [ManagementProjectsMetadataSchemasUpdateRequestBody] :management_projects_metadata_schemas_update_request_body Defines the metadata schema to be updated.
|
2075
|
+
# @return [ManagementProjectsMetadataSchemasUpdateResponseBody]
|
2076
|
+
def update_metadata_schema(project_id, metadata_schema_id, opts = {})
|
2077
|
+
data, _status_code, _headers = update_metadata_schema_with_http_info(project_id, metadata_schema_id, opts)
|
2078
|
+
data
|
2079
|
+
end
|
2080
|
+
|
2081
|
+
# Update Metadata Schema
|
2082
|
+
# Updates a metadata schema. With this request, you can: - Add a non-existing attribute definition to the metadata schema. - Update an existing attribute definition by overwriting its current values. In the request, you can provide only those definitions you want to add or update. Definitions omitted in the request remain unchanged. However, if you want to update a definition, you will have to add all its current key-value pairs as well. Only the pairs sent in the request are saved for this definition. This means that the key-value pairs that are not sent in a request are restored to default values. For example, if your definition has an array with values and it is not sent in an update request, the array values will be deleted. 👍 Additional Notes - You cannot change the type of an existing schema, e.g. from string to number. - You can remove a definition with this endpoint by providing deleted: true in the request. It will be moved to the Removed definitions section in the user interface. However, you cannot permanently remove a definition with this endpoint. 📘 Metadata Documentation Read the Getting Started with Metadata articles to learn how metadata work in Voucherify.
|
2083
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2084
|
+
# @param metadata_schema_id [String] Provide the unique identifier of the metadata schema.
|
2085
|
+
# @param [Hash] opts the optional parameters
|
2086
|
+
# @option opts [ManagementProjectsMetadataSchemasUpdateRequestBody] :management_projects_metadata_schemas_update_request_body Defines the metadata schema to be updated.
|
2087
|
+
# @return [Array<(ManagementProjectsMetadataSchemasUpdateResponseBody, Integer, Hash)>] ManagementProjectsMetadataSchemasUpdateResponseBody data, response status code and response headers
|
2088
|
+
private def update_metadata_schema_with_http_info(project_id, metadata_schema_id, opts = {})
|
2089
|
+
if @api_client.config.debugging
|
2090
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.update_metadata_schema ...'
|
2091
|
+
end
|
2092
|
+
# resource path
|
2093
|
+
local_var_path = '/management/v1/projects/{projectId}/metadata-schemas/{metadataSchemaId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'metadataSchemaId' + '}', CGI.escape(metadata_schema_id.to_s))
|
2094
|
+
|
2095
|
+
# query parameters
|
2096
|
+
query_params = opts[:query_params] || {}
|
2097
|
+
|
2098
|
+
# header parameters
|
2099
|
+
header_params = opts[:header_params] || {}
|
2100
|
+
# HTTP header 'Accept' (if needed)
|
2101
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2102
|
+
# HTTP header 'Content-Type'
|
2103
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2104
|
+
if !content_type.nil?
|
2105
|
+
header_params['Content-Type'] = content_type
|
2106
|
+
end
|
2107
|
+
|
2108
|
+
# form parameters
|
2109
|
+
form_params = opts[:form_params] || {}
|
2110
|
+
|
2111
|
+
# http body (model)
|
2112
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_metadata_schemas_update_request_body'])
|
2113
|
+
|
2114
|
+
# return_type
|
2115
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsMetadataSchemasUpdateResponseBody'
|
2116
|
+
|
2117
|
+
# auth_names
|
2118
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
2119
|
+
|
2120
|
+
new_options = opts.merge(
|
2121
|
+
:operation => :"ManagementApi.update_metadata_schema",
|
2122
|
+
:header_params => header_params,
|
2123
|
+
:query_params => query_params,
|
2124
|
+
:form_params => form_params,
|
2125
|
+
:body => post_body,
|
2126
|
+
:auth_names => auth_names,
|
2127
|
+
:return_type => return_type
|
2128
|
+
)
|
2129
|
+
|
2130
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2131
|
+
if @api_client.config.debugging
|
2132
|
+
@api_client.config.logger.debug "API called: ManagementApi#update_metadata_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2133
|
+
end
|
2134
|
+
return data, status_code, headers
|
2135
|
+
end
|
2136
|
+
|
2137
|
+
# Update Project
|
2138
|
+
# Updates an existing project. You can add or modify settings for timezone, currency, notifications, and other details. Only the fields sent in the request will be updated.
|
2139
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2140
|
+
# @param [Hash] opts the optional parameters
|
2141
|
+
# @option opts [ManagementProjectsUpdateRequestBody] :management_projects_update_request_body Define the project details to be updated.
|
2142
|
+
# @return [ManagementProjectsUpdateResponseBody]
|
2143
|
+
def update_project(project_id, opts = {})
|
2144
|
+
data, _status_code, _headers = update_project_with_http_info(project_id, opts)
|
2145
|
+
data
|
2146
|
+
end
|
2147
|
+
|
2148
|
+
# Update Project
|
2149
|
+
# Updates an existing project. You can add or modify settings for timezone, currency, notifications, and other details. Only the fields sent in the request will be updated.
|
2150
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2151
|
+
# @param [Hash] opts the optional parameters
|
2152
|
+
# @option opts [ManagementProjectsUpdateRequestBody] :management_projects_update_request_body Define the project details to be updated.
|
2153
|
+
# @return [Array<(ManagementProjectsUpdateResponseBody, Integer, Hash)>] ManagementProjectsUpdateResponseBody data, response status code and response headers
|
2154
|
+
private def update_project_with_http_info(project_id, opts = {})
|
2155
|
+
if @api_client.config.debugging
|
2156
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.update_project ...'
|
2157
|
+
end
|
2158
|
+
# resource path
|
2159
|
+
local_var_path = '/management/v1/projects/{projectId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
2160
|
+
|
2161
|
+
# query parameters
|
2162
|
+
query_params = opts[:query_params] || {}
|
2163
|
+
|
2164
|
+
# header parameters
|
2165
|
+
header_params = opts[:header_params] || {}
|
2166
|
+
# HTTP header 'Accept' (if needed)
|
2167
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2168
|
+
# HTTP header 'Content-Type'
|
2169
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2170
|
+
if !content_type.nil?
|
2171
|
+
header_params['Content-Type'] = content_type
|
2172
|
+
end
|
2173
|
+
|
2174
|
+
# form parameters
|
2175
|
+
form_params = opts[:form_params] || {}
|
2176
|
+
|
2177
|
+
# http body (model)
|
2178
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_update_request_body'])
|
2179
|
+
|
2180
|
+
# return_type
|
2181
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsUpdateResponseBody'
|
2182
|
+
|
2183
|
+
# auth_names
|
2184
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
2185
|
+
|
2186
|
+
new_options = opts.merge(
|
2187
|
+
:operation => :"ManagementApi.update_project",
|
2188
|
+
:header_params => header_params,
|
2189
|
+
:query_params => query_params,
|
2190
|
+
:form_params => form_params,
|
2191
|
+
:body => post_body,
|
2192
|
+
:auth_names => auth_names,
|
2193
|
+
:return_type => return_type
|
2194
|
+
)
|
2195
|
+
|
2196
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2197
|
+
if @api_client.config.debugging
|
2198
|
+
@api_client.config.logger.debug "API called: ManagementApi#update_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2199
|
+
end
|
2200
|
+
return data, status_code, headers
|
2201
|
+
end
|
2202
|
+
|
2203
|
+
# Update Stacking Rules
|
2204
|
+
# Updates the stacking rules. Only the provided fields will be updated. However, if you update an array, the content of the array is overwritten. This means that if you want to add new values to an array and retain existing ones, you need to provide both the existing and new values in the request. 📘 Stacking Rules Documentation Read [the Stacking Rules article](https://support.voucherify.io/article/604-stacking-rules) to learn how they work.
|
2205
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2206
|
+
# @param stacking_rules_id [String] Provide the unique identifier of the stacking rules.
|
2207
|
+
# @param [Hash] opts the optional parameters
|
2208
|
+
# @option opts [ManagementProjectsStackingRulesUpdateRequestBody] :management_projects_stacking_rules_update_request_body Defines the stacking rules to be updated.
|
2209
|
+
# @return [ManagementProjectsStackingRulesUpdateResponseBody]
|
2210
|
+
def update_stacking_rules(project_id, stacking_rules_id, opts = {})
|
2211
|
+
data, _status_code, _headers = update_stacking_rules_with_http_info(project_id, stacking_rules_id, opts)
|
2212
|
+
data
|
2213
|
+
end
|
2214
|
+
|
2215
|
+
# Update Stacking Rules
|
2216
|
+
# Updates the stacking rules. Only the provided fields will be updated. However, if you update an array, the content of the array is overwritten. This means that if you want to add new values to an array and retain existing ones, you need to provide both the existing and new values in the request. 📘 Stacking Rules Documentation Read [the Stacking Rules article](https://support.voucherify.io/article/604-stacking-rules) to learn how they work.
|
2217
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2218
|
+
# @param stacking_rules_id [String] Provide the unique identifier of the stacking rules.
|
2219
|
+
# @param [Hash] opts the optional parameters
|
2220
|
+
# @option opts [ManagementProjectsStackingRulesUpdateRequestBody] :management_projects_stacking_rules_update_request_body Defines the stacking rules to be updated.
|
2221
|
+
# @return [Array<(ManagementProjectsStackingRulesUpdateResponseBody, Integer, Hash)>] ManagementProjectsStackingRulesUpdateResponseBody data, response status code and response headers
|
2222
|
+
private def update_stacking_rules_with_http_info(project_id, stacking_rules_id, opts = {})
|
2223
|
+
if @api_client.config.debugging
|
2224
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.update_stacking_rules ...'
|
2225
|
+
end
|
2226
|
+
# resource path
|
2227
|
+
local_var_path = '/management/v1/projects/{projectId}/stacking-rules/{stackingRulesId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'stackingRulesId' + '}', CGI.escape(stacking_rules_id.to_s))
|
2228
|
+
|
2229
|
+
# query parameters
|
2230
|
+
query_params = opts[:query_params] || {}
|
2231
|
+
|
2232
|
+
# header parameters
|
2233
|
+
header_params = opts[:header_params] || {}
|
2234
|
+
# HTTP header 'Accept' (if needed)
|
2235
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2236
|
+
# HTTP header 'Content-Type'
|
2237
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2238
|
+
if !content_type.nil?
|
2239
|
+
header_params['Content-Type'] = content_type
|
2240
|
+
end
|
2241
|
+
|
2242
|
+
# form parameters
|
2243
|
+
form_params = opts[:form_params] || {}
|
2244
|
+
|
2245
|
+
# http body (model)
|
2246
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_stacking_rules_update_request_body'])
|
2247
|
+
|
2248
|
+
# return_type
|
2249
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsStackingRulesUpdateResponseBody'
|
2250
|
+
|
2251
|
+
# auth_names
|
2252
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
2253
|
+
|
2254
|
+
new_options = opts.merge(
|
2255
|
+
:operation => :"ManagementApi.update_stacking_rules",
|
2256
|
+
:header_params => header_params,
|
2257
|
+
:query_params => query_params,
|
2258
|
+
:form_params => form_params,
|
2259
|
+
:body => post_body,
|
2260
|
+
:auth_names => auth_names,
|
2261
|
+
:return_type => return_type
|
2262
|
+
)
|
2263
|
+
|
2264
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2265
|
+
if @api_client.config.debugging
|
2266
|
+
@api_client.config.logger.debug "API called: ManagementApi#update_stacking_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2267
|
+
end
|
2268
|
+
return data, status_code, headers
|
2269
|
+
end
|
2270
|
+
|
2271
|
+
# Update User
|
2272
|
+
# Updates the users role.
|
2273
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2274
|
+
# @param user_id [String] Provide the unique identifier of the user. Alternatively, provide the users login.
|
2275
|
+
# @param [Hash] opts the optional parameters
|
2276
|
+
# @option opts [ManagementProjectsUsersUpdateRoleRequestBody] :management_projects_users_update_role_request_body Defines the users new role.
|
2277
|
+
# @return [ManagementProjectsUsersUpdateRoleResponseBody]
|
2278
|
+
def update_user(project_id, user_id, opts = {})
|
2279
|
+
data, _status_code, _headers = update_user_with_http_info(project_id, user_id, opts)
|
2280
|
+
data
|
2281
|
+
end
|
2282
|
+
|
2283
|
+
# Update User
|
2284
|
+
# Updates the users role.
|
2285
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2286
|
+
# @param user_id [String] Provide the unique identifier of the user. Alternatively, provide the users login.
|
2287
|
+
# @param [Hash] opts the optional parameters
|
2288
|
+
# @option opts [ManagementProjectsUsersUpdateRoleRequestBody] :management_projects_users_update_role_request_body Defines the users new role.
|
2289
|
+
# @return [Array<(ManagementProjectsUsersUpdateRoleResponseBody, Integer, Hash)>] ManagementProjectsUsersUpdateRoleResponseBody data, response status code and response headers
|
2290
|
+
private def update_user_with_http_info(project_id, user_id, opts = {})
|
2291
|
+
if @api_client.config.debugging
|
2292
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.update_user ...'
|
2293
|
+
end
|
2294
|
+
# resource path
|
2295
|
+
local_var_path = '/management/v1/projects/{projectId}/users/{userId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
|
2296
|
+
|
2297
|
+
# query parameters
|
2298
|
+
query_params = opts[:query_params] || {}
|
2299
|
+
|
2300
|
+
# header parameters
|
2301
|
+
header_params = opts[:header_params] || {}
|
2302
|
+
# HTTP header 'Accept' (if needed)
|
2303
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2304
|
+
# HTTP header 'Content-Type'
|
2305
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2306
|
+
if !content_type.nil?
|
2307
|
+
header_params['Content-Type'] = content_type
|
2308
|
+
end
|
2309
|
+
|
2310
|
+
# form parameters
|
2311
|
+
form_params = opts[:form_params] || {}
|
2312
|
+
|
2313
|
+
# http body (model)
|
2314
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_users_update_role_request_body'])
|
2315
|
+
|
2316
|
+
# return_type
|
2317
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsUsersUpdateRoleResponseBody'
|
2318
|
+
|
2319
|
+
# auth_names
|
2320
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
2321
|
+
|
2322
|
+
new_options = opts.merge(
|
2323
|
+
:operation => :"ManagementApi.update_user",
|
2324
|
+
:header_params => header_params,
|
2325
|
+
:query_params => query_params,
|
2326
|
+
:form_params => form_params,
|
2327
|
+
:body => post_body,
|
2328
|
+
:auth_names => auth_names,
|
2329
|
+
:return_type => return_type
|
2330
|
+
)
|
2331
|
+
|
2332
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2333
|
+
if @api_client.config.debugging
|
2334
|
+
@api_client.config.logger.debug "API called: ManagementApi#update_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2335
|
+
end
|
2336
|
+
return data, status_code, headers
|
2337
|
+
end
|
2338
|
+
|
2339
|
+
# Update Webhook
|
2340
|
+
# Updates a webhook configuration. The events listed in the request are overwritten. If you want to add more events, provide also the events that are already in the webhook configuration. 📘 Webhook Documentation Read Webhooks v2024-01-1 article to learn how webhooks work in Voucherify.
|
2341
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2342
|
+
# @param webhook_id [String] Provide the unique identifier of the webhook configuration.
|
2343
|
+
# @param [Hash] opts the optional parameters
|
2344
|
+
# @option opts [ManagementProjectsWebhooksUpdateRequestBody] :management_projects_webhooks_update_request_body Defines the webhook configuration to be updated.
|
2345
|
+
# @return [ManagementProjectsWebhooksUpdateResponseBody]
|
2346
|
+
def update_webhook(project_id, webhook_id, opts = {})
|
2347
|
+
data, _status_code, _headers = update_webhook_with_http_info(project_id, webhook_id, opts)
|
2348
|
+
data
|
2349
|
+
end
|
2350
|
+
|
2351
|
+
# Update Webhook
|
2352
|
+
# Updates a webhook configuration. The events listed in the request are overwritten. If you want to add more events, provide also the events that are already in the webhook configuration. 📘 Webhook Documentation Read Webhooks v2024-01-1 article to learn how webhooks work in Voucherify.
|
2353
|
+
# @param project_id [String] Provide the unique identifier of the project.
|
2354
|
+
# @param webhook_id [String] Provide the unique identifier of the webhook configuration.
|
2355
|
+
# @param [Hash] opts the optional parameters
|
2356
|
+
# @option opts [ManagementProjectsWebhooksUpdateRequestBody] :management_projects_webhooks_update_request_body Defines the webhook configuration to be updated.
|
2357
|
+
# @return [Array<(ManagementProjectsWebhooksUpdateResponseBody, Integer, Hash)>] ManagementProjectsWebhooksUpdateResponseBody data, response status code and response headers
|
2358
|
+
private def update_webhook_with_http_info(project_id, webhook_id, opts = {})
|
2359
|
+
if @api_client.config.debugging
|
2360
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.update_webhook ...'
|
2361
|
+
end
|
2362
|
+
# resource path
|
2363
|
+
local_var_path = '/management/v1/projects/{projectId}/webhooks/{webhookId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'webhookId' + '}', CGI.escape(webhook_id.to_s))
|
2364
|
+
|
2365
|
+
# query parameters
|
2366
|
+
query_params = opts[:query_params] || {}
|
2367
|
+
|
2368
|
+
# header parameters
|
2369
|
+
header_params = opts[:header_params] || {}
|
2370
|
+
# HTTP header 'Accept' (if needed)
|
2371
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2372
|
+
# HTTP header 'Content-Type'
|
2373
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2374
|
+
if !content_type.nil?
|
2375
|
+
header_params['Content-Type'] = content_type
|
2376
|
+
end
|
2377
|
+
|
2378
|
+
# form parameters
|
2379
|
+
form_params = opts[:form_params] || {}
|
2380
|
+
|
2381
|
+
# http body (model)
|
2382
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'management_projects_webhooks_update_request_body'])
|
2383
|
+
|
2384
|
+
# return_type
|
2385
|
+
return_type = opts[:debug_return_type] || 'ManagementProjectsWebhooksUpdateResponseBody'
|
2386
|
+
|
2387
|
+
# auth_names
|
2388
|
+
auth_names = opts[:debug_auth_names] || ['X-Management-Token', 'X-Management-Id']
|
2389
|
+
|
2390
|
+
new_options = opts.merge(
|
2391
|
+
:operation => :"ManagementApi.update_webhook",
|
2392
|
+
:header_params => header_params,
|
2393
|
+
:query_params => query_params,
|
2394
|
+
:form_params => form_params,
|
2395
|
+
:body => post_body,
|
2396
|
+
:auth_names => auth_names,
|
2397
|
+
:return_type => return_type
|
2398
|
+
)
|
2399
|
+
|
2400
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2401
|
+
if @api_client.config.debugging
|
2402
|
+
@api_client.config.logger.debug "API called: ManagementApi#update_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2403
|
+
end
|
2404
|
+
return data, status_code, headers
|
2405
|
+
end
|
2406
|
+
end
|
2407
|
+
end
|