talon_one 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +29 -9
- data/docs/AccountAnalytics.md +25 -19
- data/docs/AccountLimits.md +13 -13
- data/docs/AddLoyaltyPointsEffectProps.md +4 -2
- data/docs/Application.md +9 -1
- data/docs/ApplicationAPIKey.md +8 -6
- data/docs/ApplicationCustomer.md +3 -1
- data/docs/ApplicationSession.md +1 -1
- data/docs/Audience.md +27 -0
- data/docs/AudienceMembership.md +19 -0
- data/docs/Campaign.md +2 -0
- data/docs/CampaignAnalytics.md +9 -1
- data/docs/CampaignCopy.md +1 -1
- data/docs/CampaignGroup.md +31 -0
- data/docs/CampaignGroupEntity.md +17 -0
- data/docs/CreateApplicationAPIKey.md +3 -1
- data/docs/CustomerActivityReport.md +1 -1
- data/docs/CustomerInventory.md +2 -0
- data/docs/CustomerProfile.md +3 -1
- data/docs/CustomerProfileAudienceRequest.md +17 -0
- data/docs/CustomerProfileAudienceRequestItem.md +21 -0
- data/docs/CustomerProfileIntegrationRequestV2.md +19 -0
- data/docs/CustomerSession.md +1 -1
- data/docs/CustomerSessionV2.md +1 -1
- data/docs/EntityWithTalangVisibleID.md +19 -0
- data/docs/FeedNotification.md +27 -0
- data/docs/InlineResponse20012.md +3 -1
- data/docs/IntegrationApi.md +139 -18
- data/docs/IntegrationEntity.md +1 -1
- data/docs/LoyaltyLedgerEntry.md +2 -0
- data/docs/LoyaltyPoints.md +4 -2
- data/docs/LoyaltyProgram.md +3 -1
- data/docs/LoyaltyStatistics.md +23 -0
- data/docs/LoyaltySubLedger.md +18 -4
- data/docs/ManagementApi.md +75 -10
- data/docs/Meta.md +1 -1
- data/docs/MultipleCustomerProfileIntegrationRequest.md +17 -0
- data/docs/MultipleCustomerProfileIntegrationRequestItem.md +19 -0
- data/docs/MultipleCustomerProfileIntegrationResponseV2.md +17 -0
- data/docs/NewApplication.md +9 -1
- data/docs/NewApplicationAPIKey.md +7 -5
- data/docs/NewAudience.md +21 -0
- data/docs/NewCampaign.md +3 -1
- data/docs/NewCampaignGroup.md +23 -0
- data/docs/NewLoyaltyProgram.md +3 -1
- data/docs/Role.md +3 -1
- data/docs/SetDiscountEffectProps.md +3 -1
- data/docs/SetDiscountPerItemEffectProps.md +3 -1
- data/docs/UpdateApplication.md +10 -2
- data/docs/UpdateAudience.md +17 -0
- data/docs/UpdateCampaign.md +3 -1
- data/docs/UpdateCampaignGroup.md +23 -0
- data/docs/UpdateLoyaltyProgram.md +3 -1
- data/docs/UpdateUser.md +0 -4
- data/docs/UpdateUserLatestFeedTimestamp.md +17 -0
- data/docs/User.md +3 -5
- data/docs/UserFeedNotifications.md +19 -0
- data/lib/talon_one.rb +20 -3
- data/lib/talon_one/api/integration_api.rb +163 -25
- data/lib/talon_one/api/management_api.rb +86 -14
- data/lib/talon_one/api_client.rb +8 -6
- data/lib/talon_one/api_error.rb +1 -1
- data/lib/talon_one/configuration.rb +1 -1
- data/lib/talon_one/models/accept_coupon_effect_props.rb +1 -1
- data/lib/talon_one/models/accept_referral_effect_props.rb +1 -1
- data/lib/talon_one/models/access_log_entry.rb +1 -1
- data/lib/talon_one/models/account.rb +1 -1
- data/lib/talon_one/models/account_additional_cost.rb +1 -1
- data/lib/talon_one/models/account_analytics.rb +102 -57
- data/lib/talon_one/models/account_entity.rb +1 -1
- data/lib/talon_one/models/account_limits.rb +28 -23
- data/lib/talon_one/models/add_free_item_effect_props.rb +1 -1
- data/lib/talon_one/models/add_loyalty_points_effect_props.rb +19 -14
- data/lib/talon_one/models/additional_cost.rb +1 -1
- data/lib/talon_one/models/api_error.rb +1 -1
- data/lib/talon_one/models/application.rb +55 -3
- data/lib/talon_one/models/application_api_health.rb +1 -1
- data/lib/talon_one/models/application_api_key.rb +79 -34
- data/lib/talon_one/models/application_customer.rb +15 -3
- data/lib/talon_one/models/application_customer_entity.rb +1 -1
- data/lib/talon_one/models/application_customer_search.rb +1 -1
- data/lib/talon_one/models/application_entity.rb +1 -1
- data/lib/talon_one/models/application_event.rb +1 -1
- data/lib/talon_one/models/application_session.rb +2 -2
- data/lib/talon_one/models/application_session_entity.rb +1 -1
- data/lib/talon_one/models/attribute.rb +1 -1
- data/lib/talon_one/models/attributes_mandatory.rb +1 -1
- data/lib/talon_one/models/attributes_settings.rb +1 -1
- data/lib/talon_one/models/audience.rb +360 -0
- data/lib/talon_one/models/audience_membership.rb +227 -0
- data/lib/talon_one/models/base_saml_connection.rb +1 -1
- data/lib/talon_one/models/binding.rb +1 -1
- data/lib/talon_one/models/campaign.rb +14 -2
- data/lib/talon_one/models/campaign_analytics.rb +65 -5
- data/lib/talon_one/models/campaign_copy.rb +2 -2
- data/lib/talon_one/models/campaign_entity.rb +1 -1
- data/lib/talon_one/models/campaign_group.rb +326 -0
- data/lib/talon_one/models/campaign_group_entity.rb +209 -0
- data/lib/talon_one/models/campaign_search.rb +1 -1
- data/lib/talon_one/models/campaign_set.rb +1 -1
- data/lib/talon_one/models/campaign_set_branch_node.rb +1 -1
- data/lib/talon_one/models/campaign_set_leaf_node.rb +1 -1
- data/lib/talon_one/models/campaign_set_node.rb +1 -1
- data/lib/talon_one/models/cart_item.rb +1 -1
- data/lib/talon_one/models/cart_item_adjustment.rb +1 -1
- data/lib/talon_one/models/change.rb +1 -1
- data/lib/talon_one/models/change_profile_password.rb +1 -1
- data/lib/talon_one/models/code_generator_settings.rb +1 -1
- data/lib/talon_one/models/coupon.rb +1 -1
- data/lib/talon_one/models/coupon_constraints.rb +1 -1
- data/lib/talon_one/models/coupon_created_effect_props.rb +1 -1
- data/lib/talon_one/models/coupon_rejection_reason.rb +3 -3
- data/lib/talon_one/models/coupon_reservations.rb +1 -1
- data/lib/talon_one/models/coupon_search.rb +1 -1
- data/lib/talon_one/models/coupon_value.rb +1 -1
- data/lib/talon_one/models/create_application_api_key.rb +49 -5
- data/lib/talon_one/models/customer_activity_report.rb +2 -2
- data/lib/talon_one/models/customer_analytics.rb +1 -1
- data/lib/talon_one/models/customer_inventory.rb +11 -2
- data/lib/talon_one/models/customer_profile.rb +15 -3
- data/lib/talon_one/models/{misc_update_user_latest_feature.rb → customer_profile_audience_request.rb} +13 -11
- data/lib/talon_one/models/customer_profile_audience_request_item.rb +273 -0
- data/lib/talon_one/models/customer_profile_integration_request_v2.rb +242 -0
- data/lib/talon_one/models/customer_profile_search_query.rb +1 -1
- data/lib/talon_one/models/customer_session.rb +2 -2
- data/lib/talon_one/models/customer_session_v2.rb +2 -2
- data/lib/talon_one/models/deduct_loyalty_points_effect_props.rb +1 -1
- data/lib/talon_one/models/effect.rb +1 -1
- data/lib/talon_one/models/effect_entity.rb +1 -1
- data/lib/talon_one/models/email_entity.rb +1 -1
- data/lib/talon_one/models/entity.rb +1 -1
- data/lib/talon_one/models/entity_with_talang_visible_id.rb +227 -0
- data/lib/talon_one/models/environment.rb +1 -1
- data/lib/talon_one/models/error_effect_props.rb +1 -1
- data/lib/talon_one/models/error_response.rb +1 -1
- data/lib/talon_one/models/error_source.rb +1 -1
- data/lib/talon_one/models/event.rb +1 -1
- data/lib/talon_one/models/event_type.rb +1 -1
- data/lib/talon_one/models/export.rb +1 -1
- data/lib/talon_one/models/feature_flag.rb +1 -1
- data/lib/talon_one/models/feature_flags.rb +1 -1
- data/lib/talon_one/models/features_feed.rb +1 -1
- data/lib/talon_one/models/feed_notification.rb +322 -0
- data/lib/talon_one/models/func_arg_def.rb +1 -1
- data/lib/talon_one/models/function_def.rb +1 -1
- data/lib/talon_one/models/import.rb +1 -1
- data/lib/talon_one/models/import_coupons.rb +1 -1
- data/lib/talon_one/models/inline_response200.rb +1 -1
- data/lib/talon_one/models/inline_response2001.rb +1 -1
- data/lib/talon_one/models/inline_response20010.rb +1 -1
- data/lib/talon_one/models/inline_response20011.rb +1 -1
- data/lib/talon_one/models/inline_response20012.rb +11 -7
- data/lib/talon_one/models/inline_response20013.rb +1 -1
- data/lib/talon_one/models/inline_response20014.rb +1 -1
- data/lib/talon_one/models/inline_response20015.rb +1 -1
- data/lib/talon_one/models/inline_response20016.rb +1 -1
- data/lib/talon_one/models/inline_response20017.rb +1 -1
- data/lib/talon_one/models/inline_response20018.rb +1 -1
- data/lib/talon_one/models/inline_response20019.rb +1 -1
- data/lib/talon_one/models/inline_response2002.rb +1 -1
- data/lib/talon_one/models/inline_response20020.rb +1 -1
- data/lib/talon_one/models/inline_response20021.rb +1 -1
- data/lib/talon_one/models/inline_response20022.rb +1 -1
- data/lib/talon_one/models/inline_response20023.rb +1 -1
- data/lib/talon_one/models/inline_response20024.rb +1 -1
- data/lib/talon_one/models/inline_response20025.rb +1 -1
- data/lib/talon_one/models/inline_response20026.rb +1 -1
- data/lib/talon_one/models/inline_response20027.rb +1 -1
- data/lib/talon_one/models/inline_response20028.rb +1 -1
- data/lib/talon_one/models/inline_response20029.rb +1 -1
- data/lib/talon_one/models/inline_response2003.rb +1 -1
- data/lib/talon_one/models/inline_response20030.rb +1 -1
- data/lib/talon_one/models/inline_response2004.rb +1 -1
- data/lib/talon_one/models/inline_response2005.rb +1 -1
- data/lib/talon_one/models/inline_response2006.rb +1 -1
- data/lib/talon_one/models/inline_response2007.rb +1 -1
- data/lib/talon_one/models/inline_response2008.rb +1 -1
- data/lib/talon_one/models/inline_response2009.rb +1 -1
- data/lib/talon_one/models/integration_entity.rb +2 -2
- data/lib/talon_one/models/integration_event.rb +1 -1
- data/lib/talon_one/models/integration_profile_entity.rb +1 -1
- data/lib/talon_one/models/integration_request.rb +1 -1
- data/lib/talon_one/models/integration_state.rb +1 -1
- data/lib/talon_one/models/integration_state_v2.rb +1 -1
- data/lib/talon_one/models/ledger_entry.rb +1 -1
- data/lib/talon_one/models/library_attribute.rb +1 -1
- data/lib/talon_one/models/limit_config.rb +1 -1
- data/lib/talon_one/models/login_params.rb +1 -1
- data/lib/talon_one/models/loyalty.rb +1 -1
- data/lib/talon_one/models/loyalty_ledger.rb +1 -1
- data/lib/talon_one/models/loyalty_ledger_entry.rb +11 -2
- data/lib/talon_one/models/loyalty_membership.rb +1 -1
- data/lib/talon_one/models/loyalty_points.rb +19 -9
- data/lib/talon_one/models/loyalty_program.rb +18 -3
- data/lib/talon_one/models/loyalty_program_balance.rb +1 -1
- data/lib/talon_one/models/loyalty_program_ledgers.rb +1 -1
- data/lib/talon_one/models/loyalty_statistics.rb +258 -0
- data/lib/talon_one/models/loyalty_sub_ledger.rb +104 -7
- data/lib/talon_one/models/manager_config.rb +1 -1
- data/lib/talon_one/models/meta.rb +2 -1
- data/lib/talon_one/models/multi_application_entity.rb +1 -1
- data/lib/talon_one/models/multiple_customer_profile_integration_request.rb +208 -0
- data/lib/talon_one/models/multiple_customer_profile_integration_request_item.rb +223 -0
- data/lib/talon_one/models/{customer_profile_update.rb → multiple_customer_profile_integration_response_v2.rb} +13 -16
- data/lib/talon_one/models/mutable_entity.rb +1 -1
- data/lib/talon_one/models/new_account.rb +1 -1
- data/lib/talon_one/models/new_account_sign_up.rb +1 -1
- data/lib/talon_one/models/new_additional_cost.rb +1 -1
- data/lib/talon_one/models/new_application.rb +55 -3
- data/lib/talon_one/models/new_application_api_key.rb +76 -32
- data/lib/talon_one/models/new_attribute.rb +1 -1
- data/lib/talon_one/models/new_audience.rb +314 -0
- data/lib/talon_one/models/new_campaign.rb +17 -5
- data/lib/talon_one/models/new_campaign_group.rb +265 -0
- data/lib/talon_one/models/new_campaign_set.rb +1 -1
- data/lib/talon_one/models/new_coupons.rb +1 -1
- data/lib/talon_one/models/new_customer_profile.rb +1 -1
- data/lib/talon_one/models/new_customer_session.rb +1 -1
- data/lib/talon_one/models/new_customer_session_v2.rb +1 -1
- data/lib/talon_one/models/new_event.rb +1 -1
- data/lib/talon_one/models/new_event_type.rb +1 -1
- data/lib/talon_one/models/new_feature_flags.rb +1 -1
- data/lib/talon_one/models/new_import.rb +1 -1
- data/lib/talon_one/models/new_invitation.rb +1 -1
- data/lib/talon_one/models/new_invite_email.rb +1 -1
- data/lib/talon_one/models/new_loyalty_program.rb +18 -3
- data/lib/talon_one/models/new_password.rb +1 -1
- data/lib/talon_one/models/new_password_email.rb +1 -1
- data/lib/talon_one/models/new_referral.rb +1 -1
- data/lib/talon_one/models/new_role.rb +1 -1
- data/lib/talon_one/models/new_ruleset.rb +1 -1
- data/lib/talon_one/models/new_saml_connection.rb +1 -1
- data/lib/talon_one/models/new_template_def.rb +1 -1
- data/lib/talon_one/models/new_user.rb +1 -1
- data/lib/talon_one/models/new_webhook.rb +1 -1
- data/lib/talon_one/models/notification.rb +1 -1
- data/lib/talon_one/models/redeem_referral_effect_props.rb +1 -1
- data/lib/talon_one/models/referral.rb +1 -1
- data/lib/talon_one/models/referral_created_effect_props.rb +1 -1
- data/lib/talon_one/models/referral_rejection_reason.rb +3 -3
- data/lib/talon_one/models/reject_coupon_effect_props.rb +1 -1
- data/lib/talon_one/models/reject_referral_effect_props.rb +1 -1
- data/lib/talon_one/models/role.rb +14 -4
- data/lib/talon_one/models/role_assign.rb +1 -1
- data/lib/talon_one/models/role_membership.rb +1 -1
- data/lib/talon_one/models/rollback_coupon_effect_props.rb +1 -1
- data/lib/talon_one/models/rollback_discount_effect_props.rb +1 -1
- data/lib/talon_one/models/rule.rb +1 -1
- data/lib/talon_one/models/ruleset.rb +1 -1
- data/lib/talon_one/models/saml_connection.rb +1 -1
- data/lib/talon_one/models/saml_connection_metadata.rb +1 -1
- data/lib/talon_one/models/saml_login_endpoint.rb +1 -1
- data/lib/talon_one/models/session.rb +1 -1
- data/lib/talon_one/models/set_discount_effect_props.rb +16 -6
- data/lib/talon_one/models/set_discount_per_item_effect_props.rb +15 -5
- data/lib/talon_one/models/show_bundle_metadata_effect_props.rb +1 -1
- data/lib/talon_one/models/show_notification_effect_props.rb +1 -1
- data/lib/talon_one/models/slot_def.rb +1 -1
- data/lib/talon_one/models/template_arg_def.rb +1 -1
- data/lib/talon_one/models/template_def.rb +1 -1
- data/lib/talon_one/models/trigger_webhook_effect_props.rb +1 -1
- data/lib/talon_one/models/update_account.rb +1 -1
- data/lib/talon_one/models/update_application.rb +58 -6
- data/lib/talon_one/models/update_attribute_effect_props.rb +1 -1
- data/lib/talon_one/models/update_audience.rb +231 -0
- data/lib/talon_one/models/update_campaign.rb +17 -5
- data/lib/talon_one/models/update_campaign_group.rb +266 -0
- data/lib/talon_one/models/update_coupon.rb +1 -1
- data/lib/talon_one/models/update_coupon_batch.rb +1 -1
- data/lib/talon_one/models/update_loyalty_program.rb +13 -3
- data/lib/talon_one/models/update_role.rb +1 -1
- data/lib/talon_one/models/update_user.rb +2 -22
- data/lib/talon_one/models/update_user_latest_feed_timestamp.rb +213 -0
- data/lib/talon_one/models/user.rb +11 -26
- data/lib/talon_one/models/user_entity.rb +1 -1
- data/lib/talon_one/models/user_feed_notifications.rb +230 -0
- data/lib/talon_one/models/webhook.rb +1 -1
- data/lib/talon_one/models/webhook_activation_log_entry.rb +1 -1
- data/lib/talon_one/models/webhook_log_entry.rb +1 -1
- data/lib/talon_one/version.rb +2 -2
- data/spec/api/integration_api_spec.rb +36 -8
- data/spec/api/management_api_spec.rb +19 -3
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/accept_coupon_effect_props_spec.rb +1 -1
- data/spec/models/accept_referral_effect_props_spec.rb +1 -1
- data/spec/models/access_log_entry_spec.rb +1 -1
- data/spec/models/account_additional_cost_spec.rb +1 -1
- data/spec/models/account_analytics_spec.rb +27 -9
- data/spec/models/account_entity_spec.rb +1 -1
- data/spec/models/account_limits_spec.rb +7 -7
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/add_free_item_effect_props_spec.rb +1 -1
- data/spec/models/add_loyalty_points_effect_props_spec.rb +8 -2
- data/spec/models/additional_cost_spec.rb +1 -1
- data/spec/models/api_error_spec.rb +1 -1
- data/spec/models/application_api_health_spec.rb +1 -1
- data/spec/models/application_api_key_spec.rb +18 -8
- data/spec/models/application_customer_entity_spec.rb +1 -1
- data/spec/models/application_customer_search_spec.rb +1 -1
- data/spec/models/application_customer_spec.rb +7 -1
- data/spec/models/application_entity_spec.rb +1 -1
- data/spec/models/application_event_spec.rb +1 -1
- data/spec/models/application_session_entity_spec.rb +1 -1
- data/spec/models/application_session_spec.rb +1 -1
- data/spec/models/application_spec.rb +29 -1
- data/spec/models/attribute_spec.rb +1 -1
- data/spec/models/attributes_mandatory_spec.rb +1 -1
- data/spec/models/attributes_settings_spec.rb +1 -1
- data/spec/models/audience_membership_spec.rb +47 -0
- data/spec/models/audience_spec.rb +75 -0
- data/spec/models/base_saml_connection_spec.rb +1 -1
- data/spec/models/binding_spec.rb +1 -1
- data/spec/models/campaign_analytics_spec.rb +25 -1
- data/spec/models/campaign_copy_spec.rb +1 -1
- data/spec/models/campaign_entity_spec.rb +1 -1
- data/spec/models/{misc_update_user_latest_feature_spec.rb → campaign_group_entity_spec.rb} +8 -8
- data/spec/models/campaign_group_spec.rb +83 -0
- data/spec/models/campaign_search_spec.rb +1 -1
- data/spec/models/campaign_set_branch_node_spec.rb +1 -1
- data/spec/models/campaign_set_leaf_node_spec.rb +1 -1
- data/spec/models/campaign_set_node_spec.rb +1 -1
- data/spec/models/campaign_set_spec.rb +1 -1
- data/spec/models/campaign_spec.rb +7 -1
- data/spec/models/cart_item_adjustment_spec.rb +1 -1
- data/spec/models/cart_item_spec.rb +1 -1
- data/spec/models/change_profile_password_spec.rb +1 -1
- data/spec/models/change_spec.rb +1 -1
- data/spec/models/code_generator_settings_spec.rb +1 -1
- data/spec/models/coupon_constraints_spec.rb +1 -1
- data/spec/models/coupon_created_effect_props_spec.rb +1 -1
- data/spec/models/coupon_rejection_reason_spec.rb +2 -2
- data/spec/models/coupon_reservations_spec.rb +1 -1
- data/spec/models/coupon_search_spec.rb +1 -1
- data/spec/models/coupon_spec.rb +1 -1
- data/spec/models/coupon_value_spec.rb +1 -1
- data/spec/models/create_application_api_key_spec.rb +11 -1
- data/spec/models/customer_activity_report_spec.rb +1 -1
- data/spec/models/customer_analytics_spec.rb +1 -1
- data/spec/models/customer_inventory_spec.rb +7 -1
- data/spec/models/customer_profile_audience_request_item_spec.rb +57 -0
- data/spec/models/{customer_profile_update_spec.rb → customer_profile_audience_request_spec.rb} +8 -8
- data/spec/models/customer_profile_integration_request_v2_spec.rb +51 -0
- data/spec/models/customer_profile_search_query_spec.rb +1 -1
- data/spec/models/customer_profile_spec.rb +7 -1
- data/spec/models/customer_session_spec.rb +1 -1
- data/spec/models/customer_session_v2_spec.rb +1 -1
- data/spec/models/deduct_loyalty_points_effect_props_spec.rb +1 -1
- data/spec/models/effect_entity_spec.rb +1 -1
- data/spec/models/effect_spec.rb +1 -1
- data/spec/models/email_entity_spec.rb +1 -1
- data/spec/models/entity_spec.rb +1 -1
- data/spec/models/entity_with_talang_visible_id_spec.rb +47 -0
- data/spec/models/environment_spec.rb +1 -1
- data/spec/models/error_effect_props_spec.rb +1 -1
- data/spec/models/error_response_spec.rb +1 -1
- data/spec/models/error_source_spec.rb +1 -1
- data/spec/models/event_spec.rb +1 -1
- data/spec/models/event_type_spec.rb +1 -1
- data/spec/models/export_spec.rb +1 -1
- data/spec/models/feature_flag_spec.rb +1 -1
- data/spec/models/feature_flags_spec.rb +1 -1
- data/spec/models/features_feed_spec.rb +1 -1
- data/spec/models/feed_notification_spec.rb +75 -0
- data/spec/models/func_arg_def_spec.rb +1 -1
- data/spec/models/function_def_spec.rb +1 -1
- data/spec/models/import_coupons_spec.rb +1 -1
- data/spec/models/import_spec.rb +1 -1
- data/spec/models/inline_response20010_spec.rb +1 -1
- data/spec/models/inline_response20011_spec.rb +1 -1
- data/spec/models/inline_response20012_spec.rb +7 -1
- data/spec/models/inline_response20013_spec.rb +1 -1
- data/spec/models/inline_response20014_spec.rb +1 -1
- data/spec/models/inline_response20015_spec.rb +1 -1
- data/spec/models/inline_response20016_spec.rb +1 -1
- data/spec/models/inline_response20017_spec.rb +1 -1
- data/spec/models/inline_response20018_spec.rb +1 -1
- data/spec/models/inline_response20019_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response20020_spec.rb +1 -1
- data/spec/models/inline_response20021_spec.rb +1 -1
- data/spec/models/inline_response20022_spec.rb +1 -1
- data/spec/models/inline_response20023_spec.rb +1 -1
- data/spec/models/inline_response20024_spec.rb +1 -1
- data/spec/models/inline_response20025_spec.rb +1 -1
- data/spec/models/inline_response20026_spec.rb +1 -1
- data/spec/models/inline_response20027_spec.rb +1 -1
- data/spec/models/inline_response20028_spec.rb +1 -1
- data/spec/models/inline_response20029_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response20030_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/integration_entity_spec.rb +1 -1
- data/spec/models/integration_event_spec.rb +1 -1
- data/spec/models/integration_profile_entity_spec.rb +1 -1
- data/spec/models/integration_request_spec.rb +1 -1
- data/spec/models/integration_state_spec.rb +1 -1
- data/spec/models/integration_state_v2_spec.rb +1 -1
- data/spec/models/ledger_entry_spec.rb +1 -1
- data/spec/models/library_attribute_spec.rb +1 -1
- data/spec/models/limit_config_spec.rb +1 -1
- data/spec/models/login_params_spec.rb +1 -1
- data/spec/models/loyalty_ledger_entry_spec.rb +7 -1
- data/spec/models/loyalty_ledger_spec.rb +1 -1
- data/spec/models/loyalty_membership_spec.rb +1 -1
- data/spec/models/loyalty_points_spec.rb +8 -2
- data/spec/models/loyalty_program_balance_spec.rb +1 -1
- data/spec/models/loyalty_program_ledgers_spec.rb +1 -1
- data/spec/models/loyalty_program_spec.rb +7 -1
- data/spec/models/loyalty_spec.rb +1 -1
- data/spec/models/loyalty_statistics_spec.rb +59 -0
- data/spec/models/loyalty_sub_ledger_spec.rb +43 -1
- data/spec/models/manager_config_spec.rb +1 -1
- data/spec/models/meta_spec.rb +1 -1
- data/spec/models/multi_application_entity_spec.rb +1 -1
- data/spec/models/multiple_customer_profile_integration_request_item_spec.rb +47 -0
- data/spec/models/multiple_customer_profile_integration_request_spec.rb +41 -0
- data/spec/models/multiple_customer_profile_integration_response_v2_spec.rb +41 -0
- data/spec/models/mutable_entity_spec.rb +1 -1
- data/spec/models/new_account_sign_up_spec.rb +1 -1
- data/spec/models/new_account_spec.rb +1 -1
- data/spec/models/new_additional_cost_spec.rb +1 -1
- data/spec/models/new_application_api_key_spec.rb +18 -8
- data/spec/models/new_application_spec.rb +29 -1
- data/spec/models/new_attribute_spec.rb +1 -1
- data/spec/models/new_audience_spec.rb +57 -0
- data/spec/models/new_campaign_group_spec.rb +59 -0
- data/spec/models/new_campaign_set_spec.rb +1 -1
- data/spec/models/new_campaign_spec.rb +7 -1
- data/spec/models/new_coupons_spec.rb +1 -1
- data/spec/models/new_customer_profile_spec.rb +1 -1
- data/spec/models/new_customer_session_spec.rb +1 -1
- data/spec/models/new_customer_session_v2_spec.rb +1 -1
- data/spec/models/new_event_spec.rb +1 -1
- data/spec/models/new_event_type_spec.rb +1 -1
- data/spec/models/new_feature_flags_spec.rb +1 -1
- data/spec/models/new_import_spec.rb +1 -1
- data/spec/models/new_invitation_spec.rb +1 -1
- data/spec/models/new_invite_email_spec.rb +1 -1
- data/spec/models/new_loyalty_program_spec.rb +7 -1
- data/spec/models/new_password_email_spec.rb +1 -1
- data/spec/models/new_password_spec.rb +1 -1
- data/spec/models/new_referral_spec.rb +1 -1
- data/spec/models/new_role_spec.rb +1 -1
- data/spec/models/new_ruleset_spec.rb +1 -1
- data/spec/models/new_saml_connection_spec.rb +1 -1
- data/spec/models/new_template_def_spec.rb +1 -1
- data/spec/models/new_user_spec.rb +1 -1
- data/spec/models/new_webhook_spec.rb +1 -1
- data/spec/models/notification_spec.rb +1 -1
- data/spec/models/redeem_referral_effect_props_spec.rb +1 -1
- data/spec/models/referral_created_effect_props_spec.rb +1 -1
- data/spec/models/referral_rejection_reason_spec.rb +2 -2
- data/spec/models/referral_spec.rb +1 -1
- data/spec/models/reject_coupon_effect_props_spec.rb +1 -1
- data/spec/models/reject_referral_effect_props_spec.rb +1 -1
- data/spec/models/role_assign_spec.rb +1 -1
- data/spec/models/role_membership_spec.rb +1 -1
- data/spec/models/role_spec.rb +7 -1
- data/spec/models/rollback_coupon_effect_props_spec.rb +1 -1
- data/spec/models/rollback_discount_effect_props_spec.rb +1 -1
- data/spec/models/rule_spec.rb +1 -1
- data/spec/models/ruleset_spec.rb +1 -1
- data/spec/models/saml_connection_metadata_spec.rb +1 -1
- data/spec/models/saml_connection_spec.rb +1 -1
- data/spec/models/saml_login_endpoint_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/set_discount_effect_props_spec.rb +7 -1
- data/spec/models/set_discount_per_item_effect_props_spec.rb +7 -1
- data/spec/models/show_bundle_metadata_effect_props_spec.rb +1 -1
- data/spec/models/show_notification_effect_props_spec.rb +1 -1
- data/spec/models/slot_def_spec.rb +1 -1
- data/spec/models/template_arg_def_spec.rb +1 -1
- data/spec/models/template_def_spec.rb +1 -1
- data/spec/models/trigger_webhook_effect_props_spec.rb +1 -1
- data/spec/models/update_account_spec.rb +1 -1
- data/spec/models/update_application_spec.rb +29 -1
- data/spec/models/update_attribute_effect_props_spec.rb +1 -1
- data/spec/models/update_audience_spec.rb +41 -0
- data/spec/models/update_campaign_group_spec.rb +59 -0
- data/spec/models/update_campaign_spec.rb +7 -1
- data/spec/models/update_coupon_batch_spec.rb +1 -1
- data/spec/models/update_coupon_spec.rb +1 -1
- data/spec/models/update_loyalty_program_spec.rb +7 -1
- data/spec/models/update_role_spec.rb +1 -1
- data/spec/models/update_user_latest_feed_timestamp_spec.rb +41 -0
- data/spec/models/update_user_spec.rb +1 -13
- data/spec/models/user_entity_spec.rb +1 -1
- data/spec/models/user_feed_notifications_spec.rb +47 -0
- data/spec/models/user_spec.rb +2 -8
- data/spec/models/webhook_activation_log_entry_spec.rb +1 -1
- data/spec/models/webhook_log_entry_spec.rb +1 -1
- data/spec/models/webhook_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/talon_one.gemspec +1 -1
- metadata +78 -10
- data/docs/CustomerProfileUpdate.md +0 -17
- data/docs/MiscUpdateUserLatestFeature.md +0 -17
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,40 +14,40 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TalonOne
|
16
16
|
class AccountLimits
|
17
|
-
# Total
|
17
|
+
# Total number of allowed live applications in the account
|
18
18
|
attr_accessor :live_applications
|
19
19
|
|
20
|
-
# Total
|
20
|
+
# Total number of allowed sandbox applications in the account
|
21
21
|
attr_accessor :sandbox_applications
|
22
22
|
|
23
|
-
# Total
|
23
|
+
# Total number of allowed active campaigns in live applications in the account
|
24
24
|
attr_accessor :active_campaigns
|
25
25
|
|
26
|
-
# Total
|
26
|
+
# Total number of allowed coupons in the account
|
27
27
|
attr_accessor :coupons
|
28
28
|
|
29
|
-
# Total
|
29
|
+
# Total number of allowed referral codes in the account
|
30
30
|
attr_accessor :referral_codes
|
31
31
|
|
32
|
-
# Total
|
32
|
+
# Total number of allowed active rulesets in the account
|
33
|
+
attr_accessor :active_rules
|
34
|
+
|
35
|
+
# Total number of allowed live loyalty programs in the account
|
33
36
|
attr_accessor :live_loyalty_programs
|
34
37
|
|
35
|
-
# Total
|
38
|
+
# Total number of allowed sandbox loyalty programs in the account
|
36
39
|
attr_accessor :sandbox_loyalty_programs
|
37
40
|
|
38
|
-
# Total
|
41
|
+
# Total number of allowed webhooks in the account
|
39
42
|
attr_accessor :webhooks
|
40
43
|
|
41
|
-
# Total
|
44
|
+
# Total number of allowed users in the account
|
42
45
|
attr_accessor :users
|
43
46
|
|
44
|
-
#
|
47
|
+
# Allowed volume of API requests to the account
|
45
48
|
attr_accessor :api_volume
|
46
49
|
|
47
|
-
#
|
48
|
-
attr_accessor :active_rules
|
49
|
-
|
50
|
-
# array of rulesets where webhook is used
|
50
|
+
# Array of promotion types that are employed in the account
|
51
51
|
attr_accessor :promotion_types
|
52
52
|
|
53
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -58,12 +58,12 @@ module TalonOne
|
|
58
58
|
:'active_campaigns' => :'activeCampaigns',
|
59
59
|
:'coupons' => :'coupons',
|
60
60
|
:'referral_codes' => :'referralCodes',
|
61
|
+
:'active_rules' => :'activeRules',
|
61
62
|
:'live_loyalty_programs' => :'liveLoyaltyPrograms',
|
62
63
|
:'sandbox_loyalty_programs' => :'sandboxLoyaltyPrograms',
|
63
64
|
:'webhooks' => :'webhooks',
|
64
65
|
:'users' => :'users',
|
65
66
|
:'api_volume' => :'apiVolume',
|
66
|
-
:'active_rules' => :'activeRules',
|
67
67
|
:'promotion_types' => :'promotionTypes'
|
68
68
|
}
|
69
69
|
end
|
@@ -76,12 +76,12 @@ module TalonOne
|
|
76
76
|
:'active_campaigns' => :'Integer',
|
77
77
|
:'coupons' => :'Integer',
|
78
78
|
:'referral_codes' => :'Integer',
|
79
|
+
:'active_rules' => :'Integer',
|
79
80
|
:'live_loyalty_programs' => :'Integer',
|
80
81
|
:'sandbox_loyalty_programs' => :'Integer',
|
81
82
|
:'webhooks' => :'Integer',
|
82
83
|
:'users' => :'Integer',
|
83
84
|
:'api_volume' => :'Integer',
|
84
|
-
:'active_rules' => :'Integer',
|
85
85
|
:'promotion_types' => :'Array<String>'
|
86
86
|
}
|
87
87
|
end
|
@@ -127,6 +127,10 @@ module TalonOne
|
|
127
127
|
self.referral_codes = attributes[:'referral_codes']
|
128
128
|
end
|
129
129
|
|
130
|
+
if attributes.key?(:'active_rules')
|
131
|
+
self.active_rules = attributes[:'active_rules']
|
132
|
+
end
|
133
|
+
|
130
134
|
if attributes.key?(:'live_loyalty_programs')
|
131
135
|
self.live_loyalty_programs = attributes[:'live_loyalty_programs']
|
132
136
|
end
|
@@ -147,10 +151,6 @@ module TalonOne
|
|
147
151
|
self.api_volume = attributes[:'api_volume']
|
148
152
|
end
|
149
153
|
|
150
|
-
if attributes.key?(:'active_rules')
|
151
|
-
self.active_rules = attributes[:'active_rules']
|
152
|
-
end
|
153
|
-
|
154
154
|
if attributes.key?(:'promotion_types')
|
155
155
|
if (value = attributes[:'promotion_types']).is_a?(Array)
|
156
156
|
self.promotion_types = value
|
@@ -182,6 +182,10 @@ module TalonOne
|
|
182
182
|
invalid_properties.push('invalid value for "referral_codes", referral_codes cannot be nil.')
|
183
183
|
end
|
184
184
|
|
185
|
+
if @active_rules.nil?
|
186
|
+
invalid_properties.push('invalid value for "active_rules", active_rules cannot be nil.')
|
187
|
+
end
|
188
|
+
|
185
189
|
if @live_loyalty_programs.nil?
|
186
190
|
invalid_properties.push('invalid value for "live_loyalty_programs", live_loyalty_programs cannot be nil.')
|
187
191
|
end
|
@@ -217,6 +221,7 @@ module TalonOne
|
|
217
221
|
return false if @active_campaigns.nil?
|
218
222
|
return false if @coupons.nil?
|
219
223
|
return false if @referral_codes.nil?
|
224
|
+
return false if @active_rules.nil?
|
220
225
|
return false if @live_loyalty_programs.nil?
|
221
226
|
return false if @sandbox_loyalty_programs.nil?
|
222
227
|
return false if @webhooks.nil?
|
@@ -236,12 +241,12 @@ module TalonOne
|
|
236
241
|
active_campaigns == o.active_campaigns &&
|
237
242
|
coupons == o.coupons &&
|
238
243
|
referral_codes == o.referral_codes &&
|
244
|
+
active_rules == o.active_rules &&
|
239
245
|
live_loyalty_programs == o.live_loyalty_programs &&
|
240
246
|
sandbox_loyalty_programs == o.sandbox_loyalty_programs &&
|
241
247
|
webhooks == o.webhooks &&
|
242
248
|
users == o.users &&
|
243
249
|
api_volume == o.api_volume &&
|
244
|
-
active_rules == o.active_rules &&
|
245
250
|
promotion_types == o.promotion_types
|
246
251
|
end
|
247
252
|
|
@@ -254,7 +259,7 @@ module TalonOne
|
|
254
259
|
# Calculates hash code according to all attributes.
|
255
260
|
# @return [Integer] Hash code
|
256
261
|
def hash
|
257
|
-
[live_applications, sandbox_applications, active_campaigns, coupons, referral_codes, live_loyalty_programs, sandbox_loyalty_programs, webhooks, users, api_volume,
|
262
|
+
[live_applications, sandbox_applications, active_campaigns, coupons, referral_codes, active_rules, live_loyalty_programs, sandbox_loyalty_programs, webhooks, users, api_volume, promotion_types].hash
|
258
263
|
end
|
259
264
|
|
260
265
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,8 +30,11 @@ module TalonOne
|
|
30
30
|
# The user for whom these points were added
|
31
31
|
attr_accessor :recipient_integration_id
|
32
32
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
33
|
+
# Date after which points will be valid
|
34
|
+
attr_accessor :start_date
|
35
|
+
|
36
|
+
# Date after which points will expire
|
37
|
+
attr_accessor :expiry_date
|
35
38
|
|
36
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
40
|
def self.attribute_map
|
@@ -41,7 +44,8 @@ module TalonOne
|
|
41
44
|
:'sub_ledger_id' => :'subLedgerId',
|
42
45
|
:'value' => :'value',
|
43
46
|
:'recipient_integration_id' => :'recipientIntegrationId',
|
44
|
-
:'
|
47
|
+
:'start_date' => :'startDate',
|
48
|
+
:'expiry_date' => :'expiryDate'
|
45
49
|
}
|
46
50
|
end
|
47
51
|
|
@@ -53,7 +57,8 @@ module TalonOne
|
|
53
57
|
:'sub_ledger_id' => :'String',
|
54
58
|
:'value' => :'Float',
|
55
59
|
:'recipient_integration_id' => :'String',
|
56
|
-
:'
|
60
|
+
:'start_date' => :'DateTime',
|
61
|
+
:'expiry_date' => :'DateTime'
|
57
62
|
}
|
58
63
|
end
|
59
64
|
|
@@ -98,8 +103,12 @@ module TalonOne
|
|
98
103
|
self.recipient_integration_id = attributes[:'recipient_integration_id']
|
99
104
|
end
|
100
105
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
106
|
+
if attributes.key?(:'start_date')
|
107
|
+
self.start_date = attributes[:'start_date']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'expiry_date')
|
111
|
+
self.expiry_date = attributes[:'expiry_date']
|
103
112
|
end
|
104
113
|
end
|
105
114
|
|
@@ -127,10 +136,6 @@ module TalonOne
|
|
127
136
|
invalid_properties.push('invalid value for "recipient_integration_id", recipient_integration_id cannot be nil.')
|
128
137
|
end
|
129
138
|
|
130
|
-
if @expiry_condition.nil?
|
131
|
-
invalid_properties.push('invalid value for "expiry_condition", expiry_condition cannot be nil.')
|
132
|
-
end
|
133
|
-
|
134
139
|
invalid_properties
|
135
140
|
end
|
136
141
|
|
@@ -142,7 +147,6 @@ module TalonOne
|
|
142
147
|
return false if @sub_ledger_id.nil?
|
143
148
|
return false if @value.nil?
|
144
149
|
return false if @recipient_integration_id.nil?
|
145
|
-
return false if @expiry_condition.nil?
|
146
150
|
true
|
147
151
|
end
|
148
152
|
|
@@ -156,7 +160,8 @@ module TalonOne
|
|
156
160
|
sub_ledger_id == o.sub_ledger_id &&
|
157
161
|
value == o.value &&
|
158
162
|
recipient_integration_id == o.recipient_integration_id &&
|
159
|
-
|
163
|
+
start_date == o.start_date &&
|
164
|
+
expiry_date == o.expiry_date
|
160
165
|
end
|
161
166
|
|
162
167
|
# @see the `==` method
|
@@ -168,7 +173,7 @@ module TalonOne
|
|
168
173
|
# Calculates hash code according to all attributes.
|
169
174
|
# @return [Integer] Hash code
|
170
175
|
def hash
|
171
|
-
[name, program_id, sub_ledger_id, value, recipient_integration_id,
|
176
|
+
[name, program_id, sub_ledger_id, value, recipient_integration_id, start_date, expiry_date].hash
|
172
177
|
end
|
173
178
|
|
174
179
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -48,11 +48,23 @@ module TalonOne
|
|
48
48
|
# Default limits for campaigns created in this application
|
49
49
|
attr_accessor :limits
|
50
50
|
|
51
|
-
# Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive)
|
51
|
+
# Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\"
|
52
52
|
attr_accessor :campaign_priority
|
53
53
|
|
54
|
+
# The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\"
|
55
|
+
attr_accessor :exclusive_campaigns_strategy
|
56
|
+
|
57
|
+
# Flag indicating if discounts should cascade for this application
|
58
|
+
attr_accessor :enable_cascading_discounts
|
59
|
+
|
60
|
+
# Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one
|
61
|
+
attr_accessor :enable_flattened_cart_items
|
62
|
+
|
54
63
|
attr_accessor :attributes_settings
|
55
64
|
|
65
|
+
# Flag indicating if this is a live or sandbox application
|
66
|
+
attr_accessor :sandbox
|
67
|
+
|
56
68
|
# An array containing all the loyalty programs to which this application is subscribed
|
57
69
|
attr_accessor :loyalty_programs
|
58
70
|
|
@@ -93,7 +105,11 @@ module TalonOne
|
|
93
105
|
:'attributes' => :'attributes',
|
94
106
|
:'limits' => :'limits',
|
95
107
|
:'campaign_priority' => :'campaignPriority',
|
108
|
+
:'exclusive_campaigns_strategy' => :'exclusiveCampaignsStrategy',
|
109
|
+
:'enable_cascading_discounts' => :'enableCascadingDiscounts',
|
110
|
+
:'enable_flattened_cart_items' => :'enableFlattenedCartItems',
|
96
111
|
:'attributes_settings' => :'attributesSettings',
|
112
|
+
:'sandbox' => :'sandbox',
|
97
113
|
:'loyalty_programs' => :'loyaltyPrograms'
|
98
114
|
}
|
99
115
|
end
|
@@ -113,7 +129,11 @@ module TalonOne
|
|
113
129
|
:'attributes' => :'Object',
|
114
130
|
:'limits' => :'Array<LimitConfig>',
|
115
131
|
:'campaign_priority' => :'String',
|
132
|
+
:'exclusive_campaigns_strategy' => :'String',
|
133
|
+
:'enable_cascading_discounts' => :'Boolean',
|
134
|
+
:'enable_flattened_cart_items' => :'Boolean',
|
116
135
|
:'attributes_settings' => :'AttributesSettings',
|
136
|
+
:'sandbox' => :'Boolean',
|
117
137
|
:'loyalty_programs' => :'Array<LoyaltyProgram>'
|
118
138
|
}
|
119
139
|
end
|
@@ -189,10 +209,26 @@ module TalonOne
|
|
189
209
|
self.campaign_priority = attributes[:'campaign_priority']
|
190
210
|
end
|
191
211
|
|
212
|
+
if attributes.key?(:'exclusive_campaigns_strategy')
|
213
|
+
self.exclusive_campaigns_strategy = attributes[:'exclusive_campaigns_strategy']
|
214
|
+
end
|
215
|
+
|
216
|
+
if attributes.key?(:'enable_cascading_discounts')
|
217
|
+
self.enable_cascading_discounts = attributes[:'enable_cascading_discounts']
|
218
|
+
end
|
219
|
+
|
220
|
+
if attributes.key?(:'enable_flattened_cart_items')
|
221
|
+
self.enable_flattened_cart_items = attributes[:'enable_flattened_cart_items']
|
222
|
+
end
|
223
|
+
|
192
224
|
if attributes.key?(:'attributes_settings')
|
193
225
|
self.attributes_settings = attributes[:'attributes_settings']
|
194
226
|
end
|
195
227
|
|
228
|
+
if attributes.key?(:'sandbox')
|
229
|
+
self.sandbox = attributes[:'sandbox']
|
230
|
+
end
|
231
|
+
|
196
232
|
if attributes.key?(:'loyalty_programs')
|
197
233
|
if (value = attributes[:'loyalty_programs']).is_a?(Array)
|
198
234
|
self.loyalty_programs = value
|
@@ -268,6 +304,8 @@ module TalonOne
|
|
268
304
|
return false unless case_sensitivity_validator.valid?(@case_sensitivity)
|
269
305
|
campaign_priority_validator = EnumAttributeValidator.new('String', ["universal", "stackable", "exclusive"])
|
270
306
|
return false unless campaign_priority_validator.valid?(@campaign_priority)
|
307
|
+
exclusive_campaigns_strategy_validator = EnumAttributeValidator.new('String', ["listOrder", "lowestDiscount", "highestDiscount"])
|
308
|
+
return false unless exclusive_campaigns_strategy_validator.valid?(@exclusive_campaigns_strategy)
|
271
309
|
return false if @loyalty_programs.nil?
|
272
310
|
true
|
273
311
|
end
|
@@ -334,6 +372,16 @@ module TalonOne
|
|
334
372
|
@campaign_priority = campaign_priority
|
335
373
|
end
|
336
374
|
|
375
|
+
# Custom attribute writer method checking allowed values (enum).
|
376
|
+
# @param [Object] exclusive_campaigns_strategy Object to be assigned
|
377
|
+
def exclusive_campaigns_strategy=(exclusive_campaigns_strategy)
|
378
|
+
validator = EnumAttributeValidator.new('String', ["listOrder", "lowestDiscount", "highestDiscount"])
|
379
|
+
unless validator.valid?(exclusive_campaigns_strategy)
|
380
|
+
fail ArgumentError, "invalid value for \"exclusive_campaigns_strategy\", must be one of #{validator.allowable_values}."
|
381
|
+
end
|
382
|
+
@exclusive_campaigns_strategy = exclusive_campaigns_strategy
|
383
|
+
end
|
384
|
+
|
337
385
|
# Checks equality by comparing each attribute.
|
338
386
|
# @param [Object] Object to be compared
|
339
387
|
def ==(o)
|
@@ -351,7 +399,11 @@ module TalonOne
|
|
351
399
|
attributes == o.attributes &&
|
352
400
|
limits == o.limits &&
|
353
401
|
campaign_priority == o.campaign_priority &&
|
402
|
+
exclusive_campaigns_strategy == o.exclusive_campaigns_strategy &&
|
403
|
+
enable_cascading_discounts == o.enable_cascading_discounts &&
|
404
|
+
enable_flattened_cart_items == o.enable_flattened_cart_items &&
|
354
405
|
attributes_settings == o.attributes_settings &&
|
406
|
+
sandbox == o.sandbox &&
|
355
407
|
loyalty_programs == o.loyalty_programs
|
356
408
|
end
|
357
409
|
|
@@ -364,7 +416,7 @@ module TalonOne
|
|
364
416
|
# Calculates hash code according to all attributes.
|
365
417
|
# @return [Integer] Hash code
|
366
418
|
def hash
|
367
|
-
[id, created, modified, account_id, name, description, timezone, currency, case_sensitivity, attributes, limits, campaign_priority, attributes_settings, loyalty_programs].hash
|
419
|
+
[id, created, modified, account_id, name, description, timezone, currency, case_sensitivity, attributes, limits, campaign_priority, exclusive_campaigns_strategy, enable_cascading_discounts, enable_flattened_cart_items, attributes_settings, sandbox, loyalty_programs].hash
|
368
420
|
end
|
369
421
|
|
370
422
|
# Builds the object from hash
|
@@ -6,23 +6,30 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TalonOne
|
16
|
+
#
|
16
17
|
class ApplicationAPIKey
|
18
|
+
# Title for API Key
|
19
|
+
attr_accessor :title
|
20
|
+
|
21
|
+
# The date the API key expired
|
22
|
+
attr_accessor :expires
|
23
|
+
|
24
|
+
# Platform the API key is valid for.
|
25
|
+
attr_accessor :platform
|
26
|
+
|
17
27
|
# ID of the API Key
|
18
28
|
attr_accessor :id
|
19
29
|
|
20
30
|
# ID of user who created
|
21
31
|
attr_accessor :created_by
|
22
32
|
|
23
|
-
# Title for API Key
|
24
|
-
attr_accessor :title
|
25
|
-
|
26
33
|
# ID of account the key is used for
|
27
34
|
attr_accessor :account_id
|
28
35
|
|
@@ -32,32 +39,53 @@ module TalonOne
|
|
32
39
|
# The date the API key was created
|
33
40
|
attr_accessor :created
|
34
41
|
|
35
|
-
|
36
|
-
|
42
|
+
class EnumAttributeValidator
|
43
|
+
attr_reader :datatype
|
44
|
+
attr_reader :allowable_values
|
45
|
+
|
46
|
+
def initialize(datatype, allowable_values)
|
47
|
+
@allowable_values = allowable_values.map do |value|
|
48
|
+
case datatype.to_s
|
49
|
+
when /Integer/i
|
50
|
+
value.to_i
|
51
|
+
when /Float/i
|
52
|
+
value.to_f
|
53
|
+
else
|
54
|
+
value
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def valid?(value)
|
60
|
+
!value || allowable_values.include?(value)
|
61
|
+
end
|
62
|
+
end
|
37
63
|
|
38
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
65
|
def self.attribute_map
|
40
66
|
{
|
67
|
+
:'title' => :'title',
|
68
|
+
:'expires' => :'expires',
|
69
|
+
:'platform' => :'platform',
|
41
70
|
:'id' => :'id',
|
42
71
|
:'created_by' => :'createdBy',
|
43
|
-
:'title' => :'title',
|
44
72
|
:'account_id' => :'accountID',
|
45
73
|
:'application_id' => :'applicationID',
|
46
|
-
:'created' => :'created'
|
47
|
-
:'expires' => :'expires'
|
74
|
+
:'created' => :'created'
|
48
75
|
}
|
49
76
|
end
|
50
77
|
|
51
78
|
# Attribute type mapping.
|
52
79
|
def self.openapi_types
|
53
80
|
{
|
81
|
+
:'title' => :'String',
|
82
|
+
:'expires' => :'DateTime',
|
83
|
+
:'platform' => :'String',
|
54
84
|
:'id' => :'Integer',
|
55
85
|
:'created_by' => :'Integer',
|
56
|
-
:'title' => :'String',
|
57
86
|
:'account_id' => :'Integer',
|
58
87
|
:'application_id' => :'Integer',
|
59
|
-
:'created' => :'DateTime'
|
60
|
-
:'expires' => :'DateTime'
|
88
|
+
:'created' => :'DateTime'
|
61
89
|
}
|
62
90
|
end
|
63
91
|
|
@@ -82,6 +110,18 @@ module TalonOne
|
|
82
110
|
h[k.to_sym] = v
|
83
111
|
}
|
84
112
|
|
113
|
+
if attributes.key?(:'title')
|
114
|
+
self.title = attributes[:'title']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'expires')
|
118
|
+
self.expires = attributes[:'expires']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.key?(:'platform')
|
122
|
+
self.platform = attributes[:'platform']
|
123
|
+
end
|
124
|
+
|
85
125
|
if attributes.key?(:'id')
|
86
126
|
self.id = attributes[:'id']
|
87
127
|
end
|
@@ -90,10 +130,6 @@ module TalonOne
|
|
90
130
|
self.created_by = attributes[:'created_by']
|
91
131
|
end
|
92
132
|
|
93
|
-
if attributes.key?(:'title')
|
94
|
-
self.title = attributes[:'title']
|
95
|
-
end
|
96
|
-
|
97
133
|
if attributes.key?(:'account_id')
|
98
134
|
self.account_id = attributes[:'account_id']
|
99
135
|
end
|
@@ -105,16 +141,20 @@ module TalonOne
|
|
105
141
|
if attributes.key?(:'created')
|
106
142
|
self.created = attributes[:'created']
|
107
143
|
end
|
108
|
-
|
109
|
-
if attributes.key?(:'expires')
|
110
|
-
self.expires = attributes[:'expires']
|
111
|
-
end
|
112
144
|
end
|
113
145
|
|
114
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
115
147
|
# @return Array for valid properties with the reasons
|
116
148
|
def list_invalid_properties
|
117
149
|
invalid_properties = Array.new
|
150
|
+
if @title.nil?
|
151
|
+
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
152
|
+
end
|
153
|
+
|
154
|
+
if @expires.nil?
|
155
|
+
invalid_properties.push('invalid value for "expires", expires cannot be nil.')
|
156
|
+
end
|
157
|
+
|
118
158
|
if @id.nil?
|
119
159
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
120
160
|
end
|
@@ -123,10 +163,6 @@ module TalonOne
|
|
123
163
|
invalid_properties.push('invalid value for "created_by", created_by cannot be nil.')
|
124
164
|
end
|
125
165
|
|
126
|
-
if @title.nil?
|
127
|
-
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
128
|
-
end
|
129
|
-
|
130
166
|
if @account_id.nil?
|
131
167
|
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
132
168
|
end
|
@@ -139,38 +175,47 @@ module TalonOne
|
|
139
175
|
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
140
176
|
end
|
141
177
|
|
142
|
-
if @expires.nil?
|
143
|
-
invalid_properties.push('invalid value for "expires", expires cannot be nil.')
|
144
|
-
end
|
145
|
-
|
146
178
|
invalid_properties
|
147
179
|
end
|
148
180
|
|
149
181
|
# Check to see if the all the properties in the model are valid
|
150
182
|
# @return true if the model is valid
|
151
183
|
def valid?
|
184
|
+
return false if @title.nil?
|
185
|
+
return false if @expires.nil?
|
186
|
+
platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle"])
|
187
|
+
return false unless platform_validator.valid?(@platform)
|
152
188
|
return false if @id.nil?
|
153
189
|
return false if @created_by.nil?
|
154
|
-
return false if @title.nil?
|
155
190
|
return false if @account_id.nil?
|
156
191
|
return false if @application_id.nil?
|
157
192
|
return false if @created.nil?
|
158
|
-
return false if @expires.nil?
|
159
193
|
true
|
160
194
|
end
|
161
195
|
|
196
|
+
# Custom attribute writer method checking allowed values (enum).
|
197
|
+
# @param [Object] platform Object to be assigned
|
198
|
+
def platform=(platform)
|
199
|
+
validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle"])
|
200
|
+
unless validator.valid?(platform)
|
201
|
+
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
202
|
+
end
|
203
|
+
@platform = platform
|
204
|
+
end
|
205
|
+
|
162
206
|
# Checks equality by comparing each attribute.
|
163
207
|
# @param [Object] Object to be compared
|
164
208
|
def ==(o)
|
165
209
|
return true if self.equal?(o)
|
166
210
|
self.class == o.class &&
|
211
|
+
title == o.title &&
|
212
|
+
expires == o.expires &&
|
213
|
+
platform == o.platform &&
|
167
214
|
id == o.id &&
|
168
215
|
created_by == o.created_by &&
|
169
|
-
title == o.title &&
|
170
216
|
account_id == o.account_id &&
|
171
217
|
application_id == o.application_id &&
|
172
|
-
created == o.created
|
173
|
-
expires == o.expires
|
218
|
+
created == o.created
|
174
219
|
end
|
175
220
|
|
176
221
|
# @see the `==` method
|
@@ -182,7 +227,7 @@ module TalonOne
|
|
182
227
|
# Calculates hash code according to all attributes.
|
183
228
|
# @return [Integer] Hash code
|
184
229
|
def hash
|
185
|
-
[id, created_by,
|
230
|
+
[title, expires, platform, id, created_by, account_id, application_id, created].hash
|
186
231
|
end
|
187
232
|
|
188
233
|
# Builds the object from hash
|