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
data/docs/NewCampaign.md
CHANGED
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|
16
16
|
**coupon_settings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional]
|
17
17
|
**referral_settings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional]
|
18
18
|
**limits** | [**Array<LimitConfig>**](LimitConfig.md) | The set of limits that will operate for this campaign |
|
19
|
+
**campaign_groups** | **Array<Integer>** | The IDs of the campaign groups that own this entity. | [optional]
|
19
20
|
|
20
21
|
## Code Sample
|
21
22
|
|
@@ -33,7 +34,8 @@ instance = TalonOne::NewCampaign.new(name: null,
|
|
33
34
|
features: null,
|
34
35
|
coupon_settings: null,
|
35
36
|
referral_settings: null,
|
36
|
-
limits: null
|
37
|
+
limits: null,
|
38
|
+
campaign_groups: null)
|
37
39
|
```
|
38
40
|
|
39
41
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# TalonOne::NewCampaignGroup
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | The name of this campaign group. |
|
8
|
+
**description** | **String** | A longer description of the campaign group. | [optional]
|
9
|
+
**subscribed_applications_ids** | **Array<Integer>** | A list of the IDs of the applications that this campaign group is enabled for | [optional]
|
10
|
+
**campaign_ids** | **Array<Integer>** | A list of the IDs of the campaigns that this campaign group owns | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'TalonOne'
|
16
|
+
|
17
|
+
instance = TalonOne::NewCampaignGroup.new(name: null,
|
18
|
+
description: null,
|
19
|
+
subscribed_applications_ids: null,
|
20
|
+
campaign_ids: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
data/docs/NewLoyaltyProgram.md
CHANGED
@@ -8,7 +8,8 @@ Name | Type | Description | Notes
|
|
8
8
|
**title** | **String** | The display title for the Loyalty Program. |
|
9
9
|
**description** | **String** | Description of our Loyalty Program. | [optional]
|
10
10
|
**subscribed_applications** | **Array<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional]
|
11
|
-
**default_validity** | **String** | Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'
|
11
|
+
**default_validity** | **String** | Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'. |
|
12
|
+
**default_pending** | **String** | Indicates the default duration for the pending time, after which points will be valid. The format is a number followed by a duration unit, like '1h' or '40m'. |
|
12
13
|
**allow_subledger** | **Boolean** | Indicates if this program supports subledgers inside the program |
|
13
14
|
|
14
15
|
## Code Sample
|
@@ -21,6 +22,7 @@ instance = TalonOne::NewLoyaltyProgram.new(name: null,
|
|
21
22
|
description: null,
|
22
23
|
subscribed_applications: null,
|
23
24
|
default_validity: null,
|
25
|
+
default_pending: null,
|
24
26
|
allow_subledger: null)
|
25
27
|
```
|
26
28
|
|
data/docs/Role.md
CHANGED
@@ -6,10 +6,11 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**id** | **Integer** | The ID of the role corresponding to the DB row |
|
8
8
|
**account_id** | **Integer** | The ID of the Talon.One account that owns this role. |
|
9
|
+
**campaign_group_id** | **Integer** | The ID of the Campaign Group this role was created for. | [optional]
|
9
10
|
**name** | **String** | Name of the role | [optional]
|
10
11
|
**description** | **String** | Description of the role | [optional]
|
11
12
|
**members** | **Array<Integer>** | A list of user identifiers assigned to this role | [optional]
|
12
|
-
**acl** | **
|
13
|
+
**acl** | [**Object**](.md) | Role ACL Policy | [optional]
|
13
14
|
|
14
15
|
## Code Sample
|
15
16
|
|
@@ -18,6 +19,7 @@ require 'TalonOne'
|
|
18
19
|
|
19
20
|
instance = TalonOne::Role.new(id: null,
|
20
21
|
account_id: null,
|
22
|
+
campaign_group_id: null,
|
21
23
|
name: null,
|
22
24
|
description: null,
|
23
25
|
members: null,
|
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**name** | **String** | The name/description of this discount |
|
8
8
|
**value** | **Float** | The total monetary value of the discount |
|
9
|
+
**scope** | **String** | The scope which the discount was applied on, can be one of (cartItems,additionalCosts,sessionTotal) | [optional]
|
9
10
|
|
10
11
|
## Code Sample
|
11
12
|
|
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
|
|
13
14
|
require 'TalonOne'
|
14
15
|
|
15
16
|
instance = TalonOne::SetDiscountEffectProps.new(name: null,
|
16
|
-
value: null
|
17
|
+
value: null,
|
18
|
+
scope: null)
|
17
19
|
```
|
18
20
|
|
19
21
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**name** | **String** | The name/description of this discount |
|
8
8
|
**value** | **Float** | The total monetary value of the discount |
|
9
9
|
**position** | **Float** | The index of the item in the cart items list on which this discount should be applied |
|
10
|
+
**sub_position** | **Float** | The sub-index of the item in an item stack on which this discount should be applied | [optional]
|
10
11
|
|
11
12
|
## Code Sample
|
12
13
|
|
@@ -15,7 +16,8 @@ require 'TalonOne'
|
|
15
16
|
|
16
17
|
instance = TalonOne::SetDiscountPerItemEffectProps.new(name: null,
|
17
18
|
value: null,
|
18
|
-
position: null
|
19
|
+
position: null,
|
20
|
+
sub_position: null)
|
19
21
|
```
|
20
22
|
|
21
23
|
|
data/docs/UpdateApplication.md
CHANGED
@@ -11,8 +11,12 @@ Name | Type | Description | Notes
|
|
11
11
|
**case_sensitivity** | **String** | A string indicating how should campaigns in this application deal with case sensitivity on coupon codes. | [optional]
|
12
12
|
**attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign | [optional]
|
13
13
|
**limits** | [**Array<LimitConfig>**](LimitConfig.md) | Default limits for campaigns created in this application | [optional]
|
14
|
-
**campaign_priority** | **String** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive) | [optional]
|
14
|
+
**campaign_priority** | **String** | 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\" | [optional]
|
15
|
+
**exclusive_campaigns_strategy** | **String** | 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\" | [optional]
|
16
|
+
**enable_cascading_discounts** | **Boolean** | Flag indicating if discounts should cascade for this application | [optional]
|
17
|
+
**enable_flattened_cart_items** | **Boolean** | Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one | [optional]
|
15
18
|
**attributes_settings** | [**AttributesSettings**](AttributesSettings.md) | | [optional]
|
19
|
+
**sandbox** | **Boolean** | Flag indicating if this is a live or sandbox application | [optional]
|
16
20
|
|
17
21
|
## Code Sample
|
18
22
|
|
@@ -27,7 +31,11 @@ instance = TalonOne::UpdateApplication.new(name: null,
|
|
27
31
|
attributes: null,
|
28
32
|
limits: null,
|
29
33
|
campaign_priority: null,
|
30
|
-
|
34
|
+
exclusive_campaigns_strategy: null,
|
35
|
+
enable_cascading_discounts: null,
|
36
|
+
enable_flattened_cart_items: null,
|
37
|
+
attributes_settings: null,
|
38
|
+
sandbox: null)
|
31
39
|
```
|
32
40
|
|
33
41
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# TalonOne::UpdateAudience
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | The human-friendly display name for this Audience. |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'TalonOne'
|
13
|
+
|
14
|
+
instance = TalonOne::UpdateAudience.new(name: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/UpdateCampaign.md
CHANGED
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|
16
16
|
**coupon_settings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional]
|
17
17
|
**referral_settings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional]
|
18
18
|
**limits** | [**Array<LimitConfig>**](LimitConfig.md) | The set of limits that will operate for this campaign |
|
19
|
+
**campaign_groups** | **Array<Integer>** | The IDs of the campaign groups that own this entity. | [optional]
|
19
20
|
|
20
21
|
## Code Sample
|
21
22
|
|
@@ -33,7 +34,8 @@ instance = TalonOne::UpdateCampaign.new(name: null,
|
|
33
34
|
features: null,
|
34
35
|
coupon_settings: null,
|
35
36
|
referral_settings: null,
|
36
|
-
limits: null
|
37
|
+
limits: null,
|
38
|
+
campaign_groups: null)
|
37
39
|
```
|
38
40
|
|
39
41
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# TalonOne::UpdateCampaignGroup
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | The name of this campaign group. |
|
8
|
+
**description** | **String** | A longer description of the campaign group. | [optional]
|
9
|
+
**subscribed_applications_ids** | **Array<Integer>** | A list of the IDs of the applications that this campaign group is enabled for | [optional]
|
10
|
+
**campaign_ids** | **Array<Integer>** | A list of the IDs of the campaigns that this campaign group owns | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'TalonOne'
|
16
|
+
|
17
|
+
instance = TalonOne::UpdateCampaignGroup.new(name: null,
|
18
|
+
description: null,
|
19
|
+
subscribed_applications_ids: null,
|
20
|
+
campaign_ids: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -7,7 +7,8 @@ Name | Type | Description | Notes
|
|
7
7
|
**title** | **String** | The display title for the Loyalty Program. | [optional]
|
8
8
|
**description** | **String** | Description of our Loyalty Program. | [optional]
|
9
9
|
**subscribed_applications** | **Array<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional]
|
10
|
-
**default_validity** | **String** | Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'
|
10
|
+
**default_validity** | **String** | Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'. | [optional]
|
11
|
+
**default_pending** | **String** | Indicates the default duration for the pending time, after which points will be valid. The format is a number followed by a duration unit, like '1h' or '40m'. | [optional]
|
11
12
|
**allow_subledger** | **Boolean** | Indicates if this program supports subledgers inside the program | [optional]
|
12
13
|
|
13
14
|
## Code Sample
|
@@ -19,6 +20,7 @@ instance = TalonOne::UpdateLoyaltyProgram.new(title: null,
|
|
19
20
|
description: null,
|
20
21
|
subscribed_applications: null,
|
21
22
|
default_validity: null,
|
23
|
+
default_pending: null,
|
22
24
|
allow_subledger: null)
|
23
25
|
```
|
24
26
|
|
data/docs/UpdateUser.md
CHANGED
@@ -7,8 +7,6 @@ Name | Type | Description | Notes
|
|
7
7
|
**name** | **String** | Your name. | [optional]
|
8
8
|
**policy** | **String** | a blob of acl json | [optional]
|
9
9
|
**state** | **String** | New state (\"deactivated\" or \"active\") for the user. Only usable by admins for the user. | [optional]
|
10
|
-
**release_update** | **Boolean** | Update the user via email | [optional]
|
11
|
-
**latest_feature** | **String** | The latest feature you've been notified. | [optional]
|
12
10
|
**roles** | **Array<Integer>** | Update | [optional]
|
13
11
|
**application_notification_subscriptions** | [**Object**](.md) | | [optional]
|
14
12
|
|
@@ -20,8 +18,6 @@ require 'TalonOne'
|
|
20
18
|
instance = TalonOne::UpdateUser.new(name: null,
|
21
19
|
policy: null,
|
22
20
|
state: null,
|
23
|
-
release_update: null,
|
24
|
-
latest_feature: null,
|
25
21
|
roles: null,
|
26
22
|
application_notification_subscriptions: null)
|
27
23
|
```
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# TalonOne::UpdateUserLatestFeedTimestamp
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**new_latest_feed_timestamp** | **DateTime** | New timestamp to update for the current user |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'TalonOne'
|
13
|
+
|
14
|
+
instance = TalonOne::UpdateUserLatestFeedTimestamp.new(new_latest_feed_timestamp: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/User.md
CHANGED
@@ -12,9 +12,8 @@ Name | Type | Description | Notes
|
|
12
12
|
**invite_token** | **String** | Invite token, empty if the user as already accepted their invite. |
|
13
13
|
**state** | **String** | Current user state. |
|
14
14
|
**name** | **String** | Full name |
|
15
|
-
**policy** | **
|
16
|
-
**
|
17
|
-
**latest_feature** | **String** | Latest feature the user has been notified. | [optional]
|
15
|
+
**policy** | [**Object**](.md) | User ACL Policy |
|
16
|
+
**latest_feed_timestamp** | **DateTime** | Latest timestamp the user has been notified for feed. | [optional]
|
18
17
|
**roles** | **Array<Integer>** | Contains a list of all roles the user is a member of | [optional]
|
19
18
|
**application_notification_subscriptions** | [**Object**](.md) | | [optional]
|
20
19
|
**auth_method** | **String** | The Authentication method for this user | [optional]
|
@@ -33,8 +32,7 @@ instance = TalonOne::User.new(id: null,
|
|
33
32
|
state: null,
|
34
33
|
name: null,
|
35
34
|
policy: null,
|
36
|
-
|
37
|
-
latest_feature: null,
|
35
|
+
latest_feed_timestamp: null,
|
38
36
|
roles: null,
|
39
37
|
application_notification_subscriptions: null,
|
40
38
|
auth_method: null)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# TalonOne::UserFeedNotifications
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**last_update** | **DateTime** | Timestamp of the last request for this list |
|
8
|
+
**notifications** | [**Array<FeedNotification>**](FeedNotification.md) | List of all notifications to notify the user about |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'TalonOne'
|
14
|
+
|
15
|
+
instance = TalonOne::UserFeedNotifications.new(last_update: null,
|
16
|
+
notifications: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/lib/talon_one.rb
CHANGED
@@ -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
|
|
@@ -42,12 +42,16 @@ require 'talon_one/models/application_session_entity'
|
|
42
42
|
require 'talon_one/models/attribute'
|
43
43
|
require 'talon_one/models/attributes_mandatory'
|
44
44
|
require 'talon_one/models/attributes_settings'
|
45
|
+
require 'talon_one/models/audience'
|
46
|
+
require 'talon_one/models/audience_membership'
|
45
47
|
require 'talon_one/models/base_saml_connection'
|
46
48
|
require 'talon_one/models/binding'
|
47
49
|
require 'talon_one/models/campaign'
|
48
50
|
require 'talon_one/models/campaign_analytics'
|
49
51
|
require 'talon_one/models/campaign_copy'
|
50
52
|
require 'talon_one/models/campaign_entity'
|
53
|
+
require 'talon_one/models/campaign_group'
|
54
|
+
require 'talon_one/models/campaign_group_entity'
|
51
55
|
require 'talon_one/models/campaign_search'
|
52
56
|
require 'talon_one/models/campaign_set'
|
53
57
|
require 'talon_one/models/campaign_set_branch_node'
|
@@ -70,8 +74,10 @@ require 'talon_one/models/customer_activity_report'
|
|
70
74
|
require 'talon_one/models/customer_analytics'
|
71
75
|
require 'talon_one/models/customer_inventory'
|
72
76
|
require 'talon_one/models/customer_profile'
|
77
|
+
require 'talon_one/models/customer_profile_audience_request'
|
78
|
+
require 'talon_one/models/customer_profile_audience_request_item'
|
79
|
+
require 'talon_one/models/customer_profile_integration_request_v2'
|
73
80
|
require 'talon_one/models/customer_profile_search_query'
|
74
|
-
require 'talon_one/models/customer_profile_update'
|
75
81
|
require 'talon_one/models/customer_session'
|
76
82
|
require 'talon_one/models/customer_session_v2'
|
77
83
|
require 'talon_one/models/deduct_loyalty_points_effect_props'
|
@@ -79,6 +85,7 @@ require 'talon_one/models/effect'
|
|
79
85
|
require 'talon_one/models/effect_entity'
|
80
86
|
require 'talon_one/models/email_entity'
|
81
87
|
require 'talon_one/models/entity'
|
88
|
+
require 'talon_one/models/entity_with_talang_visible_id'
|
82
89
|
require 'talon_one/models/environment'
|
83
90
|
require 'talon_one/models/error_effect_props'
|
84
91
|
require 'talon_one/models/error_response'
|
@@ -89,6 +96,7 @@ require 'talon_one/models/export'
|
|
89
96
|
require 'talon_one/models/feature_flag'
|
90
97
|
require 'talon_one/models/feature_flags'
|
91
98
|
require 'talon_one/models/features_feed'
|
99
|
+
require 'talon_one/models/feed_notification'
|
92
100
|
require 'talon_one/models/func_arg_def'
|
93
101
|
require 'talon_one/models/function_def'
|
94
102
|
require 'talon_one/models/import'
|
@@ -142,11 +150,14 @@ require 'talon_one/models/loyalty_points'
|
|
142
150
|
require 'talon_one/models/loyalty_program'
|
143
151
|
require 'talon_one/models/loyalty_program_balance'
|
144
152
|
require 'talon_one/models/loyalty_program_ledgers'
|
153
|
+
require 'talon_one/models/loyalty_statistics'
|
145
154
|
require 'talon_one/models/loyalty_sub_ledger'
|
146
155
|
require 'talon_one/models/manager_config'
|
147
156
|
require 'talon_one/models/meta'
|
148
|
-
require 'talon_one/models/misc_update_user_latest_feature'
|
149
157
|
require 'talon_one/models/multi_application_entity'
|
158
|
+
require 'talon_one/models/multiple_customer_profile_integration_request'
|
159
|
+
require 'talon_one/models/multiple_customer_profile_integration_request_item'
|
160
|
+
require 'talon_one/models/multiple_customer_profile_integration_response_v2'
|
150
161
|
require 'talon_one/models/mutable_entity'
|
151
162
|
require 'talon_one/models/new_account'
|
152
163
|
require 'talon_one/models/new_account_sign_up'
|
@@ -154,7 +165,9 @@ require 'talon_one/models/new_additional_cost'
|
|
154
165
|
require 'talon_one/models/new_application'
|
155
166
|
require 'talon_one/models/new_application_api_key'
|
156
167
|
require 'talon_one/models/new_attribute'
|
168
|
+
require 'talon_one/models/new_audience'
|
157
169
|
require 'talon_one/models/new_campaign'
|
170
|
+
require 'talon_one/models/new_campaign_group'
|
158
171
|
require 'talon_one/models/new_campaign_set'
|
159
172
|
require 'talon_one/models/new_coupons'
|
160
173
|
require 'talon_one/models/new_customer_profile'
|
@@ -205,14 +218,18 @@ require 'talon_one/models/trigger_webhook_effect_props'
|
|
205
218
|
require 'talon_one/models/update_account'
|
206
219
|
require 'talon_one/models/update_application'
|
207
220
|
require 'talon_one/models/update_attribute_effect_props'
|
221
|
+
require 'talon_one/models/update_audience'
|
208
222
|
require 'talon_one/models/update_campaign'
|
223
|
+
require 'talon_one/models/update_campaign_group'
|
209
224
|
require 'talon_one/models/update_coupon'
|
210
225
|
require 'talon_one/models/update_coupon_batch'
|
211
226
|
require 'talon_one/models/update_loyalty_program'
|
212
227
|
require 'talon_one/models/update_role'
|
213
228
|
require 'talon_one/models/update_user'
|
229
|
+
require 'talon_one/models/update_user_latest_feed_timestamp'
|
214
230
|
require 'talon_one/models/user'
|
215
231
|
require 'talon_one/models/user_entity'
|
232
|
+
require 'talon_one/models/user_feed_notifications'
|
216
233
|
require 'talon_one/models/webhook'
|
217
234
|
require 'talon_one/models/webhook_activation_log_entry'
|
218
235
|
require 'talon_one/models/webhook_log_entry'
|
@@ -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
|
|
@@ -288,6 +288,7 @@ module TalonOne
|
|
288
288
|
# @option opts [Boolean] :profile optional flag to decide if you would like customer profile information in the response
|
289
289
|
# @option opts [Boolean] :referrals optional flag to decide if you would like referral information in the response
|
290
290
|
# @option opts [Boolean] :coupons optional flag to decide if you would like coupon information in the response
|
291
|
+
# @option opts [Boolean] :loyalty optional flag to decide if you would like loyalty information in the response
|
291
292
|
# @return [CustomerInventory]
|
292
293
|
def get_customer_inventory(integration_id, opts = {})
|
293
294
|
data, _status_code, _headers = get_customer_inventory_with_http_info(integration_id, opts)
|
@@ -301,6 +302,7 @@ module TalonOne
|
|
301
302
|
# @option opts [Boolean] :profile optional flag to decide if you would like customer profile information in the response
|
302
303
|
# @option opts [Boolean] :referrals optional flag to decide if you would like referral information in the response
|
303
304
|
# @option opts [Boolean] :coupons optional flag to decide if you would like coupon information in the response
|
305
|
+
# @option opts [Boolean] :loyalty optional flag to decide if you would like loyalty information in the response
|
304
306
|
# @return [Array<(CustomerInventory, Integer, Hash)>] CustomerInventory data, response status code and response headers
|
305
307
|
def get_customer_inventory_with_http_info(integration_id, opts = {})
|
306
308
|
if @api_client.config.debugging
|
@@ -318,6 +320,7 @@ module TalonOne
|
|
318
320
|
query_params[:'profile'] = opts[:'profile'] if !opts[:'profile'].nil?
|
319
321
|
query_params[:'referrals'] = opts[:'referrals'] if !opts[:'referrals'].nil?
|
320
322
|
query_params[:'coupons'] = opts[:'coupons'] if !opts[:'coupons'].nil?
|
323
|
+
query_params[:'loyalty'] = opts[:'loyalty'] if !opts[:'loyalty'].nil?
|
321
324
|
|
322
325
|
# header parameters
|
323
326
|
header_params = opts[:header_params] || {}
|
@@ -481,8 +484,8 @@ module TalonOne
|
|
481
484
|
return data, status_code, headers
|
482
485
|
end
|
483
486
|
|
484
|
-
# Update a Customer Profile
|
485
|
-
# Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons
|
487
|
+
# Update a Customer Profile V1
|
488
|
+
# ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons
|
486
489
|
# @param integration_id [String] The custom identifier for this profile, must be unique within the account.
|
487
490
|
# @param body [NewCustomerProfile]
|
488
491
|
# @param [Hash] opts the optional parameters
|
@@ -493,8 +496,8 @@ module TalonOne
|
|
493
496
|
data
|
494
497
|
end
|
495
498
|
|
496
|
-
# Update a Customer Profile
|
497
|
-
# Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons
|
499
|
+
# Update a Customer Profile V1
|
500
|
+
# ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons
|
498
501
|
# @param integration_id [String] The custom identifier for this profile, must be unique within the account.
|
499
502
|
# @param body [NewCustomerProfile]
|
500
503
|
# @param [Hash] opts the optional parameters
|
@@ -554,40 +557,108 @@ module TalonOne
|
|
554
557
|
return data, status_code, headers
|
555
558
|
end
|
556
559
|
|
560
|
+
# Update a Customer Profile Audiences
|
561
|
+
# Update one ore multiple Customer Profiles with the specified Audiences
|
562
|
+
# @param body [CustomerProfileAudienceRequest]
|
563
|
+
# @param [Hash] opts the optional parameters
|
564
|
+
# @return [nil]
|
565
|
+
def update_customer_profile_audiences(body, opts = {})
|
566
|
+
update_customer_profile_audiences_with_http_info(body, opts)
|
567
|
+
nil
|
568
|
+
end
|
569
|
+
|
570
|
+
# Update a Customer Profile Audiences
|
571
|
+
# Update one ore multiple Customer Profiles with the specified Audiences
|
572
|
+
# @param body [CustomerProfileAudienceRequest]
|
573
|
+
# @param [Hash] opts the optional parameters
|
574
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
575
|
+
def update_customer_profile_audiences_with_http_info(body, opts = {})
|
576
|
+
if @api_client.config.debugging
|
577
|
+
@api_client.config.logger.debug 'Calling API: IntegrationApi.update_customer_profile_audiences ...'
|
578
|
+
end
|
579
|
+
# verify the required parameter 'body' is set
|
580
|
+
if @api_client.config.client_side_validation && body.nil?
|
581
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling IntegrationApi.update_customer_profile_audiences"
|
582
|
+
end
|
583
|
+
# resource path
|
584
|
+
local_var_path = '/v2/customer_audiences'
|
585
|
+
|
586
|
+
# query parameters
|
587
|
+
query_params = opts[:query_params] || {}
|
588
|
+
|
589
|
+
# header parameters
|
590
|
+
header_params = opts[:header_params] || {}
|
591
|
+
# HTTP header 'Content-Type'
|
592
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
593
|
+
|
594
|
+
# form parameters
|
595
|
+
form_params = opts[:form_params] || {}
|
596
|
+
|
597
|
+
# http body (model)
|
598
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
599
|
+
|
600
|
+
# return_type
|
601
|
+
return_type = opts[:return_type]
|
602
|
+
|
603
|
+
# auth_names
|
604
|
+
auth_names = opts[:auth_names] || ['api_key_v1']
|
605
|
+
|
606
|
+
new_options = opts.merge(
|
607
|
+
:header_params => header_params,
|
608
|
+
:query_params => query_params,
|
609
|
+
:form_params => form_params,
|
610
|
+
:body => post_body,
|
611
|
+
:auth_names => auth_names,
|
612
|
+
:return_type => return_type
|
613
|
+
)
|
614
|
+
|
615
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
616
|
+
if @api_client.config.debugging
|
617
|
+
@api_client.config.logger.debug "API called: IntegrationApi#update_customer_profile_audiences\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
618
|
+
end
|
619
|
+
return data, status_code, headers
|
620
|
+
end
|
621
|
+
|
557
622
|
# Update a Customer Profile
|
558
|
-
# Update (or create) a [Customer Profile][].
|
559
|
-
# @param
|
560
|
-
# @param body [
|
623
|
+
# Update (or create) a [Customer Profile][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profile]: /Getting-Started/entities#customer-profile
|
624
|
+
# @param integration_id [String] The custom identifier for this profile, must be unique within the account.
|
625
|
+
# @param body [CustomerProfileIntegrationRequestV2]
|
561
626
|
# @param [Hash] opts the optional parameters
|
562
|
-
# @
|
563
|
-
|
564
|
-
|
627
|
+
# @option opts [Boolean] :run_rule_engine Flag to indicate whether to run the rule engine (Defaults to false).
|
628
|
+
# @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true').
|
629
|
+
# @return [IntegrationStateV2]
|
630
|
+
def update_customer_profile_v2(integration_id, body, opts = {})
|
631
|
+
data, _status_code, _headers = update_customer_profile_v2_with_http_info(integration_id, body, opts)
|
565
632
|
data
|
566
633
|
end
|
567
634
|
|
568
635
|
# Update a Customer Profile
|
569
|
-
# Update (or create) a [Customer Profile][].
|
570
|
-
# @param
|
571
|
-
# @param body [
|
636
|
+
# Update (or create) a [Customer Profile][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profile]: /Getting-Started/entities#customer-profile
|
637
|
+
# @param integration_id [String] The custom identifier for this profile, must be unique within the account.
|
638
|
+
# @param body [CustomerProfileIntegrationRequestV2]
|
572
639
|
# @param [Hash] opts the optional parameters
|
573
|
-
# @
|
574
|
-
|
640
|
+
# @option opts [Boolean] :run_rule_engine Flag to indicate whether to run the rule engine (Defaults to false).
|
641
|
+
# @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true').
|
642
|
+
# @return [Array<(IntegrationStateV2, Integer, Hash)>] IntegrationStateV2 data, response status code and response headers
|
643
|
+
def update_customer_profile_v2_with_http_info(integration_id, body, opts = {})
|
575
644
|
if @api_client.config.debugging
|
576
645
|
@api_client.config.logger.debug 'Calling API: IntegrationApi.update_customer_profile_v2 ...'
|
577
646
|
end
|
578
|
-
# verify the required parameter '
|
579
|
-
if @api_client.config.client_side_validation &&
|
580
|
-
fail ArgumentError, "Missing the required parameter '
|
647
|
+
# verify the required parameter 'integration_id' is set
|
648
|
+
if @api_client.config.client_side_validation && integration_id.nil?
|
649
|
+
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_customer_profile_v2"
|
581
650
|
end
|
582
651
|
# verify the required parameter 'body' is set
|
583
652
|
if @api_client.config.client_side_validation && body.nil?
|
584
653
|
fail ArgumentError, "Missing the required parameter 'body' when calling IntegrationApi.update_customer_profile_v2"
|
585
654
|
end
|
586
655
|
# resource path
|
587
|
-
local_var_path = '/v2/customer_profiles/{
|
656
|
+
local_var_path = '/v2/customer_profiles/{integrationId}'.sub('{' + 'integrationId' + '}', CGI.escape(integration_id.to_s))
|
588
657
|
|
589
658
|
# query parameters
|
590
659
|
query_params = opts[:query_params] || {}
|
660
|
+
query_params[:'runRuleEngine'] = opts[:'run_rule_engine'] if !opts[:'run_rule_engine'].nil?
|
661
|
+
query_params[:'dry'] = opts[:'dry'] if !opts[:'dry'].nil?
|
591
662
|
|
592
663
|
# header parameters
|
593
664
|
header_params = opts[:header_params] || {}
|
@@ -603,7 +674,7 @@ module TalonOne
|
|
603
674
|
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
604
675
|
|
605
676
|
# return_type
|
606
|
-
return_type = opts[:return_type] || '
|
677
|
+
return_type = opts[:return_type] || 'IntegrationStateV2'
|
607
678
|
|
608
679
|
# auth_names
|
609
680
|
auth_names = opts[:auth_names] || ['api_key_v1']
|
@@ -624,8 +695,75 @@ module TalonOne
|
|
624
695
|
return data, status_code, headers
|
625
696
|
end
|
626
697
|
|
627
|
-
# Update
|
628
|
-
# Update (or create)
|
698
|
+
# Update multiple Customer Profiles
|
699
|
+
# Update (or create) up to 1000 [Customer Profiles][] in 1 request. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profiles]: /Getting-Started/entities#customer-profile
|
700
|
+
# @param body [MultipleCustomerProfileIntegrationRequest]
|
701
|
+
# @param [Hash] opts the optional parameters
|
702
|
+
# @option opts [String] :silent If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated.
|
703
|
+
# @return [MultipleCustomerProfileIntegrationResponseV2]
|
704
|
+
def update_customer_profiles_v2(body, opts = {})
|
705
|
+
data, _status_code, _headers = update_customer_profiles_v2_with_http_info(body, opts)
|
706
|
+
data
|
707
|
+
end
|
708
|
+
|
709
|
+
# Update multiple Customer Profiles
|
710
|
+
# Update (or create) up to 1000 [Customer Profiles][] in 1 request. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profiles]: /Getting-Started/entities#customer-profile
|
711
|
+
# @param body [MultipleCustomerProfileIntegrationRequest]
|
712
|
+
# @param [Hash] opts the optional parameters
|
713
|
+
# @option opts [String] :silent If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated.
|
714
|
+
# @return [Array<(MultipleCustomerProfileIntegrationResponseV2, Integer, Hash)>] MultipleCustomerProfileIntegrationResponseV2 data, response status code and response headers
|
715
|
+
def update_customer_profiles_v2_with_http_info(body, opts = {})
|
716
|
+
if @api_client.config.debugging
|
717
|
+
@api_client.config.logger.debug 'Calling API: IntegrationApi.update_customer_profiles_v2 ...'
|
718
|
+
end
|
719
|
+
# verify the required parameter 'body' is set
|
720
|
+
if @api_client.config.client_side_validation && body.nil?
|
721
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling IntegrationApi.update_customer_profiles_v2"
|
722
|
+
end
|
723
|
+
# resource path
|
724
|
+
local_var_path = '/v2/customer_profiles'
|
725
|
+
|
726
|
+
# query parameters
|
727
|
+
query_params = opts[:query_params] || {}
|
728
|
+
query_params[:'silent'] = opts[:'silent'] if !opts[:'silent'].nil?
|
729
|
+
|
730
|
+
# header parameters
|
731
|
+
header_params = opts[:header_params] || {}
|
732
|
+
# HTTP header 'Accept' (if needed)
|
733
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
734
|
+
# HTTP header 'Content-Type'
|
735
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
736
|
+
|
737
|
+
# form parameters
|
738
|
+
form_params = opts[:form_params] || {}
|
739
|
+
|
740
|
+
# http body (model)
|
741
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
742
|
+
|
743
|
+
# return_type
|
744
|
+
return_type = opts[:return_type] || 'MultipleCustomerProfileIntegrationResponseV2'
|
745
|
+
|
746
|
+
# auth_names
|
747
|
+
auth_names = opts[:auth_names] || ['api_key_v1']
|
748
|
+
|
749
|
+
new_options = opts.merge(
|
750
|
+
:header_params => header_params,
|
751
|
+
:query_params => query_params,
|
752
|
+
:form_params => form_params,
|
753
|
+
:body => post_body,
|
754
|
+
:auth_names => auth_names,
|
755
|
+
:return_type => return_type
|
756
|
+
)
|
757
|
+
|
758
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
759
|
+
if @api_client.config.debugging
|
760
|
+
@api_client.config.logger.debug "API called: IntegrationApi#update_customer_profiles_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
761
|
+
end
|
762
|
+
return data, status_code, headers
|
763
|
+
end
|
764
|
+
|
765
|
+
# Update a Customer Session V1
|
766
|
+
# ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID's. The `profileId` parameter in the request body should correspond to an `integrationId` for a customer profile, to track an anonymous session use the empty string (`\"\"`) as the `profileId`. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session
|
629
767
|
# @param customer_session_id [String] The custom identifier for this session, must be unique within the account.
|
630
768
|
# @param body [NewCustomerSession]
|
631
769
|
# @param [Hash] opts the optional parameters
|
@@ -636,8 +774,8 @@ module TalonOne
|
|
636
774
|
data
|
637
775
|
end
|
638
776
|
|
639
|
-
# Update a Customer Session
|
640
|
-
# Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID's. The `profileId` parameter in the request body should correspond to an `integrationId` for a customer profile, to track an anonymous session use the empty string (`\"\"`) as the `profileId`. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session
|
777
|
+
# Update a Customer Session V1
|
778
|
+
# ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID's. The `profileId` parameter in the request body should correspond to an `integrationId` for a customer profile, to track an anonymous session use the empty string (`\"\"`) as the `profileId`. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session
|
641
779
|
# @param customer_session_id [String] The custom identifier for this session, must be unique within the account.
|
642
780
|
# @param body [NewCustomerSession]
|
643
781
|
# @param [Hash] opts the optional parameters
|