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
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module VoucherifySdk
|
17
17
|
class RedemptionsGetResponseBodyVoucherLoyaltyCard
|
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
|
@@ -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' => :'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
|
@@ -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
|
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).
|
@@ -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 VoucherLoyaltyCard
|
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
|
@@ -179,7 +179,7 @@ module VoucherifySdk
|
|
179
179
|
# @return true if the model is valid
|
180
180
|
def valid?
|
181
181
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
182
|
-
type_validator = EnumAttributeValidator.new('String', ["CREDITS_REDEMPTION", "CREDITS_REFUND", "CREDITS_ADDITION", "CREDITS_REMOVAL", "POINTS_ACCRUAL", "POINTS_REDEMPTION", "POINTS_REFUND", "POINTS_ADDITION", "POINTS_REMOVAL", "POINTS_EXPIRATION", "POINTS_TRANSFER_IN", "POINTS_TRANSFER_OUT"])
|
182
|
+
type_validator = EnumAttributeValidator.new('String', ["CREDITS_REDEMPTION", "CREDITS_REFUND", "CREDITS_ADDITION", "CREDITS_REMOVAL", "POINTS_PENDING_ACTIVATION", "POINTS_ACCRUAL", "POINTS_REDEMPTION", "POINTS_REFUND", "POINTS_ADDITION", "POINTS_REMOVAL", "POINTS_EXPIRATION", "POINTS_TRANSFER_IN", "POINTS_TRANSFER_OUT"])
|
183
183
|
return false unless type_validator.valid?(@type)
|
184
184
|
true
|
185
185
|
end
|
@@ -36,6 +36,10 @@ module VoucherifySdk
|
|
36
36
|
|
37
37
|
attr_accessor :event_schema
|
38
38
|
|
39
|
+
attr_accessor :holder_loyalty_tier
|
40
|
+
|
41
|
+
attr_accessor :pending_points
|
42
|
+
|
39
43
|
attr_accessor :reward
|
40
44
|
|
41
45
|
attr_accessor :source_voucher
|
@@ -55,6 +59,8 @@ module VoucherifySdk
|
|
55
59
|
:'rollback' => :'rollback',
|
56
60
|
:'custom_event' => :'custom_event',
|
57
61
|
:'event_schema' => :'event_schema',
|
62
|
+
:'holder_loyalty_tier' => :'holder_loyalty_tier',
|
63
|
+
:'pending_points' => :'pending_points',
|
58
64
|
:'reward' => :'reward',
|
59
65
|
:'source_voucher' => :'source_voucher',
|
60
66
|
:'destination_voucher' => :'destination_voucher'
|
@@ -79,6 +85,8 @@ module VoucherifySdk
|
|
79
85
|
:'rollback' => :'VoucherTransactionDetailsRollback',
|
80
86
|
:'custom_event' => :'VoucherTransactionDetailsCustomEvent',
|
81
87
|
:'event_schema' => :'VoucherTransactionDetailsEventSchema',
|
88
|
+
:'holder_loyalty_tier' => :'VoucherTransactionDetailsHolderLoyaltyTier',
|
89
|
+
:'pending_points' => :'LoyaltyPendingPoints',
|
82
90
|
:'reward' => :'VoucherTransactionDetailsReward',
|
83
91
|
:'source_voucher' => :'SimpleVoucher',
|
84
92
|
:'destination_voucher' => :'SimpleVoucher'
|
@@ -97,6 +105,7 @@ module VoucherifySdk
|
|
97
105
|
:'rollback',
|
98
106
|
:'custom_event',
|
99
107
|
:'event_schema',
|
108
|
+
:'holder_loyalty_tier',
|
100
109
|
:'reward',
|
101
110
|
])
|
102
111
|
end
|
@@ -149,6 +158,14 @@ module VoucherifySdk
|
|
149
158
|
self.event_schema = attributes[:'event_schema']
|
150
159
|
end
|
151
160
|
|
161
|
+
if attributes.key?(:'holder_loyalty_tier')
|
162
|
+
self.holder_loyalty_tier = attributes[:'holder_loyalty_tier']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'pending_points')
|
166
|
+
self.pending_points = attributes[:'pending_points']
|
167
|
+
end
|
168
|
+
|
152
169
|
if attributes.key?(:'reward')
|
153
170
|
self.reward = attributes[:'reward']
|
154
171
|
end
|
@@ -192,6 +209,8 @@ module VoucherifySdk
|
|
192
209
|
rollback == o.rollback &&
|
193
210
|
custom_event == o.custom_event &&
|
194
211
|
event_schema == o.event_schema &&
|
212
|
+
holder_loyalty_tier == o.holder_loyalty_tier &&
|
213
|
+
pending_points == o.pending_points &&
|
195
214
|
reward == o.reward &&
|
196
215
|
source_voucher == o.source_voucher &&
|
197
216
|
destination_voucher == o.destination_voucher
|
@@ -206,7 +225,7 @@ module VoucherifySdk
|
|
206
225
|
# Calculates hash code according to all attributes.
|
207
226
|
# @return [Integer] Hash code
|
208
227
|
def hash
|
209
|
-
[balance, order, event, earning_rule, segment, loyalty_tier, redemption, rollback, custom_event, event_schema, reward, source_voucher, destination_voucher].hash
|
228
|
+
[balance, order, event, earning_rule, segment, loyalty_tier, redemption, rollback, custom_event, event_schema, holder_loyalty_tier, pending_points, reward, source_voucher, destination_voucher].hash
|
210
229
|
end
|
211
230
|
|
212
231
|
# Builds the object from hash
|
@@ -16,10 +16,10 @@ require 'time'
|
|
16
16
|
module VoucherifySdk
|
17
17
|
# Contains information about the custom event that triggers the point accrual.
|
18
18
|
class VoucherTransactionDetailsCustomEvent
|
19
|
-
# Unique event
|
19
|
+
# Unique identifier of the event.
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
# Type of custom event.
|
22
|
+
# Type of the custom event.
|
23
23
|
attr_accessor :type
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -16,7 +16,7 @@ require 'time'
|
|
16
16
|
module VoucherifySdk
|
17
17
|
# Contains information about the earning rule.
|
18
18
|
class VoucherTransactionDetailsEarningRule
|
19
|
-
# Unique earning rule
|
19
|
+
# Unique identifier of an earning rule, assigned by Voucherify.
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
22
|
attr_accessor :source
|
@@ -16,10 +16,10 @@ require 'time'
|
|
16
16
|
module VoucherifySdk
|
17
17
|
# Contains information about the custom event metadata schema.
|
18
18
|
class VoucherTransactionDetailsEventSchema
|
19
|
-
# Unique metadata schema
|
19
|
+
# Unique identifier of the metadata schema.
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
# Type of custom event.
|
22
|
+
# Type of the custom event.
|
23
23
|
attr_accessor :name
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|