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,27 +6,27 @@
|
|
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
|
-
class
|
17
|
-
attr_accessor :
|
16
|
+
class MultipleCustomerProfileIntegrationResponseV2
|
17
|
+
attr_accessor :integration_states
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
20
|
def self.attribute_map
|
21
21
|
{
|
22
|
-
:'
|
22
|
+
:'integration_states' => :'integrationStates'
|
23
23
|
}
|
24
24
|
end
|
25
25
|
|
26
26
|
# Attribute type mapping.
|
27
27
|
def self.openapi_types
|
28
28
|
{
|
29
|
-
:'
|
29
|
+
:'integration_states' => :'Array<IntegrationStateV2>'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -40,19 +40,21 @@ module TalonOne
|
|
40
40
|
# @param [Hash] attributes Model attributes in the form of hash
|
41
41
|
def initialize(attributes = {})
|
42
42
|
if (!attributes.is_a?(Hash))
|
43
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TalonOne::
|
43
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TalonOne::MultipleCustomerProfileIntegrationResponseV2` initialize method"
|
44
44
|
end
|
45
45
|
|
46
46
|
# check to see if the attribute exists and convert string to symbol for hash key
|
47
47
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
48
48
|
if (!self.class.attribute_map.key?(k.to_sym))
|
49
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TalonOne::
|
49
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TalonOne::MultipleCustomerProfileIntegrationResponseV2`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
50
50
|
end
|
51
51
|
h[k.to_sym] = v
|
52
52
|
}
|
53
53
|
|
54
|
-
if attributes.key?(:'
|
55
|
-
|
54
|
+
if attributes.key?(:'integration_states')
|
55
|
+
if (value = attributes[:'integration_states']).is_a?(Array)
|
56
|
+
self.integration_states = value
|
57
|
+
end
|
56
58
|
end
|
57
59
|
end
|
58
60
|
|
@@ -60,17 +62,12 @@ module TalonOne
|
|
60
62
|
# @return Array for valid properties with the reasons
|
61
63
|
def list_invalid_properties
|
62
64
|
invalid_properties = Array.new
|
63
|
-
if @customer_profile.nil?
|
64
|
-
invalid_properties.push('invalid value for "customer_profile", customer_profile cannot be nil.')
|
65
|
-
end
|
66
|
-
|
67
65
|
invalid_properties
|
68
66
|
end
|
69
67
|
|
70
68
|
# Check to see if the all the properties in the model are valid
|
71
69
|
# @return true if the model is valid
|
72
70
|
def valid?
|
73
|
-
return false if @customer_profile.nil?
|
74
71
|
true
|
75
72
|
end
|
76
73
|
|
@@ -79,7 +76,7 @@ module TalonOne
|
|
79
76
|
def ==(o)
|
80
77
|
return true if self.equal?(o)
|
81
78
|
self.class == o.class &&
|
82
|
-
|
79
|
+
integration_states == o.integration_states
|
83
80
|
end
|
84
81
|
|
85
82
|
# @see the `==` method
|
@@ -91,7 +88,7 @@ module TalonOne
|
|
91
88
|
# Calculates hash code according to all attributes.
|
92
89
|
# @return [Integer] Hash code
|
93
90
|
def hash
|
94
|
-
[
|
91
|
+
[integration_states].hash
|
95
92
|
end
|
96
93
|
|
97
94
|
# 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
|
|
@@ -36,11 +36,23 @@ module TalonOne
|
|
36
36
|
# Default limits for campaigns created in this application
|
37
37
|
attr_accessor :limits
|
38
38
|
|
39
|
-
# Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive)
|
39
|
+
# 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\"
|
40
40
|
attr_accessor :campaign_priority
|
41
41
|
|
42
|
+
# 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\"
|
43
|
+
attr_accessor :exclusive_campaigns_strategy
|
44
|
+
|
45
|
+
# Flag indicating if discounts should cascade for this application
|
46
|
+
attr_accessor :enable_cascading_discounts
|
47
|
+
|
48
|
+
# Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one
|
49
|
+
attr_accessor :enable_flattened_cart_items
|
50
|
+
|
42
51
|
attr_accessor :attributes_settings
|
43
52
|
|
53
|
+
# Flag indicating if this is a live or sandbox application
|
54
|
+
attr_accessor :sandbox
|
55
|
+
|
44
56
|
# Hex key for HMAC-signing API calls as coming from this application (16 hex digits)
|
45
57
|
attr_accessor :key
|
46
58
|
|
@@ -77,7 +89,11 @@ module TalonOne
|
|
77
89
|
:'attributes' => :'attributes',
|
78
90
|
:'limits' => :'limits',
|
79
91
|
:'campaign_priority' => :'campaignPriority',
|
92
|
+
:'exclusive_campaigns_strategy' => :'exclusiveCampaignsStrategy',
|
93
|
+
:'enable_cascading_discounts' => :'enableCascadingDiscounts',
|
94
|
+
:'enable_flattened_cart_items' => :'enableFlattenedCartItems',
|
80
95
|
:'attributes_settings' => :'attributesSettings',
|
96
|
+
:'sandbox' => :'sandbox',
|
81
97
|
:'key' => :'key'
|
82
98
|
}
|
83
99
|
end
|
@@ -93,7 +109,11 @@ module TalonOne
|
|
93
109
|
:'attributes' => :'Object',
|
94
110
|
:'limits' => :'Array<LimitConfig>',
|
95
111
|
:'campaign_priority' => :'String',
|
112
|
+
:'exclusive_campaigns_strategy' => :'String',
|
113
|
+
:'enable_cascading_discounts' => :'Boolean',
|
114
|
+
:'enable_flattened_cart_items' => :'Boolean',
|
96
115
|
:'attributes_settings' => :'AttributesSettings',
|
116
|
+
:'sandbox' => :'Boolean',
|
97
117
|
:'key' => :'String'
|
98
118
|
}
|
99
119
|
end
|
@@ -153,10 +173,26 @@ module TalonOne
|
|
153
173
|
self.campaign_priority = attributes[:'campaign_priority']
|
154
174
|
end
|
155
175
|
|
176
|
+
if attributes.key?(:'exclusive_campaigns_strategy')
|
177
|
+
self.exclusive_campaigns_strategy = attributes[:'exclusive_campaigns_strategy']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.key?(:'enable_cascading_discounts')
|
181
|
+
self.enable_cascading_discounts = attributes[:'enable_cascading_discounts']
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes.key?(:'enable_flattened_cart_items')
|
185
|
+
self.enable_flattened_cart_items = attributes[:'enable_flattened_cart_items']
|
186
|
+
end
|
187
|
+
|
156
188
|
if attributes.key?(:'attributes_settings')
|
157
189
|
self.attributes_settings = attributes[:'attributes_settings']
|
158
190
|
end
|
159
191
|
|
192
|
+
if attributes.key?(:'sandbox')
|
193
|
+
self.sandbox = attributes[:'sandbox']
|
194
|
+
end
|
195
|
+
|
160
196
|
if attributes.key?(:'key')
|
161
197
|
self.key = attributes[:'key']
|
162
198
|
end
|
@@ -211,6 +247,8 @@ module TalonOne
|
|
211
247
|
return false unless case_sensitivity_validator.valid?(@case_sensitivity)
|
212
248
|
campaign_priority_validator = EnumAttributeValidator.new('String', ["universal", "stackable", "exclusive"])
|
213
249
|
return false unless campaign_priority_validator.valid?(@campaign_priority)
|
250
|
+
exclusive_campaigns_strategy_validator = EnumAttributeValidator.new('String', ["listOrder", "lowestDiscount", "highestDiscount"])
|
251
|
+
return false unless exclusive_campaigns_strategy_validator.valid?(@exclusive_campaigns_strategy)
|
214
252
|
return false if !@key.nil? && @key !~ Regexp.new(/^[a-fA-F0-9]{16}$/)
|
215
253
|
true
|
216
254
|
end
|
@@ -277,6 +315,16 @@ module TalonOne
|
|
277
315
|
@campaign_priority = campaign_priority
|
278
316
|
end
|
279
317
|
|
318
|
+
# Custom attribute writer method checking allowed values (enum).
|
319
|
+
# @param [Object] exclusive_campaigns_strategy Object to be assigned
|
320
|
+
def exclusive_campaigns_strategy=(exclusive_campaigns_strategy)
|
321
|
+
validator = EnumAttributeValidator.new('String', ["listOrder", "lowestDiscount", "highestDiscount"])
|
322
|
+
unless validator.valid?(exclusive_campaigns_strategy)
|
323
|
+
fail ArgumentError, "invalid value for \"exclusive_campaigns_strategy\", must be one of #{validator.allowable_values}."
|
324
|
+
end
|
325
|
+
@exclusive_campaigns_strategy = exclusive_campaigns_strategy
|
326
|
+
end
|
327
|
+
|
280
328
|
# Custom attribute writer method with validation
|
281
329
|
# @param [Object] key Value to be assigned
|
282
330
|
def key=(key)
|
@@ -301,7 +349,11 @@ module TalonOne
|
|
301
349
|
attributes == o.attributes &&
|
302
350
|
limits == o.limits &&
|
303
351
|
campaign_priority == o.campaign_priority &&
|
352
|
+
exclusive_campaigns_strategy == o.exclusive_campaigns_strategy &&
|
353
|
+
enable_cascading_discounts == o.enable_cascading_discounts &&
|
354
|
+
enable_flattened_cart_items == o.enable_flattened_cart_items &&
|
304
355
|
attributes_settings == o.attributes_settings &&
|
356
|
+
sandbox == o.sandbox &&
|
305
357
|
key == o.key
|
306
358
|
end
|
307
359
|
|
@@ -314,7 +366,7 @@ module TalonOne
|
|
314
366
|
# Calculates hash code according to all attributes.
|
315
367
|
# @return [Integer] Hash code
|
316
368
|
def hash
|
317
|
-
[name, description, timezone, currency, case_sensitivity, attributes, limits, campaign_priority, attributes_settings, key].hash
|
369
|
+
[name, description, timezone, currency, case_sensitivity, attributes, limits, campaign_priority, exclusive_campaigns_strategy, enable_cascading_discounts, enable_flattened_cart_items, attributes_settings, sandbox, key].hash
|
318
370
|
end
|
319
371
|
|
320
372
|
# 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
|
|
@@ -15,15 +15,21 @@ require 'date'
|
|
15
15
|
module TalonOne
|
16
16
|
#
|
17
17
|
class NewApplicationAPIKey
|
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
|
+
|
18
27
|
# ID of the API Key
|
19
28
|
attr_accessor :id
|
20
29
|
|
21
30
|
# ID of user who created
|
22
31
|
attr_accessor :created_by
|
23
32
|
|
24
|
-
# Title for API Key
|
25
|
-
attr_accessor :title
|
26
|
-
|
27
33
|
# ID of account the key is used for
|
28
34
|
attr_accessor :account_id
|
29
35
|
|
@@ -33,22 +39,42 @@ module TalonOne
|
|
33
39
|
# The date the API key was created
|
34
40
|
attr_accessor :created
|
35
41
|
|
36
|
-
# The date the API key expired
|
37
|
-
attr_accessor :expires
|
38
|
-
|
39
42
|
# Raw API Key
|
40
43
|
attr_accessor :key
|
41
44
|
|
45
|
+
class EnumAttributeValidator
|
46
|
+
attr_reader :datatype
|
47
|
+
attr_reader :allowable_values
|
48
|
+
|
49
|
+
def initialize(datatype, allowable_values)
|
50
|
+
@allowable_values = allowable_values.map do |value|
|
51
|
+
case datatype.to_s
|
52
|
+
when /Integer/i
|
53
|
+
value.to_i
|
54
|
+
when /Float/i
|
55
|
+
value.to_f
|
56
|
+
else
|
57
|
+
value
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def valid?(value)
|
63
|
+
!value || allowable_values.include?(value)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
42
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
68
|
def self.attribute_map
|
44
69
|
{
|
70
|
+
:'title' => :'title',
|
71
|
+
:'expires' => :'expires',
|
72
|
+
:'platform' => :'platform',
|
45
73
|
:'id' => :'id',
|
46
74
|
:'created_by' => :'createdBy',
|
47
|
-
:'title' => :'title',
|
48
75
|
:'account_id' => :'accountID',
|
49
76
|
:'application_id' => :'applicationID',
|
50
77
|
:'created' => :'created',
|
51
|
-
:'expires' => :'expires',
|
52
78
|
:'key' => :'key'
|
53
79
|
}
|
54
80
|
end
|
@@ -56,13 +82,14 @@ module TalonOne
|
|
56
82
|
# Attribute type mapping.
|
57
83
|
def self.openapi_types
|
58
84
|
{
|
85
|
+
:'title' => :'String',
|
86
|
+
:'expires' => :'DateTime',
|
87
|
+
:'platform' => :'String',
|
59
88
|
:'id' => :'Integer',
|
60
89
|
:'created_by' => :'Integer',
|
61
|
-
:'title' => :'String',
|
62
90
|
:'account_id' => :'Integer',
|
63
91
|
:'application_id' => :'Integer',
|
64
92
|
:'created' => :'DateTime',
|
65
|
-
:'expires' => :'DateTime',
|
66
93
|
:'key' => :'String'
|
67
94
|
}
|
68
95
|
end
|
@@ -88,6 +115,18 @@ module TalonOne
|
|
88
115
|
h[k.to_sym] = v
|
89
116
|
}
|
90
117
|
|
118
|
+
if attributes.key?(:'title')
|
119
|
+
self.title = attributes[:'title']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'expires')
|
123
|
+
self.expires = attributes[:'expires']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'platform')
|
127
|
+
self.platform = attributes[:'platform']
|
128
|
+
end
|
129
|
+
|
91
130
|
if attributes.key?(:'id')
|
92
131
|
self.id = attributes[:'id']
|
93
132
|
end
|
@@ -96,10 +135,6 @@ module TalonOne
|
|
96
135
|
self.created_by = attributes[:'created_by']
|
97
136
|
end
|
98
137
|
|
99
|
-
if attributes.key?(:'title')
|
100
|
-
self.title = attributes[:'title']
|
101
|
-
end
|
102
|
-
|
103
138
|
if attributes.key?(:'account_id')
|
104
139
|
self.account_id = attributes[:'account_id']
|
105
140
|
end
|
@@ -112,10 +147,6 @@ module TalonOne
|
|
112
147
|
self.created = attributes[:'created']
|
113
148
|
end
|
114
149
|
|
115
|
-
if attributes.key?(:'expires')
|
116
|
-
self.expires = attributes[:'expires']
|
117
|
-
end
|
118
|
-
|
119
150
|
if attributes.key?(:'key')
|
120
151
|
self.key = attributes[:'key']
|
121
152
|
end
|
@@ -125,6 +156,14 @@ module TalonOne
|
|
125
156
|
# @return Array for valid properties with the reasons
|
126
157
|
def list_invalid_properties
|
127
158
|
invalid_properties = Array.new
|
159
|
+
if @title.nil?
|
160
|
+
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
161
|
+
end
|
162
|
+
|
163
|
+
if @expires.nil?
|
164
|
+
invalid_properties.push('invalid value for "expires", expires cannot be nil.')
|
165
|
+
end
|
166
|
+
|
128
167
|
if @id.nil?
|
129
168
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
130
169
|
end
|
@@ -133,10 +172,6 @@ module TalonOne
|
|
133
172
|
invalid_properties.push('invalid value for "created_by", created_by cannot be nil.')
|
134
173
|
end
|
135
174
|
|
136
|
-
if @title.nil?
|
137
|
-
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
138
|
-
end
|
139
|
-
|
140
175
|
if @account_id.nil?
|
141
176
|
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
142
177
|
end
|
@@ -149,10 +184,6 @@ module TalonOne
|
|
149
184
|
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
150
185
|
end
|
151
186
|
|
152
|
-
if @expires.nil?
|
153
|
-
invalid_properties.push('invalid value for "expires", expires cannot be nil.')
|
154
|
-
end
|
155
|
-
|
156
187
|
if @key.nil?
|
157
188
|
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
158
189
|
end
|
@@ -163,29 +194,42 @@ module TalonOne
|
|
163
194
|
# Check to see if the all the properties in the model are valid
|
164
195
|
# @return true if the model is valid
|
165
196
|
def valid?
|
197
|
+
return false if @title.nil?
|
198
|
+
return false if @expires.nil?
|
199
|
+
platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle"])
|
200
|
+
return false unless platform_validator.valid?(@platform)
|
166
201
|
return false if @id.nil?
|
167
202
|
return false if @created_by.nil?
|
168
|
-
return false if @title.nil?
|
169
203
|
return false if @account_id.nil?
|
170
204
|
return false if @application_id.nil?
|
171
205
|
return false if @created.nil?
|
172
|
-
return false if @expires.nil?
|
173
206
|
return false if @key.nil?
|
174
207
|
true
|
175
208
|
end
|
176
209
|
|
210
|
+
# Custom attribute writer method checking allowed values (enum).
|
211
|
+
# @param [Object] platform Object to be assigned
|
212
|
+
def platform=(platform)
|
213
|
+
validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle"])
|
214
|
+
unless validator.valid?(platform)
|
215
|
+
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
216
|
+
end
|
217
|
+
@platform = platform
|
218
|
+
end
|
219
|
+
|
177
220
|
# Checks equality by comparing each attribute.
|
178
221
|
# @param [Object] Object to be compared
|
179
222
|
def ==(o)
|
180
223
|
return true if self.equal?(o)
|
181
224
|
self.class == o.class &&
|
225
|
+
title == o.title &&
|
226
|
+
expires == o.expires &&
|
227
|
+
platform == o.platform &&
|
182
228
|
id == o.id &&
|
183
229
|
created_by == o.created_by &&
|
184
|
-
title == o.title &&
|
185
230
|
account_id == o.account_id &&
|
186
231
|
application_id == o.application_id &&
|
187
232
|
created == o.created &&
|
188
|
-
expires == o.expires &&
|
189
233
|
key == o.key
|
190
234
|
end
|
191
235
|
|
@@ -198,7 +242,7 @@ module TalonOne
|
|
198
242
|
# Calculates hash code according to all attributes.
|
199
243
|
# @return [Integer] Hash code
|
200
244
|
def hash
|
201
|
-
[id, created_by,
|
245
|
+
[title, expires, platform, id, created_by, account_id, application_id, created, key].hash
|
202
246
|
end
|
203
247
|
|
204
248
|
# Builds the object from hash
|