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
|
@@ -101,6 +101,8 @@ module VoucherifySdk
|
|
|
101
101
|
|
|
102
102
|
attr_accessor :loyalty_tiers_expiration
|
|
103
103
|
|
|
104
|
+
attr_accessor :access_settings_assignments
|
|
105
|
+
|
|
104
106
|
class EnumAttributeValidator
|
|
105
107
|
attr_reader :datatype
|
|
106
108
|
attr_reader :allowable_values
|
|
@@ -155,7 +157,8 @@ module VoucherifySdk
|
|
|
155
157
|
:'categories' => :'categories',
|
|
156
158
|
:'object' => :'object',
|
|
157
159
|
:'referral_program' => :'referral_program',
|
|
158
|
-
:'loyalty_tiers_expiration' => :'loyalty_tiers_expiration'
|
|
160
|
+
:'loyalty_tiers_expiration' => :'loyalty_tiers_expiration',
|
|
161
|
+
:'access_settings_assignments' => :'access_settings_assignments'
|
|
159
162
|
}
|
|
160
163
|
end
|
|
161
164
|
|
|
@@ -196,7 +199,8 @@ module VoucherifySdk
|
|
|
196
199
|
:'categories' => :'Array<Category>',
|
|
197
200
|
:'object' => :'String',
|
|
198
201
|
:'referral_program' => :'ReferralProgram',
|
|
199
|
-
:'loyalty_tiers_expiration' => :'LoyaltyTiersExpirationAll'
|
|
202
|
+
:'loyalty_tiers_expiration' => :'LoyaltyTiersExpirationAll',
|
|
203
|
+
:'access_settings_assignments' => :'AccessSettingsCampaignAssignmentsList'
|
|
200
204
|
}
|
|
201
205
|
end
|
|
202
206
|
|
|
@@ -363,6 +367,10 @@ module VoucherifySdk
|
|
|
363
367
|
if attributes.key?(:'loyalty_tiers_expiration')
|
|
364
368
|
self.loyalty_tiers_expiration = attributes[:'loyalty_tiers_expiration']
|
|
365
369
|
end
|
|
370
|
+
|
|
371
|
+
if attributes.key?(:'access_settings_assignments')
|
|
372
|
+
self.access_settings_assignments = attributes[:'access_settings_assignments']
|
|
373
|
+
end
|
|
366
374
|
end
|
|
367
375
|
|
|
368
376
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -422,7 +430,8 @@ module VoucherifySdk
|
|
|
422
430
|
categories == o.categories &&
|
|
423
431
|
object == o.object &&
|
|
424
432
|
referral_program == o.referral_program &&
|
|
425
|
-
loyalty_tiers_expiration == o.loyalty_tiers_expiration
|
|
433
|
+
loyalty_tiers_expiration == o.loyalty_tiers_expiration &&
|
|
434
|
+
access_settings_assignments == o.access_settings_assignments
|
|
426
435
|
end
|
|
427
436
|
|
|
428
437
|
# @see the `==` method
|
|
@@ -434,7 +443,7 @@ module VoucherifySdk
|
|
|
434
443
|
# Calculates hash code according to all attributes.
|
|
435
444
|
# @return [Integer] Hash code
|
|
436
445
|
def hash
|
|
437
|
-
[id, name, description, campaign_type, type, voucher, auto_join, join_once, use_voucher_metadata_schema, validity_timeframe, validity_day_of_week, validity_hours, activity_duration_after_publishing, vouchers_count, start_date, expiration_date, active, metadata, created_at, updated_at, category, creation_status, vouchers_generation_status, readonly, protected, category_id, categories, object, referral_program, loyalty_tiers_expiration].hash
|
|
446
|
+
[id, name, description, campaign_type, type, voucher, auto_join, join_once, use_voucher_metadata_schema, validity_timeframe, validity_day_of_week, validity_hours, activity_duration_after_publishing, vouchers_count, start_date, expiration_date, active, metadata, created_at, updated_at, category, creation_status, vouchers_generation_status, readonly, protected, category_id, categories, object, referral_program, loyalty_tiers_expiration, access_settings_assignments].hash
|
|
438
447
|
end
|
|
439
448
|
|
|
440
449
|
# Builds the object from hash
|
|
@@ -61,6 +61,8 @@ module VoucherifySdk
|
|
|
61
61
|
# 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.
|
|
62
62
|
attr_accessor :metadata
|
|
63
63
|
|
|
64
|
+
attr_accessor :access_settings
|
|
65
|
+
|
|
64
66
|
# Array containing the ID of the validation rule associated with the promotion tier.
|
|
65
67
|
attr_accessor :validation_rules
|
|
66
68
|
|
|
@@ -113,6 +115,7 @@ module VoucherifySdk
|
|
|
113
115
|
:'category_id' => :'category_id',
|
|
114
116
|
:'category' => :'category',
|
|
115
117
|
:'metadata' => :'metadata',
|
|
118
|
+
:'access_settings' => :'access_settings',
|
|
116
119
|
:'validation_rules' => :'validation_rules',
|
|
117
120
|
:'campaign_type' => :'campaign_type',
|
|
118
121
|
:'voucher' => :'voucher',
|
|
@@ -145,6 +148,7 @@ module VoucherifySdk
|
|
|
145
148
|
:'category_id' => :'String',
|
|
146
149
|
:'category' => :'String',
|
|
147
150
|
:'metadata' => :'Object',
|
|
151
|
+
:'access_settings' => :'AccessSettings',
|
|
148
152
|
:'validation_rules' => :'Array<String>',
|
|
149
153
|
:'campaign_type' => :'String',
|
|
150
154
|
:'voucher' => :'CampaignsCreateRequestBodyVoucher',
|
|
@@ -250,6 +254,10 @@ module VoucherifySdk
|
|
|
250
254
|
self.metadata = attributes[:'metadata']
|
|
251
255
|
end
|
|
252
256
|
|
|
257
|
+
if attributes.key?(:'access_settings')
|
|
258
|
+
self.access_settings = attributes[:'access_settings']
|
|
259
|
+
end
|
|
260
|
+
|
|
253
261
|
if attributes.key?(:'validation_rules')
|
|
254
262
|
if (value = attributes[:'validation_rules']).is_a?(Array)
|
|
255
263
|
self.validation_rules = value
|
|
@@ -318,6 +326,7 @@ module VoucherifySdk
|
|
|
318
326
|
category_id == o.category_id &&
|
|
319
327
|
category == o.category &&
|
|
320
328
|
metadata == o.metadata &&
|
|
329
|
+
access_settings == o.access_settings &&
|
|
321
330
|
validation_rules == o.validation_rules &&
|
|
322
331
|
campaign_type == o.campaign_type &&
|
|
323
332
|
voucher == o.voucher &&
|
|
@@ -334,7 +343,7 @@ module VoucherifySdk
|
|
|
334
343
|
# Calculates hash code according to all attributes.
|
|
335
344
|
# @return [Integer] Hash code
|
|
336
345
|
def hash
|
|
337
|
-
[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, validation_rules, campaign_type, voucher, referral_program, promotion].hash
|
|
346
|
+
[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, validation_rules, campaign_type, voucher, referral_program, promotion].hash
|
|
338
347
|
end
|
|
339
348
|
|
|
340
349
|
# Builds the object from hash
|
|
@@ -101,12 +101,12 @@ module VoucherifySdk
|
|
|
101
101
|
|
|
102
102
|
attr_accessor :loyalty_tiers_expiration
|
|
103
103
|
|
|
104
|
+
attr_accessor :access_settings_assignments
|
|
105
|
+
|
|
104
106
|
attr_accessor :promotion
|
|
105
107
|
|
|
106
108
|
attr_accessor :validation_rules_assignments
|
|
107
109
|
|
|
108
|
-
attr_accessor :access_settings_assignments
|
|
109
|
-
|
|
110
110
|
class EnumAttributeValidator
|
|
111
111
|
attr_reader :datatype
|
|
112
112
|
attr_reader :allowable_values
|
|
@@ -162,9 +162,9 @@ module VoucherifySdk
|
|
|
162
162
|
:'object' => :'object',
|
|
163
163
|
:'referral_program' => :'referral_program',
|
|
164
164
|
:'loyalty_tiers_expiration' => :'loyalty_tiers_expiration',
|
|
165
|
+
:'access_settings_assignments' => :'access_settings_assignments',
|
|
165
166
|
:'promotion' => :'promotion',
|
|
166
|
-
:'validation_rules_assignments' => :'validation_rules_assignments'
|
|
167
|
-
:'access_settings_assignments' => :'access_settings_assignments'
|
|
167
|
+
:'validation_rules_assignments' => :'validation_rules_assignments'
|
|
168
168
|
}
|
|
169
169
|
end
|
|
170
170
|
|
|
@@ -206,9 +206,9 @@ module VoucherifySdk
|
|
|
206
206
|
:'object' => :'String',
|
|
207
207
|
:'referral_program' => :'ReferralProgram',
|
|
208
208
|
:'loyalty_tiers_expiration' => :'LoyaltyTiersExpirationAll',
|
|
209
|
+
:'access_settings_assignments' => :'AccessSettingsCampaignAssignmentsList',
|
|
209
210
|
:'promotion' => :'PromotionTiersList',
|
|
210
|
-
:'validation_rules_assignments' => :'ValidationRulesAssignmentsList'
|
|
211
|
-
:'access_settings_assignments' => :'AccessSettingsCampaignAssignmentsList'
|
|
211
|
+
:'validation_rules_assignments' => :'ValidationRulesAssignmentsList'
|
|
212
212
|
}
|
|
213
213
|
end
|
|
214
214
|
|
|
@@ -376,6 +376,10 @@ module VoucherifySdk
|
|
|
376
376
|
self.loyalty_tiers_expiration = attributes[:'loyalty_tiers_expiration']
|
|
377
377
|
end
|
|
378
378
|
|
|
379
|
+
if attributes.key?(:'access_settings_assignments')
|
|
380
|
+
self.access_settings_assignments = attributes[:'access_settings_assignments']
|
|
381
|
+
end
|
|
382
|
+
|
|
379
383
|
if attributes.key?(:'promotion')
|
|
380
384
|
self.promotion = attributes[:'promotion']
|
|
381
385
|
end
|
|
@@ -383,10 +387,6 @@ module VoucherifySdk
|
|
|
383
387
|
if attributes.key?(:'validation_rules_assignments')
|
|
384
388
|
self.validation_rules_assignments = attributes[:'validation_rules_assignments']
|
|
385
389
|
end
|
|
386
|
-
|
|
387
|
-
if attributes.key?(:'access_settings_assignments')
|
|
388
|
-
self.access_settings_assignments = attributes[:'access_settings_assignments']
|
|
389
|
-
end
|
|
390
390
|
end
|
|
391
391
|
|
|
392
392
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -447,9 +447,9 @@ module VoucherifySdk
|
|
|
447
447
|
object == o.object &&
|
|
448
448
|
referral_program == o.referral_program &&
|
|
449
449
|
loyalty_tiers_expiration == o.loyalty_tiers_expiration &&
|
|
450
|
+
access_settings_assignments == o.access_settings_assignments &&
|
|
450
451
|
promotion == o.promotion &&
|
|
451
|
-
validation_rules_assignments == o.validation_rules_assignments
|
|
452
|
-
access_settings_assignments == o.access_settings_assignments
|
|
452
|
+
validation_rules_assignments == o.validation_rules_assignments
|
|
453
453
|
end
|
|
454
454
|
|
|
455
455
|
# @see the `==` method
|
|
@@ -461,7 +461,7 @@ module VoucherifySdk
|
|
|
461
461
|
# Calculates hash code according to all attributes.
|
|
462
462
|
# @return [Integer] Hash code
|
|
463
463
|
def hash
|
|
464
|
-
[id, name, description, campaign_type, type, voucher, auto_join, join_once, use_voucher_metadata_schema, validity_timeframe, validity_day_of_week, validity_hours, activity_duration_after_publishing, vouchers_count, start_date, expiration_date, active, metadata, created_at, updated_at, category, creation_status, vouchers_generation_status, readonly, protected, category_id, categories, object, referral_program, loyalty_tiers_expiration, promotion, validation_rules_assignments
|
|
464
|
+
[id, name, description, campaign_type, type, voucher, auto_join, join_once, use_voucher_metadata_schema, validity_timeframe, validity_day_of_week, validity_hours, activity_duration_after_publishing, vouchers_count, start_date, expiration_date, active, metadata, created_at, updated_at, category, creation_status, vouchers_generation_status, readonly, protected, category_id, categories, object, referral_program, loyalty_tiers_expiration, access_settings_assignments, promotion, validation_rules_assignments].hash
|
|
465
465
|
end
|
|
466
466
|
|
|
467
467
|
# Builds the object from hash
|
|
@@ -101,12 +101,12 @@ module VoucherifySdk
|
|
|
101
101
|
|
|
102
102
|
attr_accessor :loyalty_tiers_expiration
|
|
103
103
|
|
|
104
|
+
attr_accessor :access_settings_assignments
|
|
105
|
+
|
|
104
106
|
attr_accessor :promotion
|
|
105
107
|
|
|
106
108
|
attr_accessor :validation_rules_assignments
|
|
107
109
|
|
|
108
|
-
attr_accessor :access_settings_assignments
|
|
109
|
-
|
|
110
110
|
class EnumAttributeValidator
|
|
111
111
|
attr_reader :datatype
|
|
112
112
|
attr_reader :allowable_values
|
|
@@ -162,9 +162,9 @@ module VoucherifySdk
|
|
|
162
162
|
:'object' => :'object',
|
|
163
163
|
:'referral_program' => :'referral_program',
|
|
164
164
|
:'loyalty_tiers_expiration' => :'loyalty_tiers_expiration',
|
|
165
|
+
:'access_settings_assignments' => :'access_settings_assignments',
|
|
165
166
|
:'promotion' => :'promotion',
|
|
166
|
-
:'validation_rules_assignments' => :'validation_rules_assignments'
|
|
167
|
-
:'access_settings_assignments' => :'access_settings_assignments'
|
|
167
|
+
:'validation_rules_assignments' => :'validation_rules_assignments'
|
|
168
168
|
}
|
|
169
169
|
end
|
|
170
170
|
|
|
@@ -206,9 +206,9 @@ module VoucherifySdk
|
|
|
206
206
|
:'object' => :'String',
|
|
207
207
|
:'referral_program' => :'ReferralProgram',
|
|
208
208
|
:'loyalty_tiers_expiration' => :'LoyaltyTiersExpirationAll',
|
|
209
|
+
:'access_settings_assignments' => :'AccessSettingsCampaignAssignmentsList',
|
|
209
210
|
:'promotion' => :'PromotionTiersList',
|
|
210
|
-
:'validation_rules_assignments' => :'ValidationRulesAssignmentsList'
|
|
211
|
-
:'access_settings_assignments' => :'AccessSettingsCampaignAssignmentsList'
|
|
211
|
+
:'validation_rules_assignments' => :'ValidationRulesAssignmentsList'
|
|
212
212
|
}
|
|
213
213
|
end
|
|
214
214
|
|
|
@@ -376,6 +376,10 @@ module VoucherifySdk
|
|
|
376
376
|
self.loyalty_tiers_expiration = attributes[:'loyalty_tiers_expiration']
|
|
377
377
|
end
|
|
378
378
|
|
|
379
|
+
if attributes.key?(:'access_settings_assignments')
|
|
380
|
+
self.access_settings_assignments = attributes[:'access_settings_assignments']
|
|
381
|
+
end
|
|
382
|
+
|
|
379
383
|
if attributes.key?(:'promotion')
|
|
380
384
|
self.promotion = attributes[:'promotion']
|
|
381
385
|
end
|
|
@@ -383,10 +387,6 @@ module VoucherifySdk
|
|
|
383
387
|
if attributes.key?(:'validation_rules_assignments')
|
|
384
388
|
self.validation_rules_assignments = attributes[:'validation_rules_assignments']
|
|
385
389
|
end
|
|
386
|
-
|
|
387
|
-
if attributes.key?(:'access_settings_assignments')
|
|
388
|
-
self.access_settings_assignments = attributes[:'access_settings_assignments']
|
|
389
|
-
end
|
|
390
390
|
end
|
|
391
391
|
|
|
392
392
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -447,9 +447,9 @@ module VoucherifySdk
|
|
|
447
447
|
object == o.object &&
|
|
448
448
|
referral_program == o.referral_program &&
|
|
449
449
|
loyalty_tiers_expiration == o.loyalty_tiers_expiration &&
|
|
450
|
+
access_settings_assignments == o.access_settings_assignments &&
|
|
450
451
|
promotion == o.promotion &&
|
|
451
|
-
validation_rules_assignments == o.validation_rules_assignments
|
|
452
|
-
access_settings_assignments == o.access_settings_assignments
|
|
452
|
+
validation_rules_assignments == o.validation_rules_assignments
|
|
453
453
|
end
|
|
454
454
|
|
|
455
455
|
# @see the `==` method
|
|
@@ -461,7 +461,7 @@ module VoucherifySdk
|
|
|
461
461
|
# Calculates hash code according to all attributes.
|
|
462
462
|
# @return [Integer] Hash code
|
|
463
463
|
def hash
|
|
464
|
-
[id, name, description, campaign_type, type, voucher, auto_join, join_once, use_voucher_metadata_schema, validity_timeframe, validity_day_of_week, validity_hours, activity_duration_after_publishing, vouchers_count, start_date, expiration_date, active, metadata, created_at, updated_at, category, creation_status, vouchers_generation_status, readonly, protected, category_id, categories, object, referral_program, loyalty_tiers_expiration, promotion, validation_rules_assignments
|
|
464
|
+
[id, name, description, campaign_type, type, voucher, auto_join, join_once, use_voucher_metadata_schema, validity_timeframe, validity_day_of_week, validity_hours, activity_duration_after_publishing, vouchers_count, start_date, expiration_date, active, metadata, created_at, updated_at, category, creation_status, vouchers_generation_status, readonly, protected, category_id, categories, object, referral_program, loyalty_tiers_expiration, access_settings_assignments, promotion, validation_rules_assignments].hash
|
|
465
465
|
end
|
|
466
466
|
|
|
467
467
|
# Builds the object from hash
|
|
@@ -43,6 +43,8 @@ module VoucherifySdk
|
|
|
43
43
|
# Unique category ID that this campaign belongs to. Either pass this parameter OR the `category`.
|
|
44
44
|
attr_accessor :category_id
|
|
45
45
|
|
|
46
|
+
attr_accessor :access_settings
|
|
47
|
+
|
|
46
48
|
# Defines the amount of time the vouchers will be active after publishing. The value is shown in the ISO 8601 format. For example, a voucher with the value of P24D will be valid for a duration of 24 days.
|
|
47
49
|
attr_accessor :activity_duration_after_publishing
|
|
48
50
|
|
|
@@ -100,6 +102,7 @@ module VoucherifySdk
|
|
|
100
102
|
:'metadata' => :'metadata',
|
|
101
103
|
:'unset_metadata_fields' => :'unset_metadata_fields',
|
|
102
104
|
:'category_id' => :'category_id',
|
|
105
|
+
:'access_settings' => :'access_settings',
|
|
103
106
|
:'activity_duration_after_publishing' => :'activity_duration_after_publishing',
|
|
104
107
|
:'join_once' => :'join_once',
|
|
105
108
|
:'auto_join' => :'auto_join',
|
|
@@ -130,6 +133,7 @@ module VoucherifySdk
|
|
|
130
133
|
:'metadata' => :'Object',
|
|
131
134
|
:'unset_metadata_fields' => :'Array<String>',
|
|
132
135
|
:'category_id' => :'String',
|
|
136
|
+
:'access_settings' => :'AccessSettings',
|
|
133
137
|
:'activity_duration_after_publishing' => :'String',
|
|
134
138
|
:'join_once' => :'Boolean',
|
|
135
139
|
:'auto_join' => :'Boolean',
|
|
@@ -212,6 +216,10 @@ module VoucherifySdk
|
|
|
212
216
|
self.category_id = attributes[:'category_id']
|
|
213
217
|
end
|
|
214
218
|
|
|
219
|
+
if attributes.key?(:'access_settings')
|
|
220
|
+
self.access_settings = attributes[:'access_settings']
|
|
221
|
+
end
|
|
222
|
+
|
|
215
223
|
if attributes.key?(:'activity_duration_after_publishing')
|
|
216
224
|
self.activity_duration_after_publishing = attributes[:'activity_duration_after_publishing']
|
|
217
225
|
end
|
|
@@ -281,6 +289,7 @@ module VoucherifySdk
|
|
|
281
289
|
metadata == o.metadata &&
|
|
282
290
|
unset_metadata_fields == o.unset_metadata_fields &&
|
|
283
291
|
category_id == o.category_id &&
|
|
292
|
+
access_settings == o.access_settings &&
|
|
284
293
|
activity_duration_after_publishing == o.activity_duration_after_publishing &&
|
|
285
294
|
join_once == o.join_once &&
|
|
286
295
|
auto_join == o.auto_join &&
|
|
@@ -301,7 +310,7 @@ module VoucherifySdk
|
|
|
301
310
|
# Calculates hash code according to all attributes.
|
|
302
311
|
# @return [Integer] Hash code
|
|
303
312
|
def hash
|
|
304
|
-
[start_date, expiration_date, validity_timeframe, validity_day_of_week, validity_hours, description, category, metadata, unset_metadata_fields, category_id, activity_duration_after_publishing, join_once, auto_join, type, discount, referral_program, gift, loyalty_tiers_expiration, options].hash
|
|
313
|
+
[start_date, expiration_date, validity_timeframe, validity_day_of_week, validity_hours, description, category, metadata, unset_metadata_fields, category_id, access_settings, activity_duration_after_publishing, join_once, auto_join, type, discount, referral_program, gift, loyalty_tiers_expiration, options].hash
|
|
305
314
|
end
|
|
306
315
|
|
|
307
316
|
# Builds the object from hash
|
|
@@ -101,12 +101,12 @@ module VoucherifySdk
|
|
|
101
101
|
|
|
102
102
|
attr_accessor :loyalty_tiers_expiration
|
|
103
103
|
|
|
104
|
+
attr_accessor :access_settings_assignments
|
|
105
|
+
|
|
104
106
|
attr_accessor :promotion
|
|
105
107
|
|
|
106
108
|
attr_accessor :validation_rules_assignments
|
|
107
109
|
|
|
108
|
-
attr_accessor :access_settings_assignments
|
|
109
|
-
|
|
110
110
|
class EnumAttributeValidator
|
|
111
111
|
attr_reader :datatype
|
|
112
112
|
attr_reader :allowable_values
|
|
@@ -162,9 +162,9 @@ module VoucherifySdk
|
|
|
162
162
|
:'object' => :'object',
|
|
163
163
|
:'referral_program' => :'referral_program',
|
|
164
164
|
:'loyalty_tiers_expiration' => :'loyalty_tiers_expiration',
|
|
165
|
+
:'access_settings_assignments' => :'access_settings_assignments',
|
|
165
166
|
:'promotion' => :'promotion',
|
|
166
|
-
:'validation_rules_assignments' => :'validation_rules_assignments'
|
|
167
|
-
:'access_settings_assignments' => :'access_settings_assignments'
|
|
167
|
+
:'validation_rules_assignments' => :'validation_rules_assignments'
|
|
168
168
|
}
|
|
169
169
|
end
|
|
170
170
|
|
|
@@ -206,9 +206,9 @@ module VoucherifySdk
|
|
|
206
206
|
:'object' => :'String',
|
|
207
207
|
:'referral_program' => :'ReferralProgram',
|
|
208
208
|
:'loyalty_tiers_expiration' => :'LoyaltyTiersExpirationAll',
|
|
209
|
+
:'access_settings_assignments' => :'AccessSettingsCampaignAssignmentsList',
|
|
209
210
|
:'promotion' => :'PromotionTiersList',
|
|
210
|
-
:'validation_rules_assignments' => :'ValidationRulesAssignmentsList'
|
|
211
|
-
:'access_settings_assignments' => :'AccessSettingsCampaignAssignmentsList'
|
|
211
|
+
:'validation_rules_assignments' => :'ValidationRulesAssignmentsList'
|
|
212
212
|
}
|
|
213
213
|
end
|
|
214
214
|
|
|
@@ -376,6 +376,10 @@ module VoucherifySdk
|
|
|
376
376
|
self.loyalty_tiers_expiration = attributes[:'loyalty_tiers_expiration']
|
|
377
377
|
end
|
|
378
378
|
|
|
379
|
+
if attributes.key?(:'access_settings_assignments')
|
|
380
|
+
self.access_settings_assignments = attributes[:'access_settings_assignments']
|
|
381
|
+
end
|
|
382
|
+
|
|
379
383
|
if attributes.key?(:'promotion')
|
|
380
384
|
self.promotion = attributes[:'promotion']
|
|
381
385
|
end
|
|
@@ -383,10 +387,6 @@ module VoucherifySdk
|
|
|
383
387
|
if attributes.key?(:'validation_rules_assignments')
|
|
384
388
|
self.validation_rules_assignments = attributes[:'validation_rules_assignments']
|
|
385
389
|
end
|
|
386
|
-
|
|
387
|
-
if attributes.key?(:'access_settings_assignments')
|
|
388
|
-
self.access_settings_assignments = attributes[:'access_settings_assignments']
|
|
389
|
-
end
|
|
390
390
|
end
|
|
391
391
|
|
|
392
392
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -447,9 +447,9 @@ module VoucherifySdk
|
|
|
447
447
|
object == o.object &&
|
|
448
448
|
referral_program == o.referral_program &&
|
|
449
449
|
loyalty_tiers_expiration == o.loyalty_tiers_expiration &&
|
|
450
|
+
access_settings_assignments == o.access_settings_assignments &&
|
|
450
451
|
promotion == o.promotion &&
|
|
451
|
-
validation_rules_assignments == o.validation_rules_assignments
|
|
452
|
-
access_settings_assignments == o.access_settings_assignments
|
|
452
|
+
validation_rules_assignments == o.validation_rules_assignments
|
|
453
453
|
end
|
|
454
454
|
|
|
455
455
|
# @see the `==` method
|
|
@@ -461,7 +461,7 @@ module VoucherifySdk
|
|
|
461
461
|
# Calculates hash code according to all attributes.
|
|
462
462
|
# @return [Integer] Hash code
|
|
463
463
|
def hash
|
|
464
|
-
[id, name, description, campaign_type, type, voucher, auto_join, join_once, use_voucher_metadata_schema, validity_timeframe, validity_day_of_week, validity_hours, activity_duration_after_publishing, vouchers_count, start_date, expiration_date, active, metadata, created_at, updated_at, category, creation_status, vouchers_generation_status, readonly, protected, category_id, categories, object, referral_program, loyalty_tiers_expiration, promotion, validation_rules_assignments
|
|
464
|
+
[id, name, description, campaign_type, type, voucher, auto_join, join_once, use_voucher_metadata_schema, validity_timeframe, validity_day_of_week, validity_hours, activity_duration_after_publishing, vouchers_count, start_date, expiration_date, active, metadata, created_at, updated_at, category, creation_status, vouchers_generation_status, readonly, protected, category_id, categories, object, referral_program, loyalty_tiers_expiration, access_settings_assignments, promotion, validation_rules_assignments].hash
|
|
465
465
|
end
|
|
466
466
|
|
|
467
467
|
# Builds the object from hash
|
data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_loyalty_card.rb
CHANGED
|
@@ -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 CampaignsVouchersCreateCombinedResponseBodyLoyaltyCard
|
|
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
|
|
@@ -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 CampaignsVouchersCreateResponseBodyLoyaltyCard
|
|
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
|
|
@@ -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).
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
17
|
class CustomerLoyalty
|
|
18
|
-
# Customer's loyalty points.
|
|
18
|
+
# Customer's loyalty points minus expired for all loyalty cards which the customer has.
|
|
19
19
|
attr_accessor :points
|
|
20
20
|
|
|
21
21
|
# Total number of customers referred by the customer.
|
|
@@ -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).
|
|
@@ -31,6 +31,8 @@ module VoucherifySdk
|
|
|
31
31
|
|
|
32
32
|
attr_accessor :loyalty_tier
|
|
33
33
|
|
|
34
|
+
attr_accessor :pending_points
|
|
35
|
+
|
|
34
36
|
attr_accessor :source
|
|
35
37
|
|
|
36
38
|
# The type of the object represented by JSON. Default is earning_rule.
|
|
@@ -96,6 +98,7 @@ module VoucherifySdk
|
|
|
96
98
|
:'custom_event' => :'custom_event',
|
|
97
99
|
:'segment' => :'segment',
|
|
98
100
|
:'loyalty_tier' => :'loyalty_tier',
|
|
101
|
+
:'pending_points' => :'pending_points',
|
|
99
102
|
:'source' => :'source',
|
|
100
103
|
:'object' => :'object',
|
|
101
104
|
:'automation_id' => :'automation_id',
|
|
@@ -126,6 +129,7 @@ module VoucherifySdk
|
|
|
126
129
|
:'custom_event' => :'EarningRuleCustomEvent',
|
|
127
130
|
:'segment' => :'EarningRuleSegment',
|
|
128
131
|
:'loyalty_tier' => :'EarningRuleLoyaltyTier',
|
|
132
|
+
:'pending_points' => :'EarningRulePendingPoints',
|
|
129
133
|
:'source' => :'EarningRuleSource',
|
|
130
134
|
:'object' => :'String',
|
|
131
135
|
:'automation_id' => :'String',
|
|
@@ -150,6 +154,7 @@ module VoucherifySdk
|
|
|
150
154
|
:'custom_event',
|
|
151
155
|
:'segment',
|
|
152
156
|
:'loyalty_tier',
|
|
157
|
+
:'pending_points',
|
|
153
158
|
:'source',
|
|
154
159
|
:'object',
|
|
155
160
|
:'automation_id',
|
|
@@ -198,6 +203,10 @@ module VoucherifySdk
|
|
|
198
203
|
self.loyalty_tier = attributes[:'loyalty_tier']
|
|
199
204
|
end
|
|
200
205
|
|
|
206
|
+
if attributes.key?(:'pending_points')
|
|
207
|
+
self.pending_points = attributes[:'pending_points']
|
|
208
|
+
end
|
|
209
|
+
|
|
201
210
|
if attributes.key?(:'source')
|
|
202
211
|
self.source = attributes[:'source']
|
|
203
212
|
end
|
|
@@ -280,6 +289,7 @@ module VoucherifySdk
|
|
|
280
289
|
custom_event == o.custom_event &&
|
|
281
290
|
segment == o.segment &&
|
|
282
291
|
loyalty_tier == o.loyalty_tier &&
|
|
292
|
+
pending_points == o.pending_points &&
|
|
283
293
|
source == o.source &&
|
|
284
294
|
object == o.object &&
|
|
285
295
|
automation_id == o.automation_id &&
|
|
@@ -303,7 +313,7 @@ module VoucherifySdk
|
|
|
303
313
|
# Calculates hash code according to all attributes.
|
|
304
314
|
# @return [Integer] Hash code
|
|
305
315
|
def hash
|
|
306
|
-
[id, created_at, loyalty, event, custom_event, segment, loyalty_tier, source, object, automation_id, start_date, expiration_date, validity_timeframe, validity_day_of_week, validity_hours, metadata, validation_rule_id, updated_at, active].hash
|
|
316
|
+
[id, created_at, loyalty, event, custom_event, segment, loyalty_tier, pending_points, source, object, automation_id, start_date, expiration_date, validity_timeframe, validity_day_of_week, validity_hours, metadata, validation_rule_id, updated_at, active].hash
|
|
307
317
|
end
|
|
308
318
|
|
|
309
319
|
# Builds the object from hash
|