voucherify 8.0.2 → 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 +53 -48
- data/Gemfile.lock +8 -6
- data/README.md +44 -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 +1 -1
- data/docs/CampaignBase.md +1 -0
- data/docs/CampaignsCreateRequestBody.md +1 -0
- data/docs/CampaignsCreateResponseBody.md +1 -1
- data/docs/CampaignsGetResponseBody.md +1 -1
- data/docs/CampaignsUpdateRequestBody.md +1 -0
- data/docs/CampaignsUpdateResponseBody.md +1 -1
- data/docs/CampaignsVouchersCreateCombinedResponseBodyLoyaltyCard.md +2 -1
- data/docs/CampaignsVouchersCreateResponseBodyLoyaltyCard.md +2 -1
- 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/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 +1 -0
- 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/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/LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard.md +2 -1
- data/docs/LoyaltiesMembersTransfersCreateResponseBodyLoyaltyCard.md +2 -1
- data/docs/LoyaltiesPendingPointsListResponseBody.md +12 -0
- data/docs/LoyaltiesUpdateCampaignRequestBody.md +1 -0
- data/docs/LoyaltyCardTransactionDetails.md +2 -0
- 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/LoyaltyTierExpiration.md +1 -1
- data/docs/Order.md +2 -2
- data/docs/OrderCalculated.md +11 -11
- data/docs/OrderCalculatedItem.md +1 -0
- data/docs/OrderRedemptionsEntry.md +1 -1
- data/docs/OrdersCreateRequestBody.md +2 -2
- data/docs/OrdersCreateResponseBody.md +11 -11
- data/docs/OrdersGetResponseBody.md +11 -11
- data/docs/OrdersImportCreateRequestBodyItem.md +2 -2
- data/docs/OrdersUpdateRequestBody.md +2 -2
- data/docs/OrdersUpdateResponseBody.md +11 -11
- data/docs/ParameterOrderListPendingPoints.md +7 -0
- data/docs/RedeemableLoyaltyCard.md +1 -1
- data/docs/RedeemableVoucherLoyaltyCard.md +2 -1
- data/docs/RedemptionEntryOrder.md +11 -11
- data/docs/RedemptionEntryVoucherLoyaltyCard.md +2 -1
- data/docs/RedemptionVoucherLoyaltyCard.md +2 -1
- data/docs/RedemptionsGetResponseBodyOrder.md +11 -11
- data/docs/RedemptionsGetResponseBodyVoucherLoyaltyCard.md +2 -1
- data/docs/RedemptionsListResponseBodyRedemptionsItemOrder.md +11 -11
- data/docs/RedemptionsListResponseBodyRedemptionsItemVoucherLoyaltyCard.md +2 -1
- data/docs/SimpleLoyaltyCard.md +2 -1
- data/docs/TemplatesCampaignsCampaignSetupCreateRequestBody.md +1 -0
- data/docs/ValidationsValidateResponseBodyRedeemablesItemResultDiscount.md +1 -1
- data/docs/VoucherLoyaltyCard.md +2 -1
- data/docs/VoucherTransactionDetails.md +2 -0
- 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/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/loyalties_api.rb +334 -8
- 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_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 +13 -13
- data/lib/VoucherifySdk/models/campaign_base.rb +13 -4
- data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +10 -1
- data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +13 -13
- data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +13 -13
- data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +10 -1
- data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +13 -13
- 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_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/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 +10 -1
- 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_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_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 +10 -1
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details.rb +20 -1
- 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_tier_expiration.rb +1 -1
- data/lib/VoucherifySdk/models/order.rb +2 -2
- data/lib/VoucherifySdk/models/order_calculated.rb +28 -28
- data/lib/VoucherifySdk/models/order_calculated_item.rb +17 -5
- data/lib/VoucherifySdk/models/order_redemptions_entry.rb +1 -1
- data/lib/VoucherifySdk/models/orders_create_request_body.rb +2 -2
- data/lib/VoucherifySdk/models/orders_create_response_body.rb +28 -28
- data/lib/VoucherifySdk/models/orders_get_response_body.rb +28 -28
- data/lib/VoucherifySdk/models/orders_import_create_request_body_item.rb +2 -2
- data/lib/VoucherifySdk/models/orders_update_request_body.rb +2 -2
- data/lib/VoucherifySdk/models/orders_update_response_body.rb +28 -28
- data/lib/VoucherifySdk/models/parameter_order_list_pending_points.rb +40 -0
- 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 +28 -28
- 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 +28 -28
- 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 +27 -28
- 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/templates_campaigns_campaign_setup_create_request_body.rb +10 -1
- data/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item_result_discount.rb +1 -0
- data/lib/VoucherifySdk/models/voucher_loyalty_card.rb +17 -6
- data/lib/VoucherifySdk/models/voucher_transaction.rb +1 -1
- data/lib/VoucherifySdk/models/voucher_transaction_details.rb +20 -1
- 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_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 +30 -0
- metadata +96 -36
@@ -0,0 +1,40 @@
|
|
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 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module VoucherifySdk
|
17
|
+
class ParameterOrderListPendingPoints
|
18
|
+
ID = "id".freeze
|
19
|
+
ID2 = "-id".freeze
|
20
|
+
|
21
|
+
def self.all_vars
|
22
|
+
@all_vars ||= [ID, ID2].freeze
|
23
|
+
end
|
24
|
+
|
25
|
+
# Builds the enum from string
|
26
|
+
# @param [String] The enum value in the form of the string
|
27
|
+
# @return [String] The enum value
|
28
|
+
def self.build_from_hash(value)
|
29
|
+
new.build_from_hash(value)
|
30
|
+
end
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [String] The enum value in the form of the string
|
34
|
+
# @return [String] The enum value
|
35
|
+
def build_from_hash(value)
|
36
|
+
return value if ParameterOrderListPendingPoints.all_vars.include?(value)
|
37
|
+
raise "Invalid ENUM value #{value} for class #ParameterOrderListPendingPoints"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -126,8 +126,8 @@ module VoucherifySdk
|
|
126
126
|
def list_invalid_properties
|
127
127
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
128
128
|
invalid_properties = Array.new
|
129
|
-
if !@limit.nil? && @limit >
|
130
|
-
invalid_properties.push('invalid value for "limit", must be smaller than or equal to
|
129
|
+
if !@limit.nil? && @limit > 50
|
130
|
+
invalid_properties.push('invalid value for "limit", must be smaller than or equal to 50.')
|
131
131
|
end
|
132
132
|
|
133
133
|
invalid_properties
|
@@ -137,7 +137,7 @@ module VoucherifySdk
|
|
137
137
|
# @return true if the model is valid
|
138
138
|
def valid?
|
139
139
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
140
|
-
return false if !@limit.nil? && @limit >
|
140
|
+
return false if !@limit.nil? && @limit > 50
|
141
141
|
sorting_rule_validator = EnumAttributeValidator.new('String', ["BEST_DEAL", "LEAST_DEAL", "DEFAULT"])
|
142
142
|
return false unless sorting_rule_validator.valid?(@sorting_rule)
|
143
143
|
true
|
@@ -16,7 +16,7 @@ require 'time'
|
|
16
16
|
module VoucherifySdk
|
17
17
|
# Redeemable loyalty card object response
|
18
18
|
class RedeemableLoyaltyCard
|
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.
|
@@ -16,7 +16,7 @@ require 'time'
|
|
16
16
|
module VoucherifySdk
|
17
17
|
# Object representing loyalty card parameters. Child attributes are present only if `type` is `LOYALTY_CARD`. Defaults to `null`.
|
18
18
|
class RedeemableVoucherLoyaltyCard
|
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' => :'Date',
|
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
|
@@ -24,36 +24,33 @@ 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
|
-
# Array of items applied to the order. It can include up 500 items.
|
55
|
-
attr_accessor :items
|
56
|
-
|
57
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
|
|
@@ -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' => :'RedemptionEntryOrderCustomer',
|
159
158
|
:'referrer' => :'RedemptionEntryOrderReferrer',
|
160
|
-
:'redemptions' => :'Hash<String, OrderRedemptionsEntry>'
|
159
|
+
:'redemptions' => :'Hash<String, OrderRedemptionsEntry>',
|
160
|
+
:'items' => :'Array<OrderCalculatedItem>'
|
161
161
|
}
|
162
162
|
end
|
163
163
|
|
@@ -176,7 +176,6 @@ 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',
|
@@ -185,7 +184,8 @@ module VoucherifySdk
|
|
185
184
|
:'referrer_id',
|
186
185
|
:'customer',
|
187
186
|
:'referrer',
|
188
|
-
:'redemptions'
|
187
|
+
:'redemptions',
|
188
|
+
:'items'
|
189
189
|
])
|
190
190
|
end
|
191
191
|
|
@@ -245,12 +245,6 @@ module VoucherifySdk
|
|
245
245
|
self.total_applied_discount_amount = attributes[:'total_applied_discount_amount']
|
246
246
|
end
|
247
247
|
|
248
|
-
if attributes.key?(:'items')
|
249
|
-
if (value = attributes[:'items']).is_a?(Array)
|
250
|
-
self.items = value
|
251
|
-
end
|
252
|
-
end
|
253
|
-
|
254
248
|
if attributes.key?(:'metadata')
|
255
249
|
self.metadata = attributes[:'metadata']
|
256
250
|
end
|
@@ -290,6 +284,12 @@ module VoucherifySdk
|
|
290
284
|
self.redemptions = value
|
291
285
|
end
|
292
286
|
end
|
287
|
+
|
288
|
+
if attributes.key?(:'items')
|
289
|
+
if (value = attributes[:'items']).is_a?(Array)
|
290
|
+
self.items = value
|
291
|
+
end
|
292
|
+
end
|
293
293
|
end
|
294
294
|
|
295
295
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -328,7 +328,6 @@ module VoucherifySdk
|
|
328
328
|
applied_discount_amount == o.applied_discount_amount &&
|
329
329
|
items_applied_discount_amount == o.items_applied_discount_amount &&
|
330
330
|
total_applied_discount_amount == o.total_applied_discount_amount &&
|
331
|
-
items == o.items &&
|
332
331
|
metadata == o.metadata &&
|
333
332
|
object == o.object &&
|
334
333
|
created_at == o.created_at &&
|
@@ -337,7 +336,8 @@ module VoucherifySdk
|
|
337
336
|
referrer_id == o.referrer_id &&
|
338
337
|
customer == o.customer &&
|
339
338
|
referrer == o.referrer &&
|
340
|
-
redemptions == o.redemptions
|
339
|
+
redemptions == o.redemptions &&
|
340
|
+
items == o.items
|
341
341
|
end
|
342
342
|
|
343
343
|
# @see the `==` method
|
@@ -349,7 +349,7 @@ module VoucherifySdk
|
|
349
349
|
# Calculates hash code according to all attributes.
|
350
350
|
# @return [Integer] Hash code
|
351
351
|
def hash
|
352
|
-
[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,
|
352
|
+
[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
|
353
353
|
end
|
354
354
|
|
355
355
|
# Builds the object from hash
|
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module VoucherifySdk
|
17
17
|
class RedemptionEntryVoucherLoyaltyCard
|
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
|
# Object representing loyalty card parameters. Child attributes are present only if `type` is `LOYALTY_CARD`. Defaults to `null`.
|
18
18
|
class RedemptionVoucherLoyaltyCard
|
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' => :'Date',
|
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
|
@@ -24,36 +24,33 @@ 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
|
-
# Array of items applied to the order. It can include up 500 items.
|
55
|
-
attr_accessor :items
|
56
|
-
|
57
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
|
|
@@ -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' => :'RedemptionsGetResponseBodyOrderCustomer',
|
159
158
|
:'referrer' => :'RedemptionsGetResponseBodyOrderReferrer',
|
160
|
-
:'redemptions' => :'Hash<String, OrderRedemptionsEntry>'
|
159
|
+
:'redemptions' => :'Hash<String, OrderRedemptionsEntry>',
|
160
|
+
:'items' => :'Array<OrderCalculatedItem>'
|
161
161
|
}
|
162
162
|
end
|
163
163
|
|
@@ -176,7 +176,6 @@ 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',
|
@@ -185,7 +184,8 @@ module VoucherifySdk
|
|
185
184
|
:'referrer_id',
|
186
185
|
:'customer',
|
187
186
|
:'referrer',
|
188
|
-
:'redemptions'
|
187
|
+
:'redemptions',
|
188
|
+
:'items'
|
189
189
|
])
|
190
190
|
end
|
191
191
|
|
@@ -245,12 +245,6 @@ module VoucherifySdk
|
|
245
245
|
self.total_applied_discount_amount = attributes[:'total_applied_discount_amount']
|
246
246
|
end
|
247
247
|
|
248
|
-
if attributes.key?(:'items')
|
249
|
-
if (value = attributes[:'items']).is_a?(Array)
|
250
|
-
self.items = value
|
251
|
-
end
|
252
|
-
end
|
253
|
-
|
254
248
|
if attributes.key?(:'metadata')
|
255
249
|
self.metadata = attributes[:'metadata']
|
256
250
|
end
|
@@ -290,6 +284,12 @@ module VoucherifySdk
|
|
290
284
|
self.redemptions = value
|
291
285
|
end
|
292
286
|
end
|
287
|
+
|
288
|
+
if attributes.key?(:'items')
|
289
|
+
if (value = attributes[:'items']).is_a?(Array)
|
290
|
+
self.items = value
|
291
|
+
end
|
292
|
+
end
|
293
293
|
end
|
294
294
|
|
295
295
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -328,7 +328,6 @@ module VoucherifySdk
|
|
328
328
|
applied_discount_amount == o.applied_discount_amount &&
|
329
329
|
items_applied_discount_amount == o.items_applied_discount_amount &&
|
330
330
|
total_applied_discount_amount == o.total_applied_discount_amount &&
|
331
|
-
items == o.items &&
|
332
331
|
metadata == o.metadata &&
|
333
332
|
object == o.object &&
|
334
333
|
created_at == o.created_at &&
|
@@ -337,7 +336,8 @@ module VoucherifySdk
|
|
337
336
|
referrer_id == o.referrer_id &&
|
338
337
|
customer == o.customer &&
|
339
338
|
referrer == o.referrer &&
|
340
|
-
redemptions == o.redemptions
|
339
|
+
redemptions == o.redemptions &&
|
340
|
+
items == o.items
|
341
341
|
end
|
342
342
|
|
343
343
|
# @see the `==` method
|
@@ -349,7 +349,7 @@ module VoucherifySdk
|
|
349
349
|
# Calculates hash code according to all attributes.
|
350
350
|
# @return [Integer] Hash code
|
351
351
|
def hash
|
352
|
-
[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,
|
352
|
+
[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
|
353
353
|
end
|
354
354
|
|
355
355
|
# Builds the object from hash
|