voucherify 8.2.0 → 8.3.0
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 +17 -15
- data/Gemfile.lock +9 -9
- data/README.md +12 -0
- data/__tests__/lib/campaigns.rb +2 -2
- data/__tests__/spec/snapshots/campaigns/created_validation_rule_applicable_to.snap +1 -1
- data/__tests__/spec/snapshots/campaigns/created_validation_rule_more_than.snap +1 -1
- data/docs/AccessSettingsAssign.md +3 -3
- data/docs/AccessSettingsProductCollectionAssignmentsList.md +11 -0
- data/docs/AccessSettingsUnassign.md +3 -3
- data/docs/ApplicableTo.md +1 -1
- data/docs/AreaStoreProductCollectionAssignment.md +14 -0
- data/docs/Campaign.md +2 -2
- data/docs/CampaignBase.md +2 -2
- data/docs/CampaignsApi.md +4 -4
- data/docs/CampaignsCreateRequestBody.md +2 -2
- data/docs/CampaignsCreateResponseBody.md +2 -2
- data/docs/CampaignsGetResponseBody.md +2 -2
- data/docs/CampaignsUpdateRequestBody.md +2 -2
- data/docs/CampaignsUpdateResponseBody.md +2 -2
- data/docs/CardDailyReportEntry.md +3 -1
- data/docs/CardLifetimeBucketPoints.md +2 -0
- data/docs/CustomerLoyalty.md +2 -2
- data/docs/CustomerLoyaltyCampaignsEntry.md +1 -1
- data/docs/CustomersApi.md +4 -4
- data/docs/InapplicableTo.md +1 -1
- data/docs/LV2BenefitsApi.md +1 -1
- data/docs/LV2EarningRulesApi.md +1 -1
- data/docs/LV2ExamineApi.md +2 -2
- data/docs/LV2ProgramsApi.md +44 -44
- data/docs/LV2RewardsApi.md +1 -1
- data/docs/ListPublicationsItemVoucher.md +1 -1
- data/docs/LoyaltiesApi.md +6 -6
- data/docs/LoyaltiesCreateCampaignRequestBody.md +2 -2
- data/docs/LoyaltiesCreateCampaignResponseBody.md +2 -2
- data/docs/LoyaltiesGetCampaignResponseBody.md +2 -2
- data/docs/LoyaltiesListMembersResponseBody.md +1 -1
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyChannel.md +1 -1
- data/docs/LoyaltiesRewardAssignmentsGetResponseBody.md +2 -2
- data/docs/LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty.md +1 -1
- data/docs/LoyaltiesRewardAssignmentsRewardGetResponseBody.md +1 -1
- data/docs/LoyaltiesRewardsCreateAssignmentResponseBody.md +2 -2
- data/docs/LoyaltiesRewardsCreateAssignmentResponseBodyParametersLoyalty.md +1 -1
- data/docs/LoyaltiesRewardsGetResponseBody.md +2 -2
- data/docs/LoyaltiesRewardsGetResponseBodyParametersLoyalty.md +1 -1
- data/docs/LoyaltiesRewardsUpdateAssignmentRequestBodyParametersLoyalty.md +1 -1
- data/docs/LoyaltiesRewardsUpdateAssignmentResponseBody.md +2 -2
- data/docs/LoyaltiesRewardsUpdateAssignmentResponseBodyParametersLoyalty.md +1 -1
- data/docs/LoyaltiesTiersListResponseBody.md +1 -1
- data/docs/LoyaltiesUpdateCampaignRequestBody.md +2 -2
- data/docs/LoyaltiesUpdateCampaignResponseBody.md +2 -2
- data/docs/LoyaltyCampaign.md +2 -2
- data/docs/LoyaltyV2ActivityBenefitStockLimited.md +1 -1
- data/docs/LoyaltyV2ActivityEarningRuleEffectPointsExpirationCalendarExpirationDate.md +1 -1
- data/docs/LoyaltyV2ActivityEarningRuleEffectPointsExpirationRollingExpirationRounding.md +1 -1
- data/docs/LoyaltyV2ActivityEarningRulePointsProportionalEvery.md +1 -1
- data/docs/LoyaltyV2ActivityEarningRulePointsProportionalMetadata.md +1 -1
- data/docs/ManagementApi.md +2 -2
- data/docs/ManagementProjectsCreateRequestBodyUsersItem.md +2 -2
- data/docs/ManagementProjectsUsersAssignRequestBody.md +2 -2
- data/docs/MetadataSchemasApi.md +1 -1
- data/docs/ProductCollectionsApi.md +4 -4
- data/docs/ProductCollectionsCreateRequestBody.md +1 -0
- data/docs/ProductCollectionsCreateResponseBody.md +2 -0
- data/docs/ProductCollectionsGetResponseBody.md +2 -0
- data/docs/ProductCollectionsItem.md +2 -0
- data/docs/ProductCollectionsListResponseBody.md +1 -1
- data/docs/ProductsApi.md +1 -1
- data/docs/RedemptionChannel.md +1 -1
- data/docs/RedemptionRewardResult.md +1 -1
- data/docs/RedemptionRewardResultParametersCoin.md +1 -1
- data/docs/Reward.md +1 -1
- data/docs/RewardAssignment.md +2 -2
- data/docs/RewardAssignmentParametersLoyalty.md +1 -1
- data/docs/RewardType.md +1 -0
- data/docs/RewardTypeCoin.md +2 -2
- data/docs/RewardTypeLoyaltyPoints.md +11 -0
- data/docs/RewardsApi.md +5 -5
- data/docs/RewardsAssignmentsCreateRequestBody.md +2 -0
- data/docs/RewardsAssignmentsCreateRequestBodyParametersLoyalty.md +1 -1
- data/docs/RewardsAssignmentsCreateResponseBody.md +2 -2
- data/docs/RewardsAssignmentsCreateResponseBodyParametersLoyalty.md +1 -1
- data/docs/RewardsAssignmentsGetResponseBody.md +2 -2
- data/docs/RewardsAssignmentsGetResponseBodyParametersLoyalty.md +1 -1
- data/docs/RewardsAssignmentsUpdateRequestBodyParametersLoyalty.md +1 -1
- data/docs/RewardsAssignmentsUpdateResponseBody.md +2 -2
- data/docs/RewardsAssignmentsUpdateResponseBodyParametersLoyalty.md +1 -1
- data/docs/RewardsCreateRequestBody.md +1 -0
- data/docs/RewardsCreateRequestBodyParameters.md +1 -0
- data/docs/RewardsCreateRequestBodyParametersCoin.md +1 -1
- data/docs/RewardsCreateRequestBodyParametersLoyaltyPoints.md +11 -0
- data/docs/RewardsCreateResponseBody.md +1 -1
- data/docs/RewardsUpdateRequestBodyParameters.md +1 -0
- data/docs/RewardsUpdateRequestBodyParametersCoin.md +1 -1
- data/docs/RewardsUpdateRequestBodyParametersLoyaltyPoints.md +11 -0
- data/docs/RewardsUpdateResponseBody.md +1 -1
- data/docs/TemplatesApi.md +1 -1
- data/docs/TemplatesCampaignsCampaignSetupCreateRequestBody.md +2 -2
- data/docs/V2LoyaltiesBenefitsGetResponseBody.md +1 -1
- data/docs/V2LoyaltiesBenefitsGetResponseBodyPoints.md +1 -1
- data/docs/V2LoyaltiesBenefitsGetResponseBodyPointsProportional.md +2 -2
- data/docs/V2LoyaltiesEarningRulesGetResponseBody.md +1 -1
- data/docs/VouchersApi.md +6 -6
- data/lib/VoucherifySdk/api/campaigns_api.rb +6 -6
- data/lib/VoucherifySdk/api/customers_api.rb +4 -4
- data/lib/VoucherifySdk/api/loyalties_api.rb +8 -8
- data/lib/VoucherifySdk/api/lv2_benefits_api.rb +2 -2
- data/lib/VoucherifySdk/api/lv2_earning_rules_api.rb +2 -2
- data/lib/VoucherifySdk/api/lv2_examine_api.rb +4 -4
- data/lib/VoucherifySdk/api/lv2_programs_api.rb +88 -88
- data/lib/VoucherifySdk/api/lv2_rewards_api.rb +2 -2
- data/lib/VoucherifySdk/api/management_api.rb +4 -4
- data/lib/VoucherifySdk/api/metadata_schemas_api.rb +2 -2
- data/lib/VoucherifySdk/api/product_collections_api.rb +8 -8
- data/lib/VoucherifySdk/api/products_api.rb +2 -2
- data/lib/VoucherifySdk/api/rewards_api.rb +8 -8
- data/lib/VoucherifySdk/api/templates_api.rb +2 -2
- data/lib/VoucherifySdk/api/vouchers_api.rb +12 -12
- data/lib/VoucherifySdk/models/access_settings.rb +1 -1
- data/lib/VoucherifySdk/models/access_settings_assign.rb +4 -4
- data/lib/VoucherifySdk/models/access_settings_product_collection_assignments_list.rb +280 -0
- data/lib/VoucherifySdk/models/access_settings_unassign.rb +4 -4
- data/lib/VoucherifySdk/models/applicable_to.rb +1 -1
- data/lib/VoucherifySdk/models/area_store_product_collection_assignment.rb +302 -0
- data/lib/VoucherifySdk/models/benefit_points_proportional_custom_event_metadata.rb +1 -1
- data/lib/VoucherifySdk/models/benefit_points_proportional_customer_metadata.rb +1 -1
- data/lib/VoucherifySdk/models/benefit_points_proportional_order_amount.rb +1 -1
- data/lib/VoucherifySdk/models/benefit_points_proportional_order_metadata.rb +1 -1
- data/lib/VoucherifySdk/models/benefit_points_proportional_order_total_amount.rb +1 -1
- data/lib/VoucherifySdk/models/campaign.rb +2 -2
- data/lib/VoucherifySdk/models/campaign_base.rb +2 -2
- data/lib/VoucherifySdk/models/campaign_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/campaign_loyalty_card_expiration_rules.rb +1 -1
- data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +2 -2
- data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +2 -2
- data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/card_daily_report_entry.rb +24 -2
- data/lib/VoucherifySdk/models/card_lifetime_bucket_points.rb +31 -5
- data/lib/VoucherifySdk/models/card_transaction.rb +1 -1
- data/lib/VoucherifySdk/models/client_events_create_request_body_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/customer_loyalty.rb +3 -2
- data/lib/VoucherifySdk/models/customer_loyalty_campaigns_entry.rb +2 -2
- data/lib/VoucherifySdk/models/customer_summary_redemptions_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/earning_rule.rb +1 -0
- data/lib/VoucherifySdk/models/events_create_request_body_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/inapplicable_to.rb +1 -1
- data/lib/VoucherifySdk/models/list_publications_item_voucher.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_create_campaign_request_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_create_campaign_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_custom_event.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_segment.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_earning_rules_list_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body.rb +1 -0
- data/lib/VoucherifySdk/models/loyalties_get_campaign_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_list_campaigns_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_list_members_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_loyalty_tier_reward.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_members_create_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_members_get_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_channel.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_programs_members_benefits_transactions_list_request_query_benefit_id.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_reward_get_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_request_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_tiers_list_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_transfer_points.rb +1 -0
- data/lib/VoucherifySdk/models/loyalties_update_campaign_request_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_update_campaign_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalty_campaign.rb +3 -2
- data/lib/VoucherifySdk/models/loyalty_campaign_voucher.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_holder_loyalty_tier.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_loyalty_tier.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_member.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_member_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_pending_points_details_holder_loyalty_tier.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_tier.rb +1 -0
- data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_v2_activity_benefit_stock_limited.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_effect_points_expiration_calendar_expiration_date.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_effect_points_expiration_rolling_expiration_rounding.rb +2 -2
- data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_points_proportional_every.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_points_proportional_metadata.rb +1 -1
- data/lib/VoucherifySdk/models/management_projects_create_request_body_users_item.rb +2 -2
- data/lib/VoucherifySdk/models/management_projects_users_assign_request_body.rb +2 -2
- data/lib/VoucherifySdk/models/member_activity.rb +1 -1
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_campaign_type.rb +1 -1
- data/lib/VoucherifySdk/models/product_collections_create_request_body.rb +10 -1
- data/lib/VoucherifySdk/models/product_collections_create_response_body.rb +21 -1
- data/lib/VoucherifySdk/models/product_collections_get_response_body.rb +21 -1
- data/lib/VoucherifySdk/models/product_collections_item.rb +21 -1
- data/lib/VoucherifySdk/models/product_collections_list_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/redeemable_voucher_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/redemption_channel.rb +1 -1
- data/lib/VoucherifySdk/models/redemption_reward_result.rb +2 -2
- data/lib/VoucherifySdk/models/redemption_reward_result_parameters_coin.rb +2 -2
- data/lib/VoucherifySdk/models/redemption_voucher_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/reward.rb +2 -2
- data/lib/VoucherifySdk/models/reward_assignment.rb +3 -3
- data/lib/VoucherifySdk/models/reward_assignment_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/reward_type.rb +15 -5
- data/lib/VoucherifySdk/models/reward_type_coin.rb +3 -3
- data/lib/VoucherifySdk/models/reward_type_loyalty_points.rb +284 -0
- data/lib/VoucherifySdk/models/rewards_assignments_create_request_body.rb +50 -5
- data/lib/VoucherifySdk/models/rewards_assignments_create_request_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/rewards_assignments_create_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/rewards_assignments_create_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/rewards_assignments_get_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/rewards_assignments_get_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/rewards_assignments_update_request_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/rewards_assignments_update_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/rewards_assignments_update_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/rewards_create_request_body.rb +35 -1
- data/lib/VoucherifySdk/models/rewards_create_request_body_parameters.rb +15 -5
- data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_coin.rb +2 -2
- data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_loyalty_points.rb +284 -0
- data/lib/VoucherifySdk/models/rewards_create_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/rewards_update_request_body_parameters.rb +15 -5
- data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_coin.rb +2 -2
- data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_loyalty_points.rb +284 -0
- data/lib/VoucherifySdk/models/rewards_update_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/simple_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body.rb +2 -2
- data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body_points.rb +1 -1
- data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body_points_proportional.rb +3 -3
- data/lib/VoucherifySdk/models/v2_loyalties_earning_rules_get_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/voucher_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/voucher_transaction_details_holder_loyalty_tier.rb +1 -1
- data/lib/VoucherifySdk/models/voucher_transaction_details_loyalty_tier.rb +1 -1
- data/lib/VoucherifySdk/models/voucher_with_categories_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/vouchers_create_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/vouchers_disable_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/vouchers_enable_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/vouchers_get_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/vouchers_update_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/version.rb +1 -1
- data/lib/VoucherifySdk.rb +5 -0
- metadata +39 -29
|
@@ -33,7 +33,7 @@ module VoucherifySdk
|
|
|
33
33
|
# The metadata object stores all custom attributes assigned to the reward. A set of key/value pairs that you can attach to a reward object. It can be useful for storing additional information about the reward in a structured format.
|
|
34
34
|
attr_accessor :metadata
|
|
35
35
|
|
|
36
|
-
# Reward type.
|
|
36
|
+
# Reward type. `LOYALTY_POINTS` credits points on a `v2/loyalties` (loyalty hub) card (for example from a referral tier).
|
|
37
37
|
attr_accessor :type
|
|
38
38
|
|
|
39
39
|
attr_accessor :parameters
|
|
@@ -194,7 +194,7 @@ module VoucherifySdk
|
|
|
194
194
|
# @return true if the model is valid
|
|
195
195
|
def valid?
|
|
196
196
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
197
|
-
type_validator = EnumAttributeValidator.new('String', ["CAMPAIGN", "COIN", "MATERIAL"])
|
|
197
|
+
type_validator = EnumAttributeValidator.new('String', ["CAMPAIGN", "COIN", "MATERIAL", "LOYALTY_POINTS"])
|
|
198
198
|
return false unless type_validator.valid?(@type)
|
|
199
199
|
return false if @object.nil?
|
|
200
200
|
object_validator = EnumAttributeValidator.new('String', ["reward"])
|
|
@@ -31,10 +31,10 @@ module VoucherifySdk
|
|
|
31
31
|
# The type of the object represented by the JSON. This object stores information about the reward assignment.
|
|
32
32
|
attr_accessor :object
|
|
33
33
|
|
|
34
|
-
# Related object ID to which the reward was assigned.
|
|
34
|
+
# Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID.
|
|
35
35
|
attr_accessor :related_object_id
|
|
36
36
|
|
|
37
|
-
# Related object type to which the reward was assigned.
|
|
37
|
+
# Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier.
|
|
38
38
|
attr_accessor :related_object_type
|
|
39
39
|
|
|
40
40
|
attr_accessor :parameters
|
|
@@ -167,7 +167,7 @@ module VoucherifySdk
|
|
|
167
167
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
168
168
|
object_validator = EnumAttributeValidator.new('String', ["reward_assignment"])
|
|
169
169
|
return false unless object_validator.valid?(@object)
|
|
170
|
-
related_object_type_validator = EnumAttributeValidator.new('String', ["campaign"])
|
|
170
|
+
related_object_type_validator = EnumAttributeValidator.new('String', ["campaign", "referral_tier"])
|
|
171
171
|
return false unless related_object_type_validator.valid?(@related_object_type)
|
|
172
172
|
true
|
|
173
173
|
end
|
|
@@ -19,7 +19,7 @@ module VoucherifySdk
|
|
|
19
19
|
# The number of points required to redeem the reward.
|
|
20
20
|
attr_accessor :points
|
|
21
21
|
|
|
22
|
-
# Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`.
|
|
22
|
+
# Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`.
|
|
23
23
|
attr_accessor :auto_redeem
|
|
24
24
|
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -31,10 +31,10 @@ module VoucherifySdk
|
|
|
31
31
|
# The type of the object represented by the JSON. This object stores information about the reward assignment.
|
|
32
32
|
attr_accessor :object
|
|
33
33
|
|
|
34
|
-
# Related object ID to which the reward was assigned.
|
|
34
|
+
# Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID.
|
|
35
35
|
attr_accessor :related_object_id
|
|
36
36
|
|
|
37
|
-
# Related object type to which the reward was assigned.
|
|
37
|
+
# Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier.
|
|
38
38
|
attr_accessor :related_object_type
|
|
39
39
|
|
|
40
40
|
attr_accessor :parameters
|
|
@@ -167,7 +167,7 @@ module VoucherifySdk
|
|
|
167
167
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
168
168
|
object_validator = EnumAttributeValidator.new('String', ["reward_assignment"])
|
|
169
169
|
return false unless object_validator.valid?(@object)
|
|
170
|
-
related_object_type_validator = EnumAttributeValidator.new('String', ["campaign"])
|
|
170
|
+
related_object_type_validator = EnumAttributeValidator.new('String', ["campaign", "referral_tier"])
|
|
171
171
|
return false unless related_object_type_validator.valid?(@related_object_type)
|
|
172
172
|
true
|
|
173
173
|
end
|
|
@@ -19,7 +19,7 @@ module VoucherifySdk
|
|
|
19
19
|
# The number of points required to redeem the reward.
|
|
20
20
|
attr_accessor :points
|
|
21
21
|
|
|
22
|
-
# Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`.
|
|
22
|
+
# Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`.
|
|
23
23
|
attr_accessor :auto_redeem
|
|
24
24
|
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_request_body_parameters_loyalty.rb
CHANGED
|
@@ -19,7 +19,7 @@ module VoucherifySdk
|
|
|
19
19
|
# Defines how many points are required to obtain the reward.
|
|
20
20
|
attr_accessor :points
|
|
21
21
|
|
|
22
|
-
# Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`.
|
|
22
|
+
# Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`.
|
|
23
23
|
attr_accessor :auto_redeem
|
|
24
24
|
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -31,10 +31,10 @@ module VoucherifySdk
|
|
|
31
31
|
# The type of the object represented by the JSON. This object stores information about the reward assignment.
|
|
32
32
|
attr_accessor :object
|
|
33
33
|
|
|
34
|
-
# Related object ID to which the reward was assigned.
|
|
34
|
+
# Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID.
|
|
35
35
|
attr_accessor :related_object_id
|
|
36
36
|
|
|
37
|
-
# Related object type to which the reward was assigned.
|
|
37
|
+
# Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier.
|
|
38
38
|
attr_accessor :related_object_type
|
|
39
39
|
|
|
40
40
|
attr_accessor :parameters
|
|
@@ -167,7 +167,7 @@ module VoucherifySdk
|
|
|
167
167
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
168
168
|
object_validator = EnumAttributeValidator.new('String', ["reward_assignment"])
|
|
169
169
|
return false unless object_validator.valid?(@object)
|
|
170
|
-
related_object_type_validator = EnumAttributeValidator.new('String', ["campaign"])
|
|
170
|
+
related_object_type_validator = EnumAttributeValidator.new('String', ["campaign", "referral_tier"])
|
|
171
171
|
return false unless related_object_type_validator.valid?(@related_object_type)
|
|
172
172
|
true
|
|
173
173
|
end
|
|
@@ -19,7 +19,7 @@ module VoucherifySdk
|
|
|
19
19
|
# The number of points required to redeem the reward.
|
|
20
20
|
attr_accessor :points
|
|
21
21
|
|
|
22
|
-
# Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`.
|
|
22
|
+
# Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`.
|
|
23
23
|
attr_accessor :auto_redeem
|
|
24
24
|
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -22,7 +22,7 @@ module VoucherifySdk
|
|
|
22
22
|
# Identifies the name of the attribute that contains the array of loyalty tier objects.
|
|
23
23
|
attr_accessor :data_ref
|
|
24
24
|
|
|
25
|
-
# This is an object representing a loyalty tier. Loyalty tiers are used
|
|
25
|
+
# This is an object representing a loyalty tier. Loyalty tiers are used in a **legacy loyalty** campaign with different levels of membership and varied earning rules and rewards based on the customer's tiers.
|
|
26
26
|
attr_accessor :data
|
|
27
27
|
|
|
28
28
|
# Total number of loyalty tier objects.
|
|
@@ -14,6 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
+
# Request body for transferring points between **legacy loyalty** cards.
|
|
17
18
|
class LoyaltiesTransferPoints
|
|
18
19
|
# Unique loyalty card code from which the user wants to transfer loyalty points (source).
|
|
19
20
|
attr_accessor :code
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
-
# Request body schema for **PUT** `/loyalties/{campaignId}`.
|
|
17
|
+
# **Legacy loyalty.** Request body schema for **PUT** `/loyalties/{campaignId}`.
|
|
18
18
|
class LoyaltiesUpdateCampaignRequestBody
|
|
19
19
|
# Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is *inactive before* this date.
|
|
20
20
|
attr_accessor :start_date
|
|
@@ -49,10 +49,10 @@ module VoucherifySdk
|
|
|
49
49
|
# 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.
|
|
50
50
|
attr_accessor :activity_duration_after_publishing
|
|
51
51
|
|
|
52
|
-
# If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always `true` for loyalty campaigns and it cannot be changed in them.
|
|
52
|
+
# If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always `true` for **legacy loyalty** campaigns and it cannot be changed in them.
|
|
53
53
|
attr_accessor :join_once
|
|
54
54
|
|
|
55
|
-
# Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled.
|
|
55
|
+
# Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled.
|
|
56
56
|
attr_accessor :auto_join
|
|
57
57
|
|
|
58
58
|
# Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - `STATIC`: vouchers need to be manually published. If the `type` of the campaign is `STANDALONE`, the type cannot be changed. Also, the `type` cannot be changed to `STANDALONE`.
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
-
# Response body schema for **PUT** `/loyalties/{campaignId}`.
|
|
17
|
+
# **Legacy loyalty.** Response body schema for **PUT** `/loyalties/{campaignId}`.
|
|
18
18
|
class LoyaltiesUpdateCampaignResponseBody
|
|
19
19
|
# Unique campaign ID, assigned by Voucherify.
|
|
20
20
|
attr_accessor :id
|
|
@@ -33,10 +33,10 @@ module VoucherifySdk
|
|
|
33
33
|
|
|
34
34
|
attr_accessor :voucher
|
|
35
35
|
|
|
36
|
-
# Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled.
|
|
36
|
+
# Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled.
|
|
37
37
|
attr_accessor :auto_join
|
|
38
38
|
|
|
39
|
-
# Always set to `true` for loyalty campaigns, meaning customers can join the campaign only once. It can't be changed to `false`.
|
|
39
|
+
# Always set to `true` for **legacy loyalty** campaigns, meaning customers can join the campaign only once. It can't be changed to `false`.
|
|
40
40
|
attr_accessor :join_once
|
|
41
41
|
|
|
42
42
|
# Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema.
|
|
@@ -14,6 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
+
# Loyalty campaign object (**legacy loyalty**). Created and managed through `/v1/loyalties` and campaign endpoints with type `LOYALTY_PROGRAM`.
|
|
17
18
|
class LoyaltyCampaign
|
|
18
19
|
# Unique campaign ID, assigned by Voucherify.
|
|
19
20
|
attr_accessor :id
|
|
@@ -32,10 +33,10 @@ module VoucherifySdk
|
|
|
32
33
|
|
|
33
34
|
attr_accessor :voucher
|
|
34
35
|
|
|
35
|
-
# Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled.
|
|
36
|
+
# Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled.
|
|
36
37
|
attr_accessor :auto_join
|
|
37
38
|
|
|
38
|
-
# Always set to `true` for loyalty campaigns, meaning customers can join the campaign only once. It can't be changed to `false`.
|
|
39
|
+
# Always set to `true` for **legacy loyalty** campaigns, meaning customers can join the campaign only once. It can't be changed to `false`.
|
|
39
40
|
attr_accessor :join_once
|
|
40
41
|
|
|
41
42
|
# Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema.
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
-
#
|
|
17
|
+
# Legacy loyalty tier of the loyalty card holder at the moment when the transaction occurred. The loyalty tier is the tier in which the holder was before the loyalty point balance changed.
|
|
18
18
|
class LoyaltyCardTransactionDetailsHolderLoyaltyTier
|
|
19
19
|
# Unique identifier of the loyalty tier, assigned by Voucherify.
|
|
20
20
|
attr_accessor :id
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
-
# Contains information about the loyalty tier that is mapped for the earning rule and used in the transaction.
|
|
17
|
+
# Contains information about the legacy loyalty tier that is mapped for the earning rule and used in the transaction.
|
|
18
18
|
class LoyaltyCardTransactionDetailsLoyaltyTier
|
|
19
19
|
# Unique identifier of the loyalty tier, assigned by Voucherify.
|
|
20
20
|
attr_accessor :id
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
-
# This is an object representing a loyalty member.
|
|
17
|
+
# **Legacy loyalty.** This is an object representing a loyalty member.
|
|
18
18
|
class LoyaltyMember
|
|
19
19
|
# Assigned by the Voucherify API, identifies the voucher.
|
|
20
20
|
attr_accessor :id
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
-
# Object representing loyalty card parameters. Child attributes are present only if `type` is `LOYALTY_CARD`. Defaults to `null`.
|
|
17
|
+
# Object representing legacy loyalty card parameters. Child attributes are present only if `type` is `LOYALTY_CARD`. Defaults to `null`.
|
|
18
18
|
class LoyaltyMemberLoyaltyCard
|
|
19
19
|
# Total number of points added to the loyalty card over its lifespan.
|
|
20
20
|
attr_accessor :points
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
-
#
|
|
17
|
+
# Legacy loyalty tier of the loyalty card holder at the moment when the transaction occurred. The loyalty tier is the tier in which the holder was at the moment pending points were created.
|
|
18
18
|
class LoyaltyPendingPointsDetailsHolderLoyaltyTier
|
|
19
19
|
# Unique identifier of the loyalty tier, assigned by Voucherify.
|
|
20
20
|
attr_accessor :id
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
-
# Defines the Loyalty Tiers Expiration.
|
|
17
|
+
# **Legacy loyalty.** Defines the Loyalty Tiers Expiration.
|
|
18
18
|
class LoyaltyTiersExpirationAll
|
|
19
19
|
# Tier qualification. `BALANCE`: Points balance is based on the customer's current points balance. Customers qualify for the tier if their points balance is in the points range of the tier. `POINTS_IN_PERIOD`: A customer qualifies for the tier only if the sum of the accumulated points in a **defined time interval** reaches the tier threshold.
|
|
20
20
|
attr_accessor :qualification_type
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module VoucherifySdk
|
|
17
17
|
# Limited stock configuration.
|
|
18
18
|
class LoyaltyV2ActivityBenefitStockLimited
|
|
19
|
-
#
|
|
19
|
+
# Remaining stock quantity. On create, this is the starting quantity. Each benefit purchase decreases it by one.
|
|
20
20
|
attr_accessor :quantity
|
|
21
21
|
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -14,12 +14,12 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
-
# `value` is the month (1
|
|
17
|
+
# `value` is the month (1–12). Required when `type` is `END_OF_PARTICULAR_MONTH`. Absent for other rounding types. The API validates field combinations that this schema does not express.
|
|
18
18
|
class LoyaltyV2ActivityEarningRuleEffectPointsExpirationRollingExpirationRounding
|
|
19
19
|
# Rounding type.
|
|
20
20
|
attr_accessor :type
|
|
21
21
|
|
|
22
|
-
# Month number (1
|
|
22
|
+
# Month number (1–12). Present only when `type` is `END_OF_PARTICULAR_MONTH`.
|
|
23
23
|
attr_accessor :value
|
|
24
24
|
|
|
25
25
|
class EnumAttributeValidator
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module VoucherifySdk
|
|
17
17
|
# \"Every X gives Y points\" formula based on an amount.
|
|
18
18
|
class LoyaltyV2ActivityEarningRulePointsProportionalEvery
|
|
19
|
-
# The divisor
|
|
19
|
+
# The divisor - every this amount (e.g. in cents) awards `value` points.
|
|
20
20
|
attr_accessor :every
|
|
21
21
|
|
|
22
22
|
# Points awarded per `every` unit.
|
data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_points_proportional_metadata.rb
CHANGED
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module VoucherifySdk
|
|
17
17
|
# \"Every X gives Y points\" formula based on a numeric metadata property.
|
|
18
18
|
class LoyaltyV2ActivityEarningRulePointsProportionalMetadata
|
|
19
|
-
# The divisor
|
|
19
|
+
# The divisor - every this metadata value awards `value` points.
|
|
20
20
|
attr_accessor :every
|
|
21
21
|
|
|
22
22
|
# Points awarded per `every` unit.
|
|
@@ -16,10 +16,10 @@ require 'time'
|
|
|
16
16
|
module VoucherifySdk
|
|
17
17
|
# Contains details about the users who will be assigned to the project. Only the `id` and `role` or `login` and `role` should be provided in the request.
|
|
18
18
|
class ManagementProjectsCreateRequestBodyUsersItem
|
|
19
|
-
# The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member.
|
|
19
|
+
# The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member. Required with the `role` string. Do **not** use with the `login` string.
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
-
# The login data of the user who will be assigned to the project.
|
|
22
|
+
# The login data of the user who will be assigned to the project. Required with the `role` string. Do **not** use with the `id` string.
|
|
23
23
|
attr_accessor :login
|
|
24
24
|
|
|
25
25
|
# The role of the user to be added. It can be one of the following predefined roles: `ADMIN`, `USER`, `VIEWER`, `MERCHANT` or an ID of a custom role.
|
|
@@ -15,10 +15,10 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
17
|
class ManagementProjectsUsersAssignRequestBody
|
|
18
|
-
# The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member.
|
|
18
|
+
# The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member. Required with the `role` string. Do **not** use with the `login` string.
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
-
# The login data of the user who will be assigned to the project.
|
|
21
|
+
# The login data of the user who will be assigned to the project. Required with the `role` string. Do **not** use with the `id` string.
|
|
22
22
|
attr_accessor :login
|
|
23
23
|
|
|
24
24
|
# The role of the user to be added. It can be one of the following predefined roles: `ADMIN`, `USER`, `VIEWER`, `MERCHANT`, or an ID of a custom role.
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
-
# This is an object representing member activity. This is a general object which presents moments from members' activity. There are all types of different events that members perform during their journey once they participate in a loyalty
|
|
17
|
+
# This is an object representing member activity. This is a general object which presents moments from members' activity. There are all types of different events that members perform during their journey once they participate in a legacy loyalty campaign. Events describe moments when the members redeem loyalty cards and earn points or rewards. The list of all types of activities is listed below. The details describing the activity are collected in an array property named `data`. In this object, software integrators can find all further information explaining the event context.
|
|
18
18
|
class MemberActivity
|
|
19
19
|
# Unique event ID, assigned by Voucherify.
|
|
20
20
|
attr_accessor :id
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VoucherifySdk
|
|
17
|
-
# Type of the campaign. Allowed values: `DISCOUNT_COUPONS`, `REFERRAL_PROGRAM`, `GIFT_VOUCHERS`, `LOYALTY_PROGRAM`
|
|
17
|
+
# Type of the campaign. Allowed values: `DISCOUNT_COUPONS`, `REFERRAL_PROGRAM`, `GIFT_VOUCHERS`, `LOYALTY_PROGRAM` `LOYALTY_PROGRAM` is the campaign type for **legacy loyalty** (loyalty card campaigns). It does not refer to `v2/loyalties` programs.
|
|
18
18
|
class ParameterFiltersListCustomerRedeemablesCampaignType
|
|
19
19
|
attr_accessor :conditions
|
|
20
20
|
|
|
@@ -23,6 +23,8 @@ module VoucherifySdk
|
|
|
23
23
|
# Defines a set of products for a `STATIC` product collection type.
|
|
24
24
|
attr_accessor :products
|
|
25
25
|
|
|
26
|
+
attr_accessor :access_settings
|
|
27
|
+
|
|
26
28
|
# Defines a set of criteria and boundary conditions for an `AUTO_UPDATE` product collection type.
|
|
27
29
|
attr_accessor :filter
|
|
28
30
|
|
|
@@ -54,6 +56,7 @@ module VoucherifySdk
|
|
|
54
56
|
:'type' => :'type',
|
|
55
57
|
:'name' => :'name',
|
|
56
58
|
:'products' => :'products',
|
|
59
|
+
:'access_settings' => :'access_settings',
|
|
57
60
|
:'filter' => :'filter'
|
|
58
61
|
}
|
|
59
62
|
end
|
|
@@ -69,6 +72,7 @@ module VoucherifySdk
|
|
|
69
72
|
:'type' => :'String',
|
|
70
73
|
:'name' => :'String',
|
|
71
74
|
:'products' => :'Array<ProductCollectionsCreateRequestBodyProductsItem>',
|
|
75
|
+
:'access_settings' => :'AccessSettings',
|
|
72
76
|
:'filter' => :'Object'
|
|
73
77
|
}
|
|
74
78
|
end
|
|
@@ -105,6 +109,10 @@ module VoucherifySdk
|
|
|
105
109
|
end
|
|
106
110
|
end
|
|
107
111
|
|
|
112
|
+
if attributes.key?(:'access_settings')
|
|
113
|
+
self.access_settings = attributes[:'access_settings']
|
|
114
|
+
end
|
|
115
|
+
|
|
108
116
|
if attributes.key?(:'filter')
|
|
109
117
|
self.filter = attributes[:'filter']
|
|
110
118
|
end
|
|
@@ -135,6 +143,7 @@ module VoucherifySdk
|
|
|
135
143
|
type == o.type &&
|
|
136
144
|
name == o.name &&
|
|
137
145
|
products == o.products &&
|
|
146
|
+
access_settings == o.access_settings &&
|
|
138
147
|
filter == o.filter
|
|
139
148
|
end
|
|
140
149
|
|
|
@@ -147,7 +156,7 @@ module VoucherifySdk
|
|
|
147
156
|
# Calculates hash code according to all attributes.
|
|
148
157
|
# @return [Integer] Hash code
|
|
149
158
|
def hash
|
|
150
|
-
[type, name, products, filter].hash
|
|
159
|
+
[type, name, products, access_settings, filter].hash
|
|
151
160
|
end
|
|
152
161
|
|
|
153
162
|
# Builds the object from hash
|
|
@@ -34,6 +34,11 @@ module VoucherifySdk
|
|
|
34
34
|
# Timestamp representing the date and time when the product collection was created. The value is shown in the ISO 8601 format.
|
|
35
35
|
attr_accessor :created_at
|
|
36
36
|
|
|
37
|
+
# Indicates whether the product collection can only be read by the caller in the Areas and Stores enterprise feature. Returned only when area and store visibility rules apply to the caller. A read-only product collection can't be updated or deleted.
|
|
38
|
+
attr_accessor :readonly
|
|
39
|
+
|
|
40
|
+
attr_accessor :access_settings_assignments
|
|
41
|
+
|
|
37
42
|
# The type of the object represented by JSON. This object stores information about the static product collection.
|
|
38
43
|
attr_accessor :object
|
|
39
44
|
|
|
@@ -68,6 +73,8 @@ module VoucherifySdk
|
|
|
68
73
|
:'filter' => :'filter',
|
|
69
74
|
:'products' => :'products',
|
|
70
75
|
:'created_at' => :'created_at',
|
|
76
|
+
:'readonly' => :'readonly',
|
|
77
|
+
:'access_settings_assignments' => :'access_settings_assignments',
|
|
71
78
|
:'object' => :'object'
|
|
72
79
|
}
|
|
73
80
|
end
|
|
@@ -86,6 +93,8 @@ module VoucherifySdk
|
|
|
86
93
|
:'filter' => :'Object',
|
|
87
94
|
:'products' => :'Array<ProductCollectionsCreateResponseBodyProductsItem>',
|
|
88
95
|
:'created_at' => :'Time',
|
|
96
|
+
:'readonly' => :'Boolean',
|
|
97
|
+
:'access_settings_assignments' => :'AccessSettingsProductCollectionAssignmentsList',
|
|
89
98
|
:'object' => :'String'
|
|
90
99
|
}
|
|
91
100
|
end
|
|
@@ -99,6 +108,7 @@ module VoucherifySdk
|
|
|
99
108
|
:'filter',
|
|
100
109
|
:'products',
|
|
101
110
|
:'created_at',
|
|
111
|
+
:'readonly',
|
|
102
112
|
:'object'
|
|
103
113
|
])
|
|
104
114
|
end
|
|
@@ -137,6 +147,14 @@ module VoucherifySdk
|
|
|
137
147
|
self.created_at = attributes[:'created_at']
|
|
138
148
|
end
|
|
139
149
|
|
|
150
|
+
if attributes.key?(:'readonly')
|
|
151
|
+
self.readonly = attributes[:'readonly']
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'access_settings_assignments')
|
|
155
|
+
self.access_settings_assignments = attributes[:'access_settings_assignments']
|
|
156
|
+
end
|
|
157
|
+
|
|
140
158
|
if attributes.key?(:'object')
|
|
141
159
|
self.object = attributes[:'object']
|
|
142
160
|
else
|
|
@@ -174,6 +192,8 @@ module VoucherifySdk
|
|
|
174
192
|
filter == o.filter &&
|
|
175
193
|
products == o.products &&
|
|
176
194
|
created_at == o.created_at &&
|
|
195
|
+
readonly == o.readonly &&
|
|
196
|
+
access_settings_assignments == o.access_settings_assignments &&
|
|
177
197
|
object == o.object
|
|
178
198
|
end
|
|
179
199
|
|
|
@@ -186,7 +206,7 @@ module VoucherifySdk
|
|
|
186
206
|
# Calculates hash code according to all attributes.
|
|
187
207
|
# @return [Integer] Hash code
|
|
188
208
|
def hash
|
|
189
|
-
[id, name, type, filter, products, created_at, object].hash
|
|
209
|
+
[id, name, type, filter, products, created_at, readonly, access_settings_assignments, object].hash
|
|
190
210
|
end
|
|
191
211
|
|
|
192
212
|
# Builds the object from hash
|
|
@@ -34,6 +34,11 @@ module VoucherifySdk
|
|
|
34
34
|
# Timestamp representing the date and time when the product collection was created. The value is shown in the ISO 8601 format.
|
|
35
35
|
attr_accessor :created_at
|
|
36
36
|
|
|
37
|
+
# Indicates whether the product collection can only be read by the caller in the Areas and Stores enterprise feature. Returned only when area and store visibility rules apply to the caller. A read-only product collection can't be updated or deleted.
|
|
38
|
+
attr_accessor :readonly
|
|
39
|
+
|
|
40
|
+
attr_accessor :access_settings_assignments
|
|
41
|
+
|
|
37
42
|
# The type of the object represented by JSON. This object stores information about the static product collection.
|
|
38
43
|
attr_accessor :object
|
|
39
44
|
|
|
@@ -68,6 +73,8 @@ module VoucherifySdk
|
|
|
68
73
|
:'filter' => :'filter',
|
|
69
74
|
:'products' => :'products',
|
|
70
75
|
:'created_at' => :'created_at',
|
|
76
|
+
:'readonly' => :'readonly',
|
|
77
|
+
:'access_settings_assignments' => :'access_settings_assignments',
|
|
71
78
|
:'object' => :'object'
|
|
72
79
|
}
|
|
73
80
|
end
|
|
@@ -86,6 +93,8 @@ module VoucherifySdk
|
|
|
86
93
|
:'filter' => :'Object',
|
|
87
94
|
:'products' => :'Array<ProductCollectionsGetResponseBodyProductsItem>',
|
|
88
95
|
:'created_at' => :'Time',
|
|
96
|
+
:'readonly' => :'Boolean',
|
|
97
|
+
:'access_settings_assignments' => :'AccessSettingsProductCollectionAssignmentsList',
|
|
89
98
|
:'object' => :'String'
|
|
90
99
|
}
|
|
91
100
|
end
|
|
@@ -99,6 +108,7 @@ module VoucherifySdk
|
|
|
99
108
|
:'filter',
|
|
100
109
|
:'products',
|
|
101
110
|
:'created_at',
|
|
111
|
+
:'readonly',
|
|
102
112
|
:'object'
|
|
103
113
|
])
|
|
104
114
|
end
|
|
@@ -137,6 +147,14 @@ module VoucherifySdk
|
|
|
137
147
|
self.created_at = attributes[:'created_at']
|
|
138
148
|
end
|
|
139
149
|
|
|
150
|
+
if attributes.key?(:'readonly')
|
|
151
|
+
self.readonly = attributes[:'readonly']
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'access_settings_assignments')
|
|
155
|
+
self.access_settings_assignments = attributes[:'access_settings_assignments']
|
|
156
|
+
end
|
|
157
|
+
|
|
140
158
|
if attributes.key?(:'object')
|
|
141
159
|
self.object = attributes[:'object']
|
|
142
160
|
else
|
|
@@ -174,6 +192,8 @@ module VoucherifySdk
|
|
|
174
192
|
filter == o.filter &&
|
|
175
193
|
products == o.products &&
|
|
176
194
|
created_at == o.created_at &&
|
|
195
|
+
readonly == o.readonly &&
|
|
196
|
+
access_settings_assignments == o.access_settings_assignments &&
|
|
177
197
|
object == o.object
|
|
178
198
|
end
|
|
179
199
|
|
|
@@ -186,7 +206,7 @@ module VoucherifySdk
|
|
|
186
206
|
# Calculates hash code according to all attributes.
|
|
187
207
|
# @return [Integer] Hash code
|
|
188
208
|
def hash
|
|
189
|
-
[id, name, type, filter, products, created_at, object].hash
|
|
209
|
+
[id, name, type, filter, products, created_at, readonly, access_settings_assignments, object].hash
|
|
190
210
|
end
|
|
191
211
|
|
|
192
212
|
# Builds the object from hash
|