voucherify 8.0.1 → 8.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/ENDPOINTS-COVERAGE.md +69 -60
- data/Gemfile.lock +9 -7
- data/README.md +55 -2
- data/__tests__/spec/12_validation_rules_spec.rb +1 -15
- data/docs/AccessSettings.md +9 -0
- data/docs/AccessSettingsAssign.md +10 -0
- data/docs/AccessSettingsUnassign.md +10 -0
- data/docs/ApplicableTo.md +3 -2
- data/docs/ApplicableToOrderItemUnitsItem.md +9 -0
- data/docs/ApplicationDetailsItem.md +14 -0
- data/docs/AreaStoreCampaignAssignment.md +1 -0
- data/docs/BinApi.md +4 -4
- data/docs/Campaign.md +3 -3
- data/docs/CampaignBase.md +3 -2
- data/docs/CampaignsApi.md +3 -3
- data/docs/CampaignsCreateRequestBody.md +2 -1
- data/docs/CampaignsCreateResponseBody.md +3 -3
- data/docs/CampaignsGetResponseBody.md +3 -3
- data/docs/CampaignsUpdateRequestBody.md +3 -2
- data/docs/CampaignsUpdateResponseBody.md +3 -3
- data/docs/CampaignsVouchersCreateCombinedResponseBodyLoyaltyCard.md +2 -1
- data/docs/CampaignsVouchersCreateResponseBodyLoyaltyCard.md +2 -1
- data/docs/ClientValidationsValidateResponseBodyRedeemablesItem.md +3 -2
- data/docs/ClientValidationsValidateResponseBodyRedeemablesItemResultDiscount.md +1 -1
- data/docs/CustomerLoyalty.md +1 -1
- data/docs/Discount.md +1 -1
- data/docs/DiscountUnitMultipleOneUnit.md +1 -1
- data/docs/EarningRule.md +1 -0
- data/docs/EarningRulePendingPoints.md +9 -0
- data/docs/Error.md +1 -0
- data/docs/ErrorError.md +8 -0
- data/docs/EventSource.md +10 -0
- data/docs/EventSourceApiKey.md +9 -0
- data/docs/EventSourceUser.md +8 -0
- data/docs/InapplicableTo.md +3 -2
- data/docs/InapplicableToOrderItemUnitsItem.md +9 -0
- data/docs/LoyaltiesApi.md +334 -10
- data/docs/LoyaltiesCreateCampaignRequestBody.md +2 -1
- data/docs/LoyaltiesEarningRulesCreateResponseBody.md +1 -0
- data/docs/LoyaltiesEarningRulesCreateResponseBodyPendingPoints.md +9 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBody.md +1 -0
- data/docs/LoyaltiesEarningRulesDisableResponseBodyPendingPoints.md +9 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBody.md +1 -0
- data/docs/LoyaltiesEarningRulesEnableResponseBodyPendingPoints.md +9 -0
- data/docs/LoyaltiesEarningRulesGetResponseBody.md +1 -0
- data/docs/LoyaltiesEarningRulesGetResponseBodyPendingPoints.md +9 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBody.md +1 -0
- data/docs/LoyaltiesEarningRulesUpdateResponseBodyPendingPoints.md +9 -0
- data/docs/LoyaltiesMembersBalanceUpdateResponseBody.md +1 -1
- data/docs/LoyaltiesMembersCreateResponseBodyLoyaltyCard.md +2 -1
- data/docs/LoyaltiesMembersGetResponseBodyLoyaltyCard.md +2 -1
- data/docs/LoyaltiesMembersPendingPointsActivateResponseBody.md +14 -0
- data/docs/LoyaltiesMembersPendingPointsActivateResponseBodyRelatedObject.md +9 -0
- data/docs/LoyaltiesMembersPendingPointsListResponseBody.md +12 -0
- data/docs/LoyaltiesMembersPointsExpirationListResponseBodyDataItem.md +9 -9
- data/docs/LoyaltiesMembersPointsExpirationListResponseBodyDataItemBucket.md +1 -1
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard.md +2 -1
- data/docs/LoyaltiesMembersTransfersCreateResponseBodyLoyaltyCard.md +2 -1
- data/docs/LoyaltiesPendingPointsListResponseBody.md +12 -0
- data/docs/LoyaltiesUpdateCampaignRequestBody.md +3 -2
- data/docs/LoyaltyCardTransaction.md +2 -2
- data/docs/LoyaltyCardTransactionDetails.md +2 -0
- data/docs/LoyaltyCardTransactionDetailsBalance.md +5 -4
- data/docs/LoyaltyCardTransactionDetailsBalanceRelatedObject.md +1 -1
- data/docs/LoyaltyCardTransactionDetailsEarningRule.md +1 -1
- data/docs/LoyaltyCardTransactionDetailsHolderLoyaltyTier.md +9 -0
- data/docs/LoyaltyCardTransactionDetailsLoyaltyTier.md +2 -2
- data/docs/LoyaltyMemberLoyaltyCard.md +2 -1
- data/docs/LoyaltyPendingPoints.md +17 -0
- data/docs/LoyaltyPendingPointsDetails.md +12 -0
- data/docs/LoyaltyPendingPointsDetailsEarningRule.md +9 -0
- data/docs/LoyaltyPendingPointsDetailsEarningRuleSource.md +8 -0
- data/docs/LoyaltyPendingPointsDetailsEvent.md +14 -0
- data/docs/LoyaltyPendingPointsDetailsHolderLoyaltyTier.md +9 -0
- data/docs/LoyaltyPendingPointsDetailsLoyaltyTier.md +9 -0
- data/docs/LoyaltyPendingPointsDetailsOrder.md +9 -0
- data/docs/LoyaltyPointsBucket.md +16 -0
- data/docs/LoyaltyPointsBucketBucket.md +8 -0
- data/docs/LoyaltyTierExpiration.md +1 -1
- data/docs/Order.md +3 -3
- data/docs/OrderCalculated.md +12 -12
- data/docs/OrderCalculatedItem.md +2 -1
- data/docs/OrderCalculatedItemProduct.md +1 -1
- data/docs/OrderCalculatedItemSku.md +1 -0
- data/docs/OrderItem.md +1 -1
- data/docs/OrderItemProduct.md +1 -1
- data/docs/OrderItemSku.md +1 -0
- data/docs/OrderRedemptionsEntry.md +1 -1
- data/docs/OrdersCreateRequestBody.md +3 -3
- data/docs/OrdersCreateResponseBody.md +12 -12
- data/docs/OrdersGetResponseBody.md +12 -12
- data/docs/OrdersImportCreateRequestBodyItem.md +3 -3
- data/docs/OrdersUpdateRequestBody.md +3 -3
- data/docs/OrdersUpdateResponseBody.md +12 -12
- data/docs/ParameterOrderListPendingPoints.md +7 -0
- data/docs/Product.md +1 -1
- data/docs/ProductCollectionsProductsListResponseBodyDataItem.md +1 -1
- data/docs/ProductWithoutSkus.md +1 -1
- data/docs/ProductsCreateResponseBody.md +1 -1
- data/docs/ProductsGetResponseBody.md +1 -1
- data/docs/ProductsSkusCreateResponseBody.md +1 -1
- data/docs/ProductsSkusUpdateResponseBody.md +1 -1
- data/docs/ProductsUpdateResponseBody.md +1 -1
- data/docs/RedeemableLoyaltyCard.md +1 -1
- data/docs/RedeemableVoucherLoyaltyCard.md +2 -1
- data/docs/RedemptionEntryOrder.md +12 -12
- data/docs/RedemptionEntryVoucherLoyaltyCard.md +2 -1
- data/docs/RedemptionVoucherLoyaltyCard.md +2 -1
- data/docs/RedemptionsGetResponseBodyOrder.md +12 -12
- data/docs/RedemptionsGetResponseBodyVoucherLoyaltyCard.md +2 -1
- data/docs/RedemptionsListResponseBodyRedemptionsItemOrder.md +12 -12
- data/docs/RedemptionsListResponseBodyRedemptionsItemVoucherLoyaltyCard.md +2 -1
- data/docs/SimpleLoyaltyCard.md +2 -1
- data/docs/Sku.md +1 -1
- data/docs/SkusGetResponseBody.md +1 -1
- data/docs/TemplatesCampaignsCampaignSetupCreateRequestBody.md +2 -1
- data/docs/ValidationsRedeemableInapplicable.md +3 -2
- data/docs/ValidationsRedeemableSkipped.md +3 -2
- data/docs/ValidationsValidateResponseBodyRedeemablesItem.md +3 -2
- data/docs/ValidationsValidateResponseBodyRedeemablesItemResultDiscount.md +1 -1
- data/docs/VoucherBalance.md +14 -0
- data/docs/VoucherBalanceRelatedObject.md +9 -0
- data/docs/VoucherLoyaltyCard.md +2 -1
- data/docs/VoucherTransaction.md +2 -2
- data/docs/VoucherTransactionDetails.md +2 -0
- data/docs/VoucherTransactionDetailsBalance.md +5 -4
- data/docs/VoucherTransactionDetailsBalanceRelatedObject.md +1 -1
- data/docs/VoucherTransactionDetailsCustomEvent.md +2 -2
- data/docs/VoucherTransactionDetailsEarningRule.md +1 -1
- data/docs/VoucherTransactionDetailsEventSchema.md +2 -2
- data/docs/VoucherTransactionDetailsHolderLoyaltyTier.md +9 -0
- data/docs/VoucherTransactionDetailsLoyaltyTier.md +2 -2
- data/docs/VoucherTransactionDetailsRollback.md +1 -1
- data/docs/VoucherTransactionDetailsSegment.md +2 -2
- data/docs/VoucherWithCategoriesLoyaltyCard.md +2 -1
- data/docs/VouchersApi.md +6 -6
- data/docs/VouchersBalanceUpdateResponseBody.md +1 -1
- data/docs/VouchersCreateResponseBodyLoyaltyCard.md +2 -1
- data/docs/VouchersDisableResponseBodyLoyaltyCard.md +2 -1
- data/docs/VouchersEnableResponseBodyLoyaltyCard.md +2 -1
- data/docs/VouchersGetResponseBodyLoyaltyCard.md +2 -1
- data/docs/VouchersUpdateResponseBodyLoyaltyCard.md +2 -1
- data/lib/VoucherifySdk/api/bin_api.rb +4 -4
- data/lib/VoucherifySdk/api/campaigns_api.rb +4 -4
- data/lib/VoucherifySdk/api/loyalties_api.rb +334 -8
- data/lib/VoucherifySdk/api/vouchers_api.rb +10 -10
- data/lib/VoucherifySdk/models/access_settings.rb +219 -0
- data/lib/VoucherifySdk/models/access_settings_assign.rb +238 -0
- data/lib/VoucherifySdk/models/access_settings_campaign_assignments_list.rb +1 -1
- data/lib/VoucherifySdk/models/access_settings_unassign.rb +238 -0
- data/lib/VoucherifySdk/models/applicable_to.rb +16 -3
- data/lib/VoucherifySdk/models/applicable_to_order_item_units_item.rb +220 -0
- data/lib/VoucherifySdk/models/application_details_item.rb +284 -0
- data/lib/VoucherifySdk/models/area_store_campaign_assignment.rb +12 -1
- data/lib/VoucherifySdk/models/campaign.rb +16 -16
- data/lib/VoucherifySdk/models/campaign_base.rb +16 -7
- data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +11 -2
- data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +16 -16
- data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +16 -16
- data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +12 -3
- data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +16 -16
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item.rb +18 -7
- data/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item_result_discount.rb +1 -0
- data/lib/VoucherifySdk/models/customer_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/discount.rb +1 -0
- data/lib/VoucherifySdk/models/discount_unit_multiple_one_unit.rb +1 -0
- data/lib/VoucherifySdk/models/earning_rule.rb +11 -1
- data/lib/VoucherifySdk/models/earning_rule_pending_points.rb +257 -0
- data/lib/VoucherifySdk/models/error.rb +15 -5
- data/lib/VoucherifySdk/models/error_error.rb +210 -0
- data/lib/VoucherifySdk/models/event_source.rb +254 -0
- data/lib/VoucherifySdk/models/event_source_api_key.rb +221 -0
- data/lib/VoucherifySdk/models/event_source_user.rb +210 -0
- data/lib/VoucherifySdk/models/inapplicable_to.rb +16 -3
- data/lib/VoucherifySdk/models/inapplicable_to_order_item_units_item.rb +220 -0
- data/lib/VoucherifySdk/models/loyalties_create_campaign_request_body.rb +11 -2
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body.rb +11 -1
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_response_body_pending_points.rb +257 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body.rb +11 -1
- data/lib/VoucherifySdk/models/loyalties_earning_rules_disable_response_body_pending_points.rb +257 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body.rb +11 -1
- data/lib/VoucherifySdk/models/loyalties_earning_rules_enable_response_body_pending_points.rb +257 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body.rb +11 -1
- data/lib/VoucherifySdk/models/loyalties_earning_rules_get_response_body_pending_points.rb +257 -0
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body.rb +11 -1
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_response_body_pending_points.rb +257 -0
- data/lib/VoucherifySdk/models/loyalties_members_balance_update_response_body.rb +1 -0
- data/lib/VoucherifySdk/models/loyalties_members_create_response_body_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/loyalties_members_get_response_body_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/loyalties_members_pending_points_activate_response_body.rb +309 -0
- data/lib/VoucherifySdk/models/loyalties_members_pending_points_activate_response_body_related_object.rb +247 -0
- data/lib/VoucherifySdk/models/loyalties_members_pending_points_list_response_body.rb +286 -0
- data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item.rb +27 -77
- data/lib/VoucherifySdk/models/loyalties_members_points_expiration_list_response_body_data_item_bucket.rb +3 -9
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/loyalties_pending_points_list_response_body.rb +286 -0
- data/lib/VoucherifySdk/models/loyalties_update_campaign_request_body.rb +12 -3
- data/lib/VoucherifySdk/models/loyalty_card_transaction.rb +24 -31
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details.rb +20 -2
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_balance.rb +18 -19
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_balance_related_object.rb +1 -7
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_earning_rule.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_holder_loyalty_tier.rb +221 -0
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_loyalty_tier.rb +3 -1
- data/lib/VoucherifySdk/models/loyalty_card_transactions_type.rb +2 -1
- data/lib/VoucherifySdk/models/loyalty_member_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/loyalty_pending_points.rb +314 -0
- data/lib/VoucherifySdk/models/loyalty_pending_points_details.rb +249 -0
- data/lib/VoucherifySdk/models/loyalty_pending_points_details_earning_rule.rb +220 -0
- data/lib/VoucherifySdk/models/loyalty_pending_points_details_earning_rule_source.rb +210 -0
- data/lib/VoucherifySdk/models/loyalty_pending_points_details_event.rb +302 -0
- data/lib/VoucherifySdk/models/loyalty_pending_points_details_holder_loyalty_tier.rb +221 -0
- data/lib/VoucherifySdk/models/loyalty_pending_points_details_loyalty_tier.rb +221 -0
- data/lib/VoucherifySdk/models/loyalty_pending_points_details_order.rb +221 -0
- data/lib/VoucherifySdk/models/loyalty_points_bucket.rb +323 -0
- data/lib/VoucherifySdk/models/loyalty_points_bucket_bucket.rb +210 -0
- data/lib/VoucherifySdk/models/loyalty_tier_expiration.rb +1 -1
- data/lib/VoucherifySdk/models/order.rb +3 -3
- data/lib/VoucherifySdk/models/order_calculated.rb +29 -29
- data/lib/VoucherifySdk/models/order_calculated_item.rb +18 -6
- data/lib/VoucherifySdk/models/order_calculated_item_product.rb +1 -1
- data/lib/VoucherifySdk/models/order_calculated_item_sku.rb +16 -5
- data/lib/VoucherifySdk/models/order_item.rb +1 -1
- data/lib/VoucherifySdk/models/order_item_product.rb +1 -1
- data/lib/VoucherifySdk/models/order_item_sku.rb +16 -5
- data/lib/VoucherifySdk/models/order_redemptions_entry.rb +1 -1
- data/lib/VoucherifySdk/models/orders_create_request_body.rb +3 -3
- data/lib/VoucherifySdk/models/orders_create_response_body.rb +29 -29
- data/lib/VoucherifySdk/models/orders_get_response_body.rb +29 -29
- data/lib/VoucherifySdk/models/orders_import_create_request_body_item.rb +3 -3
- data/lib/VoucherifySdk/models/orders_update_request_body.rb +3 -3
- data/lib/VoucherifySdk/models/orders_update_response_body.rb +29 -29
- data/lib/VoucherifySdk/models/parameter_expand_list_campaigns.rb +2 -1
- data/lib/VoucherifySdk/models/parameter_order_list_pending_points.rb +40 -0
- data/lib/VoucherifySdk/models/product.rb +1 -1
- data/lib/VoucherifySdk/models/product_collections_products_list_response_body_data_item.rb +1 -1
- data/lib/VoucherifySdk/models/product_without_skus.rb +1 -1
- data/lib/VoucherifySdk/models/products_create_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/products_get_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/products_skus_create_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/products_skus_update_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/products_update_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/qualifications_option.rb +3 -3
- data/lib/VoucherifySdk/models/redeemable_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/redeemable_voucher_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/redemption_entry_order.rb +29 -29
- data/lib/VoucherifySdk/models/redemption_entry_voucher_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/redemption_voucher_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/redemptions_get_response_body_order.rb +29 -29
- data/lib/VoucherifySdk/models/redemptions_get_response_body_voucher_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_order.rb +28 -29
- data/lib/VoucherifySdk/models/redemptions_list_response_body_redemptions_item_voucher_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/simple_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/sku.rb +1 -1
- data/lib/VoucherifySdk/models/skus_get_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body.rb +11 -2
- data/lib/VoucherifySdk/models/validations_redeemable_inapplicable.rb +18 -7
- data/lib/VoucherifySdk/models/validations_redeemable_skipped.rb +18 -7
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item.rb +18 -7
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_discount.rb +1 -0
- data/lib/VoucherifySdk/models/voucher_balance.rb +305 -0
- data/lib/VoucherifySdk/models/voucher_balance_related_object.rb +247 -0
- data/lib/VoucherifySdk/models/voucher_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/voucher_transaction.rb +27 -31
- data/lib/VoucherifySdk/models/voucher_transaction_details.rb +20 -2
- data/lib/VoucherifySdk/models/voucher_transaction_details_balance.rb +18 -19
- data/lib/VoucherifySdk/models/voucher_transaction_details_balance_related_object.rb +1 -7
- data/lib/VoucherifySdk/models/voucher_transaction_details_custom_event.rb +2 -2
- data/lib/VoucherifySdk/models/voucher_transaction_details_earning_rule.rb +1 -1
- data/lib/VoucherifySdk/models/voucher_transaction_details_event_schema.rb +2 -2
- data/lib/VoucherifySdk/models/voucher_transaction_details_holder_loyalty_tier.rb +221 -0
- data/lib/VoucherifySdk/models/voucher_transaction_details_loyalty_tier.rb +3 -1
- data/lib/VoucherifySdk/models/voucher_transaction_details_rollback.rb +1 -1
- data/lib/VoucherifySdk/models/voucher_transaction_details_segment.rb +2 -0
- data/lib/VoucherifySdk/models/voucher_with_categories_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/vouchers_balance_update_response_body.rb +1 -0
- data/lib/VoucherifySdk/models/vouchers_create_response_body_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/vouchers_disable_response_body_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/vouchers_enable_response_body_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/vouchers_get_response_body_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/vouchers_update_response_body_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/version.rb +1 -1
- data/lib/VoucherifySdk.rb +35 -0
- metadata +106 -36
@@ -24,37 +24,34 @@ module VoucherifySdk
|
|
24
24
|
# The order status.
|
25
25
|
attr_accessor :status
|
26
26
|
|
27
|
-
#
|
27
|
+
# This is the sum of the order items' amounts. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
|
28
28
|
attr_accessor :amount
|
29
29
|
|
30
|
-
#
|
30
|
+
# This is the sum of the order items' amounts before any discount or other effect (e.g. add missing units) is applied. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
|
31
31
|
attr_accessor :initial_amount
|
32
32
|
|
33
|
-
# Sum of all order-level discounts applied to the order.
|
33
|
+
# Sum of all order-level discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
|
34
34
|
attr_accessor :discount_amount
|
35
35
|
|
36
|
-
# Sum of all product-specific discounts applied to the order.
|
36
|
+
# Sum of all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
|
37
37
|
attr_accessor :items_discount_amount
|
38
38
|
|
39
|
-
# Sum of all order-level AND all product-specific discounts applied to the order.
|
39
|
+
# Sum of all order-level AND all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
|
40
40
|
attr_accessor :total_discount_amount
|
41
41
|
|
42
|
-
# Order amount after undoing all the discounts through the rollback redemption.
|
42
|
+
# Order amount after undoing all the discounts through the rollback redemption. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
|
43
43
|
attr_accessor :total_amount
|
44
44
|
|
45
|
-
# This field shows the order-level discount applied.
|
45
|
+
# This field shows the order-level discount applied. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00).
|
46
46
|
attr_accessor :applied_discount_amount
|
47
47
|
|
48
|
-
# Sum of all product-specific discounts applied in a particular request. `sum(items, i => i.applied_discount_amount)`
|
48
|
+
# Sum of all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). `sum(items, i => i.applied_discount_amount)`
|
49
49
|
attr_accessor :items_applied_discount_amount
|
50
50
|
|
51
|
-
# Sum of all order-level AND all product-specific discounts applied in a particular request. `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount`
|
51
|
+
# Sum of all order-level AND all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount`
|
52
52
|
attr_accessor :total_applied_discount_amount
|
53
53
|
|
54
|
-
#
|
55
|
-
attr_accessor :items
|
56
|
-
|
57
|
-
# A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format.
|
54
|
+
# A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format. It can be used to define business validation rules or discount formulas.
|
58
55
|
attr_accessor :metadata
|
59
56
|
|
60
57
|
# The type of the object represented by JSON.
|
@@ -66,7 +63,7 @@ module VoucherifySdk
|
|
66
63
|
# Timestamp representing the date and time when the order was last updated in ISO 8601 format.
|
67
64
|
attr_accessor :updated_at
|
68
65
|
|
69
|
-
# Unique customer
|
66
|
+
# Unique customer identifier of the customer making the purchase. The ID is assigned by Voucherify.
|
70
67
|
attr_accessor :customer_id
|
71
68
|
|
72
69
|
# Unique referrer ID.
|
@@ -78,6 +75,9 @@ module VoucherifySdk
|
|
78
75
|
|
79
76
|
attr_accessor :redemptions
|
80
77
|
|
78
|
+
# Array of items applied to the order. It can include up 500 items.
|
79
|
+
attr_accessor :items
|
80
|
+
|
81
81
|
class EnumAttributeValidator
|
82
82
|
attr_reader :datatype
|
83
83
|
attr_reader :allowable_values
|
@@ -115,7 +115,6 @@ module VoucherifySdk
|
|
115
115
|
:'applied_discount_amount' => :'applied_discount_amount',
|
116
116
|
:'items_applied_discount_amount' => :'items_applied_discount_amount',
|
117
117
|
:'total_applied_discount_amount' => :'total_applied_discount_amount',
|
118
|
-
:'items' => :'items',
|
119
118
|
:'metadata' => :'metadata',
|
120
119
|
:'object' => :'object',
|
121
120
|
:'created_at' => :'created_at',
|
@@ -124,7 +123,8 @@ module VoucherifySdk
|
|
124
123
|
:'referrer_id' => :'referrer_id',
|
125
124
|
:'customer' => :'customer',
|
126
125
|
:'referrer' => :'referrer',
|
127
|
-
:'redemptions' => :'redemptions'
|
126
|
+
:'redemptions' => :'redemptions',
|
127
|
+
:'items' => :'items'
|
128
128
|
}
|
129
129
|
end
|
130
130
|
|
@@ -148,7 +148,6 @@ module VoucherifySdk
|
|
148
148
|
:'applied_discount_amount' => :'Integer',
|
149
149
|
:'items_applied_discount_amount' => :'Integer',
|
150
150
|
:'total_applied_discount_amount' => :'Integer',
|
151
|
-
:'items' => :'Array<OrderCalculatedItem>',
|
152
151
|
:'metadata' => :'Object',
|
153
152
|
:'object' => :'String',
|
154
153
|
:'created_at' => :'Time',
|
@@ -157,7 +156,8 @@ module VoucherifySdk
|
|
157
156
|
:'referrer_id' => :'String',
|
158
157
|
:'customer' => :'RedemptionsListResponseBodyRedemptionsItemOrderCustomer',
|
159
158
|
:'referrer' => :'RedemptionsListResponseBodyRedemptionsItemOrderReferrer',
|
160
|
-
:'redemptions' => :'Hash<String, OrderRedemptionsEntry>'
|
159
|
+
:'redemptions' => :'Hash<String, OrderRedemptionsEntry>',
|
160
|
+
:'items' => :'Array<OrderCalculatedItem>'
|
161
161
|
}
|
162
162
|
end
|
163
163
|
|
@@ -176,14 +176,13 @@ module VoucherifySdk
|
|
176
176
|
:'applied_discount_amount',
|
177
177
|
:'items_applied_discount_amount',
|
178
178
|
:'total_applied_discount_amount',
|
179
|
-
:'items',
|
180
179
|
:'metadata',
|
181
180
|
:'object',
|
182
181
|
:'created_at',
|
183
182
|
:'updated_at',
|
184
183
|
:'customer_id',
|
185
184
|
:'referrer_id',
|
186
|
-
:'redemptions'
|
185
|
+
:'redemptions',
|
187
186
|
])
|
188
187
|
end
|
189
188
|
|
@@ -243,12 +242,6 @@ module VoucherifySdk
|
|
243
242
|
self.total_applied_discount_amount = attributes[:'total_applied_discount_amount']
|
244
243
|
end
|
245
244
|
|
246
|
-
if attributes.key?(:'items')
|
247
|
-
if (value = attributes[:'items']).is_a?(Array)
|
248
|
-
self.items = value
|
249
|
-
end
|
250
|
-
end
|
251
|
-
|
252
245
|
if attributes.key?(:'metadata')
|
253
246
|
self.metadata = attributes[:'metadata']
|
254
247
|
end
|
@@ -288,6 +281,12 @@ module VoucherifySdk
|
|
288
281
|
self.redemptions = value
|
289
282
|
end
|
290
283
|
end
|
284
|
+
|
285
|
+
if attributes.key?(:'items')
|
286
|
+
if (value = attributes[:'items']).is_a?(Array)
|
287
|
+
self.items = value
|
288
|
+
end
|
289
|
+
end
|
291
290
|
end
|
292
291
|
|
293
292
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -326,7 +325,6 @@ module VoucherifySdk
|
|
326
325
|
applied_discount_amount == o.applied_discount_amount &&
|
327
326
|
items_applied_discount_amount == o.items_applied_discount_amount &&
|
328
327
|
total_applied_discount_amount == o.total_applied_discount_amount &&
|
329
|
-
items == o.items &&
|
330
328
|
metadata == o.metadata &&
|
331
329
|
object == o.object &&
|
332
330
|
created_at == o.created_at &&
|
@@ -335,7 +333,8 @@ module VoucherifySdk
|
|
335
333
|
referrer_id == o.referrer_id &&
|
336
334
|
customer == o.customer &&
|
337
335
|
referrer == o.referrer &&
|
338
|
-
redemptions == o.redemptions
|
336
|
+
redemptions == o.redemptions &&
|
337
|
+
items == o.items
|
339
338
|
end
|
340
339
|
|
341
340
|
# @see the `==` method
|
@@ -347,7 +346,7 @@ module VoucherifySdk
|
|
347
346
|
# Calculates hash code according to all attributes.
|
348
347
|
# @return [Integer] Hash code
|
349
348
|
def hash
|
350
|
-
[id, source_id, status, amount, initial_amount, discount_amount, items_discount_amount, total_discount_amount, total_amount, applied_discount_amount, items_applied_discount_amount, total_applied_discount_amount,
|
349
|
+
[id, source_id, status, amount, initial_amount, discount_amount, items_discount_amount, total_discount_amount, total_amount, applied_discount_amount, items_applied_discount_amount, total_applied_discount_amount, metadata, object, created_at, updated_at, customer_id, referrer_id, customer, referrer, redemptions, items].hash
|
351
350
|
end
|
352
351
|
|
353
352
|
# Builds the object from hash
|
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module VoucherifySdk
|
17
17
|
class RedemptionsListResponseBodyRedemptionsItemVoucherLoyaltyCard
|
18
|
-
# Total points incurred over the lifespan of the loyalty card.
|
18
|
+
# Total points incurred over the lifespan of the loyalty card, minus the expired points.
|
19
19
|
attr_accessor :points
|
20
20
|
|
21
21
|
# Points available for reward redemption.
|
@@ -27,13 +27,17 @@ module VoucherifySdk
|
|
27
27
|
# The amount of points that are set to expire next.
|
28
28
|
attr_accessor :next_expiration_points
|
29
29
|
|
30
|
+
# Determines the number of pending points that will be added to the loyalty card after the predefined time.
|
31
|
+
attr_accessor :pending_points
|
32
|
+
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
34
|
def self.attribute_map
|
32
35
|
{
|
33
36
|
:'points' => :'points',
|
34
37
|
:'balance' => :'balance',
|
35
38
|
:'next_expiration_date' => :'next_expiration_date',
|
36
|
-
:'next_expiration_points' => :'next_expiration_points'
|
39
|
+
:'next_expiration_points' => :'next_expiration_points',
|
40
|
+
:'pending_points' => :'pending_points'
|
37
41
|
}
|
38
42
|
end
|
39
43
|
|
@@ -48,7 +52,8 @@ module VoucherifySdk
|
|
48
52
|
:'points' => :'Integer',
|
49
53
|
:'balance' => :'Integer',
|
50
54
|
:'next_expiration_date' => :'Date',
|
51
|
-
:'next_expiration_points' => :'Integer'
|
55
|
+
:'next_expiration_points' => :'Integer',
|
56
|
+
:'pending_points' => :'Integer'
|
52
57
|
}
|
53
58
|
end
|
54
59
|
|
@@ -58,7 +63,8 @@ module VoucherifySdk
|
|
58
63
|
:'points',
|
59
64
|
:'balance',
|
60
65
|
:'next_expiration_date',
|
61
|
-
:'next_expiration_points'
|
66
|
+
:'next_expiration_points',
|
67
|
+
:'pending_points'
|
62
68
|
])
|
63
69
|
end
|
64
70
|
|
@@ -85,6 +91,10 @@ module VoucherifySdk
|
|
85
91
|
if attributes.key?(:'next_expiration_points')
|
86
92
|
self.next_expiration_points = attributes[:'next_expiration_points']
|
87
93
|
end
|
94
|
+
|
95
|
+
if attributes.key?(:'pending_points')
|
96
|
+
self.pending_points = attributes[:'pending_points']
|
97
|
+
end
|
88
98
|
end
|
89
99
|
|
90
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -110,7 +120,8 @@ module VoucherifySdk
|
|
110
120
|
points == o.points &&
|
111
121
|
balance == o.balance &&
|
112
122
|
next_expiration_date == o.next_expiration_date &&
|
113
|
-
next_expiration_points == o.next_expiration_points
|
123
|
+
next_expiration_points == o.next_expiration_points &&
|
124
|
+
pending_points == o.pending_points
|
114
125
|
end
|
115
126
|
|
116
127
|
# @see the `==` method
|
@@ -122,7 +133,7 @@ module VoucherifySdk
|
|
122
133
|
# Calculates hash code according to all attributes.
|
123
134
|
# @return [Integer] Hash code
|
124
135
|
def hash
|
125
|
-
[points, balance, next_expiration_date, next_expiration_points].hash
|
136
|
+
[points, balance, next_expiration_date, next_expiration_points, pending_points].hash
|
126
137
|
end
|
127
138
|
|
128
139
|
# Builds the object from hash
|
@@ -16,7 +16,7 @@ require 'time'
|
|
16
16
|
module VoucherifySdk
|
17
17
|
# Simplified loyalty card data.
|
18
18
|
class SimpleLoyaltyCard
|
19
|
-
# Total points incurred over the lifespan of the loyalty card.
|
19
|
+
# Total points incurred over the lifespan of the loyalty card, minus the expired points.
|
20
20
|
attr_accessor :points
|
21
21
|
|
22
22
|
# Points available for reward redemption.
|
@@ -28,13 +28,17 @@ module VoucherifySdk
|
|
28
28
|
# The amount of points that are set to expire next.
|
29
29
|
attr_accessor :next_expiration_points
|
30
30
|
|
31
|
+
# Determines the number of pending points that will be added to the loyalty card after the predefined time.
|
32
|
+
attr_accessor :pending_points
|
33
|
+
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
35
|
def self.attribute_map
|
33
36
|
{
|
34
37
|
:'points' => :'points',
|
35
38
|
:'balance' => :'balance',
|
36
39
|
:'next_expiration_date' => :'next_expiration_date',
|
37
|
-
:'next_expiration_points' => :'next_expiration_points'
|
40
|
+
:'next_expiration_points' => :'next_expiration_points',
|
41
|
+
:'pending_points' => :'pending_points'
|
38
42
|
}
|
39
43
|
end
|
40
44
|
|
@@ -49,7 +53,8 @@ module VoucherifySdk
|
|
49
53
|
:'points' => :'Integer',
|
50
54
|
:'balance' => :'Integer',
|
51
55
|
:'next_expiration_date' => :'String',
|
52
|
-
:'next_expiration_points' => :'Integer'
|
56
|
+
:'next_expiration_points' => :'Integer',
|
57
|
+
:'pending_points' => :'Integer'
|
53
58
|
}
|
54
59
|
end
|
55
60
|
|
@@ -59,7 +64,8 @@ module VoucherifySdk
|
|
59
64
|
:'points',
|
60
65
|
:'balance',
|
61
66
|
:'next_expiration_date',
|
62
|
-
:'next_expiration_points'
|
67
|
+
:'next_expiration_points',
|
68
|
+
:'pending_points'
|
63
69
|
])
|
64
70
|
end
|
65
71
|
|
@@ -86,6 +92,10 @@ module VoucherifySdk
|
|
86
92
|
if attributes.key?(:'next_expiration_points')
|
87
93
|
self.next_expiration_points = attributes[:'next_expiration_points']
|
88
94
|
end
|
95
|
+
|
96
|
+
if attributes.key?(:'pending_points')
|
97
|
+
self.pending_points = attributes[:'pending_points']
|
98
|
+
end
|
89
99
|
end
|
90
100
|
|
91
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -111,7 +121,8 @@ module VoucherifySdk
|
|
111
121
|
points == o.points &&
|
112
122
|
balance == o.balance &&
|
113
123
|
next_expiration_date == o.next_expiration_date &&
|
114
|
-
next_expiration_points == o.next_expiration_points
|
124
|
+
next_expiration_points == o.next_expiration_points &&
|
125
|
+
pending_points == o.pending_points
|
115
126
|
end
|
116
127
|
|
117
128
|
# @see the `==` method
|
@@ -123,7 +134,7 @@ module VoucherifySdk
|
|
123
134
|
# Calculates hash code according to all attributes.
|
124
135
|
# @return [Integer] Hash code
|
125
136
|
def hash
|
126
|
-
[points, balance, next_expiration_date, next_expiration_points].hash
|
137
|
+
[points, balance, next_expiration_date, next_expiration_points, pending_points].hash
|
127
138
|
end
|
128
139
|
|
129
140
|
# Builds the object from hash
|
@@ -40,7 +40,7 @@ module VoucherifySdk
|
|
40
40
|
# The HTTPS URL pointing to the .png or .jpg file that will be used to render the SKU image.
|
41
41
|
attr_accessor :image_url
|
42
42
|
|
43
|
-
# The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format.
|
43
|
+
# The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format. It can be used to create product collections.
|
44
44
|
attr_accessor :metadata
|
45
45
|
|
46
46
|
# Timestamp representing the date and time when the SKU was created. The value is shown in the ISO 8601 format.
|
@@ -40,7 +40,7 @@ module VoucherifySdk
|
|
40
40
|
# The HTTPS URL pointing to the .png or .jpg file that will be used to render the SKU image.
|
41
41
|
attr_accessor :image_url
|
42
42
|
|
43
|
-
# The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format.
|
43
|
+
# The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format. It can be used to create product collections.
|
44
44
|
attr_accessor :metadata
|
45
45
|
|
46
46
|
# Timestamp representing the date and time when the SKU was created. The value is shown in the ISO 8601 format.
|
@@ -22,7 +22,7 @@ module VoucherifySdk
|
|
22
22
|
# An optional field to keep any extra textual information about the campaign such as a campaign description and details.
|
23
23
|
attr_accessor :description
|
24
24
|
|
25
|
-
# Defines whether the campaign can be updated with new vouchers after campaign creation
|
25
|
+
# Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published
|
26
26
|
attr_accessor :type
|
27
27
|
|
28
28
|
# If this value is set to `true`, customers will be able to join the campaign only once.
|
@@ -62,6 +62,8 @@ module VoucherifySdk
|
|
62
62
|
# The metadata object stores all custom attributes assigned to the campaign. A set of key/value pairs that you can attach to a campaign object. It can be useful for storing additional information about the campaign in a structured format.
|
63
63
|
attr_accessor :metadata
|
64
64
|
|
65
|
+
attr_accessor :access_settings
|
66
|
+
|
65
67
|
attr_accessor :voucher
|
66
68
|
|
67
69
|
class EnumAttributeValidator
|
@@ -105,6 +107,7 @@ module VoucherifySdk
|
|
105
107
|
:'category_id' => :'category_id',
|
106
108
|
:'category' => :'category',
|
107
109
|
:'metadata' => :'metadata',
|
110
|
+
:'access_settings' => :'access_settings',
|
108
111
|
:'voucher' => :'voucher'
|
109
112
|
}
|
110
113
|
end
|
@@ -133,6 +136,7 @@ module VoucherifySdk
|
|
133
136
|
:'category_id' => :'String',
|
134
137
|
:'category' => :'String',
|
135
138
|
:'metadata' => :'Object',
|
139
|
+
:'access_settings' => :'AccessSettings',
|
136
140
|
:'voucher' => :'TemplatesCampaignsCampaignSetupCreateRequestBodyVoucher'
|
137
141
|
}
|
138
142
|
end
|
@@ -231,6 +235,10 @@ module VoucherifySdk
|
|
231
235
|
self.metadata = attributes[:'metadata']
|
232
236
|
end
|
233
237
|
|
238
|
+
if attributes.key?(:'access_settings')
|
239
|
+
self.access_settings = attributes[:'access_settings']
|
240
|
+
end
|
241
|
+
|
234
242
|
if attributes.key?(:'voucher')
|
235
243
|
self.voucher = attributes[:'voucher']
|
236
244
|
end
|
@@ -274,6 +282,7 @@ module VoucherifySdk
|
|
274
282
|
category_id == o.category_id &&
|
275
283
|
category == o.category &&
|
276
284
|
metadata == o.metadata &&
|
285
|
+
access_settings == o.access_settings &&
|
277
286
|
voucher == o.voucher
|
278
287
|
end
|
279
288
|
|
@@ -286,7 +295,7 @@ module VoucherifySdk
|
|
286
295
|
# Calculates hash code according to all attributes.
|
287
296
|
# @return [Integer] Hash code
|
288
297
|
def hash
|
289
|
-
[name, description, type, join_once, auto_join, use_voucher_metadata_schema, vouchers_count, start_date, expiration_date, validity_timeframe, validity_day_of_week, validity_hours, activity_duration_after_publishing, category_id, category, metadata, voucher].hash
|
298
|
+
[name, description, type, join_once, auto_join, use_voucher_metadata_schema, vouchers_count, start_date, expiration_date, validity_timeframe, validity_day_of_week, validity_hours, activity_duration_after_publishing, category_id, category, metadata, access_settings, voucher].hash
|
290
299
|
end
|
291
300
|
|
292
301
|
# Builds the object from hash
|
@@ -31,12 +31,15 @@ module VoucherifySdk
|
|
31
31
|
|
32
32
|
attr_accessor :categories
|
33
33
|
|
34
|
-
# Campaign name
|
34
|
+
# Campaign name. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.
|
35
35
|
attr_accessor :campaign_name
|
36
36
|
|
37
|
-
# Unique campaign ID assigned by Voucherify.
|
37
|
+
# Unique campaign ID assigned by Voucherify. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.
|
38
38
|
attr_accessor :campaign_id
|
39
39
|
|
40
|
+
# Name of the promotion tier. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.
|
41
|
+
attr_accessor :name
|
42
|
+
|
40
43
|
class EnumAttributeValidator
|
41
44
|
attr_reader :datatype
|
42
45
|
attr_reader :allowable_values
|
@@ -69,7 +72,8 @@ module VoucherifySdk
|
|
69
72
|
:'metadata' => :'metadata',
|
70
73
|
:'categories' => :'categories',
|
71
74
|
:'campaign_name' => :'campaign_name',
|
72
|
-
:'campaign_id' => :'campaign_id'
|
75
|
+
:'campaign_id' => :'campaign_id',
|
76
|
+
:'name' => :'name'
|
73
77
|
}
|
74
78
|
end
|
75
79
|
|
@@ -88,7 +92,8 @@ module VoucherifySdk
|
|
88
92
|
:'metadata' => :'Object',
|
89
93
|
:'categories' => :'Array<CategoryWithStackingRulesType>',
|
90
94
|
:'campaign_name' => :'String',
|
91
|
-
:'campaign_id' => :'String'
|
95
|
+
:'campaign_id' => :'String',
|
96
|
+
:'name' => :'String'
|
92
97
|
}
|
93
98
|
end
|
94
99
|
|
@@ -102,7 +107,8 @@ module VoucherifySdk
|
|
102
107
|
:'metadata',
|
103
108
|
:'categories',
|
104
109
|
:'campaign_name',
|
105
|
-
:'campaign_id'
|
110
|
+
:'campaign_id',
|
111
|
+
:'name'
|
106
112
|
])
|
107
113
|
end
|
108
114
|
|
@@ -149,6 +155,10 @@ module VoucherifySdk
|
|
149
155
|
if attributes.key?(:'campaign_id')
|
150
156
|
self.campaign_id = attributes[:'campaign_id']
|
151
157
|
end
|
158
|
+
|
159
|
+
if attributes.key?(:'name')
|
160
|
+
self.name = attributes[:'name']
|
161
|
+
end
|
152
162
|
end
|
153
163
|
|
154
164
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -182,7 +192,8 @@ module VoucherifySdk
|
|
182
192
|
metadata == o.metadata &&
|
183
193
|
categories == o.categories &&
|
184
194
|
campaign_name == o.campaign_name &&
|
185
|
-
campaign_id == o.campaign_id
|
195
|
+
campaign_id == o.campaign_id &&
|
196
|
+
name == o.name
|
186
197
|
end
|
187
198
|
|
188
199
|
# @see the `==` method
|
@@ -194,7 +205,7 @@ module VoucherifySdk
|
|
194
205
|
# Calculates hash code according to all attributes.
|
195
206
|
# @return [Integer] Hash code
|
196
207
|
def hash
|
197
|
-
[status, id, object, result, metadata, categories, campaign_name, campaign_id].hash
|
208
|
+
[status, id, object, result, metadata, categories, campaign_name, campaign_id, name].hash
|
198
209
|
end
|
199
210
|
|
200
211
|
# Builds the object from hash
|
@@ -31,12 +31,15 @@ module VoucherifySdk
|
|
31
31
|
|
32
32
|
attr_accessor :categories
|
33
33
|
|
34
|
-
# Campaign name
|
34
|
+
# Campaign name. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.
|
35
35
|
attr_accessor :campaign_name
|
36
36
|
|
37
|
-
# Unique campaign ID assigned by Voucherify.
|
37
|
+
# Unique campaign ID assigned by Voucherify. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.
|
38
38
|
attr_accessor :campaign_id
|
39
39
|
|
40
|
+
# Name of the promotion tier. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.
|
41
|
+
attr_accessor :name
|
42
|
+
|
40
43
|
class EnumAttributeValidator
|
41
44
|
attr_reader :datatype
|
42
45
|
attr_reader :allowable_values
|
@@ -69,7 +72,8 @@ module VoucherifySdk
|
|
69
72
|
:'metadata' => :'metadata',
|
70
73
|
:'categories' => :'categories',
|
71
74
|
:'campaign_name' => :'campaign_name',
|
72
|
-
:'campaign_id' => :'campaign_id'
|
75
|
+
:'campaign_id' => :'campaign_id',
|
76
|
+
:'name' => :'name'
|
73
77
|
}
|
74
78
|
end
|
75
79
|
|
@@ -88,7 +92,8 @@ module VoucherifySdk
|
|
88
92
|
:'metadata' => :'Object',
|
89
93
|
:'categories' => :'Array<CategoryWithStackingRulesType>',
|
90
94
|
:'campaign_name' => :'String',
|
91
|
-
:'campaign_id' => :'String'
|
95
|
+
:'campaign_id' => :'String',
|
96
|
+
:'name' => :'String'
|
92
97
|
}
|
93
98
|
end
|
94
99
|
|
@@ -102,7 +107,8 @@ module VoucherifySdk
|
|
102
107
|
:'metadata',
|
103
108
|
:'categories',
|
104
109
|
:'campaign_name',
|
105
|
-
:'campaign_id'
|
110
|
+
:'campaign_id',
|
111
|
+
:'name'
|
106
112
|
])
|
107
113
|
end
|
108
114
|
|
@@ -149,6 +155,10 @@ module VoucherifySdk
|
|
149
155
|
if attributes.key?(:'campaign_id')
|
150
156
|
self.campaign_id = attributes[:'campaign_id']
|
151
157
|
end
|
158
|
+
|
159
|
+
if attributes.key?(:'name')
|
160
|
+
self.name = attributes[:'name']
|
161
|
+
end
|
152
162
|
end
|
153
163
|
|
154
164
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -182,7 +192,8 @@ module VoucherifySdk
|
|
182
192
|
metadata == o.metadata &&
|
183
193
|
categories == o.categories &&
|
184
194
|
campaign_name == o.campaign_name &&
|
185
|
-
campaign_id == o.campaign_id
|
195
|
+
campaign_id == o.campaign_id &&
|
196
|
+
name == o.name
|
186
197
|
end
|
187
198
|
|
188
199
|
# @see the `==` method
|
@@ -194,7 +205,7 @@ module VoucherifySdk
|
|
194
205
|
# Calculates hash code according to all attributes.
|
195
206
|
# @return [Integer] Hash code
|
196
207
|
def hash
|
197
|
-
[status, id, object, result, metadata, categories, campaign_name, campaign_id].hash
|
208
|
+
[status, id, object, result, metadata, categories, campaign_name, campaign_id, name].hash
|
198
209
|
end
|
199
210
|
|
200
211
|
# Builds the object from hash
|
@@ -36,12 +36,15 @@ module VoucherifySdk
|
|
36
36
|
|
37
37
|
attr_accessor :categories
|
38
38
|
|
39
|
-
# Campaign name
|
39
|
+
# Campaign name. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.
|
40
40
|
attr_accessor :campaign_name
|
41
41
|
|
42
|
-
# Unique campaign ID assigned by Voucherify.
|
42
|
+
# Unique campaign ID assigned by Voucherify. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.
|
43
43
|
attr_accessor :campaign_id
|
44
44
|
|
45
|
+
# Name of the promotion tier. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.
|
46
|
+
attr_accessor :name
|
47
|
+
|
45
48
|
class EnumAttributeValidator
|
46
49
|
attr_reader :datatype
|
47
50
|
attr_reader :allowable_values
|
@@ -77,7 +80,8 @@ module VoucherifySdk
|
|
77
80
|
:'metadata' => :'metadata',
|
78
81
|
:'categories' => :'categories',
|
79
82
|
:'campaign_name' => :'campaign_name',
|
80
|
-
:'campaign_id' => :'campaign_id'
|
83
|
+
:'campaign_id' => :'campaign_id',
|
84
|
+
:'name' => :'name'
|
81
85
|
}
|
82
86
|
end
|
83
87
|
|
@@ -99,7 +103,8 @@ module VoucherifySdk
|
|
99
103
|
:'metadata' => :'Object',
|
100
104
|
:'categories' => :'Array<CategoryWithStackingRulesType>',
|
101
105
|
:'campaign_name' => :'String',
|
102
|
-
:'campaign_id' => :'String'
|
106
|
+
:'campaign_id' => :'String',
|
107
|
+
:'name' => :'String'
|
103
108
|
}
|
104
109
|
end
|
105
110
|
|
@@ -111,7 +116,8 @@ module VoucherifySdk
|
|
111
116
|
:'metadata',
|
112
117
|
:'categories',
|
113
118
|
:'campaign_name',
|
114
|
-
:'campaign_id'
|
119
|
+
:'campaign_id',
|
120
|
+
:'name'
|
115
121
|
])
|
116
122
|
end
|
117
123
|
|
@@ -168,6 +174,10 @@ module VoucherifySdk
|
|
168
174
|
if attributes.key?(:'campaign_id')
|
169
175
|
self.campaign_id = attributes[:'campaign_id']
|
170
176
|
end
|
177
|
+
|
178
|
+
if attributes.key?(:'name')
|
179
|
+
self.name = attributes[:'name']
|
180
|
+
end
|
171
181
|
end
|
172
182
|
|
173
183
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -204,7 +214,8 @@ module VoucherifySdk
|
|
204
214
|
metadata == o.metadata &&
|
205
215
|
categories == o.categories &&
|
206
216
|
campaign_name == o.campaign_name &&
|
207
|
-
campaign_id == o.campaign_id
|
217
|
+
campaign_id == o.campaign_id &&
|
218
|
+
name == o.name
|
208
219
|
end
|
209
220
|
|
210
221
|
# @see the `==` method
|
@@ -216,7 +227,7 @@ module VoucherifySdk
|
|
216
227
|
# Calculates hash code according to all attributes.
|
217
228
|
# @return [Integer] Hash code
|
218
229
|
def hash
|
219
|
-
[status, id, object, order, applicable_to, inapplicable_to, result, metadata, categories, campaign_name, campaign_id].hash
|
230
|
+
[status, id, object, order, applicable_to, inapplicable_to, result, metadata, categories, campaign_name, campaign_id, name].hash
|
220
231
|
end
|
221
232
|
|
222
233
|
# Builds the object from hash
|
data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_discount.rb
CHANGED
@@ -33,6 +33,7 @@ module VoucherifySdk
|
|
33
33
|
# Number of units to be granted a full value discount.
|
34
34
|
attr_accessor :unit_off
|
35
35
|
|
36
|
+
# Formula used to calculate the number of units.
|
36
37
|
attr_accessor :unit_off_formula
|
37
38
|
|
38
39
|
# The product deemed as free, chosen from product inventory (e.g. time, items).
|