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/IntegrationEntity.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**integration_id** | **String** | The ID
|
7
|
+
**integration_id** | **String** | The integration ID for this entity sent to and used in the Talon.One system. |
|
8
8
|
**created** | **DateTime** | The exact moment this entity was created. |
|
9
9
|
|
10
10
|
## Code Sample
|
data/docs/LoyaltyLedgerEntry.md
CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**event_id** | **Integer** | | [optional]
|
12
12
|
**type** | **String** | The type of the ledger transaction. Possible values are addition, subtraction, expire or expiring (for expiring points ledgers) |
|
13
13
|
**amount** | **Float** | |
|
14
|
+
**start_date** | **DateTime** | | [optional]
|
14
15
|
**expiry_date** | **DateTime** | | [optional]
|
15
16
|
**name** | **String** | A name referencing the condition or effect that added this entry, or the specific name provided in an API call. |
|
16
17
|
**sub_ledger_id** | **String** | This specifies if we are adding loyalty points to the main ledger or a subledger |
|
@@ -28,6 +29,7 @@ instance = TalonOne::LoyaltyLedgerEntry.new(created: null,
|
|
28
29
|
event_id: null,
|
29
30
|
type: null,
|
30
31
|
amount: null,
|
32
|
+
start_date: null,
|
31
33
|
expiry_date: null,
|
32
34
|
name: null,
|
33
35
|
sub_ledger_id: null,
|
data/docs/LoyaltyPoints.md
CHANGED
@@ -6,7 +6,8 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**points** | **Float** | Amount of loyalty points |
|
8
8
|
**name** | **String** | Allows to specify a name for the addition or deduction | [optional]
|
9
|
-
**
|
9
|
+
**validity_duration** | **String** | Indicates the duration after which the added loyalty points should expire. The format is a number followed by one letter indicating the time unit, like '1h' or '40m' (defined by Go time package). | [optional]
|
10
|
+
**pending_duration** | **String** | Indicates the amount of time before the points are considered valid. The format is a number followed by one letter indicating the time unit, like '1h' or '40m' (defined by Go time package). | [optional]
|
10
11
|
**sub_ledger_id** | **String** | This specifies if we are adding loyalty points to the main ledger or a subledger | [optional]
|
11
12
|
|
12
13
|
## Code Sample
|
@@ -16,7 +17,8 @@ require 'TalonOne'
|
|
16
17
|
|
17
18
|
instance = TalonOne::LoyaltyPoints.new(points: null,
|
18
19
|
name: null,
|
19
|
-
|
20
|
+
validity_duration: null,
|
21
|
+
pending_duration: null,
|
20
22
|
sub_ledger_id: null)
|
21
23
|
```
|
22
24
|
|
data/docs/LoyaltyProgram.md
CHANGED
@@ -10,7 +10,8 @@ Name | Type | Description | Notes
|
|
10
10
|
**title** | **String** | The display title for the Loyalty Program. |
|
11
11
|
**description** | **String** | Description of our Loyalty Program. |
|
12
12
|
**subscribed_applications** | **Array<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. |
|
13
|
-
**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'
|
13
|
+
**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'. |
|
14
|
+
**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'. |
|
14
15
|
**allow_subledger** | **Boolean** | Indicates if this program supports subledgers inside the program |
|
15
16
|
|
16
17
|
## Code Sample
|
@@ -25,6 +26,7 @@ instance = TalonOne::LoyaltyProgram.new(id: null,
|
|
25
26
|
description: null,
|
26
27
|
subscribed_applications: null,
|
27
28
|
default_validity: null,
|
29
|
+
default_pending: null,
|
28
30
|
allow_subledger: null)
|
29
31
|
```
|
30
32
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# TalonOne::LoyaltyStatistics
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**total_active_points** | **Float** | Total of active points for this loyalty program |
|
8
|
+
**total_pending_points** | **Float** | Total of pending points for this loyalty program |
|
9
|
+
**total_spent_points** | **Float** | Total of spent points for this loyalty program |
|
10
|
+
**total_expired_points** | **Float** | Total of expired points for this loyalty program |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'TalonOne'
|
16
|
+
|
17
|
+
instance = TalonOne::LoyaltyStatistics.new(total_active_points: null,
|
18
|
+
total_pending_points: null,
|
19
|
+
total_spent_points: null,
|
20
|
+
total_expired_points: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
data/docs/LoyaltySubLedger.md
CHANGED
@@ -4,9 +4,16 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**total** | **Float** | |
|
8
|
-
**
|
9
|
-
**
|
7
|
+
**total** | **Float** | ⚠️ Deprecated: Please use 'totalActivePoints' property instead. Total amount of currently active and available points in the customer's balance |
|
8
|
+
**total_active_points** | **Float** | Total amount of currently active and available points in the customer's balance |
|
9
|
+
**total_pending_points** | **Float** | Total amount of pending points, which are not active yet but will become active in the future |
|
10
|
+
**total_spent_points** | **Float** | Total amount of points already spent by this customer |
|
11
|
+
**total_expired_points** | **Float** | Total amount of points, that expired without ever being spent |
|
12
|
+
**transactions** | [**Array<LoyaltyLedgerEntry>**](LoyaltyLedgerEntry.md) | List of all events that have happened such as additions, subtractions and expiries | [optional]
|
13
|
+
**expiring_points** | [**Array<LoyaltyLedgerEntry>**](LoyaltyLedgerEntry.md) | List of all points that will expire | [optional]
|
14
|
+
**active_points** | [**Array<LoyaltyLedgerEntry>**](LoyaltyLedgerEntry.md) | List of all currently active points | [optional]
|
15
|
+
**pending_points** | [**Array<LoyaltyLedgerEntry>**](LoyaltyLedgerEntry.md) | List of all points pending activation | [optional]
|
16
|
+
**expired_points** | [**Array<LoyaltyLedgerEntry>**](LoyaltyLedgerEntry.md) | List of expired points | [optional]
|
10
17
|
|
11
18
|
## Code Sample
|
12
19
|
|
@@ -14,8 +21,15 @@ Name | Type | Description | Notes
|
|
14
21
|
require 'TalonOne'
|
15
22
|
|
16
23
|
instance = TalonOne::LoyaltySubLedger.new(total: null,
|
24
|
+
total_active_points: null,
|
25
|
+
total_pending_points: null,
|
26
|
+
total_spent_points: null,
|
27
|
+
total_expired_points: null,
|
17
28
|
transactions: null,
|
18
|
-
expiring_points: null
|
29
|
+
expiring_points: null,
|
30
|
+
active_points: null,
|
31
|
+
pending_points: null,
|
32
|
+
expired_points: null)
|
19
33
|
```
|
20
34
|
|
21
35
|
|
data/docs/ManagementApi.md
CHANGED
@@ -61,6 +61,7 @@ Method | HTTP request | Description
|
|
61
61
|
[**get_loyalty_points**](ManagementApi.md#get_loyalty_points) | **GET** /v1/loyalty_programs/{programID}/profile/{integrationID} | get the Loyalty Ledger for this integrationID
|
62
62
|
[**get_loyalty_program**](ManagementApi.md#get_loyalty_program) | **GET** /v1/loyalty_programs/{programID} | Get a loyalty program
|
63
63
|
[**get_loyalty_programs**](ManagementApi.md#get_loyalty_programs) | **GET** /v1/loyalty_programs | List all loyalty Programs
|
64
|
+
[**get_loyalty_statistics**](ManagementApi.md#get_loyalty_statistics) | **GET** /v1/loyalty_programs/{programID}/statistics | Get loyalty program statistics by loyalty program ID
|
64
65
|
[**get_referrals**](ManagementApi.md#get_referrals) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals | List Referrals (with total count)
|
65
66
|
[**get_referrals_without_total_count**](ManagementApi.md#get_referrals_without_total_count) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total | List Referrals
|
66
67
|
[**get_role**](ManagementApi.md#get_role) | **GET** /v1/roles/{roleId} | Get information for the specified role.
|
@@ -1527,7 +1528,7 @@ Name | Type | Description | Notes
|
|
1527
1528
|
|
1528
1529
|
## get_application_customers
|
1529
1530
|
|
1530
|
-
> InlineResponse20012 get_application_customers(application_id)
|
1531
|
+
> InlineResponse20012 get_application_customers(application_id, opts)
|
1531
1532
|
|
1532
1533
|
List Application Customers
|
1533
1534
|
|
@@ -1546,10 +1547,16 @@ end
|
|
1546
1547
|
|
1547
1548
|
api_instance = TalonOne::ManagementApi.new
|
1548
1549
|
application_id = 56 # Integer |
|
1550
|
+
opts = {
|
1551
|
+
integration_id: 'integration_id_example', # String | Filter results performing an exact matching against the profile integration identifier.
|
1552
|
+
page_size: 56, # Integer | The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
|
1553
|
+
skip: 56, # Integer | Skips the given number of items when paging through large result sets.
|
1554
|
+
with_total_result_size: true # Boolean | When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query.
|
1555
|
+
}
|
1549
1556
|
|
1550
1557
|
begin
|
1551
1558
|
#List Application Customers
|
1552
|
-
result = api_instance.get_application_customers(application_id)
|
1559
|
+
result = api_instance.get_application_customers(application_id, opts)
|
1553
1560
|
p result
|
1554
1561
|
rescue TalonOne::ApiError => e
|
1555
1562
|
puts "Exception when calling ManagementApi->get_application_customers: #{e}"
|
@@ -1562,6 +1569,10 @@ end
|
|
1562
1569
|
Name | Type | Description | Notes
|
1563
1570
|
------------- | ------------- | ------------- | -------------
|
1564
1571
|
**application_id** | **Integer**| |
|
1572
|
+
**integration_id** | **String**| Filter results performing an exact matching against the profile integration identifier. | [optional]
|
1573
|
+
**page_size** | **Integer**| The number of items to include in this response. When omitted, the maximum value of 1000 will be used. | [optional]
|
1574
|
+
**skip** | **Integer**| Skips the given number of items when paging through large result sets. | [optional]
|
1575
|
+
**with_total_result_size** | **Boolean**| When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. | [optional]
|
1565
1576
|
|
1566
1577
|
### Return type
|
1567
1578
|
|
@@ -1942,10 +1953,11 @@ opts = {
|
|
1942
1953
|
sort: 'sort_example', # String | The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order.
|
1943
1954
|
profile: 'profile_example', # String | Profile integration ID filter for sessions. Must be exact match.
|
1944
1955
|
state: 'state_example', # String | Filter by sessions with this state. Must be exact match.
|
1956
|
+
created_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Only return events created before this date
|
1957
|
+
created_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Only return events created after this date
|
1945
1958
|
coupon: 'coupon_example', # String | Filter by sessions with this coupon. Must be exact match.
|
1946
1959
|
referral: 'referral_example', # String | Filter by sessions with this referral. Must be exact match.
|
1947
|
-
integration_id: 'integration_id_example'
|
1948
|
-
customer_id: 'customer_id_example' # String | Filter by integration ID of the customer for the session
|
1960
|
+
integration_id: 'integration_id_example' # String | Filter by sessions with this integrationId. Must be exact match.
|
1949
1961
|
}
|
1950
1962
|
|
1951
1963
|
begin
|
@@ -1968,10 +1980,11 @@ Name | Type | Description | Notes
|
|
1968
1980
|
**sort** | **String**| The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. | [optional]
|
1969
1981
|
**profile** | **String**| Profile integration ID filter for sessions. Must be exact match. | [optional]
|
1970
1982
|
**state** | **String**| Filter by sessions with this state. Must be exact match. | [optional]
|
1983
|
+
**created_before** | **DateTime**| Only return events created before this date | [optional]
|
1984
|
+
**created_after** | **DateTime**| Only return events created after this date | [optional]
|
1971
1985
|
**coupon** | **String**| Filter by sessions with this coupon. Must be exact match. | [optional]
|
1972
1986
|
**referral** | **String**| Filter by sessions with this referral. Must be exact match. | [optional]
|
1973
1987
|
**integration_id** | **String**| Filter by sessions with this integrationId. Must be exact match. | [optional]
|
1974
|
-
**customer_id** | **String**| Filter by integration ID of the customer for the session | [optional]
|
1975
1988
|
|
1976
1989
|
### Return type
|
1977
1990
|
|
@@ -2372,7 +2385,8 @@ opts = {
|
|
2372
2385
|
name: 'name_example', # String | Filter results performing case-insensitive matching against the name of the campaign.
|
2373
2386
|
tags: 'tags_example', # String | Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values
|
2374
2387
|
created_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp.
|
2375
|
-
created_after: DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp.
|
2388
|
+
created_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp.
|
2389
|
+
campaign_group_id: 56 # Integer | Filter results to campaigns owned by the specified campaign group ID.
|
2376
2390
|
}
|
2377
2391
|
|
2378
2392
|
begin
|
@@ -2398,6 +2412,7 @@ Name | Type | Description | Notes
|
|
2398
2412
|
**tags** | **String**| Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values | [optional]
|
2399
2413
|
**created_before** | **DateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. | [optional]
|
2400
2414
|
**created_after** | **DateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. | [optional]
|
2415
|
+
**campaign_group_id** | **Integer**| Filter results to campaigns owned by the specified campaign group ID. | [optional]
|
2401
2416
|
|
2402
2417
|
### Return type
|
2403
2418
|
|
@@ -3099,7 +3114,7 @@ Name | Type | Description | Notes
|
|
3099
3114
|
|
3100
3115
|
## get_customer_profile
|
3101
3116
|
|
3102
|
-
> ApplicationCustomer get_customer_profile(
|
3117
|
+
> ApplicationCustomer get_customer_profile(customer_id)
|
3103
3118
|
|
3104
3119
|
Get Customer Profile
|
3105
3120
|
|
@@ -3117,12 +3132,11 @@ TalonOne.configure do |config|
|
|
3117
3132
|
end
|
3118
3133
|
|
3119
3134
|
api_instance = TalonOne::ManagementApi.new
|
3120
|
-
application_id = 56 # Integer |
|
3121
3135
|
customer_id = 56 # Integer |
|
3122
3136
|
|
3123
3137
|
begin
|
3124
3138
|
#Get Customer Profile
|
3125
|
-
result = api_instance.get_customer_profile(
|
3139
|
+
result = api_instance.get_customer_profile(customer_id)
|
3126
3140
|
p result
|
3127
3141
|
rescue TalonOne::ApiError => e
|
3128
3142
|
puts "Exception when calling ManagementApi->get_customer_profile: #{e}"
|
@@ -3134,7 +3148,6 @@ end
|
|
3134
3148
|
|
3135
3149
|
Name | Type | Description | Notes
|
3136
3150
|
------------- | ------------- | ------------- | -------------
|
3137
|
-
**application_id** | **Integer**| |
|
3138
3151
|
**customer_id** | **Integer**| |
|
3139
3152
|
|
3140
3153
|
### Return type
|
@@ -3611,6 +3624,58 @@ This endpoint does not need any parameter.
|
|
3611
3624
|
- **Accept**: application/json
|
3612
3625
|
|
3613
3626
|
|
3627
|
+
## get_loyalty_statistics
|
3628
|
+
|
3629
|
+
> LoyaltyStatistics get_loyalty_statistics(program_id)
|
3630
|
+
|
3631
|
+
Get loyalty program statistics by loyalty program ID
|
3632
|
+
|
3633
|
+
### Example
|
3634
|
+
|
3635
|
+
```ruby
|
3636
|
+
# load the gem
|
3637
|
+
require 'talon_one'
|
3638
|
+
# setup authorization
|
3639
|
+
TalonOne.configure do |config|
|
3640
|
+
# Configure API key authorization: manager_auth
|
3641
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
3642
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
3643
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
3644
|
+
end
|
3645
|
+
|
3646
|
+
api_instance = TalonOne::ManagementApi.new
|
3647
|
+
program_id = 'program_id_example' # String |
|
3648
|
+
|
3649
|
+
begin
|
3650
|
+
#Get loyalty program statistics by loyalty program ID
|
3651
|
+
result = api_instance.get_loyalty_statistics(program_id)
|
3652
|
+
p result
|
3653
|
+
rescue TalonOne::ApiError => e
|
3654
|
+
puts "Exception when calling ManagementApi->get_loyalty_statistics: #{e}"
|
3655
|
+
end
|
3656
|
+
```
|
3657
|
+
|
3658
|
+
### Parameters
|
3659
|
+
|
3660
|
+
|
3661
|
+
Name | Type | Description | Notes
|
3662
|
+
------------- | ------------- | ------------- | -------------
|
3663
|
+
**program_id** | **String**| |
|
3664
|
+
|
3665
|
+
### Return type
|
3666
|
+
|
3667
|
+
[**LoyaltyStatistics**](LoyaltyStatistics.md)
|
3668
|
+
|
3669
|
+
### Authorization
|
3670
|
+
|
3671
|
+
[manager_auth](../README.md#manager_auth)
|
3672
|
+
|
3673
|
+
### HTTP request headers
|
3674
|
+
|
3675
|
+
- **Content-Type**: Not defined
|
3676
|
+
- **Accept**: application/json
|
3677
|
+
|
3678
|
+
|
3614
3679
|
## get_referrals
|
3615
3680
|
|
3616
3681
|
> InlineResponse2006 get_referrals(application_id, campaign_id, opts)
|
data/docs/Meta.md
CHANGED
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**coupons** | [**Object**](.md) | Maps the coupon value to a key-value list of that coupons attributes. | [optional]
|
9
9
|
**coupon_rejection_reason** | [**CouponRejectionReason**](CouponRejectionReason.md) | | [optional]
|
10
10
|
**referral_rejection_reason** | [**ReferralRejectionReason**](ReferralRejectionReason.md) | | [optional]
|
11
|
-
**warnings** | [**Object**](.md) |
|
11
|
+
**warnings** | [**Object**](.md) | Contains warnings about possible misuse. | [optional]
|
12
12
|
|
13
13
|
## Code Sample
|
14
14
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# TalonOne::MultipleCustomerProfileIntegrationRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**customer_profiles** | [**Array<MultipleCustomerProfileIntegrationRequestItem>**](MultipleCustomerProfileIntegrationRequestItem.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'TalonOne'
|
13
|
+
|
14
|
+
instance = TalonOne::MultipleCustomerProfileIntegrationRequest.new(customer_profiles: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# TalonOne::MultipleCustomerProfileIntegrationRequestItem
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**attributes** | [**Object**](.md) | Arbitrary properties associated with this item | [optional]
|
8
|
+
**integration_id** | **String** | The custom identifier for this profile, must be unique within the account. |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'TalonOne'
|
14
|
+
|
15
|
+
instance = TalonOne::MultipleCustomerProfileIntegrationRequestItem.new(attributes: null,
|
16
|
+
integration_id: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# TalonOne::MultipleCustomerProfileIntegrationResponseV2
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**integration_states** | [**Array<IntegrationStateV2>**](IntegrationStateV2.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'TalonOne'
|
13
|
+
|
14
|
+
instance = TalonOne::MultipleCustomerProfileIntegrationResponseV2.new(integration_states: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/NewApplication.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
|
**key** | **String** | Hex key for HMAC-signing API calls as coming from this application (16 hex digits) | [optional]
|
17
21
|
|
18
22
|
## Code Sample
|
@@ -28,7 +32,11 @@ instance = TalonOne::NewApplication.new(name: null,
|
|
28
32
|
attributes: null,
|
29
33
|
limits: null,
|
30
34
|
campaign_priority: null,
|
35
|
+
exclusive_campaigns_strategy: null,
|
36
|
+
enable_cascading_discounts: null,
|
37
|
+
enable_flattened_cart_items: null,
|
31
38
|
attributes_settings: null,
|
39
|
+
sandbox: null,
|
32
40
|
key: null)
|
33
41
|
```
|
34
42
|
|
@@ -4,13 +4,14 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**title** | **String** | Title for API Key |
|
8
|
+
**expires** | **DateTime** | The date the API key expired |
|
9
|
+
**platform** | **String** | Platform the API key is valid for. | [optional]
|
7
10
|
**id** | **Integer** | ID of the API Key |
|
8
11
|
**created_by** | **Integer** | ID of user who created |
|
9
|
-
**title** | **String** | Title for API Key |
|
10
12
|
**account_id** | **Integer** | ID of account the key is used for |
|
11
13
|
**application_id** | **Integer** | ID of application the key is used for |
|
12
14
|
**created** | **DateTime** | The date the API key was created |
|
13
|
-
**expires** | **DateTime** | The date the API key expired |
|
14
15
|
**key** | **String** | Raw API Key |
|
15
16
|
|
16
17
|
## Code Sample
|
@@ -18,13 +19,14 @@ Name | Type | Description | Notes
|
|
18
19
|
```ruby
|
19
20
|
require 'TalonOne'
|
20
21
|
|
21
|
-
instance = TalonOne::NewApplicationAPIKey.new(
|
22
|
+
instance = TalonOne::NewApplicationAPIKey.new(title: null,
|
23
|
+
expires: null,
|
24
|
+
platform: null,
|
25
|
+
id: null,
|
22
26
|
created_by: null,
|
23
|
-
title: null,
|
24
27
|
account_id: null,
|
25
28
|
application_id: null,
|
26
29
|
created: null,
|
27
|
-
expires: null,
|
28
30
|
key: null)
|
29
31
|
```
|
30
32
|
|
data/docs/NewAudience.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# TalonOne::NewAudience
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | The human-friendly display name for this Audience. |
|
8
|
+
**integration** | **String** | Integration that this audience was created in. |
|
9
|
+
**integration_id** | **String** | The ID of this Audience in the third-party integration |
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'TalonOne'
|
15
|
+
|
16
|
+
instance = TalonOne::NewAudience.new(name: null,
|
17
|
+
integration: null,
|
18
|
+
integration_id: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|