talon_one 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +63 -0
- data/Gemfile +7 -0
- data/README.md +423 -0
- data/Rakefile +8 -0
- data/docs/APIError.md +10 -0
- data/docs/AccessLogEntry.md +14 -0
- data/docs/Account.md +25 -0
- data/docs/AccountAnalytics.md +22 -0
- data/docs/AccountEntity.md +8 -0
- data/docs/AccountLimits.md +19 -0
- data/docs/Application.md +21 -0
- data/docs/ApplicationAPIKey.md +14 -0
- data/docs/ApplicationApiHealth.md +9 -0
- data/docs/ApplicationCustomer.md +16 -0
- data/docs/ApplicationCustomerEntity.md +8 -0
- data/docs/ApplicationCustomerSearch.md +10 -0
- data/docs/ApplicationEntity.md +8 -0
- data/docs/ApplicationEvent.md +15 -0
- data/docs/ApplicationSession.md +19 -0
- data/docs/ApplicationSessionEntity.md +8 -0
- data/docs/Attribute.md +18 -0
- data/docs/AttributeQuery.md +7 -0
- data/docs/AttributesMandatory.md +9 -0
- data/docs/AttributesSettings.md +8 -0
- data/docs/BaseSamlConnection.md +15 -0
- data/docs/Binding.md +9 -0
- data/docs/Campaign.md +32 -0
- data/docs/CampaignAnalytics.md +28 -0
- data/docs/CampaignCopy.md +13 -0
- data/docs/CampaignEntity.md +8 -0
- data/docs/CampaignSearch.md +8 -0
- data/docs/CampaignSet.md +11 -0
- data/docs/CampaignSetBranchNode.md +11 -0
- data/docs/CampaignSetLeafNode.md +9 -0
- data/docs/CampaignSetNode.md +8 -0
- data/docs/CartItem.md +19 -0
- data/docs/CartItemAdjustment.md +10 -0
- data/docs/Change.md +13 -0
- data/docs/CodeGeneratorSettings.md +9 -0
- data/docs/Coupon.md +21 -0
- data/docs/CouponConstraints.md +10 -0
- data/docs/CouponRejectionReason.md +10 -0
- data/docs/CouponReservations.md +8 -0
- data/docs/CouponSearch.md +8 -0
- data/docs/CouponValue.md +8 -0
- data/docs/CreateApplicationAPIKey.md +9 -0
- data/docs/CustomerActivityReport.md +20 -0
- data/docs/CustomerAnalytics.md +14 -0
- data/docs/CustomerInventory.md +9 -0
- data/docs/CustomerProfile.md +15 -0
- data/docs/CustomerProfileSearchQuery.md +10 -0
- data/docs/CustomerSession.md +20 -0
- data/docs/EmailEntity.md +8 -0
- data/docs/Entity.md +9 -0
- data/docs/Environment.md +14 -0
- data/docs/ErrorResponse.md +9 -0
- data/docs/ErrorSource.md +11 -0
- data/docs/Event.md +17 -0
- data/docs/EventType.md +19 -0
- data/docs/Export.md +13 -0
- data/docs/FeatureFlag.md +11 -0
- data/docs/FeatureFlags.md +11 -0
- data/docs/FeaturesFeed.md +9 -0
- data/docs/FuncArgDef.md +9 -0
- data/docs/FunctionDef.md +12 -0
- data/docs/Import.md +13 -0
- data/docs/ImportCoupons.md +8 -0
- data/docs/InlineResponse200.md +9 -0
- data/docs/InlineResponse2001.md +9 -0
- data/docs/InlineResponse20010.md +9 -0
- data/docs/InlineResponse20011.md +9 -0
- data/docs/InlineResponse20012.md +9 -0
- data/docs/InlineResponse20013.md +9 -0
- data/docs/InlineResponse20014.md +9 -0
- data/docs/InlineResponse20015.md +9 -0
- data/docs/InlineResponse20016.md +9 -0
- data/docs/InlineResponse20017.md +9 -0
- data/docs/InlineResponse20018.md +9 -0
- data/docs/InlineResponse20019.md +9 -0
- data/docs/InlineResponse2002.md +9 -0
- data/docs/InlineResponse20020.md +9 -0
- data/docs/InlineResponse20021.md +9 -0
- data/docs/InlineResponse20022.md +9 -0
- data/docs/InlineResponse20023.md +9 -0
- data/docs/InlineResponse20024.md +9 -0
- data/docs/InlineResponse20025.md +9 -0
- data/docs/InlineResponse20026.md +10 -0
- data/docs/InlineResponse20027.md +9 -0
- data/docs/InlineResponse20028.md +9 -0
- data/docs/InlineResponse20029.md +9 -0
- data/docs/InlineResponse2003.md +9 -0
- data/docs/InlineResponse2004.md +9 -0
- data/docs/InlineResponse2005.md +9 -0
- data/docs/InlineResponse2006.md +9 -0
- data/docs/InlineResponse2007.md +9 -0
- data/docs/InlineResponse2008.md +9 -0
- data/docs/InlineResponse2009.md +9 -0
- data/docs/IntegrationApi.md +624 -0
- data/docs/IntegrationEntity.md +9 -0
- data/docs/IntegrationEvent.md +10 -0
- data/docs/IntegrationProfileEntity.md +8 -0
- data/docs/IntegrationState.md +12 -0
- data/docs/LedgerEntry.md +17 -0
- data/docs/LibraryAttribute.md +14 -0
- data/docs/LimitConfig.md +10 -0
- data/docs/LoginParams.md +9 -0
- data/docs/Loyalty.md +8 -0
- data/docs/LoyaltyLedger.md +9 -0
- data/docs/LoyaltyLedgerEntry.md +17 -0
- data/docs/LoyaltyMembership.md +9 -0
- data/docs/LoyaltyPoints.md +11 -0
- data/docs/LoyaltyProgram.md +15 -0
- data/docs/LoyaltyProgramBalance.md +8 -0
- data/docs/LoyaltyProgramLedgers.md +11 -0
- data/docs/LoyaltySubLedger.md +10 -0
- data/docs/ManagementApi.md +5138 -0
- data/docs/ManagerConfig.md +8 -0
- data/docs/Meta.md +12 -0
- data/docs/MiscUpdateUserLatestFeature.md +8 -0
- data/docs/MultiApplicationEntity.md +8 -0
- data/docs/MutableEntity.md +8 -0
- data/docs/NewAccount.md +8 -0
- data/docs/NewAccountSignUp.md +10 -0
- data/docs/NewApplication.md +16 -0
- data/docs/NewApplicationAPIKey.md +15 -0
- data/docs/NewAttribute.md +15 -0
- data/docs/NewCampaign.md +19 -0
- data/docs/NewCampaignSet.md +9 -0
- data/docs/NewCoupons.md +16 -0
- data/docs/NewCustomerProfile.md +8 -0
- data/docs/NewCustomerSession.md +15 -0
- data/docs/NewEvent.md +11 -0
- data/docs/NewEventType.md +17 -0
- data/docs/NewFeatureFlags.md +10 -0
- data/docs/NewImport.md +8 -0
- data/docs/NewInvitation.md +11 -0
- data/docs/NewInviteEmail.md +9 -0
- data/docs/NewLoyaltyProgram.md +13 -0
- data/docs/NewPassword.md +9 -0
- data/docs/NewPasswordEmail.md +8 -0
- data/docs/NewReferral.md +12 -0
- data/docs/NewRole.md +11 -0
- data/docs/NewRuleset.md +11 -0
- data/docs/NewSamlConnection.md +16 -0
- data/docs/NewTemplateDef.md +14 -0
- data/docs/NewUser.md +11 -0
- data/docs/NewWebhook.md +15 -0
- data/docs/Notification.md +10 -0
- data/docs/Notifications.md +7 -0
- data/docs/Referral.md +17 -0
- data/docs/ReferralRejectionReason.md +10 -0
- data/docs/Role.md +13 -0
- data/docs/RoleAssign.md +9 -0
- data/docs/RoleMembership.md +9 -0
- data/docs/Rule.md +12 -0
- data/docs/Ruleset.md +16 -0
- data/docs/SamlConnection.md +18 -0
- data/docs/SamlConnectionMetadata.md +11 -0
- data/docs/Session.md +10 -0
- data/docs/SlotDef.md +13 -0
- data/docs/TemplateArgDef.md +11 -0
- data/docs/TemplateDef.md +18 -0
- data/docs/UpdateAccount.md +10 -0
- data/docs/UpdateApplication.md +15 -0
- data/docs/UpdateCampaign.md +19 -0
- data/docs/UpdateCoupon.md +12 -0
- data/docs/UpdateCouponBatch.md +12 -0
- data/docs/UpdateLoyaltyProgram.md +12 -0
- data/docs/UpdateRole.md +11 -0
- data/docs/UpdateUser.md +17 -0
- data/docs/User.md +21 -0
- data/docs/UserEntity.md +8 -0
- data/docs/Webhook.md +18 -0
- data/docs/WebhookActivationLogEntry.md +12 -0
- data/docs/WebhookLogEntry.md +17 -0
- data/git_push.sh +55 -0
- data/lib/talon_one.rb +210 -0
- data/lib/talon_one/api/integration_api.rb +591 -0
- data/lib/talon_one/api/management_api.rb +5593 -0
- data/lib/talon_one/api_client.rb +389 -0
- data/lib/talon_one/api_error.rb +38 -0
- data/lib/talon_one/configuration.rb +223 -0
- data/lib/talon_one/models/access_log_entry.rb +280 -0
- data/lib/talon_one/models/account.rb +462 -0
- data/lib/talon_one/models/account_analytics.rb +399 -0
- data/lib/talon_one/models/account_entity.rb +189 -0
- data/lib/talon_one/models/account_limits.rb +351 -0
- data/lib/talon_one/models/api_error.rb +213 -0
- data/lib/talon_one/models/application.rb +491 -0
- data/lib/talon_one/models/application_api_health.rb +239 -0
- data/lib/talon_one/models/application_api_key.rb +279 -0
- data/lib/talon_one/models/application_customer.rb +307 -0
- data/lib/talon_one/models/application_customer_entity.rb +184 -0
- data/lib/talon_one/models/application_customer_search.rb +206 -0
- data/lib/talon_one/models/application_entity.rb +189 -0
- data/lib/talon_one/models/application_event.rb +287 -0
- data/lib/talon_one/models/application_session.rb +378 -0
- data/lib/talon_one/models/application_session_entity.rb +189 -0
- data/lib/talon_one/models/attribute.rb +382 -0
- data/lib/talon_one/models/attribute_query.rb +174 -0
- data/lib/talon_one/models/attributes_mandatory.rb +199 -0
- data/lib/talon_one/models/attributes_settings.rb +184 -0
- data/lib/talon_one/models/base_saml_connection.rb +336 -0
- data/lib/talon_one/models/binding.rb +206 -0
- data/lib/talon_one/models/campaign.rb +534 -0
- data/lib/talon_one/models/campaign_analytics.rb +489 -0
- data/lib/talon_one/models/campaign_copy.rb +243 -0
- data/lib/talon_one/models/campaign_entity.rb +189 -0
- data/lib/talon_one/models/campaign_search.rb +189 -0
- data/lib/talon_one/models/campaign_set.rb +234 -0
- data/lib/talon_one/models/campaign_set_branch_node.rb +282 -0
- data/lib/talon_one/models/campaign_set_leaf_node.rb +238 -0
- data/lib/talon_one/models/campaign_set_node.rb +188 -0
- data/lib/talon_one/models/cart_item.rb +365 -0
- data/lib/talon_one/models/cart_item_adjustment.rb +248 -0
- data/lib/talon_one/models/change.rb +255 -0
- data/lib/talon_one/models/code_generator_settings.rb +225 -0
- data/lib/talon_one/models/coupon.rb +392 -0
- data/lib/talon_one/models/coupon_constraints.rb +228 -0
- data/lib/talon_one/models/coupon_rejection_reason.rb +251 -0
- data/lib/talon_one/models/coupon_reservations.rb +191 -0
- data/lib/talon_one/models/coupon_search.rb +189 -0
- data/lib/talon_one/models/coupon_value.rb +199 -0
- data/lib/talon_one/models/create_application_api_key.rb +204 -0
- data/lib/talon_one/models/customer_activity_report.rb +365 -0
- data/lib/talon_one/models/customer_analytics.rb +280 -0
- data/lib/talon_one/models/customer_inventory.rb +194 -0
- data/lib/talon_one/models/customer_profile.rb +292 -0
- data/lib/talon_one/models/customer_profile_search_query.rb +206 -0
- data/lib/talon_one/models/customer_session.rb +407 -0
- data/lib/talon_one/models/email_entity.rb +189 -0
- data/lib/talon_one/models/entity.rb +204 -0
- data/lib/talon_one/models/environment.rb +285 -0
- data/lib/talon_one/models/error_response.rb +201 -0
- data/lib/talon_one/models/error_source.rb +215 -0
- data/lib/talon_one/models/event.rb +332 -0
- data/lib/talon_one/models/event_type.rb +426 -0
- data/lib/talon_one/models/export.rb +299 -0
- data/lib/talon_one/models/feature_flag.rb +224 -0
- data/lib/talon_one/models/feature_flags.rb +220 -0
- data/lib/talon_one/models/features_feed.rb +193 -0
- data/lib/talon_one/models/func_arg_def.rb +243 -0
- data/lib/talon_one/models/function_def.rb +260 -0
- data/lib/talon_one/models/import.rb +318 -0
- data/lib/talon_one/models/import_coupons.rb +188 -0
- data/lib/talon_one/models/inline_response_200.rb +204 -0
- data/lib/talon_one/models/inline_response_200_1.rb +204 -0
- data/lib/talon_one/models/inline_response_200_10.rb +204 -0
- data/lib/talon_one/models/inline_response_200_11.rb +204 -0
- data/lib/talon_one/models/inline_response_200_12.rb +204 -0
- data/lib/talon_one/models/inline_response_200_13.rb +204 -0
- data/lib/talon_one/models/inline_response_200_14.rb +204 -0
- data/lib/talon_one/models/inline_response_200_15.rb +204 -0
- data/lib/talon_one/models/inline_response_200_16.rb +204 -0
- data/lib/talon_one/models/inline_response_200_17.rb +204 -0
- data/lib/talon_one/models/inline_response_200_18.rb +204 -0
- data/lib/talon_one/models/inline_response_200_19.rb +204 -0
- data/lib/talon_one/models/inline_response_200_2.rb +204 -0
- data/lib/talon_one/models/inline_response_200_20.rb +204 -0
- data/lib/talon_one/models/inline_response_200_21.rb +204 -0
- data/lib/talon_one/models/inline_response_200_22.rb +204 -0
- data/lib/talon_one/models/inline_response_200_23.rb +204 -0
- data/lib/talon_one/models/inline_response_200_24.rb +204 -0
- data/lib/talon_one/models/inline_response_200_25.rb +204 -0
- data/lib/talon_one/models/inline_response_200_26.rb +208 -0
- data/lib/talon_one/models/inline_response_200_27.rb +204 -0
- data/lib/talon_one/models/inline_response_200_28.rb +204 -0
- data/lib/talon_one/models/inline_response_200_29.rb +204 -0
- data/lib/talon_one/models/inline_response_200_3.rb +204 -0
- data/lib/talon_one/models/inline_response_200_4.rb +204 -0
- data/lib/talon_one/models/inline_response_200_5.rb +204 -0
- data/lib/talon_one/models/inline_response_200_6.rb +204 -0
- data/lib/talon_one/models/inline_response_200_7.rb +204 -0
- data/lib/talon_one/models/inline_response_200_8.rb +204 -0
- data/lib/talon_one/models/inline_response_200_9.rb +204 -0
- data/lib/talon_one/models/integration_entity.rb +204 -0
- data/lib/talon_one/models/integration_event.rb +234 -0
- data/lib/talon_one/models/integration_profile_entity.rb +184 -0
- data/lib/talon_one/models/integration_state.rb +235 -0
- data/lib/talon_one/models/ledger_entry.rb +320 -0
- data/lib/talon_one/models/library_attribute.rb +330 -0
- data/lib/talon_one/models/limit_config.rb +274 -0
- data/lib/talon_one/models/login_params.rb +205 -0
- data/lib/talon_one/models/loyalty.rb +192 -0
- data/lib/talon_one/models/loyalty_ledger.rb +202 -0
- data/lib/talon_one/models/loyalty_ledger_entry.rb +336 -0
- data/lib/talon_one/models/loyalty_membership.rb +199 -0
- data/lib/talon_one/models/loyalty_points.rb +220 -0
- data/lib/talon_one/models/loyalty_program.rb +297 -0
- data/lib/talon_one/models/loyalty_program_balance.rb +189 -0
- data/lib/talon_one/models/loyalty_program_ledgers.rb +232 -0
- data/lib/talon_one/models/loyalty_sub_ledger.rb +213 -0
- data/lib/talon_one/models/manager_config.rb +188 -0
- data/lib/talon_one/models/meta.rb +221 -0
- data/lib/talon_one/models/misc_update_user_latest_feature.rb +183 -0
- data/lib/talon_one/models/multi_application_entity.rb +191 -0
- data/lib/talon_one/models/mutable_entity.rb +189 -0
- data/lib/talon_one/models/new_account.rb +207 -0
- data/lib/talon_one/models/new_account_sign_up.rb +238 -0
- data/lib/talon_one/models/new_application.rb +405 -0
- data/lib/talon_one/models/new_application_api_key.rb +295 -0
- data/lib/talon_one/models/new_attribute.rb +337 -0
- data/lib/talon_one/models/new_campaign.rb +378 -0
- data/lib/talon_one/models/new_campaign_set.rb +204 -0
- data/lib/talon_one/models/new_coupons.rb +334 -0
- data/lib/talon_one/models/new_customer_profile.rb +184 -0
- data/lib/talon_one/models/new_customer_session.rb +295 -0
- data/lib/talon_one/models/new_event.rb +268 -0
- data/lib/talon_one/models/new_event_type.rb +396 -0
- data/lib/talon_one/models/new_feature_flags.rb +204 -0
- data/lib/talon_one/models/new_import.rb +224 -0
- data/lib/talon_one/models/new_invitation.rb +226 -0
- data/lib/talon_one/models/new_invite_email.rb +240 -0
- data/lib/talon_one/models/new_loyalty_program.rb +257 -0
- data/lib/talon_one/models/new_password.rb +222 -0
- data/lib/talon_one/models/new_password_email.rb +207 -0
- data/lib/talon_one/models/new_referral.rb +234 -0
- data/lib/talon_one/models/new_role.rb +232 -0
- data/lib/talon_one/models/new_ruleset.rb +228 -0
- data/lib/talon_one/models/new_saml_connection.rb +371 -0
- data/lib/talon_one/models/new_template_def.rb +308 -0
- data/lib/talon_one/models/new_user.rb +248 -0
- data/lib/talon_one/models/new_webhook.rb +330 -0
- data/lib/talon_one/models/notification.rb +219 -0
- data/lib/talon_one/models/notifications.rb +174 -0
- data/lib/talon_one/models/referral.rb +348 -0
- data/lib/talon_one/models/referral_rejection_reason.rb +251 -0
- data/lib/talon_one/models/role.rb +247 -0
- data/lib/talon_one/models/role_assign.rb +209 -0
- data/lib/talon_one/models/role_membership.rb +204 -0
- data/lib/talon_one/models/rule.rb +245 -0
- data/lib/talon_one/models/ruleset.rb +299 -0
- data/lib/talon_one/models/saml_connection.rb +387 -0
- data/lib/talon_one/models/saml_connection_metadata.rb +271 -0
- data/lib/talon_one/models/session.rb +219 -0
- data/lib/talon_one/models/slot_def.rb +254 -0
- data/lib/talon_one/models/template_arg_def.rb +293 -0
- data/lib/talon_one/models/template_def.rb +398 -0
- data/lib/talon_one/models/update_account.rb +233 -0
- data/lib/talon_one/models/update_application.rb +361 -0
- data/lib/talon_one/models/update_campaign.rb +373 -0
- data/lib/talon_one/models/update_coupon.rb +249 -0
- data/lib/talon_one/models/update_coupon_batch.rb +254 -0
- data/lib/talon_one/models/update_loyalty_program.rb +227 -0
- data/lib/talon_one/models/update_role.rb +216 -0
- data/lib/talon_one/models/update_user.rb +315 -0
- data/lib/talon_one/models/user.rb +400 -0
- data/lib/talon_one/models/user_entity.rb +189 -0
- data/lib/talon_one/models/webhook.rb +375 -0
- data/lib/talon_one/models/webhook_activation_log_entry.rb +250 -0
- data/lib/talon_one/models/webhook_log_entry.rb +305 -0
- data/lib/talon_one/version.rb +15 -0
- data/spec/api/integration_api_spec.rb +161 -0
- data/spec/api/management_api_spec.rb +1318 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/access_log_entry_spec.rb +77 -0
- data/spec/models/account_analytics_spec.rb +125 -0
- data/spec/models/account_entity_spec.rb +41 -0
- data/spec/models/account_limits_spec.rb +107 -0
- data/spec/models/account_spec.rb +147 -0
- data/spec/models/api_error_spec.rb +53 -0
- data/spec/models/application_api_health_spec.rb +51 -0
- data/spec/models/application_api_key_spec.rb +77 -0
- data/spec/models/application_customer_entity_spec.rb +41 -0
- data/spec/models/application_customer_search_spec.rb +53 -0
- data/spec/models/application_customer_spec.rb +89 -0
- data/spec/models/application_entity_spec.rb +41 -0
- data/spec/models/application_event_spec.rb +83 -0
- data/spec/models/application_session_entity_spec.rb +41 -0
- data/spec/models/application_session_spec.rb +111 -0
- data/spec/models/application_spec.rb +123 -0
- data/spec/models/attribute_query_spec.rb +35 -0
- data/spec/models/attribute_spec.rb +109 -0
- data/spec/models/attributes_mandatory_spec.rb +47 -0
- data/spec/models/attributes_settings_spec.rb +41 -0
- data/spec/models/base_saml_connection_spec.rb +83 -0
- data/spec/models/binding_spec.rb +47 -0
- data/spec/models/campaign_analytics_spec.rb +161 -0
- data/spec/models/campaign_copy_spec.rb +71 -0
- data/spec/models/campaign_entity_spec.rb +41 -0
- data/spec/models/campaign_search_spec.rb +41 -0
- data/spec/models/campaign_set_branch_node_spec.rb +67 -0
- data/spec/models/campaign_set_leaf_node_spec.rb +51 -0
- data/spec/models/campaign_set_node_spec.rb +41 -0
- data/spec/models/campaign_set_spec.rb +59 -0
- data/spec/models/campaign_spec.rb +193 -0
- data/spec/models/cart_item_adjustment_spec.rb +53 -0
- data/spec/models/cart_item_spec.rb +107 -0
- data/spec/models/change_spec.rb +71 -0
- data/spec/models/code_generator_settings_spec.rb +47 -0
- data/spec/models/coupon_constraints_spec.rb +53 -0
- data/spec/models/coupon_rejection_reason_spec.rb +57 -0
- data/spec/models/coupon_reservations_spec.rb +41 -0
- data/spec/models/coupon_search_spec.rb +41 -0
- data/spec/models/coupon_spec.rb +119 -0
- data/spec/models/coupon_value_spec.rb +41 -0
- data/spec/models/create_application_api_key_spec.rb +47 -0
- data/spec/models/customer_activity_report_spec.rb +113 -0
- data/spec/models/customer_analytics_spec.rb +77 -0
- data/spec/models/customer_inventory_spec.rb +47 -0
- data/spec/models/customer_profile_search_query_spec.rb +53 -0
- data/spec/models/customer_profile_spec.rb +83 -0
- data/spec/models/customer_session_spec.rb +117 -0
- data/spec/models/email_entity_spec.rb +41 -0
- data/spec/models/entity_spec.rb +47 -0
- data/spec/models/environment_spec.rb +77 -0
- data/spec/models/error_response_spec.rb +47 -0
- data/spec/models/error_source_spec.rb +59 -0
- data/spec/models/event_spec.rb +95 -0
- data/spec/models/event_type_spec.rb +115 -0
- data/spec/models/export_spec.rb +75 -0
- data/spec/models/feature_flag_spec.rb +59 -0
- data/spec/models/feature_flags_spec.rb +59 -0
- data/spec/models/features_feed_spec.rb +47 -0
- data/spec/models/func_arg_def_spec.rb +51 -0
- data/spec/models/function_def_spec.rb +65 -0
- data/spec/models/import_coupons_spec.rb +41 -0
- data/spec/models/import_spec.rb +75 -0
- data/spec/models/inline_response_200_10_spec.rb +47 -0
- data/spec/models/inline_response_200_11_spec.rb +47 -0
- data/spec/models/inline_response_200_12_spec.rb +47 -0
- data/spec/models/inline_response_200_13_spec.rb +47 -0
- data/spec/models/inline_response_200_14_spec.rb +47 -0
- data/spec/models/inline_response_200_15_spec.rb +47 -0
- data/spec/models/inline_response_200_16_spec.rb +47 -0
- data/spec/models/inline_response_200_17_spec.rb +47 -0
- data/spec/models/inline_response_200_18_spec.rb +47 -0
- data/spec/models/inline_response_200_19_spec.rb +47 -0
- data/spec/models/inline_response_200_1_spec.rb +47 -0
- data/spec/models/inline_response_200_20_spec.rb +47 -0
- data/spec/models/inline_response_200_21_spec.rb +47 -0
- data/spec/models/inline_response_200_22_spec.rb +47 -0
- data/spec/models/inline_response_200_23_spec.rb +47 -0
- data/spec/models/inline_response_200_24_spec.rb +47 -0
- data/spec/models/inline_response_200_25_spec.rb +47 -0
- data/spec/models/inline_response_200_26_spec.rb +53 -0
- data/spec/models/inline_response_200_27_spec.rb +47 -0
- data/spec/models/inline_response_200_28_spec.rb +47 -0
- data/spec/models/inline_response_200_29_spec.rb +47 -0
- data/spec/models/inline_response_200_2_spec.rb +47 -0
- data/spec/models/inline_response_200_3_spec.rb +47 -0
- data/spec/models/inline_response_200_4_spec.rb +47 -0
- data/spec/models/inline_response_200_5_spec.rb +47 -0
- data/spec/models/inline_response_200_6_spec.rb +47 -0
- data/spec/models/inline_response_200_7_spec.rb +47 -0
- data/spec/models/inline_response_200_8_spec.rb +47 -0
- data/spec/models/inline_response_200_9_spec.rb +47 -0
- data/spec/models/inline_response_200_spec.rb +47 -0
- data/spec/models/integration_entity_spec.rb +47 -0
- data/spec/models/integration_event_spec.rb +53 -0
- data/spec/models/integration_profile_entity_spec.rb +41 -0
- data/spec/models/integration_state_spec.rb +65 -0
- data/spec/models/ledger_entry_spec.rb +95 -0
- data/spec/models/library_attribute_spec.rb +85 -0
- data/spec/models/limit_config_spec.rb +61 -0
- data/spec/models/login_params_spec.rb +47 -0
- data/spec/models/loyalty_ledger_entry_spec.rb +99 -0
- data/spec/models/loyalty_ledger_spec.rb +47 -0
- data/spec/models/loyalty_membership_spec.rb +47 -0
- data/spec/models/loyalty_points_spec.rb +59 -0
- data/spec/models/loyalty_program_balance_spec.rb +41 -0
- data/spec/models/loyalty_program_ledgers_spec.rb +59 -0
- data/spec/models/loyalty_program_spec.rb +83 -0
- data/spec/models/loyalty_spec.rb +41 -0
- data/spec/models/loyalty_sub_ledger_spec.rb +53 -0
- data/spec/models/manager_config_spec.rb +41 -0
- data/spec/models/meta_spec.rb +65 -0
- data/spec/models/misc_update_user_latest_feature_spec.rb +41 -0
- data/spec/models/multi_application_entity_spec.rb +41 -0
- data/spec/models/mutable_entity_spec.rb +41 -0
- data/spec/models/new_account_sign_up_spec.rb +53 -0
- data/spec/models/new_account_spec.rb +41 -0
- data/spec/models/new_application_api_key_spec.rb +83 -0
- data/spec/models/new_application_spec.rb +93 -0
- data/spec/models/new_attribute_spec.rb +91 -0
- data/spec/models/new_campaign_set_spec.rb +47 -0
- data/spec/models/new_campaign_spec.rb +115 -0
- data/spec/models/new_coupons_spec.rb +89 -0
- data/spec/models/new_customer_profile_spec.rb +41 -0
- data/spec/models/new_customer_session_spec.rb +87 -0
- data/spec/models/new_event_spec.rb +59 -0
- data/spec/models/new_event_type_spec.rb +103 -0
- data/spec/models/new_feature_flags_spec.rb +53 -0
- data/spec/models/new_import_spec.rb +45 -0
- data/spec/models/new_invitation_spec.rb +59 -0
- data/spec/models/new_invite_email_spec.rb +47 -0
- data/spec/models/new_loyalty_program_spec.rb +71 -0
- data/spec/models/new_password_email_spec.rb +41 -0
- data/spec/models/new_password_spec.rb +47 -0
- data/spec/models/new_referral_spec.rb +65 -0
- data/spec/models/new_role_spec.rb +59 -0
- data/spec/models/new_ruleset_spec.rb +59 -0
- data/spec/models/new_saml_connection_spec.rb +89 -0
- data/spec/models/new_template_def_spec.rb +77 -0
- data/spec/models/new_user_spec.rb +59 -0
- data/spec/models/new_webhook_spec.rb +87 -0
- data/spec/models/notification_spec.rb +53 -0
- data/spec/models/notifications_spec.rb +35 -0
- data/spec/models/referral_rejection_reason_spec.rb +57 -0
- data/spec/models/referral_spec.rb +95 -0
- data/spec/models/role_assign_spec.rb +47 -0
- data/spec/models/role_membership_spec.rb +47 -0
- data/spec/models/role_spec.rb +71 -0
- data/spec/models/rule_spec.rb +65 -0
- data/spec/models/ruleset_spec.rb +89 -0
- data/spec/models/saml_connection_metadata_spec.rb +59 -0
- data/spec/models/saml_connection_spec.rb +101 -0
- data/spec/models/session_spec.rb +53 -0
- data/spec/models/slot_def_spec.rb +71 -0
- data/spec/models/template_arg_def_spec.rb +63 -0
- data/spec/models/template_def_spec.rb +101 -0
- data/spec/models/update_account_spec.rb +53 -0
- data/spec/models/update_application_spec.rb +87 -0
- data/spec/models/update_campaign_spec.rb +115 -0
- data/spec/models/update_coupon_batch_spec.rb +65 -0
- data/spec/models/update_coupon_spec.rb +65 -0
- data/spec/models/update_loyalty_program_spec.rb +65 -0
- data/spec/models/update_role_spec.rb +59 -0
- data/spec/models/update_user_spec.rb +99 -0
- data/spec/models/user_entity_spec.rb +41 -0
- data/spec/models/user_spec.rb +123 -0
- data/spec/models/webhook_activation_log_entry_spec.rb +65 -0
- data/spec/models/webhook_log_entry_spec.rb +95 -0
- data/spec/models/webhook_spec.rb +105 -0
- data/spec/spec_helper.rb +111 -0
- data/talon_one-1.0.0.gem +0 -0
- data/talon_one-1.1.0.gem +0 -0
- data/talon_one-1.1.1.gem +0 -0
- data/talon_one-1.1.2.gem +0 -0
- data/talon_one-1.2.0.gem +0 -0
- data/talon_one-1.3.0.gem +0 -0
- data/talon_one.gemspec +45 -0
- metadata +933 -0
data/docs/Import.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# TalonOne::Import
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | Unique ID for this entity. |
|
7
|
+
**created** | **DateTime** | The exact moment this entity was created. |
|
8
|
+
**account_id** | **Integer** | The ID of the account that owns this entity. |
|
9
|
+
**user_id** | **Integer** | The ID of the account that owns this entity. |
|
10
|
+
**entity** | **String** | The name of the entity that was imported. |
|
11
|
+
**amount** | **Integer** | The number of members that imported. |
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# TalonOne::InlineResponse200
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total_result_size** | **Integer** | |
|
7
|
+
**data** | [**Array<CustomerProfile>**](CustomerProfile.md) | |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# TalonOne::InlineResponse20011
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total_result_size** | **Integer** | |
|
7
|
+
**data** | [**Array<CampaignAnalytics>**](CampaignAnalytics.md) | |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# TalonOne::InlineResponse20012
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total_result_size** | **Integer** | |
|
7
|
+
**data** | [**Array<ApplicationCustomer>**](ApplicationCustomer.md) | |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# TalonOne::InlineResponse20013
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**has_more** | **BOOLEAN** | |
|
7
|
+
**data** | [**Array<ApplicationCustomer>**](ApplicationCustomer.md) | |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# TalonOne::InlineResponse20014
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total_result_size** | **Integer** | |
|
7
|
+
**data** | [**Array<CustomerActivityReport>**](CustomerActivityReport.md) | |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# TalonOne::InlineResponse20015
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**has_more** | **BOOLEAN** | |
|
7
|
+
**data** | [**Array<CustomerActivityReport>**](CustomerActivityReport.md) | |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# TalonOne::InlineResponse20016
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total_result_size** | **Integer** | |
|
7
|
+
**data** | [**Array<ApplicationSession>**](ApplicationSession.md) | |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# TalonOne::InlineResponse20017
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total_result_size** | **Integer** | |
|
7
|
+
**data** | [**Array<ApplicationEvent>**](ApplicationEvent.md) | |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# TalonOne::InlineResponse20022
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total_result_size** | **Integer** | |
|
7
|
+
**data** | [**Array<WebhookActivationLogEntry>**](WebhookActivationLogEntry.md) | |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# TalonOne::InlineResponse20023
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total_result_size** | **Integer** | |
|
7
|
+
**data** | [**Array<WebhookLogEntry>**](WebhookLogEntry.md) | |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# TalonOne::InlineResponse20026
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total_result_size** | **Integer** | | [optional]
|
7
|
+
**has_more** | **BOOLEAN** | | [optional]
|
8
|
+
**data** | [**Array<Change>**](Change.md) | |
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,624 @@
|
|
1
|
+
# TalonOne::IntegrationApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://localhost*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_coupon_reservation**](IntegrationApi.md#create_coupon_reservation) | **POST** /v1/coupon_reservations/{couponValue} | Create a new coupon reservation
|
8
|
+
[**create_referral**](IntegrationApi.md#create_referral) | **POST** /v1/referrals | Create a referral code for an advocate
|
9
|
+
[**delete_coupon_reservation**](IntegrationApi.md#delete_coupon_reservation) | **DELETE** /v1/coupon_reservations/{couponValue} | Delete coupon reservations
|
10
|
+
[**delete_customer_data**](IntegrationApi.md#delete_customer_data) | **DELETE** /v1/customer_data/{integrationId} | Delete the personal data of a customer.
|
11
|
+
[**get_customer_inventory**](IntegrationApi.md#get_customer_inventory) | **GET** /v1/customer_profiles/{integrationId}/inventory | Get an inventory of all data associated with a specific customer profile.
|
12
|
+
[**get_reserved_coupons**](IntegrationApi.md#get_reserved_coupons) | **GET** /v1/coupon_reservations/coupons/{integrationId} | Get all valid reserved coupons
|
13
|
+
[**get_reserved_customers**](IntegrationApi.md#get_reserved_customers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | Get the users that have this coupon reserved
|
14
|
+
[**track_event**](IntegrationApi.md#track_event) | **POST** /v1/events | Track an Event
|
15
|
+
[**update_customer_profile**](IntegrationApi.md#update_customer_profile) | **PUT** /v1/customer_profiles/{integrationId} | Update a Customer Profile
|
16
|
+
[**update_customer_session**](IntegrationApi.md#update_customer_session) | **PUT** /v1/customer_sessions/{customerSessionId} | Update a Customer Session
|
17
|
+
|
18
|
+
|
19
|
+
# **create_coupon_reservation**
|
20
|
+
> Coupon create_coupon_reservation(coupon_value, body)
|
21
|
+
|
22
|
+
Create a new coupon reservation
|
23
|
+
|
24
|
+
Creates a coupon reservation for all passed customer profiles on this couponID
|
25
|
+
|
26
|
+
### Example
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'talon_one'
|
30
|
+
# setup authorization
|
31
|
+
TalonOne.configure do |config|
|
32
|
+
# Configure API key authorization: api_key_v1
|
33
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
34
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
35
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
36
|
+
|
37
|
+
# Configure API key authorization: integration_auth
|
38
|
+
config.api_key['Content-Signature'] = 'YOUR API KEY'
|
39
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
40
|
+
#config.api_key_prefix['Content-Signature'] = 'Bearer'
|
41
|
+
end
|
42
|
+
|
43
|
+
api_instance = TalonOne::IntegrationApi.new
|
44
|
+
|
45
|
+
coupon_value = 'coupon_value_example' # String | The value of a coupon
|
46
|
+
|
47
|
+
body = TalonOne::CouponReservations.new # CouponReservations |
|
48
|
+
|
49
|
+
|
50
|
+
begin
|
51
|
+
#Create a new coupon reservation
|
52
|
+
result = api_instance.create_coupon_reservation(coupon_value, body)
|
53
|
+
p result
|
54
|
+
rescue TalonOne::ApiError => e
|
55
|
+
puts "Exception when calling IntegrationApi->create_coupon_reservation: #{e}"
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
### Parameters
|
60
|
+
|
61
|
+
Name | Type | Description | Notes
|
62
|
+
------------- | ------------- | ------------- | -------------
|
63
|
+
**coupon_value** | **String**| The value of a coupon |
|
64
|
+
**body** | [**CouponReservations**](CouponReservations.md)| |
|
65
|
+
|
66
|
+
### Return type
|
67
|
+
|
68
|
+
[**Coupon**](Coupon.md)
|
69
|
+
|
70
|
+
### Authorization
|
71
|
+
|
72
|
+
[api_key_v1](../README.md#api_key_v1), [integration_auth](../README.md#integration_auth)
|
73
|
+
|
74
|
+
### HTTP request headers
|
75
|
+
|
76
|
+
- **Content-Type**: application/json
|
77
|
+
- **Accept**: application/json
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
# **create_referral**
|
82
|
+
> Referral create_referral(body)
|
83
|
+
|
84
|
+
Create a referral code for an advocate
|
85
|
+
|
86
|
+
Creates a referral code for an advocate. The code will be valid for the referral campaign for which is created, indicated in the `campaignId` parameter, and will be associated with the profile specified in the `advocateProfileIntegrationId` parameter as the advocate's profile.
|
87
|
+
|
88
|
+
### Example
|
89
|
+
```ruby
|
90
|
+
# load the gem
|
91
|
+
require 'talon_one'
|
92
|
+
# setup authorization
|
93
|
+
TalonOne.configure do |config|
|
94
|
+
# Configure API key authorization: api_key_v1
|
95
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
96
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
97
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
98
|
+
|
99
|
+
# Configure API key authorization: integration_auth
|
100
|
+
config.api_key['Content-Signature'] = 'YOUR API KEY'
|
101
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
102
|
+
#config.api_key_prefix['Content-Signature'] = 'Bearer'
|
103
|
+
end
|
104
|
+
|
105
|
+
api_instance = TalonOne::IntegrationApi.new
|
106
|
+
|
107
|
+
body = TalonOne::NewReferral.new # NewReferral |
|
108
|
+
|
109
|
+
|
110
|
+
begin
|
111
|
+
#Create a referral code for an advocate
|
112
|
+
result = api_instance.create_referral(body)
|
113
|
+
p result
|
114
|
+
rescue TalonOne::ApiError => e
|
115
|
+
puts "Exception when calling IntegrationApi->create_referral: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
### Parameters
|
120
|
+
|
121
|
+
Name | Type | Description | Notes
|
122
|
+
------------- | ------------- | ------------- | -------------
|
123
|
+
**body** | [**NewReferral**](NewReferral.md)| |
|
124
|
+
|
125
|
+
### Return type
|
126
|
+
|
127
|
+
[**Referral**](Referral.md)
|
128
|
+
|
129
|
+
### Authorization
|
130
|
+
|
131
|
+
[api_key_v1](../README.md#api_key_v1), [integration_auth](../README.md#integration_auth)
|
132
|
+
|
133
|
+
### HTTP request headers
|
134
|
+
|
135
|
+
- **Content-Type**: application/json
|
136
|
+
- **Accept**: application/json
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
# **delete_coupon_reservation**
|
141
|
+
> delete_coupon_reservation(coupon_value, body)
|
142
|
+
|
143
|
+
Delete coupon reservations
|
144
|
+
|
145
|
+
Removes all passed customer profiles reservation from this coupon
|
146
|
+
|
147
|
+
### Example
|
148
|
+
```ruby
|
149
|
+
# load the gem
|
150
|
+
require 'talon_one'
|
151
|
+
# setup authorization
|
152
|
+
TalonOne.configure do |config|
|
153
|
+
# Configure API key authorization: api_key_v1
|
154
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
155
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
156
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
157
|
+
|
158
|
+
# Configure API key authorization: integration_auth
|
159
|
+
config.api_key['Content-Signature'] = 'YOUR API KEY'
|
160
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
161
|
+
#config.api_key_prefix['Content-Signature'] = 'Bearer'
|
162
|
+
end
|
163
|
+
|
164
|
+
api_instance = TalonOne::IntegrationApi.new
|
165
|
+
|
166
|
+
coupon_value = 'coupon_value_example' # String | The value of a coupon
|
167
|
+
|
168
|
+
body = TalonOne::CouponReservations.new # CouponReservations |
|
169
|
+
|
170
|
+
|
171
|
+
begin
|
172
|
+
#Delete coupon reservations
|
173
|
+
api_instance.delete_coupon_reservation(coupon_value, body)
|
174
|
+
rescue TalonOne::ApiError => e
|
175
|
+
puts "Exception when calling IntegrationApi->delete_coupon_reservation: #{e}"
|
176
|
+
end
|
177
|
+
```
|
178
|
+
|
179
|
+
### Parameters
|
180
|
+
|
181
|
+
Name | Type | Description | Notes
|
182
|
+
------------- | ------------- | ------------- | -------------
|
183
|
+
**coupon_value** | **String**| The value of a coupon |
|
184
|
+
**body** | [**CouponReservations**](CouponReservations.md)| |
|
185
|
+
|
186
|
+
### Return type
|
187
|
+
|
188
|
+
nil (empty response body)
|
189
|
+
|
190
|
+
### Authorization
|
191
|
+
|
192
|
+
[api_key_v1](../README.md#api_key_v1), [integration_auth](../README.md#integration_auth)
|
193
|
+
|
194
|
+
### HTTP request headers
|
195
|
+
|
196
|
+
- **Content-Type**: application/json
|
197
|
+
- **Accept**: application/json
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
# **delete_customer_data**
|
202
|
+
> delete_customer_data(integration_id)
|
203
|
+
|
204
|
+
Delete the personal data of a customer.
|
205
|
+
|
206
|
+
Delete all attributes on the customer profile and on entities that reference that customer profile.
|
207
|
+
|
208
|
+
### Example
|
209
|
+
```ruby
|
210
|
+
# load the gem
|
211
|
+
require 'talon_one'
|
212
|
+
# setup authorization
|
213
|
+
TalonOne.configure do |config|
|
214
|
+
# Configure API key authorization: api_key_v1
|
215
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
216
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
217
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
218
|
+
|
219
|
+
# Configure API key authorization: integration_auth
|
220
|
+
config.api_key['Content-Signature'] = 'YOUR API KEY'
|
221
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
222
|
+
#config.api_key_prefix['Content-Signature'] = 'Bearer'
|
223
|
+
end
|
224
|
+
|
225
|
+
api_instance = TalonOne::IntegrationApi.new
|
226
|
+
|
227
|
+
integration_id = 'integration_id_example' # String | The custom identifier for this profile, must be unique within the account.
|
228
|
+
|
229
|
+
|
230
|
+
begin
|
231
|
+
#Delete the personal data of a customer.
|
232
|
+
api_instance.delete_customer_data(integration_id)
|
233
|
+
rescue TalonOne::ApiError => e
|
234
|
+
puts "Exception when calling IntegrationApi->delete_customer_data: #{e}"
|
235
|
+
end
|
236
|
+
```
|
237
|
+
|
238
|
+
### Parameters
|
239
|
+
|
240
|
+
Name | Type | Description | Notes
|
241
|
+
------------- | ------------- | ------------- | -------------
|
242
|
+
**integration_id** | **String**| The custom identifier for this profile, must be unique within the account. |
|
243
|
+
|
244
|
+
### Return type
|
245
|
+
|
246
|
+
nil (empty response body)
|
247
|
+
|
248
|
+
### Authorization
|
249
|
+
|
250
|
+
[api_key_v1](../README.md#api_key_v1), [integration_auth](../README.md#integration_auth)
|
251
|
+
|
252
|
+
### HTTP request headers
|
253
|
+
|
254
|
+
- **Content-Type**: application/json
|
255
|
+
- **Accept**: application/json
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
# **get_customer_inventory**
|
260
|
+
> CustomerInventory get_customer_inventory(integration_id, opts)
|
261
|
+
|
262
|
+
Get an inventory of all data associated with a specific customer profile.
|
263
|
+
|
264
|
+
Get information regarding entities referencing this customer profile's integrationId. Currently we support customer profile information and referral codes. In the future, this will be expanded with coupon codes and loyalty points.
|
265
|
+
|
266
|
+
### Example
|
267
|
+
```ruby
|
268
|
+
# load the gem
|
269
|
+
require 'talon_one'
|
270
|
+
# setup authorization
|
271
|
+
TalonOne.configure do |config|
|
272
|
+
# Configure API key authorization: api_key_v1
|
273
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
274
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
275
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
276
|
+
|
277
|
+
# Configure API key authorization: integration_auth
|
278
|
+
config.api_key['Content-Signature'] = 'YOUR API KEY'
|
279
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
280
|
+
#config.api_key_prefix['Content-Signature'] = 'Bearer'
|
281
|
+
end
|
282
|
+
|
283
|
+
api_instance = TalonOne::IntegrationApi.new
|
284
|
+
|
285
|
+
integration_id = 'integration_id_example' # String | The custom identifier for this profile, must be unique within the account.
|
286
|
+
|
287
|
+
opts = {
|
288
|
+
profile: nil, # Object | optional flag to decide if you would like customer profile information in the response
|
289
|
+
referrals: nil # Object | optional flag to decide if you would like referral information in the response
|
290
|
+
}
|
291
|
+
|
292
|
+
begin
|
293
|
+
#Get an inventory of all data associated with a specific customer profile.
|
294
|
+
result = api_instance.get_customer_inventory(integration_id, opts)
|
295
|
+
p result
|
296
|
+
rescue TalonOne::ApiError => e
|
297
|
+
puts "Exception when calling IntegrationApi->get_customer_inventory: #{e}"
|
298
|
+
end
|
299
|
+
```
|
300
|
+
|
301
|
+
### Parameters
|
302
|
+
|
303
|
+
Name | Type | Description | Notes
|
304
|
+
------------- | ------------- | ------------- | -------------
|
305
|
+
**integration_id** | **String**| The custom identifier for this profile, must be unique within the account. |
|
306
|
+
**profile** | [**Object**](.md)| optional flag to decide if you would like customer profile information in the response | [optional]
|
307
|
+
**referrals** | [**Object**](.md)| optional flag to decide if you would like referral information in the response | [optional]
|
308
|
+
|
309
|
+
### Return type
|
310
|
+
|
311
|
+
[**CustomerInventory**](CustomerInventory.md)
|
312
|
+
|
313
|
+
### Authorization
|
314
|
+
|
315
|
+
[api_key_v1](../README.md#api_key_v1), [integration_auth](../README.md#integration_auth)
|
316
|
+
|
317
|
+
### HTTP request headers
|
318
|
+
|
319
|
+
- **Content-Type**: application/json
|
320
|
+
- **Accept**: application/json
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
# **get_reserved_coupons**
|
325
|
+
> InlineResponse2001 get_reserved_coupons(integration_id)
|
326
|
+
|
327
|
+
Get all valid reserved coupons
|
328
|
+
|
329
|
+
Returns all coupons this user is subscribed to that are valid and usable
|
330
|
+
|
331
|
+
### Example
|
332
|
+
```ruby
|
333
|
+
# load the gem
|
334
|
+
require 'talon_one'
|
335
|
+
# setup authorization
|
336
|
+
TalonOne.configure do |config|
|
337
|
+
# Configure API key authorization: api_key_v1
|
338
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
339
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
340
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
341
|
+
|
342
|
+
# Configure API key authorization: integration_auth
|
343
|
+
config.api_key['Content-Signature'] = 'YOUR API KEY'
|
344
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
345
|
+
#config.api_key_prefix['Content-Signature'] = 'Bearer'
|
346
|
+
end
|
347
|
+
|
348
|
+
api_instance = TalonOne::IntegrationApi.new
|
349
|
+
|
350
|
+
integration_id = 'integration_id_example' # String | The custom identifier for this profile, must be unique within the account.
|
351
|
+
|
352
|
+
|
353
|
+
begin
|
354
|
+
#Get all valid reserved coupons
|
355
|
+
result = api_instance.get_reserved_coupons(integration_id)
|
356
|
+
p result
|
357
|
+
rescue TalonOne::ApiError => e
|
358
|
+
puts "Exception when calling IntegrationApi->get_reserved_coupons: #{e}"
|
359
|
+
end
|
360
|
+
```
|
361
|
+
|
362
|
+
### Parameters
|
363
|
+
|
364
|
+
Name | Type | Description | Notes
|
365
|
+
------------- | ------------- | ------------- | -------------
|
366
|
+
**integration_id** | **String**| The custom identifier for this profile, must be unique within the account. |
|
367
|
+
|
368
|
+
### Return type
|
369
|
+
|
370
|
+
[**InlineResponse2001**](InlineResponse2001.md)
|
371
|
+
|
372
|
+
### Authorization
|
373
|
+
|
374
|
+
[api_key_v1](../README.md#api_key_v1), [integration_auth](../README.md#integration_auth)
|
375
|
+
|
376
|
+
### HTTP request headers
|
377
|
+
|
378
|
+
- **Content-Type**: application/json
|
379
|
+
- **Accept**: application/json
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
# **get_reserved_customers**
|
384
|
+
> InlineResponse200 get_reserved_customers(coupon_value)
|
385
|
+
|
386
|
+
Get the users that have this coupon reserved
|
387
|
+
|
388
|
+
Returns all users that have this coupon marked as reserved
|
389
|
+
|
390
|
+
### Example
|
391
|
+
```ruby
|
392
|
+
# load the gem
|
393
|
+
require 'talon_one'
|
394
|
+
# setup authorization
|
395
|
+
TalonOne.configure do |config|
|
396
|
+
# Configure API key authorization: api_key_v1
|
397
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
398
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
399
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
400
|
+
|
401
|
+
# Configure API key authorization: integration_auth
|
402
|
+
config.api_key['Content-Signature'] = 'YOUR API KEY'
|
403
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
404
|
+
#config.api_key_prefix['Content-Signature'] = 'Bearer'
|
405
|
+
end
|
406
|
+
|
407
|
+
api_instance = TalonOne::IntegrationApi.new
|
408
|
+
|
409
|
+
coupon_value = 'coupon_value_example' # String | The value of a coupon
|
410
|
+
|
411
|
+
|
412
|
+
begin
|
413
|
+
#Get the users that have this coupon reserved
|
414
|
+
result = api_instance.get_reserved_customers(coupon_value)
|
415
|
+
p result
|
416
|
+
rescue TalonOne::ApiError => e
|
417
|
+
puts "Exception when calling IntegrationApi->get_reserved_customers: #{e}"
|
418
|
+
end
|
419
|
+
```
|
420
|
+
|
421
|
+
### Parameters
|
422
|
+
|
423
|
+
Name | Type | Description | Notes
|
424
|
+
------------- | ------------- | ------------- | -------------
|
425
|
+
**coupon_value** | **String**| The value of a coupon |
|
426
|
+
|
427
|
+
### Return type
|
428
|
+
|
429
|
+
[**InlineResponse200**](InlineResponse200.md)
|
430
|
+
|
431
|
+
### Authorization
|
432
|
+
|
433
|
+
[api_key_v1](../README.md#api_key_v1), [integration_auth](../README.md#integration_auth)
|
434
|
+
|
435
|
+
### HTTP request headers
|
436
|
+
|
437
|
+
- **Content-Type**: application/json
|
438
|
+
- **Accept**: application/json
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
# **track_event**
|
443
|
+
> IntegrationState track_event(body)
|
444
|
+
|
445
|
+
Track an Event
|
446
|
+
|
447
|
+
Records an arbitrary event in a customer session. For example, an integration might record an event when a user updates their payment information. The `sessionId` body parameter is required, an event is always part of a session. Much like updating a customer session, if either the profile or the session do not exist, a new empty one will be created. Note that if the specified session already exists, it must belong to the same `profileId` or an error will be returned. As with customer sessions, you can use an empty string for `profileId` to indicate that this is an anonymous session. 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.
|
448
|
+
|
449
|
+
### Example
|
450
|
+
```ruby
|
451
|
+
# load the gem
|
452
|
+
require 'talon_one'
|
453
|
+
# setup authorization
|
454
|
+
TalonOne.configure do |config|
|
455
|
+
# Configure API key authorization: api_key_v1
|
456
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
457
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
458
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
459
|
+
|
460
|
+
# Configure API key authorization: integration_auth
|
461
|
+
config.api_key['Content-Signature'] = 'YOUR API KEY'
|
462
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
463
|
+
#config.api_key_prefix['Content-Signature'] = 'Bearer'
|
464
|
+
end
|
465
|
+
|
466
|
+
api_instance = TalonOne::IntegrationApi.new
|
467
|
+
|
468
|
+
body = TalonOne::NewEvent.new # NewEvent |
|
469
|
+
|
470
|
+
|
471
|
+
begin
|
472
|
+
#Track an Event
|
473
|
+
result = api_instance.track_event(body)
|
474
|
+
p result
|
475
|
+
rescue TalonOne::ApiError => e
|
476
|
+
puts "Exception when calling IntegrationApi->track_event: #{e}"
|
477
|
+
end
|
478
|
+
```
|
479
|
+
|
480
|
+
### Parameters
|
481
|
+
|
482
|
+
Name | Type | Description | Notes
|
483
|
+
------------- | ------------- | ------------- | -------------
|
484
|
+
**body** | [**NewEvent**](NewEvent.md)| |
|
485
|
+
|
486
|
+
### Return type
|
487
|
+
|
488
|
+
[**IntegrationState**](IntegrationState.md)
|
489
|
+
|
490
|
+
### Authorization
|
491
|
+
|
492
|
+
[api_key_v1](../README.md#api_key_v1), [integration_auth](../README.md#integration_auth)
|
493
|
+
|
494
|
+
### HTTP request headers
|
495
|
+
|
496
|
+
- **Content-Type**: application/json
|
497
|
+
- **Accept**: application/json
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
# **update_customer_profile**
|
502
|
+
> IntegrationState update_customer_profile(integration_id, body)
|
503
|
+
|
504
|
+
Update a Customer Profile
|
505
|
+
|
506
|
+
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
|
507
|
+
|
508
|
+
### Example
|
509
|
+
```ruby
|
510
|
+
# load the gem
|
511
|
+
require 'talon_one'
|
512
|
+
# setup authorization
|
513
|
+
TalonOne.configure do |config|
|
514
|
+
# Configure API key authorization: api_key_v1
|
515
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
516
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
517
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
518
|
+
|
519
|
+
# Configure API key authorization: integration_auth
|
520
|
+
config.api_key['Content-Signature'] = 'YOUR API KEY'
|
521
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
522
|
+
#config.api_key_prefix['Content-Signature'] = 'Bearer'
|
523
|
+
end
|
524
|
+
|
525
|
+
api_instance = TalonOne::IntegrationApi.new
|
526
|
+
|
527
|
+
integration_id = 'integration_id_example' # String | The custom identifier for this profile, must be unique within the account.
|
528
|
+
|
529
|
+
body = TalonOne::NewCustomerProfile.new # NewCustomerProfile |
|
530
|
+
|
531
|
+
|
532
|
+
begin
|
533
|
+
#Update a Customer Profile
|
534
|
+
result = api_instance.update_customer_profile(integration_id, body)
|
535
|
+
p result
|
536
|
+
rescue TalonOne::ApiError => e
|
537
|
+
puts "Exception when calling IntegrationApi->update_customer_profile: #{e}"
|
538
|
+
end
|
539
|
+
```
|
540
|
+
|
541
|
+
### Parameters
|
542
|
+
|
543
|
+
Name | Type | Description | Notes
|
544
|
+
------------- | ------------- | ------------- | -------------
|
545
|
+
**integration_id** | **String**| The custom identifier for this profile, must be unique within the account. |
|
546
|
+
**body** | [**NewCustomerProfile**](NewCustomerProfile.md)| |
|
547
|
+
|
548
|
+
### Return type
|
549
|
+
|
550
|
+
[**IntegrationState**](IntegrationState.md)
|
551
|
+
|
552
|
+
### Authorization
|
553
|
+
|
554
|
+
[api_key_v1](../README.md#api_key_v1), [integration_auth](../README.md#integration_auth)
|
555
|
+
|
556
|
+
### HTTP request headers
|
557
|
+
|
558
|
+
- **Content-Type**: application/json
|
559
|
+
- **Accept**: application/json
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
# **update_customer_session**
|
564
|
+
> IntegrationState update_customer_session(customer_session_id, body)
|
565
|
+
|
566
|
+
Update a Customer Session
|
567
|
+
|
568
|
+
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
|
569
|
+
|
570
|
+
### Example
|
571
|
+
```ruby
|
572
|
+
# load the gem
|
573
|
+
require 'talon_one'
|
574
|
+
# setup authorization
|
575
|
+
TalonOne.configure do |config|
|
576
|
+
# Configure API key authorization: api_key_v1
|
577
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
578
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
579
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
580
|
+
|
581
|
+
# Configure API key authorization: integration_auth
|
582
|
+
config.api_key['Content-Signature'] = 'YOUR API KEY'
|
583
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
584
|
+
#config.api_key_prefix['Content-Signature'] = 'Bearer'
|
585
|
+
end
|
586
|
+
|
587
|
+
api_instance = TalonOne::IntegrationApi.new
|
588
|
+
|
589
|
+
customer_session_id = 'customer_session_id_example' # String | The custom identifier for this session, must be unique within the account.
|
590
|
+
|
591
|
+
body = TalonOne::NewCustomerSession.new # NewCustomerSession |
|
592
|
+
|
593
|
+
|
594
|
+
begin
|
595
|
+
#Update a Customer Session
|
596
|
+
result = api_instance.update_customer_session(customer_session_id, body)
|
597
|
+
p result
|
598
|
+
rescue TalonOne::ApiError => e
|
599
|
+
puts "Exception when calling IntegrationApi->update_customer_session: #{e}"
|
600
|
+
end
|
601
|
+
```
|
602
|
+
|
603
|
+
### Parameters
|
604
|
+
|
605
|
+
Name | Type | Description | Notes
|
606
|
+
------------- | ------------- | ------------- | -------------
|
607
|
+
**customer_session_id** | **String**| The custom identifier for this session, must be unique within the account. |
|
608
|
+
**body** | [**NewCustomerSession**](NewCustomerSession.md)| |
|
609
|
+
|
610
|
+
### Return type
|
611
|
+
|
612
|
+
[**IntegrationState**](IntegrationState.md)
|
613
|
+
|
614
|
+
### Authorization
|
615
|
+
|
616
|
+
[api_key_v1](../README.md#api_key_v1), [integration_auth](../README.md#integration_auth)
|
617
|
+
|
618
|
+
### HTTP request headers
|
619
|
+
|
620
|
+
- **Content-Type**: application/json
|
621
|
+
- **Accept**: application/json
|
622
|
+
|
623
|
+
|
624
|
+
|