talon_one 0.0.10 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/Gemfile +4 -0
- data/README.md +398 -55
- data/Rakefile +6 -8
- data/docs/APIError.md +10 -0
- data/docs/AccessLogEntry.md +14 -0
- data/docs/Account.md +25 -0
- data/docs/AccountAnalytics.md +21 -0
- data/docs/AccountEntity.md +8 -0
- data/docs/AccountLimits.md +18 -0
- data/docs/Application.md +20 -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 +18 -0
- data/docs/ApplicationSessionEntity.md +8 -0
- data/docs/ApplicationStorage.md +15 -0
- data/docs/ApplicationStorageData.md +7 -0
- data/docs/ApplicationStorageTuple.md +13 -0
- data/docs/Attribute.md +20 -0
- data/docs/AttributeQuery.md +7 -0
- data/docs/Binding.md +9 -0
- data/docs/Campaign.md +30 -0
- data/docs/CampaignAnalytics.md +22 -0
- data/docs/CampaignCopy.md +9 -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/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 +10 -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 +9 -0
- data/docs/InlineResponse20027.md +9 -0
- data/docs/InlineResponse20028.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 +558 -0
- data/docs/IntegrationEntity.md +9 -0
- data/docs/IntegrationProfileEntity.md +8 -0
- data/docs/IntegrationState.md +11 -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 +5067 -0
- data/docs/ManagerConfig.md +8 -0
- data/docs/Meta.md +11 -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 +15 -0
- data/docs/NewApplicationAPIKey.md +15 -0
- data/docs/NewApplicationStorage.md +10 -0
- data/docs/NewApplicationStorageData.md +7 -0
- data/docs/NewApplicationStorageTuple.md +9 -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/NewTemplateDef.md +14 -0
- data/docs/NewUser.md +11 -0
- data/docs/NewWebhook.md +15 -0
- data/docs/Referral.md +17 -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/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/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 +16 -0
- data/docs/User.md +19 -0
- data/docs/UserEntity.md +8 -0
- data/docs/Webhook.md +19 -0
- data/docs/WebhookActivationLogEntry.md +12 -0
- data/docs/WebhookLogEntry.md +17 -0
- data/fck.rb +64 -0
- data/git_push.sh +55 -0
- data/lib/talon_one.rb +200 -4
- data/lib/talon_one/api/integration_api.rb +531 -0
- data/lib/talon_one/api/management_api.rb +5520 -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 +384 -0
- data/lib/talon_one/models/account_entity.rb +189 -0
- data/lib/talon_one/models/account_limits.rb +341 -0
- data/lib/talon_one/models/api_error.rb +213 -0
- data/lib/talon_one/models/application.rb +482 -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 +312 -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 +368 -0
- data/lib/talon_one/models/application_session_entity.rb +189 -0
- data/lib/talon_one/models/application_storage.rb +292 -0
- data/lib/talon_one/models/application_storage_data.rb +175 -0
- data/lib/talon_one/models/application_storage_tuple.rb +283 -0
- data/lib/talon_one/models/attribute.rb +416 -0
- data/lib/talon_one/models/attribute_query.rb +174 -0
- data/lib/talon_one/models/binding.rb +206 -0
- data/lib/talon_one/models/campaign.rb +514 -0
- data/lib/talon_one/models/campaign_analytics.rb +399 -0
- data/lib/talon_one/models/campaign_copy.rb +201 -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_profile.rb +297 -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 +205 -0
- data/lib/talon_one/models/event.rb +356 -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 +204 -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_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_profile_entity.rb +184 -0
- data/lib/talon_one/models/integration_state.rb +226 -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 +212 -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 +404 -0
- data/lib/talon_one/models/new_application_api_key.rb +295 -0
- data/lib/talon_one/models/new_application_storage.rb +214 -0
- data/lib/talon_one/models/new_application_storage_data.rb +175 -0
- data/lib/talon_one/models/new_application_storage_tuple.rb +222 -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_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/referral.rb +348 -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/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_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 +306 -0
- data/lib/talon_one/models/user.rb +381 -0
- data/lib/talon_one/models/user_entity.rb +189 -0
- data/lib/talon_one/models/webhook.rb +392 -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 +147 -0
- data/spec/api/management_api_spec.rb +1299 -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 +119 -0
- data/spec/models/account_entity_spec.rb +41 -0
- data/spec/models/account_limits_spec.rb +101 -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 +105 -0
- data/spec/models/application_spec.rb +117 -0
- data/spec/models/application_storage_data_spec.rb +35 -0
- data/spec/models/application_storage_spec.rb +83 -0
- data/spec/models/application_storage_tuple_spec.rb +71 -0
- data/spec/models/attribute_query_spec.rb +35 -0
- data/spec/models/attribute_spec.rb +121 -0
- data/spec/models/binding_spec.rb +47 -0
- data/spec/models/campaign_analytics_spec.rb +125 -0
- data/spec/models/campaign_copy_spec.rb +47 -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 +181 -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_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 +53 -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 +47 -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_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_profile_entity_spec.rb +41 -0
- data/spec/models/integration_state_spec.rb +59 -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 +59 -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 +87 -0
- data/spec/models/new_application_storage_data_spec.rb +35 -0
- data/spec/models/new_application_storage_spec.rb +53 -0
- data/spec/models/new_application_storage_tuple_spec.rb +47 -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_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/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/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_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 +93 -0
- data/spec/models/user_entity_spec.rb +41 -0
- data/spec/models/user_spec.rb +111 -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 +111 -0
- data/spec/spec_helper.rb +111 -0
- data/talon_one.gemspec +43 -15
- metadata +827 -33
- data/.gitignore +0 -3
- data/.travis.yml +0 -5
- data/lib/integration/client.rb +0 -88
- data/lib/integration/client_error.rb +0 -9
- data/lib/integration/customer_profile.rb +0 -21
- data/lib/integration/effect.rb +0 -20
- data/lib/integration/event.rb +0 -45
- data/lib/integration/referral_code.rb +0 -49
- data/lib/integration/rule_engine_result.rb +0 -23
- data/lib/integration/search_profiles_result.rb +0 -17
- data/lib/management/client.rb +0 -112
- data/test/test_helper.rb +0 -20
- data/test/test_integration_api_live.rb +0 -64
- data/test/test_integration_params.rb +0 -23
data/docs/Role.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# TalonOne::Role
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | The ID of the role corresponding to the DB row |
|
7
|
+
**account_id** | **Integer** | The ID of the Talon.One account that owns this role. |
|
8
|
+
**name** | **String** | Name of the role | [optional]
|
9
|
+
**description** | **String** | Description of the role | [optional]
|
10
|
+
**members** | **Array<Integer>** | A list of userid in this role | [optional]
|
11
|
+
**acl** | **String** | Role Policy this should be a stringified blob of json | [optional]
|
12
|
+
|
13
|
+
|
data/docs/RoleAssign.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# TalonOne::RoleAssign
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**users** | **Array<Integer>** | An array of userIDs |
|
7
|
+
**roles** | **Array<Integer>** | An array of roleIDs |
|
8
|
+
|
9
|
+
|
data/docs/Rule.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# TalonOne::Rule
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**title** | **String** | A short description of the rule. |
|
7
|
+
**description** | **String** | A longer, more detailed description of the rule. | [optional]
|
8
|
+
**bindings** | [**Array<Binding>**](Binding.md) | An array that provides objects with variable names (name) and talang expressions to whose result they are bound (expression) during rule evaluation. The order of the evaluation is decided by the position in the array. | [optional]
|
9
|
+
**condition** | **Array<Object>** | A Talang expression that will be evaluated in the context of the given event. |
|
10
|
+
**effects** | **Array<Object>** | An array of effectful Talang expressions in arrays that will be evaluated when a rule matches. |
|
11
|
+
|
12
|
+
|
data/docs/Ruleset.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# TalonOne::Ruleset
|
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
|
+
**campaign_id** | **Integer** | The ID of the campaign that owns this entity. |
|
9
|
+
**user_id** | **Integer** | The ID of the account that owns this entity. |
|
10
|
+
**rules** | [**Array<Rule>**](Rule.md) | Set of rules to apply. |
|
11
|
+
**bindings** | [**Array<Binding>**](Binding.md) | An array that provides objects with variable names (name) and talang expressions to whose result they are bound (expression) during rule evaluation. The order of the evaluation is decided by the position in the array. |
|
12
|
+
**rb_version** | **String** | A string indicating which version of the rulebuilder was used to create this ruleset. | [optional]
|
13
|
+
**activate** | **BOOLEAN** | A boolean indicating whether this newly created ruleset should also be activated for the campaign owns it | [optional]
|
14
|
+
**activated_at** | **DateTime** | Timestamp indicating when this Ruleset was activated. | [optional]
|
15
|
+
|
16
|
+
|
data/docs/Session.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# TalonOne::Session
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**user_id** | **Integer** | The ID of the user of this session |
|
7
|
+
**token** | **String** | An opaque session identifier |
|
8
|
+
**created** | **DateTime** | Unix timestamp indicating when the session was first created. |
|
9
|
+
|
10
|
+
|
data/docs/SlotDef.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# TalonOne::SlotDef
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | The dot-separated path to this slot for use in Talang. |
|
7
|
+
**type** | **String** | The type of this slot, one of string, number, boolean, or list[type]. |
|
8
|
+
**title** | **String** | Campaigner-friendly name for the slot. |
|
9
|
+
**description** | **String** | A short description of the slot. | [optional]
|
10
|
+
**help** | **String** | Extended help text for the slot. | [optional]
|
11
|
+
**writable** | **BOOLEAN** | Whether or not this slot can be updated by rule effects. |
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# TalonOne::TemplateArgDef
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | The type of value this argument expects. |
|
7
|
+
**description** | **String** | A campaigner-friendly description of the argument, this will also be shown in the rule editor. |
|
8
|
+
**title** | **String** | A campaigner friendly name for the argument, this will be shown in the rule editor. |
|
9
|
+
**ui** | **Object** | Arbitrary metadata that may be used to render an input for this argument. |
|
10
|
+
|
11
|
+
|
data/docs/TemplateDef.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# TalonOne::TemplateDef
|
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
|
+
**application_id** | **Integer** | The ID of the application that owns this entity. |
|
9
|
+
**title** | **String** | Campaigner-friendly name for the template that will be shown in the rule editor. |
|
10
|
+
**description** | **String** | A short description of the template that will be shown in the rule editor. |
|
11
|
+
**help** | **String** | Extended help text for the template. |
|
12
|
+
**category** | **String** | Used for grouping templates in the rule editor sidebar. |
|
13
|
+
**expr** | **Array<Object>** | A Talang expression that contains variable bindings referring to args. |
|
14
|
+
**args** | [**Array<TemplateArgDef>**](TemplateArgDef.md) | An array of argument definitions. |
|
15
|
+
**expose** | **BOOLEAN** | A flag to control exposure in Rule Builder. | [optional] [default to false]
|
16
|
+
**name** | **String** | The template name used in Talang. |
|
17
|
+
|
18
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# TalonOne::UpdateAccount
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**attributes** | **Object** | Arbitrary properties associated with this campaign | [optional]
|
7
|
+
**company_name** | **String** | Name of your company. |
|
8
|
+
**billing_email** | **String** | The billing email address associated with your company account. |
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# TalonOne::UpdateCampaign
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | A friendly name for this campaign. |
|
7
|
+
**description** | **String** | A detailed description of the campaign. | [optional]
|
8
|
+
**start_time** | **DateTime** | Datetime when the campaign will become active. | [optional]
|
9
|
+
**end_time** | **DateTime** | Datetime when the campaign will become in-active. | [optional]
|
10
|
+
**attributes** | **Object** | Arbitrary properties associated with this campaign | [optional]
|
11
|
+
**state** | **String** | A disabled or archived campaign is not evaluated for rules or coupons. | [optional] [default to 'enabled']
|
12
|
+
**active_ruleset_id** | **Integer** | ID of Ruleset this campaign applies on customer session evaluation. | [optional]
|
13
|
+
**tags** | **Array<String>** | A list of tags for the campaign. |
|
14
|
+
**features** | **Array<String>** | A list of features for the campaign. |
|
15
|
+
**coupon_settings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional]
|
16
|
+
**referral_settings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional]
|
17
|
+
**limits** | [**Array<LimitConfig>**](LimitConfig.md) | The set of limits that will operate for this campaign |
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# TalonOne::UpdateCoupon
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**usage_limit** | **Integer** | The number of times a coupon code can be redeemed. This can be set to 0 for no limit, but any campaign usage limits will still apply. | [optional]
|
7
|
+
**start_date** | **DateTime** | Timestamp at which point the coupon becomes valid. | [optional]
|
8
|
+
**expiry_date** | **DateTime** | Expiry date of the coupon. Coupon never expires if this is omitted, zero, or negative. | [optional]
|
9
|
+
**recipient_integration_id** | **String** | The integration ID for this coupon's beneficiary's profile | [optional]
|
10
|
+
**attributes** | **Object** | Arbitrary properties associated with this item | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# TalonOne::UpdateCouponBatch
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**usage_limit** | **Integer** | The number of times a coupon code can be redeemed. This can be set to 0 for no limit, but any campaign usage limits will still apply. | [optional]
|
7
|
+
**start_date** | **DateTime** | Timestamp at which point the coupon becomes valid. | [optional]
|
8
|
+
**expiry_date** | **DateTime** | Expiry date of the coupon. Coupon never expires if this is omitted, zero, or negative. | [optional]
|
9
|
+
**attributes** | **Object** | Arbitrary properties associated with this item | [optional]
|
10
|
+
**batch_id** | **String** | The id of the batch the coupon belongs to. |
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# TalonOne::UpdateLoyaltyProgram
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**title** | **String** | The display title for the Loyalty Program. | [optional]
|
7
|
+
**description** | **String** | Description of our Loyalty Program. | [optional]
|
8
|
+
**subscribed_applications** | **Array<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional]
|
9
|
+
**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' or '30d'. | [optional]
|
10
|
+
**allow_subledger** | **BOOLEAN** | Indicates if this program supports subledgers inside the program | [optional]
|
11
|
+
|
12
|
+
|
data/docs/UpdateRole.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# TalonOne::UpdateRole
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | Name of the role | [optional]
|
7
|
+
**description** | **String** | Description of the role | [optional]
|
8
|
+
**acl** | **String** | Role Policy this should be a stringified blob of json | [optional]
|
9
|
+
**users** | **Array<Integer>** | an array of userids | [optional]
|
10
|
+
|
11
|
+
|
data/docs/UpdateUser.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# TalonOne::UpdateUser
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**email** | **String** | The email address associated with your account. |
|
7
|
+
**name** | **String** | Your name. | [optional]
|
8
|
+
**password** | **String** | Your old password. | [optional]
|
9
|
+
**new_password** | **String** | Your new password. | [optional]
|
10
|
+
**policy** | **String** | a blob of acl json | [optional]
|
11
|
+
**state** | **String** | New state (\"deactivated\" or \"active\") for the user. Only usable by admins for the user. | [optional]
|
12
|
+
**release_update** | **BOOLEAN** | Update the user via email | [optional]
|
13
|
+
**latest_feature** | **String** | The latest feature you've been notified. | [optional]
|
14
|
+
**roles** | **Array<Integer>** | Update | [optional]
|
15
|
+
|
16
|
+
|
data/docs/User.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# TalonOne::User
|
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
|
+
**modified** | **DateTime** | The exact moment this entity was last modified. |
|
9
|
+
**email** | **String** | The email address associated with your account. |
|
10
|
+
**account_id** | **Integer** | The ID of the account that owns this entity. |
|
11
|
+
**invite_token** | **String** | Invite token, empty if the user as already accepted their invite. |
|
12
|
+
**state** | **String** | Current user state. |
|
13
|
+
**name** | **String** | Full name |
|
14
|
+
**policy** | **String** | A blob of ACL JSON |
|
15
|
+
**release_update** | **BOOLEAN** | Update the user via email |
|
16
|
+
**latest_feature** | **String** | Latest feature the user has been notified. | [optional]
|
17
|
+
**roles** | **Array<Integer>** | Contains a list of all roles a user is a memeber of | [optional]
|
18
|
+
|
19
|
+
|
data/docs/UserEntity.md
ADDED
data/docs/Webhook.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# TalonOne::Webhook
|
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
|
+
**modified** | **DateTime** | The exact moment this entity was last modified. |
|
9
|
+
**application_ids** | **Array<Integer>** | The IDs of the applications that are related to this entity. The IDs of the applications that are related to this entity. |
|
10
|
+
**title** | **String** | Friendly title for this webhook |
|
11
|
+
**verb** | **String** | API method for this webhook |
|
12
|
+
**url** | **String** | API url (supports templating using parameters) for this webhook |
|
13
|
+
**headers** | **Array<String>** | List of API HTTP headers for this webhook |
|
14
|
+
**payload** | **String** | API payload (supports templating using parameters) for this webhook | [optional]
|
15
|
+
**params** | [**Array<TemplateArgDef>**](TemplateArgDef.md) | Array of template argument definitions |
|
16
|
+
**enabled** | **BOOLEAN** | Enables or disables webhook from showing in rule builder |
|
17
|
+
**used_at** | **Array<String>** | array of rulesets where webhook is used |
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# TalonOne::WebhookActivationLogEntry
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**integration_request_uuid** | **String** | UUID reference of the integration request that triggered the effect with the webhook |
|
7
|
+
**webhook_id** | **Integer** | ID of the webhook that triggered the request |
|
8
|
+
**application_id** | **Integer** | ID of the application that triggered the webhook |
|
9
|
+
**campaign_id** | **Integer** | ID of the campaign that triggered the webhook |
|
10
|
+
**created** | **DateTime** | Timestamp of request |
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# TalonOne::WebhookLogEntry
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | UUID reference of the webhook request |
|
7
|
+
**integration_request_uuid** | **String** | UUID reference of the integration request linked to this webhook request |
|
8
|
+
**webhook_id** | **Integer** | ID of the webhook that triggered the request |
|
9
|
+
**application_id** | **Integer** | ID of the application that triggered the webhook | [optional]
|
10
|
+
**url** | **String** | Target url of request |
|
11
|
+
**request** | **String** | Request message |
|
12
|
+
**response** | **String** | Response message | [optional]
|
13
|
+
**status** | **Integer** | HTTP status code of response | [optional]
|
14
|
+
**request_time** | **DateTime** | Timestamp of request |
|
15
|
+
**response_time** | **DateTime** | Timestamp of response | [optional]
|
16
|
+
|
17
|
+
|
data/fck.rb
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# Load the gem
|
2
|
+
require 'talon_one'
|
3
|
+
|
4
|
+
# Setup authorization
|
5
|
+
TalonOne.configure do |config|
|
6
|
+
# Configure the API host destination
|
7
|
+
config.host = 'localhost:9000'
|
8
|
+
config.scheme = 'http'
|
9
|
+
|
10
|
+
# Configure API key authorization: api_key_v1
|
11
|
+
config.api_key['Authorization'] = 'e18149e88f42247f09281c9d3d0e7b7179302722577ad60cebc86c4333b6fb70'
|
12
|
+
config.api_key_prefix['Authorization'] = 'ApiKey-v1'
|
13
|
+
end
|
14
|
+
|
15
|
+
# # Management API example to load application with id 7
|
16
|
+
# management_api = TalonOne::ManagementApi.new
|
17
|
+
|
18
|
+
# begin
|
19
|
+
# # Acquire session token
|
20
|
+
# login_params = TalonOne::LoginParams.new({
|
21
|
+
# 'email': 'demo@talon.one',
|
22
|
+
# 'password': 'Demo1234'
|
23
|
+
# })
|
24
|
+
|
25
|
+
# login_result = management_api.create_session(login_params)
|
26
|
+
# token = login_result.token
|
27
|
+
|
28
|
+
# # Save token in the configuration for future management API calls
|
29
|
+
# TalonOne.configure do |config|
|
30
|
+
# # Configure API key authorization: manager_auth
|
31
|
+
# config.api_key['Authorization'] = token
|
32
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
33
|
+
# end
|
34
|
+
|
35
|
+
# # Calling get_application function with the desired id (7)
|
36
|
+
# result = management_api.get_application(1)
|
37
|
+
# # Print result to the console
|
38
|
+
# puts result
|
39
|
+
|
40
|
+
# rescue TalonOne::ApiError => e
|
41
|
+
# puts "Exception when calling ManagementApi: #{e}"
|
42
|
+
# end
|
43
|
+
|
44
|
+
# Integration API example to send a session update
|
45
|
+
integration_api = TalonOne::IntegrationApi.new
|
46
|
+
|
47
|
+
session_integration_id = 'f985583f-fa7d-4098-91dd-99c898ed3cd3' # String | The integration identifier of the session
|
48
|
+
|
49
|
+
# NewCustomerSession Object
|
50
|
+
customer_session = TalonOne::NewCustomerSession.new({
|
51
|
+
'coupon': 'Kewl',
|
52
|
+
'total': 100,
|
53
|
+
'state': 'open'
|
54
|
+
})
|
55
|
+
|
56
|
+
begin
|
57
|
+
# Create/update a customer session using `update_customer_session` function
|
58
|
+
result = integration_api.update_customer_session(session_integration_id, customer_session)
|
59
|
+
|
60
|
+
# Prints response to the console
|
61
|
+
puts result
|
62
|
+
rescue TalonOne::ApiError => e
|
63
|
+
puts "Exception when calling IntegrationApi->update_customer_session: #{e}"
|
64
|
+
end
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
data/lib/talon_one.rb
CHANGED
@@ -1,7 +1,203 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
=begin
|
2
|
+
#Talon.One API
|
3
|
+
|
4
|
+
#The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.7
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'talon_one/api_client'
|
15
|
+
require 'talon_one/api_error'
|
16
|
+
require 'talon_one/version'
|
17
|
+
require 'talon_one/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'talon_one/models/api_error'
|
21
|
+
require 'talon_one/models/access_log_entry'
|
22
|
+
require 'talon_one/models/account'
|
23
|
+
require 'talon_one/models/account_analytics'
|
24
|
+
require 'talon_one/models/account_entity'
|
25
|
+
require 'talon_one/models/account_limits'
|
26
|
+
require 'talon_one/models/application'
|
27
|
+
require 'talon_one/models/application_api_key'
|
28
|
+
require 'talon_one/models/application_api_health'
|
29
|
+
require 'talon_one/models/application_customer'
|
30
|
+
require 'talon_one/models/application_customer_entity'
|
31
|
+
require 'talon_one/models/application_customer_search'
|
32
|
+
require 'talon_one/models/application_entity'
|
33
|
+
require 'talon_one/models/application_event'
|
34
|
+
require 'talon_one/models/application_session'
|
35
|
+
require 'talon_one/models/application_session_entity'
|
36
|
+
require 'talon_one/models/application_storage'
|
37
|
+
require 'talon_one/models/application_storage_data'
|
38
|
+
require 'talon_one/models/application_storage_tuple'
|
39
|
+
require 'talon_one/models/attribute'
|
40
|
+
require 'talon_one/models/attribute_query'
|
41
|
+
require 'talon_one/models/binding'
|
42
|
+
require 'talon_one/models/campaign'
|
43
|
+
require 'talon_one/models/campaign_analytics'
|
44
|
+
require 'talon_one/models/campaign_copy'
|
45
|
+
require 'talon_one/models/campaign_entity'
|
46
|
+
require 'talon_one/models/campaign_search'
|
47
|
+
require 'talon_one/models/campaign_set'
|
48
|
+
require 'talon_one/models/campaign_set_branch_node'
|
49
|
+
require 'talon_one/models/campaign_set_leaf_node'
|
50
|
+
require 'talon_one/models/campaign_set_node'
|
51
|
+
require 'talon_one/models/cart_item'
|
52
|
+
require 'talon_one/models/cart_item_adjustment'
|
53
|
+
require 'talon_one/models/change'
|
54
|
+
require 'talon_one/models/code_generator_settings'
|
55
|
+
require 'talon_one/models/coupon'
|
56
|
+
require 'talon_one/models/coupon_constraints'
|
57
|
+
require 'talon_one/models/coupon_rejection_reason'
|
58
|
+
require 'talon_one/models/coupon_reservations'
|
59
|
+
require 'talon_one/models/coupon_search'
|
60
|
+
require 'talon_one/models/coupon_value'
|
61
|
+
require 'talon_one/models/create_application_api_key'
|
62
|
+
require 'talon_one/models/customer_activity_report'
|
63
|
+
require 'talon_one/models/customer_analytics'
|
64
|
+
require 'talon_one/models/customer_profile'
|
65
|
+
require 'talon_one/models/customer_profile_search_query'
|
66
|
+
require 'talon_one/models/customer_session'
|
67
|
+
require 'talon_one/models/email_entity'
|
68
|
+
require 'talon_one/models/entity'
|
69
|
+
require 'talon_one/models/environment'
|
70
|
+
require 'talon_one/models/error_response'
|
71
|
+
require 'talon_one/models/error_source'
|
72
|
+
require 'talon_one/models/event'
|
73
|
+
require 'talon_one/models/event_type'
|
74
|
+
require 'talon_one/models/export'
|
75
|
+
require 'talon_one/models/feature_flag'
|
76
|
+
require 'talon_one/models/feature_flags'
|
77
|
+
require 'talon_one/models/features_feed'
|
78
|
+
require 'talon_one/models/func_arg_def'
|
79
|
+
require 'talon_one/models/function_def'
|
80
|
+
require 'talon_one/models/import'
|
81
|
+
require 'talon_one/models/import_coupons'
|
82
|
+
require 'talon_one/models/inline_response_200'
|
83
|
+
require 'talon_one/models/inline_response_200_1'
|
84
|
+
require 'talon_one/models/inline_response_200_10'
|
85
|
+
require 'talon_one/models/inline_response_200_11'
|
86
|
+
require 'talon_one/models/inline_response_200_12'
|
87
|
+
require 'talon_one/models/inline_response_200_13'
|
88
|
+
require 'talon_one/models/inline_response_200_14'
|
89
|
+
require 'talon_one/models/inline_response_200_15'
|
90
|
+
require 'talon_one/models/inline_response_200_16'
|
91
|
+
require 'talon_one/models/inline_response_200_17'
|
92
|
+
require 'talon_one/models/inline_response_200_18'
|
93
|
+
require 'talon_one/models/inline_response_200_19'
|
94
|
+
require 'talon_one/models/inline_response_200_2'
|
95
|
+
require 'talon_one/models/inline_response_200_20'
|
96
|
+
require 'talon_one/models/inline_response_200_21'
|
97
|
+
require 'talon_one/models/inline_response_200_22'
|
98
|
+
require 'talon_one/models/inline_response_200_23'
|
99
|
+
require 'talon_one/models/inline_response_200_24'
|
100
|
+
require 'talon_one/models/inline_response_200_25'
|
101
|
+
require 'talon_one/models/inline_response_200_26'
|
102
|
+
require 'talon_one/models/inline_response_200_27'
|
103
|
+
require 'talon_one/models/inline_response_200_28'
|
104
|
+
require 'talon_one/models/inline_response_200_3'
|
105
|
+
require 'talon_one/models/inline_response_200_4'
|
106
|
+
require 'talon_one/models/inline_response_200_5'
|
107
|
+
require 'talon_one/models/inline_response_200_6'
|
108
|
+
require 'talon_one/models/inline_response_200_7'
|
109
|
+
require 'talon_one/models/inline_response_200_8'
|
110
|
+
require 'talon_one/models/inline_response_200_9'
|
111
|
+
require 'talon_one/models/integration_entity'
|
112
|
+
require 'talon_one/models/integration_profile_entity'
|
113
|
+
require 'talon_one/models/integration_state'
|
114
|
+
require 'talon_one/models/ledger_entry'
|
115
|
+
require 'talon_one/models/library_attribute'
|
116
|
+
require 'talon_one/models/limit_config'
|
117
|
+
require 'talon_one/models/login_params'
|
118
|
+
require 'talon_one/models/loyalty'
|
119
|
+
require 'talon_one/models/loyalty_ledger'
|
120
|
+
require 'talon_one/models/loyalty_ledger_entry'
|
121
|
+
require 'talon_one/models/loyalty_membership'
|
122
|
+
require 'talon_one/models/loyalty_points'
|
123
|
+
require 'talon_one/models/loyalty_program'
|
124
|
+
require 'talon_one/models/loyalty_program_balance'
|
125
|
+
require 'talon_one/models/loyalty_program_ledgers'
|
126
|
+
require 'talon_one/models/loyalty_sub_ledger'
|
127
|
+
require 'talon_one/models/manager_config'
|
128
|
+
require 'talon_one/models/meta'
|
129
|
+
require 'talon_one/models/misc_update_user_latest_feature'
|
130
|
+
require 'talon_one/models/multi_application_entity'
|
131
|
+
require 'talon_one/models/mutable_entity'
|
132
|
+
require 'talon_one/models/new_account'
|
133
|
+
require 'talon_one/models/new_account_sign_up'
|
134
|
+
require 'talon_one/models/new_application'
|
135
|
+
require 'talon_one/models/new_application_api_key'
|
136
|
+
require 'talon_one/models/new_application_storage'
|
137
|
+
require 'talon_one/models/new_application_storage_data'
|
138
|
+
require 'talon_one/models/new_application_storage_tuple'
|
139
|
+
require 'talon_one/models/new_attribute'
|
140
|
+
require 'talon_one/models/new_campaign'
|
141
|
+
require 'talon_one/models/new_campaign_set'
|
142
|
+
require 'talon_one/models/new_coupons'
|
143
|
+
require 'talon_one/models/new_customer_profile'
|
144
|
+
require 'talon_one/models/new_customer_session'
|
145
|
+
require 'talon_one/models/new_event'
|
146
|
+
require 'talon_one/models/new_event_type'
|
147
|
+
require 'talon_one/models/new_feature_flags'
|
148
|
+
require 'talon_one/models/new_import'
|
149
|
+
require 'talon_one/models/new_invitation'
|
150
|
+
require 'talon_one/models/new_invite_email'
|
151
|
+
require 'talon_one/models/new_loyalty_program'
|
152
|
+
require 'talon_one/models/new_password'
|
153
|
+
require 'talon_one/models/new_password_email'
|
154
|
+
require 'talon_one/models/new_referral'
|
155
|
+
require 'talon_one/models/new_role'
|
156
|
+
require 'talon_one/models/new_ruleset'
|
157
|
+
require 'talon_one/models/new_template_def'
|
158
|
+
require 'talon_one/models/new_user'
|
159
|
+
require 'talon_one/models/new_webhook'
|
160
|
+
require 'talon_one/models/referral'
|
161
|
+
require 'talon_one/models/role'
|
162
|
+
require 'talon_one/models/role_assign'
|
163
|
+
require 'talon_one/models/role_membership'
|
164
|
+
require 'talon_one/models/rule'
|
165
|
+
require 'talon_one/models/ruleset'
|
166
|
+
require 'talon_one/models/session'
|
167
|
+
require 'talon_one/models/slot_def'
|
168
|
+
require 'talon_one/models/template_arg_def'
|
169
|
+
require 'talon_one/models/template_def'
|
170
|
+
require 'talon_one/models/update_account'
|
171
|
+
require 'talon_one/models/update_campaign'
|
172
|
+
require 'talon_one/models/update_coupon'
|
173
|
+
require 'talon_one/models/update_coupon_batch'
|
174
|
+
require 'talon_one/models/update_loyalty_program'
|
175
|
+
require 'talon_one/models/update_role'
|
176
|
+
require 'talon_one/models/update_user'
|
177
|
+
require 'talon_one/models/user'
|
178
|
+
require 'talon_one/models/user_entity'
|
179
|
+
require 'talon_one/models/webhook'
|
180
|
+
require 'talon_one/models/webhook_activation_log_entry'
|
181
|
+
require 'talon_one/models/webhook_log_entry'
|
182
|
+
|
183
|
+
# APIs
|
184
|
+
require 'talon_one/api/integration_api'
|
185
|
+
require 'talon_one/api/management_api'
|
5
186
|
|
6
187
|
module TalonOne
|
188
|
+
class << self
|
189
|
+
# Customize default settings for the SDK using block.
|
190
|
+
# TalonOne.configure do |config|
|
191
|
+
# config.username = "xxx"
|
192
|
+
# config.password = "xxx"
|
193
|
+
# end
|
194
|
+
# If no block given, return the default Configuration object.
|
195
|
+
def configure
|
196
|
+
if block_given?
|
197
|
+
yield(Configuration.default)
|
198
|
+
else
|
199
|
+
Configuration.default
|
200
|
+
end
|
201
|
+
end
|
202
|
+
end
|
7
203
|
end
|