talon_one 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +29 -9
- data/docs/AccountAnalytics.md +25 -19
- data/docs/AccountLimits.md +13 -13
- data/docs/AddLoyaltyPointsEffectProps.md +4 -2
- data/docs/Application.md +9 -1
- data/docs/ApplicationAPIKey.md +8 -6
- data/docs/ApplicationCustomer.md +3 -1
- data/docs/ApplicationSession.md +1 -1
- data/docs/Audience.md +27 -0
- data/docs/AudienceMembership.md +19 -0
- data/docs/Campaign.md +2 -0
- data/docs/CampaignAnalytics.md +9 -1
- data/docs/CampaignCopy.md +1 -1
- data/docs/CampaignGroup.md +31 -0
- data/docs/CampaignGroupEntity.md +17 -0
- data/docs/CreateApplicationAPIKey.md +3 -1
- data/docs/CustomerActivityReport.md +1 -1
- data/docs/CustomerInventory.md +2 -0
- data/docs/CustomerProfile.md +3 -1
- data/docs/CustomerProfileAudienceRequest.md +17 -0
- data/docs/CustomerProfileAudienceRequestItem.md +21 -0
- data/docs/CustomerProfileIntegrationRequestV2.md +19 -0
- data/docs/CustomerSession.md +1 -1
- data/docs/CustomerSessionV2.md +1 -1
- data/docs/EntityWithTalangVisibleID.md +19 -0
- data/docs/FeedNotification.md +27 -0
- data/docs/InlineResponse20012.md +3 -1
- data/docs/IntegrationApi.md +139 -18
- data/docs/IntegrationEntity.md +1 -1
- data/docs/LoyaltyLedgerEntry.md +2 -0
- data/docs/LoyaltyPoints.md +4 -2
- data/docs/LoyaltyProgram.md +3 -1
- data/docs/LoyaltyStatistics.md +23 -0
- data/docs/LoyaltySubLedger.md +18 -4
- data/docs/ManagementApi.md +75 -10
- data/docs/Meta.md +1 -1
- data/docs/MultipleCustomerProfileIntegrationRequest.md +17 -0
- data/docs/MultipleCustomerProfileIntegrationRequestItem.md +19 -0
- data/docs/MultipleCustomerProfileIntegrationResponseV2.md +17 -0
- data/docs/NewApplication.md +9 -1
- data/docs/NewApplicationAPIKey.md +7 -5
- data/docs/NewAudience.md +21 -0
- data/docs/NewCampaign.md +3 -1
- data/docs/NewCampaignGroup.md +23 -0
- data/docs/NewLoyaltyProgram.md +3 -1
- data/docs/Role.md +3 -1
- data/docs/SetDiscountEffectProps.md +3 -1
- data/docs/SetDiscountPerItemEffectProps.md +3 -1
- data/docs/UpdateApplication.md +10 -2
- data/docs/UpdateAudience.md +17 -0
- data/docs/UpdateCampaign.md +3 -1
- data/docs/UpdateCampaignGroup.md +23 -0
- data/docs/UpdateLoyaltyProgram.md +3 -1
- data/docs/UpdateUser.md +0 -4
- data/docs/UpdateUserLatestFeedTimestamp.md +17 -0
- data/docs/User.md +3 -5
- data/docs/UserFeedNotifications.md +19 -0
- data/lib/talon_one.rb +20 -3
- data/lib/talon_one/api/integration_api.rb +163 -25
- data/lib/talon_one/api/management_api.rb +86 -14
- data/lib/talon_one/api_client.rb +8 -6
- data/lib/talon_one/api_error.rb +1 -1
- data/lib/talon_one/configuration.rb +1 -1
- data/lib/talon_one/models/accept_coupon_effect_props.rb +1 -1
- data/lib/talon_one/models/accept_referral_effect_props.rb +1 -1
- data/lib/talon_one/models/access_log_entry.rb +1 -1
- data/lib/talon_one/models/account.rb +1 -1
- data/lib/talon_one/models/account_additional_cost.rb +1 -1
- data/lib/talon_one/models/account_analytics.rb +102 -57
- data/lib/talon_one/models/account_entity.rb +1 -1
- data/lib/talon_one/models/account_limits.rb +28 -23
- data/lib/talon_one/models/add_free_item_effect_props.rb +1 -1
- data/lib/talon_one/models/add_loyalty_points_effect_props.rb +19 -14
- data/lib/talon_one/models/additional_cost.rb +1 -1
- data/lib/talon_one/models/api_error.rb +1 -1
- data/lib/talon_one/models/application.rb +55 -3
- data/lib/talon_one/models/application_api_health.rb +1 -1
- data/lib/talon_one/models/application_api_key.rb +79 -34
- data/lib/talon_one/models/application_customer.rb +15 -3
- data/lib/talon_one/models/application_customer_entity.rb +1 -1
- data/lib/talon_one/models/application_customer_search.rb +1 -1
- data/lib/talon_one/models/application_entity.rb +1 -1
- data/lib/talon_one/models/application_event.rb +1 -1
- data/lib/talon_one/models/application_session.rb +2 -2
- data/lib/talon_one/models/application_session_entity.rb +1 -1
- data/lib/talon_one/models/attribute.rb +1 -1
- data/lib/talon_one/models/attributes_mandatory.rb +1 -1
- data/lib/talon_one/models/attributes_settings.rb +1 -1
- data/lib/talon_one/models/audience.rb +360 -0
- data/lib/talon_one/models/audience_membership.rb +227 -0
- data/lib/talon_one/models/base_saml_connection.rb +1 -1
- data/lib/talon_one/models/binding.rb +1 -1
- data/lib/talon_one/models/campaign.rb +14 -2
- data/lib/talon_one/models/campaign_analytics.rb +65 -5
- data/lib/talon_one/models/campaign_copy.rb +2 -2
- data/lib/talon_one/models/campaign_entity.rb +1 -1
- data/lib/talon_one/models/campaign_group.rb +326 -0
- data/lib/talon_one/models/campaign_group_entity.rb +209 -0
- data/lib/talon_one/models/campaign_search.rb +1 -1
- data/lib/talon_one/models/campaign_set.rb +1 -1
- data/lib/talon_one/models/campaign_set_branch_node.rb +1 -1
- data/lib/talon_one/models/campaign_set_leaf_node.rb +1 -1
- data/lib/talon_one/models/campaign_set_node.rb +1 -1
- data/lib/talon_one/models/cart_item.rb +1 -1
- data/lib/talon_one/models/cart_item_adjustment.rb +1 -1
- data/lib/talon_one/models/change.rb +1 -1
- data/lib/talon_one/models/change_profile_password.rb +1 -1
- data/lib/talon_one/models/code_generator_settings.rb +1 -1
- data/lib/talon_one/models/coupon.rb +1 -1
- data/lib/talon_one/models/coupon_constraints.rb +1 -1
- data/lib/talon_one/models/coupon_created_effect_props.rb +1 -1
- data/lib/talon_one/models/coupon_rejection_reason.rb +3 -3
- data/lib/talon_one/models/coupon_reservations.rb +1 -1
- data/lib/talon_one/models/coupon_search.rb +1 -1
- data/lib/talon_one/models/coupon_value.rb +1 -1
- data/lib/talon_one/models/create_application_api_key.rb +49 -5
- data/lib/talon_one/models/customer_activity_report.rb +2 -2
- data/lib/talon_one/models/customer_analytics.rb +1 -1
- data/lib/talon_one/models/customer_inventory.rb +11 -2
- data/lib/talon_one/models/customer_profile.rb +15 -3
- data/lib/talon_one/models/{misc_update_user_latest_feature.rb → customer_profile_audience_request.rb} +13 -11
- data/lib/talon_one/models/customer_profile_audience_request_item.rb +273 -0
- data/lib/talon_one/models/customer_profile_integration_request_v2.rb +242 -0
- data/lib/talon_one/models/customer_profile_search_query.rb +1 -1
- data/lib/talon_one/models/customer_session.rb +2 -2
- data/lib/talon_one/models/customer_session_v2.rb +2 -2
- data/lib/talon_one/models/deduct_loyalty_points_effect_props.rb +1 -1
- data/lib/talon_one/models/effect.rb +1 -1
- data/lib/talon_one/models/effect_entity.rb +1 -1
- data/lib/talon_one/models/email_entity.rb +1 -1
- data/lib/talon_one/models/entity.rb +1 -1
- data/lib/talon_one/models/entity_with_talang_visible_id.rb +227 -0
- data/lib/talon_one/models/environment.rb +1 -1
- data/lib/talon_one/models/error_effect_props.rb +1 -1
- data/lib/talon_one/models/error_response.rb +1 -1
- data/lib/talon_one/models/error_source.rb +1 -1
- data/lib/talon_one/models/event.rb +1 -1
- data/lib/talon_one/models/event_type.rb +1 -1
- data/lib/talon_one/models/export.rb +1 -1
- data/lib/talon_one/models/feature_flag.rb +1 -1
- data/lib/talon_one/models/feature_flags.rb +1 -1
- data/lib/talon_one/models/features_feed.rb +1 -1
- data/lib/talon_one/models/feed_notification.rb +322 -0
- data/lib/talon_one/models/func_arg_def.rb +1 -1
- data/lib/talon_one/models/function_def.rb +1 -1
- data/lib/talon_one/models/import.rb +1 -1
- data/lib/talon_one/models/import_coupons.rb +1 -1
- data/lib/talon_one/models/inline_response200.rb +1 -1
- data/lib/talon_one/models/inline_response2001.rb +1 -1
- data/lib/talon_one/models/inline_response20010.rb +1 -1
- data/lib/talon_one/models/inline_response20011.rb +1 -1
- data/lib/talon_one/models/inline_response20012.rb +11 -7
- data/lib/talon_one/models/inline_response20013.rb +1 -1
- data/lib/talon_one/models/inline_response20014.rb +1 -1
- data/lib/talon_one/models/inline_response20015.rb +1 -1
- data/lib/talon_one/models/inline_response20016.rb +1 -1
- data/lib/talon_one/models/inline_response20017.rb +1 -1
- data/lib/talon_one/models/inline_response20018.rb +1 -1
- data/lib/talon_one/models/inline_response20019.rb +1 -1
- data/lib/talon_one/models/inline_response2002.rb +1 -1
- data/lib/talon_one/models/inline_response20020.rb +1 -1
- data/lib/talon_one/models/inline_response20021.rb +1 -1
- data/lib/talon_one/models/inline_response20022.rb +1 -1
- data/lib/talon_one/models/inline_response20023.rb +1 -1
- data/lib/talon_one/models/inline_response20024.rb +1 -1
- data/lib/talon_one/models/inline_response20025.rb +1 -1
- data/lib/talon_one/models/inline_response20026.rb +1 -1
- data/lib/talon_one/models/inline_response20027.rb +1 -1
- data/lib/talon_one/models/inline_response20028.rb +1 -1
- data/lib/talon_one/models/inline_response20029.rb +1 -1
- data/lib/talon_one/models/inline_response2003.rb +1 -1
- data/lib/talon_one/models/inline_response20030.rb +1 -1
- data/lib/talon_one/models/inline_response2004.rb +1 -1
- data/lib/talon_one/models/inline_response2005.rb +1 -1
- data/lib/talon_one/models/inline_response2006.rb +1 -1
- data/lib/talon_one/models/inline_response2007.rb +1 -1
- data/lib/talon_one/models/inline_response2008.rb +1 -1
- data/lib/talon_one/models/inline_response2009.rb +1 -1
- data/lib/talon_one/models/integration_entity.rb +2 -2
- data/lib/talon_one/models/integration_event.rb +1 -1
- data/lib/talon_one/models/integration_profile_entity.rb +1 -1
- data/lib/talon_one/models/integration_request.rb +1 -1
- data/lib/talon_one/models/integration_state.rb +1 -1
- data/lib/talon_one/models/integration_state_v2.rb +1 -1
- data/lib/talon_one/models/ledger_entry.rb +1 -1
- data/lib/talon_one/models/library_attribute.rb +1 -1
- data/lib/talon_one/models/limit_config.rb +1 -1
- data/lib/talon_one/models/login_params.rb +1 -1
- data/lib/talon_one/models/loyalty.rb +1 -1
- data/lib/talon_one/models/loyalty_ledger.rb +1 -1
- data/lib/talon_one/models/loyalty_ledger_entry.rb +11 -2
- data/lib/talon_one/models/loyalty_membership.rb +1 -1
- data/lib/talon_one/models/loyalty_points.rb +19 -9
- data/lib/talon_one/models/loyalty_program.rb +18 -3
- data/lib/talon_one/models/loyalty_program_balance.rb +1 -1
- data/lib/talon_one/models/loyalty_program_ledgers.rb +1 -1
- data/lib/talon_one/models/loyalty_statistics.rb +258 -0
- data/lib/talon_one/models/loyalty_sub_ledger.rb +104 -7
- data/lib/talon_one/models/manager_config.rb +1 -1
- data/lib/talon_one/models/meta.rb +2 -1
- data/lib/talon_one/models/multi_application_entity.rb +1 -1
- data/lib/talon_one/models/multiple_customer_profile_integration_request.rb +208 -0
- data/lib/talon_one/models/multiple_customer_profile_integration_request_item.rb +223 -0
- data/lib/talon_one/models/{customer_profile_update.rb → multiple_customer_profile_integration_response_v2.rb} +13 -16
- data/lib/talon_one/models/mutable_entity.rb +1 -1
- data/lib/talon_one/models/new_account.rb +1 -1
- data/lib/talon_one/models/new_account_sign_up.rb +1 -1
- data/lib/talon_one/models/new_additional_cost.rb +1 -1
- data/lib/talon_one/models/new_application.rb +55 -3
- data/lib/talon_one/models/new_application_api_key.rb +76 -32
- data/lib/talon_one/models/new_attribute.rb +1 -1
- data/lib/talon_one/models/new_audience.rb +314 -0
- data/lib/talon_one/models/new_campaign.rb +17 -5
- data/lib/talon_one/models/new_campaign_group.rb +265 -0
- data/lib/talon_one/models/new_campaign_set.rb +1 -1
- data/lib/talon_one/models/new_coupons.rb +1 -1
- data/lib/talon_one/models/new_customer_profile.rb +1 -1
- data/lib/talon_one/models/new_customer_session.rb +1 -1
- data/lib/talon_one/models/new_customer_session_v2.rb +1 -1
- data/lib/talon_one/models/new_event.rb +1 -1
- data/lib/talon_one/models/new_event_type.rb +1 -1
- data/lib/talon_one/models/new_feature_flags.rb +1 -1
- data/lib/talon_one/models/new_import.rb +1 -1
- data/lib/talon_one/models/new_invitation.rb +1 -1
- data/lib/talon_one/models/new_invite_email.rb +1 -1
- data/lib/talon_one/models/new_loyalty_program.rb +18 -3
- data/lib/talon_one/models/new_password.rb +1 -1
- data/lib/talon_one/models/new_password_email.rb +1 -1
- data/lib/talon_one/models/new_referral.rb +1 -1
- data/lib/talon_one/models/new_role.rb +1 -1
- data/lib/talon_one/models/new_ruleset.rb +1 -1
- data/lib/talon_one/models/new_saml_connection.rb +1 -1
- data/lib/talon_one/models/new_template_def.rb +1 -1
- data/lib/talon_one/models/new_user.rb +1 -1
- data/lib/talon_one/models/new_webhook.rb +1 -1
- data/lib/talon_one/models/notification.rb +1 -1
- data/lib/talon_one/models/redeem_referral_effect_props.rb +1 -1
- data/lib/talon_one/models/referral.rb +1 -1
- data/lib/talon_one/models/referral_created_effect_props.rb +1 -1
- data/lib/talon_one/models/referral_rejection_reason.rb +3 -3
- data/lib/talon_one/models/reject_coupon_effect_props.rb +1 -1
- data/lib/talon_one/models/reject_referral_effect_props.rb +1 -1
- data/lib/talon_one/models/role.rb +14 -4
- data/lib/talon_one/models/role_assign.rb +1 -1
- data/lib/talon_one/models/role_membership.rb +1 -1
- data/lib/talon_one/models/rollback_coupon_effect_props.rb +1 -1
- data/lib/talon_one/models/rollback_discount_effect_props.rb +1 -1
- data/lib/talon_one/models/rule.rb +1 -1
- data/lib/talon_one/models/ruleset.rb +1 -1
- data/lib/talon_one/models/saml_connection.rb +1 -1
- data/lib/talon_one/models/saml_connection_metadata.rb +1 -1
- data/lib/talon_one/models/saml_login_endpoint.rb +1 -1
- data/lib/talon_one/models/session.rb +1 -1
- data/lib/talon_one/models/set_discount_effect_props.rb +16 -6
- data/lib/talon_one/models/set_discount_per_item_effect_props.rb +15 -5
- data/lib/talon_one/models/show_bundle_metadata_effect_props.rb +1 -1
- data/lib/talon_one/models/show_notification_effect_props.rb +1 -1
- data/lib/talon_one/models/slot_def.rb +1 -1
- data/lib/talon_one/models/template_arg_def.rb +1 -1
- data/lib/talon_one/models/template_def.rb +1 -1
- data/lib/talon_one/models/trigger_webhook_effect_props.rb +1 -1
- data/lib/talon_one/models/update_account.rb +1 -1
- data/lib/talon_one/models/update_application.rb +58 -6
- data/lib/talon_one/models/update_attribute_effect_props.rb +1 -1
- data/lib/talon_one/models/update_audience.rb +231 -0
- data/lib/talon_one/models/update_campaign.rb +17 -5
- data/lib/talon_one/models/update_campaign_group.rb +266 -0
- data/lib/talon_one/models/update_coupon.rb +1 -1
- data/lib/talon_one/models/update_coupon_batch.rb +1 -1
- data/lib/talon_one/models/update_loyalty_program.rb +13 -3
- data/lib/talon_one/models/update_role.rb +1 -1
- data/lib/talon_one/models/update_user.rb +2 -22
- data/lib/talon_one/models/update_user_latest_feed_timestamp.rb +213 -0
- data/lib/talon_one/models/user.rb +11 -26
- data/lib/talon_one/models/user_entity.rb +1 -1
- data/lib/talon_one/models/user_feed_notifications.rb +230 -0
- data/lib/talon_one/models/webhook.rb +1 -1
- data/lib/talon_one/models/webhook_activation_log_entry.rb +1 -1
- data/lib/talon_one/models/webhook_log_entry.rb +1 -1
- data/lib/talon_one/version.rb +2 -2
- data/spec/api/integration_api_spec.rb +36 -8
- data/spec/api/management_api_spec.rb +19 -3
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/accept_coupon_effect_props_spec.rb +1 -1
- data/spec/models/accept_referral_effect_props_spec.rb +1 -1
- data/spec/models/access_log_entry_spec.rb +1 -1
- data/spec/models/account_additional_cost_spec.rb +1 -1
- data/spec/models/account_analytics_spec.rb +27 -9
- data/spec/models/account_entity_spec.rb +1 -1
- data/spec/models/account_limits_spec.rb +7 -7
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/add_free_item_effect_props_spec.rb +1 -1
- data/spec/models/add_loyalty_points_effect_props_spec.rb +8 -2
- data/spec/models/additional_cost_spec.rb +1 -1
- data/spec/models/api_error_spec.rb +1 -1
- data/spec/models/application_api_health_spec.rb +1 -1
- data/spec/models/application_api_key_spec.rb +18 -8
- data/spec/models/application_customer_entity_spec.rb +1 -1
- data/spec/models/application_customer_search_spec.rb +1 -1
- data/spec/models/application_customer_spec.rb +7 -1
- data/spec/models/application_entity_spec.rb +1 -1
- data/spec/models/application_event_spec.rb +1 -1
- data/spec/models/application_session_entity_spec.rb +1 -1
- data/spec/models/application_session_spec.rb +1 -1
- data/spec/models/application_spec.rb +29 -1
- data/spec/models/attribute_spec.rb +1 -1
- data/spec/models/attributes_mandatory_spec.rb +1 -1
- data/spec/models/attributes_settings_spec.rb +1 -1
- data/spec/models/audience_membership_spec.rb +47 -0
- data/spec/models/audience_spec.rb +75 -0
- data/spec/models/base_saml_connection_spec.rb +1 -1
- data/spec/models/binding_spec.rb +1 -1
- data/spec/models/campaign_analytics_spec.rb +25 -1
- data/spec/models/campaign_copy_spec.rb +1 -1
- data/spec/models/campaign_entity_spec.rb +1 -1
- data/spec/models/{misc_update_user_latest_feature_spec.rb → campaign_group_entity_spec.rb} +8 -8
- data/spec/models/campaign_group_spec.rb +83 -0
- data/spec/models/campaign_search_spec.rb +1 -1
- data/spec/models/campaign_set_branch_node_spec.rb +1 -1
- data/spec/models/campaign_set_leaf_node_spec.rb +1 -1
- data/spec/models/campaign_set_node_spec.rb +1 -1
- data/spec/models/campaign_set_spec.rb +1 -1
- data/spec/models/campaign_spec.rb +7 -1
- data/spec/models/cart_item_adjustment_spec.rb +1 -1
- data/spec/models/cart_item_spec.rb +1 -1
- data/spec/models/change_profile_password_spec.rb +1 -1
- data/spec/models/change_spec.rb +1 -1
- data/spec/models/code_generator_settings_spec.rb +1 -1
- data/spec/models/coupon_constraints_spec.rb +1 -1
- data/spec/models/coupon_created_effect_props_spec.rb +1 -1
- data/spec/models/coupon_rejection_reason_spec.rb +2 -2
- data/spec/models/coupon_reservations_spec.rb +1 -1
- data/spec/models/coupon_search_spec.rb +1 -1
- data/spec/models/coupon_spec.rb +1 -1
- data/spec/models/coupon_value_spec.rb +1 -1
- data/spec/models/create_application_api_key_spec.rb +11 -1
- data/spec/models/customer_activity_report_spec.rb +1 -1
- data/spec/models/customer_analytics_spec.rb +1 -1
- data/spec/models/customer_inventory_spec.rb +7 -1
- data/spec/models/customer_profile_audience_request_item_spec.rb +57 -0
- data/spec/models/{customer_profile_update_spec.rb → customer_profile_audience_request_spec.rb} +8 -8
- data/spec/models/customer_profile_integration_request_v2_spec.rb +51 -0
- data/spec/models/customer_profile_search_query_spec.rb +1 -1
- data/spec/models/customer_profile_spec.rb +7 -1
- data/spec/models/customer_session_spec.rb +1 -1
- data/spec/models/customer_session_v2_spec.rb +1 -1
- data/spec/models/deduct_loyalty_points_effect_props_spec.rb +1 -1
- data/spec/models/effect_entity_spec.rb +1 -1
- data/spec/models/effect_spec.rb +1 -1
- data/spec/models/email_entity_spec.rb +1 -1
- data/spec/models/entity_spec.rb +1 -1
- data/spec/models/entity_with_talang_visible_id_spec.rb +47 -0
- data/spec/models/environment_spec.rb +1 -1
- data/spec/models/error_effect_props_spec.rb +1 -1
- data/spec/models/error_response_spec.rb +1 -1
- data/spec/models/error_source_spec.rb +1 -1
- data/spec/models/event_spec.rb +1 -1
- data/spec/models/event_type_spec.rb +1 -1
- data/spec/models/export_spec.rb +1 -1
- data/spec/models/feature_flag_spec.rb +1 -1
- data/spec/models/feature_flags_spec.rb +1 -1
- data/spec/models/features_feed_spec.rb +1 -1
- data/spec/models/feed_notification_spec.rb +75 -0
- data/spec/models/func_arg_def_spec.rb +1 -1
- data/spec/models/function_def_spec.rb +1 -1
- data/spec/models/import_coupons_spec.rb +1 -1
- data/spec/models/import_spec.rb +1 -1
- data/spec/models/inline_response20010_spec.rb +1 -1
- data/spec/models/inline_response20011_spec.rb +1 -1
- data/spec/models/inline_response20012_spec.rb +7 -1
- data/spec/models/inline_response20013_spec.rb +1 -1
- data/spec/models/inline_response20014_spec.rb +1 -1
- data/spec/models/inline_response20015_spec.rb +1 -1
- data/spec/models/inline_response20016_spec.rb +1 -1
- data/spec/models/inline_response20017_spec.rb +1 -1
- data/spec/models/inline_response20018_spec.rb +1 -1
- data/spec/models/inline_response20019_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response20020_spec.rb +1 -1
- data/spec/models/inline_response20021_spec.rb +1 -1
- data/spec/models/inline_response20022_spec.rb +1 -1
- data/spec/models/inline_response20023_spec.rb +1 -1
- data/spec/models/inline_response20024_spec.rb +1 -1
- data/spec/models/inline_response20025_spec.rb +1 -1
- data/spec/models/inline_response20026_spec.rb +1 -1
- data/spec/models/inline_response20027_spec.rb +1 -1
- data/spec/models/inline_response20028_spec.rb +1 -1
- data/spec/models/inline_response20029_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response20030_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/integration_entity_spec.rb +1 -1
- data/spec/models/integration_event_spec.rb +1 -1
- data/spec/models/integration_profile_entity_spec.rb +1 -1
- data/spec/models/integration_request_spec.rb +1 -1
- data/spec/models/integration_state_spec.rb +1 -1
- data/spec/models/integration_state_v2_spec.rb +1 -1
- data/spec/models/ledger_entry_spec.rb +1 -1
- data/spec/models/library_attribute_spec.rb +1 -1
- data/spec/models/limit_config_spec.rb +1 -1
- data/spec/models/login_params_spec.rb +1 -1
- data/spec/models/loyalty_ledger_entry_spec.rb +7 -1
- data/spec/models/loyalty_ledger_spec.rb +1 -1
- data/spec/models/loyalty_membership_spec.rb +1 -1
- data/spec/models/loyalty_points_spec.rb +8 -2
- data/spec/models/loyalty_program_balance_spec.rb +1 -1
- data/spec/models/loyalty_program_ledgers_spec.rb +1 -1
- data/spec/models/loyalty_program_spec.rb +7 -1
- data/spec/models/loyalty_spec.rb +1 -1
- data/spec/models/loyalty_statistics_spec.rb +59 -0
- data/spec/models/loyalty_sub_ledger_spec.rb +43 -1
- data/spec/models/manager_config_spec.rb +1 -1
- data/spec/models/meta_spec.rb +1 -1
- data/spec/models/multi_application_entity_spec.rb +1 -1
- data/spec/models/multiple_customer_profile_integration_request_item_spec.rb +47 -0
- data/spec/models/multiple_customer_profile_integration_request_spec.rb +41 -0
- data/spec/models/multiple_customer_profile_integration_response_v2_spec.rb +41 -0
- data/spec/models/mutable_entity_spec.rb +1 -1
- data/spec/models/new_account_sign_up_spec.rb +1 -1
- data/spec/models/new_account_spec.rb +1 -1
- data/spec/models/new_additional_cost_spec.rb +1 -1
- data/spec/models/new_application_api_key_spec.rb +18 -8
- data/spec/models/new_application_spec.rb +29 -1
- data/spec/models/new_attribute_spec.rb +1 -1
- data/spec/models/new_audience_spec.rb +57 -0
- data/spec/models/new_campaign_group_spec.rb +59 -0
- data/spec/models/new_campaign_set_spec.rb +1 -1
- data/spec/models/new_campaign_spec.rb +7 -1
- data/spec/models/new_coupons_spec.rb +1 -1
- data/spec/models/new_customer_profile_spec.rb +1 -1
- data/spec/models/new_customer_session_spec.rb +1 -1
- data/spec/models/new_customer_session_v2_spec.rb +1 -1
- data/spec/models/new_event_spec.rb +1 -1
- data/spec/models/new_event_type_spec.rb +1 -1
- data/spec/models/new_feature_flags_spec.rb +1 -1
- data/spec/models/new_import_spec.rb +1 -1
- data/spec/models/new_invitation_spec.rb +1 -1
- data/spec/models/new_invite_email_spec.rb +1 -1
- data/spec/models/new_loyalty_program_spec.rb +7 -1
- data/spec/models/new_password_email_spec.rb +1 -1
- data/spec/models/new_password_spec.rb +1 -1
- data/spec/models/new_referral_spec.rb +1 -1
- data/spec/models/new_role_spec.rb +1 -1
- data/spec/models/new_ruleset_spec.rb +1 -1
- data/spec/models/new_saml_connection_spec.rb +1 -1
- data/spec/models/new_template_def_spec.rb +1 -1
- data/spec/models/new_user_spec.rb +1 -1
- data/spec/models/new_webhook_spec.rb +1 -1
- data/spec/models/notification_spec.rb +1 -1
- data/spec/models/redeem_referral_effect_props_spec.rb +1 -1
- data/spec/models/referral_created_effect_props_spec.rb +1 -1
- data/spec/models/referral_rejection_reason_spec.rb +2 -2
- data/spec/models/referral_spec.rb +1 -1
- data/spec/models/reject_coupon_effect_props_spec.rb +1 -1
- data/spec/models/reject_referral_effect_props_spec.rb +1 -1
- data/spec/models/role_assign_spec.rb +1 -1
- data/spec/models/role_membership_spec.rb +1 -1
- data/spec/models/role_spec.rb +7 -1
- data/spec/models/rollback_coupon_effect_props_spec.rb +1 -1
- data/spec/models/rollback_discount_effect_props_spec.rb +1 -1
- data/spec/models/rule_spec.rb +1 -1
- data/spec/models/ruleset_spec.rb +1 -1
- data/spec/models/saml_connection_metadata_spec.rb +1 -1
- data/spec/models/saml_connection_spec.rb +1 -1
- data/spec/models/saml_login_endpoint_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/set_discount_effect_props_spec.rb +7 -1
- data/spec/models/set_discount_per_item_effect_props_spec.rb +7 -1
- data/spec/models/show_bundle_metadata_effect_props_spec.rb +1 -1
- data/spec/models/show_notification_effect_props_spec.rb +1 -1
- data/spec/models/slot_def_spec.rb +1 -1
- data/spec/models/template_arg_def_spec.rb +1 -1
- data/spec/models/template_def_spec.rb +1 -1
- data/spec/models/trigger_webhook_effect_props_spec.rb +1 -1
- data/spec/models/update_account_spec.rb +1 -1
- data/spec/models/update_application_spec.rb +29 -1
- data/spec/models/update_attribute_effect_props_spec.rb +1 -1
- data/spec/models/update_audience_spec.rb +41 -0
- data/spec/models/update_campaign_group_spec.rb +59 -0
- data/spec/models/update_campaign_spec.rb +7 -1
- data/spec/models/update_coupon_batch_spec.rb +1 -1
- data/spec/models/update_coupon_spec.rb +1 -1
- data/spec/models/update_loyalty_program_spec.rb +7 -1
- data/spec/models/update_role_spec.rb +1 -1
- data/spec/models/update_user_latest_feed_timestamp_spec.rb +41 -0
- data/spec/models/update_user_spec.rb +1 -13
- data/spec/models/user_entity_spec.rb +1 -1
- data/spec/models/user_feed_notifications_spec.rb +47 -0
- data/spec/models/user_spec.rb +2 -8
- data/spec/models/webhook_activation_log_entry_spec.rb +1 -1
- data/spec/models/webhook_log_entry_spec.rb +1 -1
- data/spec/models/webhook_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/talon_one.gemspec +1 -1
- metadata +78 -10
- data/docs/CustomerProfileUpdate.md +0 -17
- data/docs/MiscUpdateUserLatestFeature.md +0 -17
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1819,6 +1819,10 @@ module TalonOne
|
|
1819
1819
|
# List Application Customers
|
1820
1820
|
# @param application_id [Integer]
|
1821
1821
|
# @param [Hash] opts the optional parameters
|
1822
|
+
# @option opts [String] :integration_id Filter results performing an exact matching against the profile integration identifier.
|
1823
|
+
# @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
|
1824
|
+
# @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
|
1825
|
+
# @option opts [Boolean] :with_total_result_size When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query.
|
1822
1826
|
# @return [InlineResponse20012]
|
1823
1827
|
def get_application_customers(application_id, opts = {})
|
1824
1828
|
data, _status_code, _headers = get_application_customers_with_http_info(application_id, opts)
|
@@ -1828,6 +1832,10 @@ module TalonOne
|
|
1828
1832
|
# List Application Customers
|
1829
1833
|
# @param application_id [Integer]
|
1830
1834
|
# @param [Hash] opts the optional parameters
|
1835
|
+
# @option opts [String] :integration_id Filter results performing an exact matching against the profile integration identifier.
|
1836
|
+
# @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
|
1837
|
+
# @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
|
1838
|
+
# @option opts [Boolean] :with_total_result_size When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query.
|
1831
1839
|
# @return [Array<(InlineResponse20012, Integer, Hash)>] InlineResponse20012 data, response status code and response headers
|
1832
1840
|
def get_application_customers_with_http_info(application_id, opts = {})
|
1833
1841
|
if @api_client.config.debugging
|
@@ -1842,6 +1850,10 @@ module TalonOne
|
|
1842
1850
|
|
1843
1851
|
# query parameters
|
1844
1852
|
query_params = opts[:query_params] || {}
|
1853
|
+
query_params[:'integrationId'] = opts[:'integration_id'] if !opts[:'integration_id'].nil?
|
1854
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1855
|
+
query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
1856
|
+
query_params[:'withTotalResultSize'] = opts[:'with_total_result_size'] if !opts[:'with_total_result_size'].nil?
|
1845
1857
|
|
1846
1858
|
# header parameters
|
1847
1859
|
header_params = opts[:header_params] || {}
|
@@ -2309,10 +2321,11 @@ module TalonOne
|
|
2309
2321
|
# @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order.
|
2310
2322
|
# @option opts [String] :profile Profile integration ID filter for sessions. Must be exact match.
|
2311
2323
|
# @option opts [String] :state Filter by sessions with this state. Must be exact match.
|
2324
|
+
# @option opts [DateTime] :created_before Only return events created before this date
|
2325
|
+
# @option opts [DateTime] :created_after Only return events created after this date
|
2312
2326
|
# @option opts [String] :coupon Filter by sessions with this coupon. Must be exact match.
|
2313
2327
|
# @option opts [String] :referral Filter by sessions with this referral. Must be exact match.
|
2314
2328
|
# @option opts [String] :integration_id Filter by sessions with this integrationId. Must be exact match.
|
2315
|
-
# @option opts [String] :customer_id Filter by integration ID of the customer for the session
|
2316
2329
|
# @return [InlineResponse20016]
|
2317
2330
|
def get_application_sessions(application_id, opts = {})
|
2318
2331
|
data, _status_code, _headers = get_application_sessions_with_http_info(application_id, opts)
|
@@ -2327,10 +2340,11 @@ module TalonOne
|
|
2327
2340
|
# @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order.
|
2328
2341
|
# @option opts [String] :profile Profile integration ID filter for sessions. Must be exact match.
|
2329
2342
|
# @option opts [String] :state Filter by sessions with this state. Must be exact match.
|
2343
|
+
# @option opts [DateTime] :created_before Only return events created before this date
|
2344
|
+
# @option opts [DateTime] :created_after Only return events created after this date
|
2330
2345
|
# @option opts [String] :coupon Filter by sessions with this coupon. Must be exact match.
|
2331
2346
|
# @option opts [String] :referral Filter by sessions with this referral. Must be exact match.
|
2332
2347
|
# @option opts [String] :integration_id Filter by sessions with this integrationId. Must be exact match.
|
2333
|
-
# @option opts [String] :customer_id Filter by integration ID of the customer for the session
|
2334
2348
|
# @return [Array<(InlineResponse20016, Integer, Hash)>] InlineResponse20016 data, response status code and response headers
|
2335
2349
|
def get_application_sessions_with_http_info(application_id, opts = {})
|
2336
2350
|
if @api_client.config.debugging
|
@@ -2354,10 +2368,11 @@ module TalonOne
|
|
2354
2368
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
2355
2369
|
query_params[:'profile'] = opts[:'profile'] if !opts[:'profile'].nil?
|
2356
2370
|
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
|
2371
|
+
query_params[:'createdBefore'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
2372
|
+
query_params[:'createdAfter'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
2357
2373
|
query_params[:'coupon'] = opts[:'coupon'] if !opts[:'coupon'].nil?
|
2358
2374
|
query_params[:'referral'] = opts[:'referral'] if !opts[:'referral'].nil?
|
2359
2375
|
query_params[:'integrationId'] = opts[:'integration_id'] if !opts[:'integration_id'].nil?
|
2360
|
-
query_params[:'customerId'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
|
2361
2376
|
|
2362
2377
|
# header parameters
|
2363
2378
|
header_params = opts[:header_params] || {}
|
@@ -2834,6 +2849,7 @@ module TalonOne
|
|
2834
2849
|
# @option opts [String] :tags Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values
|
2835
2850
|
# @option opts [DateTime] :created_before Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp.
|
2836
2851
|
# @option opts [DateTime] :created_after Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp.
|
2852
|
+
# @option opts [Integer] :campaign_group_id Filter results to campaigns owned by the specified campaign group ID.
|
2837
2853
|
# @return [InlineResponse2002]
|
2838
2854
|
def get_campaigns(application_id, opts = {})
|
2839
2855
|
data, _status_code, _headers = get_campaigns_with_http_info(application_id, opts)
|
@@ -2851,6 +2867,7 @@ module TalonOne
|
|
2851
2867
|
# @option opts [String] :tags Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values
|
2852
2868
|
# @option opts [DateTime] :created_before Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp.
|
2853
2869
|
# @option opts [DateTime] :created_after Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp.
|
2870
|
+
# @option opts [Integer] :campaign_group_id Filter results to campaigns owned by the specified campaign group ID.
|
2854
2871
|
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
2855
2872
|
def get_campaigns_with_http_info(application_id, opts = {})
|
2856
2873
|
if @api_client.config.debugging
|
@@ -2877,6 +2894,7 @@ module TalonOne
|
|
2877
2894
|
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
|
2878
2895
|
query_params[:'createdBefore'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
2879
2896
|
query_params[:'createdAfter'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
2897
|
+
query_params[:'campaignGroupId'] = opts[:'campaign_group_id'] if !opts[:'campaign_group_id'].nil?
|
2880
2898
|
|
2881
2899
|
# header parameters
|
2882
2900
|
header_params = opts[:header_params] || {}
|
@@ -3824,34 +3842,28 @@ module TalonOne
|
|
3824
3842
|
end
|
3825
3843
|
|
3826
3844
|
# Get Customer Profile
|
3827
|
-
# @param application_id [Integer]
|
3828
3845
|
# @param customer_id [Integer]
|
3829
3846
|
# @param [Hash] opts the optional parameters
|
3830
3847
|
# @return [ApplicationCustomer]
|
3831
|
-
def get_customer_profile(
|
3832
|
-
data, _status_code, _headers = get_customer_profile_with_http_info(
|
3848
|
+
def get_customer_profile(customer_id, opts = {})
|
3849
|
+
data, _status_code, _headers = get_customer_profile_with_http_info(customer_id, opts)
|
3833
3850
|
data
|
3834
3851
|
end
|
3835
3852
|
|
3836
3853
|
# Get Customer Profile
|
3837
|
-
# @param application_id [Integer]
|
3838
3854
|
# @param customer_id [Integer]
|
3839
3855
|
# @param [Hash] opts the optional parameters
|
3840
3856
|
# @return [Array<(ApplicationCustomer, Integer, Hash)>] ApplicationCustomer data, response status code and response headers
|
3841
|
-
def get_customer_profile_with_http_info(
|
3857
|
+
def get_customer_profile_with_http_info(customer_id, opts = {})
|
3842
3858
|
if @api_client.config.debugging
|
3843
3859
|
@api_client.config.logger.debug 'Calling API: ManagementApi.get_customer_profile ...'
|
3844
3860
|
end
|
3845
|
-
# verify the required parameter 'application_id' is set
|
3846
|
-
if @api_client.config.client_side_validation && application_id.nil?
|
3847
|
-
fail ArgumentError, "Missing the required parameter 'application_id' when calling ManagementApi.get_customer_profile"
|
3848
|
-
end
|
3849
3861
|
# verify the required parameter 'customer_id' is set
|
3850
3862
|
if @api_client.config.client_side_validation && customer_id.nil?
|
3851
3863
|
fail ArgumentError, "Missing the required parameter 'customer_id' when calling ManagementApi.get_customer_profile"
|
3852
3864
|
end
|
3853
3865
|
# resource path
|
3854
|
-
local_var_path = '/v1/customers/{customerId}'.sub('{' + '
|
3866
|
+
local_var_path = '/v1/customers/{customerId}'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s))
|
3855
3867
|
|
3856
3868
|
# query parameters
|
3857
3869
|
query_params = opts[:query_params] || {}
|
@@ -4412,6 +4424,66 @@ module TalonOne
|
|
4412
4424
|
return data, status_code, headers
|
4413
4425
|
end
|
4414
4426
|
|
4427
|
+
# Get loyalty program statistics by loyalty program ID
|
4428
|
+
# @param program_id [String]
|
4429
|
+
# @param [Hash] opts the optional parameters
|
4430
|
+
# @return [LoyaltyStatistics]
|
4431
|
+
def get_loyalty_statistics(program_id, opts = {})
|
4432
|
+
data, _status_code, _headers = get_loyalty_statistics_with_http_info(program_id, opts)
|
4433
|
+
data
|
4434
|
+
end
|
4435
|
+
|
4436
|
+
# Get loyalty program statistics by loyalty program ID
|
4437
|
+
# @param program_id [String]
|
4438
|
+
# @param [Hash] opts the optional parameters
|
4439
|
+
# @return [Array<(LoyaltyStatistics, Integer, Hash)>] LoyaltyStatistics data, response status code and response headers
|
4440
|
+
def get_loyalty_statistics_with_http_info(program_id, opts = {})
|
4441
|
+
if @api_client.config.debugging
|
4442
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.get_loyalty_statistics ...'
|
4443
|
+
end
|
4444
|
+
# verify the required parameter 'program_id' is set
|
4445
|
+
if @api_client.config.client_side_validation && program_id.nil?
|
4446
|
+
fail ArgumentError, "Missing the required parameter 'program_id' when calling ManagementApi.get_loyalty_statistics"
|
4447
|
+
end
|
4448
|
+
# resource path
|
4449
|
+
local_var_path = '/v1/loyalty_programs/{programID}/statistics'.sub('{' + 'programID' + '}', CGI.escape(program_id.to_s))
|
4450
|
+
|
4451
|
+
# query parameters
|
4452
|
+
query_params = opts[:query_params] || {}
|
4453
|
+
|
4454
|
+
# header parameters
|
4455
|
+
header_params = opts[:header_params] || {}
|
4456
|
+
# HTTP header 'Accept' (if needed)
|
4457
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4458
|
+
|
4459
|
+
# form parameters
|
4460
|
+
form_params = opts[:form_params] || {}
|
4461
|
+
|
4462
|
+
# http body (model)
|
4463
|
+
post_body = opts[:body]
|
4464
|
+
|
4465
|
+
# return_type
|
4466
|
+
return_type = opts[:return_type] || 'LoyaltyStatistics'
|
4467
|
+
|
4468
|
+
# auth_names
|
4469
|
+
auth_names = opts[:auth_names] || ['manager_auth']
|
4470
|
+
|
4471
|
+
new_options = opts.merge(
|
4472
|
+
:header_params => header_params,
|
4473
|
+
:query_params => query_params,
|
4474
|
+
:form_params => form_params,
|
4475
|
+
:body => post_body,
|
4476
|
+
:auth_names => auth_names,
|
4477
|
+
:return_type => return_type
|
4478
|
+
)
|
4479
|
+
|
4480
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
4481
|
+
if @api_client.config.debugging
|
4482
|
+
@api_client.config.logger.debug "API called: ManagementApi#get_loyalty_statistics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4483
|
+
end
|
4484
|
+
return data, status_code, headers
|
4485
|
+
end
|
4486
|
+
|
4415
4487
|
# List Referrals (with total count)
|
4416
4488
|
# @param application_id [Integer]
|
4417
4489
|
# @param campaign_id [Integer]
|
data/lib/talon_one/api_client.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -269,11 +269,13 @@ module TalonOne
|
|
269
269
|
tempfile.write(chunk)
|
270
270
|
end
|
271
271
|
request.on_complete do |response|
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
272
|
+
if tempfile
|
273
|
+
tempfile.close
|
274
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
275
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
276
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
277
|
+
"explicitly with `tempfile.delete`"
|
278
|
+
end
|
277
279
|
end
|
278
280
|
end
|
279
281
|
|
data/lib/talon_one/api_error.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,69 +14,81 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TalonOne
|
16
16
|
class AccountAnalytics
|
17
|
-
# Total
|
17
|
+
# Total number of applications in the account
|
18
18
|
attr_accessor :applications
|
19
19
|
|
20
|
-
# Total
|
21
|
-
attr_accessor :
|
20
|
+
# Total number of live applications in the account
|
21
|
+
attr_accessor :live_applications
|
22
|
+
|
23
|
+
# Total number of sandbox applications in the account
|
24
|
+
attr_accessor :sandbox_applications
|
22
25
|
|
23
|
-
# Total
|
26
|
+
# Total number of campaigns in the account
|
24
27
|
attr_accessor :campaigns
|
25
28
|
|
26
|
-
# Total
|
29
|
+
# Total number of active campaigns in the account
|
30
|
+
attr_accessor :active_campaigns
|
31
|
+
|
32
|
+
# Total number of active campaigns in live applications in the account
|
33
|
+
attr_accessor :live_active_campaigns
|
34
|
+
|
35
|
+
# Total number of coupons in the account
|
27
36
|
attr_accessor :coupons
|
28
37
|
|
29
|
-
# Total
|
38
|
+
# Total number of active coupons in the account
|
30
39
|
attr_accessor :active_coupons
|
31
40
|
|
32
|
-
# Total
|
41
|
+
# Total number of expired coupons in the account
|
33
42
|
attr_accessor :expired_coupons
|
34
43
|
|
35
|
-
# Total
|
36
|
-
attr_accessor :custom_attributes
|
37
|
-
|
38
|
-
# Total Number of referral codes inside the account
|
44
|
+
# Total number of referral codes in the account
|
39
45
|
attr_accessor :referral_codes
|
40
46
|
|
41
|
-
# Total
|
47
|
+
# Total number of active referral codes in the account
|
42
48
|
attr_accessor :active_referral_codes
|
43
49
|
|
44
|
-
# Total
|
50
|
+
# Total number of expired referral codes in the account
|
45
51
|
attr_accessor :expired_referral_codes
|
46
52
|
|
47
|
-
# Total
|
53
|
+
# Total number of active rules in the account
|
54
|
+
attr_accessor :active_rules
|
55
|
+
|
56
|
+
# Total number of users in the account
|
48
57
|
attr_accessor :users
|
49
58
|
|
50
|
-
# Total
|
59
|
+
# Total number of roles in the account
|
51
60
|
attr_accessor :roles
|
52
61
|
|
53
|
-
# Total
|
62
|
+
# Total number of custom attributes in the account
|
63
|
+
attr_accessor :custom_attributes
|
64
|
+
|
65
|
+
# Total number of webhooks in the account
|
54
66
|
attr_accessor :webhooks
|
55
67
|
|
56
|
-
# Total
|
68
|
+
# Total number of loyalty programs in the account
|
57
69
|
attr_accessor :loyalty_programs
|
58
70
|
|
59
|
-
# Total Number of active rules in the account
|
60
|
-
attr_accessor :active_rules
|
61
|
-
|
62
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
72
|
def self.attribute_map
|
64
73
|
{
|
65
74
|
:'applications' => :'applications',
|
66
|
-
:'
|
75
|
+
:'live_applications' => :'liveApplications',
|
76
|
+
:'sandbox_applications' => :'sandboxApplications',
|
67
77
|
:'campaigns' => :'campaigns',
|
78
|
+
:'active_campaigns' => :'activeCampaigns',
|
79
|
+
:'live_active_campaigns' => :'liveActiveCampaigns',
|
68
80
|
:'coupons' => :'coupons',
|
69
81
|
:'active_coupons' => :'activeCoupons',
|
70
82
|
:'expired_coupons' => :'expiredCoupons',
|
71
|
-
:'custom_attributes' => :'customAttributes',
|
72
83
|
:'referral_codes' => :'referralCodes',
|
73
84
|
:'active_referral_codes' => :'activeReferralCodes',
|
74
85
|
:'expired_referral_codes' => :'expiredReferralCodes',
|
86
|
+
:'active_rules' => :'activeRules',
|
75
87
|
:'users' => :'users',
|
76
88
|
:'roles' => :'roles',
|
89
|
+
:'custom_attributes' => :'customAttributes',
|
77
90
|
:'webhooks' => :'webhooks',
|
78
|
-
:'loyalty_programs' => :'loyaltyPrograms'
|
79
|
-
:'active_rules' => :'activeRules'
|
91
|
+
:'loyalty_programs' => :'loyaltyPrograms'
|
80
92
|
}
|
81
93
|
end
|
82
94
|
|
@@ -84,20 +96,23 @@ module TalonOne
|
|
84
96
|
def self.openapi_types
|
85
97
|
{
|
86
98
|
:'applications' => :'Integer',
|
87
|
-
:'
|
99
|
+
:'live_applications' => :'Integer',
|
100
|
+
:'sandbox_applications' => :'Integer',
|
88
101
|
:'campaigns' => :'Integer',
|
102
|
+
:'active_campaigns' => :'Integer',
|
103
|
+
:'live_active_campaigns' => :'Integer',
|
89
104
|
:'coupons' => :'Integer',
|
90
105
|
:'active_coupons' => :'Integer',
|
91
106
|
:'expired_coupons' => :'Integer',
|
92
|
-
:'custom_attributes' => :'Integer',
|
93
107
|
:'referral_codes' => :'Integer',
|
94
108
|
:'active_referral_codes' => :'Integer',
|
95
109
|
:'expired_referral_codes' => :'Integer',
|
110
|
+
:'active_rules' => :'Integer',
|
96
111
|
:'users' => :'Integer',
|
97
112
|
:'roles' => :'Integer',
|
113
|
+
:'custom_attributes' => :'Integer',
|
98
114
|
:'webhooks' => :'Integer',
|
99
|
-
:'loyalty_programs' => :'Integer'
|
100
|
-
:'active_rules' => :'Integer'
|
115
|
+
:'loyalty_programs' => :'Integer'
|
101
116
|
}
|
102
117
|
end
|
103
118
|
|
@@ -126,14 +141,26 @@ module TalonOne
|
|
126
141
|
self.applications = attributes[:'applications']
|
127
142
|
end
|
128
143
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
144
|
+
if attributes.key?(:'live_applications')
|
145
|
+
self.live_applications = attributes[:'live_applications']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'sandbox_applications')
|
149
|
+
self.sandbox_applications = attributes[:'sandbox_applications']
|
131
150
|
end
|
132
151
|
|
133
152
|
if attributes.key?(:'campaigns')
|
134
153
|
self.campaigns = attributes[:'campaigns']
|
135
154
|
end
|
136
155
|
|
156
|
+
if attributes.key?(:'active_campaigns')
|
157
|
+
self.active_campaigns = attributes[:'active_campaigns']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'live_active_campaigns')
|
161
|
+
self.live_active_campaigns = attributes[:'live_active_campaigns']
|
162
|
+
end
|
163
|
+
|
137
164
|
if attributes.key?(:'coupons')
|
138
165
|
self.coupons = attributes[:'coupons']
|
139
166
|
end
|
@@ -146,10 +173,6 @@ module TalonOne
|
|
146
173
|
self.expired_coupons = attributes[:'expired_coupons']
|
147
174
|
end
|
148
175
|
|
149
|
-
if attributes.key?(:'custom_attributes')
|
150
|
-
self.custom_attributes = attributes[:'custom_attributes']
|
151
|
-
end
|
152
|
-
|
153
176
|
if attributes.key?(:'referral_codes')
|
154
177
|
self.referral_codes = attributes[:'referral_codes']
|
155
178
|
end
|
@@ -162,6 +185,10 @@ module TalonOne
|
|
162
185
|
self.expired_referral_codes = attributes[:'expired_referral_codes']
|
163
186
|
end
|
164
187
|
|
188
|
+
if attributes.key?(:'active_rules')
|
189
|
+
self.active_rules = attributes[:'active_rules']
|
190
|
+
end
|
191
|
+
|
165
192
|
if attributes.key?(:'users')
|
166
193
|
self.users = attributes[:'users']
|
167
194
|
end
|
@@ -170,6 +197,10 @@ module TalonOne
|
|
170
197
|
self.roles = attributes[:'roles']
|
171
198
|
end
|
172
199
|
|
200
|
+
if attributes.key?(:'custom_attributes')
|
201
|
+
self.custom_attributes = attributes[:'custom_attributes']
|
202
|
+
end
|
203
|
+
|
173
204
|
if attributes.key?(:'webhooks')
|
174
205
|
self.webhooks = attributes[:'webhooks']
|
175
206
|
end
|
@@ -177,10 +208,6 @@ module TalonOne
|
|
177
208
|
if attributes.key?(:'loyalty_programs')
|
178
209
|
self.loyalty_programs = attributes[:'loyalty_programs']
|
179
210
|
end
|
180
|
-
|
181
|
-
if attributes.key?(:'active_rules')
|
182
|
-
self.active_rules = attributes[:'active_rules']
|
183
|
-
end
|
184
211
|
end
|
185
212
|
|
186
213
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -191,14 +218,26 @@ module TalonOne
|
|
191
218
|
invalid_properties.push('invalid value for "applications", applications cannot be nil.')
|
192
219
|
end
|
193
220
|
|
194
|
-
if @
|
195
|
-
invalid_properties.push('invalid value for "
|
221
|
+
if @live_applications.nil?
|
222
|
+
invalid_properties.push('invalid value for "live_applications", live_applications cannot be nil.')
|
223
|
+
end
|
224
|
+
|
225
|
+
if @sandbox_applications.nil?
|
226
|
+
invalid_properties.push('invalid value for "sandbox_applications", sandbox_applications cannot be nil.')
|
196
227
|
end
|
197
228
|
|
198
229
|
if @campaigns.nil?
|
199
230
|
invalid_properties.push('invalid value for "campaigns", campaigns cannot be nil.')
|
200
231
|
end
|
201
232
|
|
233
|
+
if @active_campaigns.nil?
|
234
|
+
invalid_properties.push('invalid value for "active_campaigns", active_campaigns cannot be nil.')
|
235
|
+
end
|
236
|
+
|
237
|
+
if @live_active_campaigns.nil?
|
238
|
+
invalid_properties.push('invalid value for "live_active_campaigns", live_active_campaigns cannot be nil.')
|
239
|
+
end
|
240
|
+
|
202
241
|
if @coupons.nil?
|
203
242
|
invalid_properties.push('invalid value for "coupons", coupons cannot be nil.')
|
204
243
|
end
|
@@ -211,10 +250,6 @@ module TalonOne
|
|
211
250
|
invalid_properties.push('invalid value for "expired_coupons", expired_coupons cannot be nil.')
|
212
251
|
end
|
213
252
|
|
214
|
-
if @custom_attributes.nil?
|
215
|
-
invalid_properties.push('invalid value for "custom_attributes", custom_attributes cannot be nil.')
|
216
|
-
end
|
217
|
-
|
218
253
|
if @referral_codes.nil?
|
219
254
|
invalid_properties.push('invalid value for "referral_codes", referral_codes cannot be nil.')
|
220
255
|
end
|
@@ -227,6 +262,10 @@ module TalonOne
|
|
227
262
|
invalid_properties.push('invalid value for "expired_referral_codes", expired_referral_codes cannot be nil.')
|
228
263
|
end
|
229
264
|
|
265
|
+
if @active_rules.nil?
|
266
|
+
invalid_properties.push('invalid value for "active_rules", active_rules cannot be nil.')
|
267
|
+
end
|
268
|
+
|
230
269
|
if @users.nil?
|
231
270
|
invalid_properties.push('invalid value for "users", users cannot be nil.')
|
232
271
|
end
|
@@ -235,6 +274,10 @@ module TalonOne
|
|
235
274
|
invalid_properties.push('invalid value for "roles", roles cannot be nil.')
|
236
275
|
end
|
237
276
|
|
277
|
+
if @custom_attributes.nil?
|
278
|
+
invalid_properties.push('invalid value for "custom_attributes", custom_attributes cannot be nil.')
|
279
|
+
end
|
280
|
+
|
238
281
|
if @webhooks.nil?
|
239
282
|
invalid_properties.push('invalid value for "webhooks", webhooks cannot be nil.')
|
240
283
|
end
|
@@ -243,10 +286,6 @@ module TalonOne
|
|
243
286
|
invalid_properties.push('invalid value for "loyalty_programs", loyalty_programs cannot be nil.')
|
244
287
|
end
|
245
288
|
|
246
|
-
if @active_rules.nil?
|
247
|
-
invalid_properties.push('invalid value for "active_rules", active_rules cannot be nil.')
|
248
|
-
end
|
249
|
-
|
250
289
|
invalid_properties
|
251
290
|
end
|
252
291
|
|
@@ -254,20 +293,23 @@ module TalonOne
|
|
254
293
|
# @return true if the model is valid
|
255
294
|
def valid?
|
256
295
|
return false if @applications.nil?
|
257
|
-
return false if @
|
296
|
+
return false if @live_applications.nil?
|
297
|
+
return false if @sandbox_applications.nil?
|
258
298
|
return false if @campaigns.nil?
|
299
|
+
return false if @active_campaigns.nil?
|
300
|
+
return false if @live_active_campaigns.nil?
|
259
301
|
return false if @coupons.nil?
|
260
302
|
return false if @active_coupons.nil?
|
261
303
|
return false if @expired_coupons.nil?
|
262
|
-
return false if @custom_attributes.nil?
|
263
304
|
return false if @referral_codes.nil?
|
264
305
|
return false if @active_referral_codes.nil?
|
265
306
|
return false if @expired_referral_codes.nil?
|
307
|
+
return false if @active_rules.nil?
|
266
308
|
return false if @users.nil?
|
267
309
|
return false if @roles.nil?
|
310
|
+
return false if @custom_attributes.nil?
|
268
311
|
return false if @webhooks.nil?
|
269
312
|
return false if @loyalty_programs.nil?
|
270
|
-
return false if @active_rules.nil?
|
271
313
|
true
|
272
314
|
end
|
273
315
|
|
@@ -277,20 +319,23 @@ module TalonOne
|
|
277
319
|
return true if self.equal?(o)
|
278
320
|
self.class == o.class &&
|
279
321
|
applications == o.applications &&
|
280
|
-
|
322
|
+
live_applications == o.live_applications &&
|
323
|
+
sandbox_applications == o.sandbox_applications &&
|
281
324
|
campaigns == o.campaigns &&
|
325
|
+
active_campaigns == o.active_campaigns &&
|
326
|
+
live_active_campaigns == o.live_active_campaigns &&
|
282
327
|
coupons == o.coupons &&
|
283
328
|
active_coupons == o.active_coupons &&
|
284
329
|
expired_coupons == o.expired_coupons &&
|
285
|
-
custom_attributes == o.custom_attributes &&
|
286
330
|
referral_codes == o.referral_codes &&
|
287
331
|
active_referral_codes == o.active_referral_codes &&
|
288
332
|
expired_referral_codes == o.expired_referral_codes &&
|
333
|
+
active_rules == o.active_rules &&
|
289
334
|
users == o.users &&
|
290
335
|
roles == o.roles &&
|
336
|
+
custom_attributes == o.custom_attributes &&
|
291
337
|
webhooks == o.webhooks &&
|
292
|
-
loyalty_programs == o.loyalty_programs
|
293
|
-
active_rules == o.active_rules
|
338
|
+
loyalty_programs == o.loyalty_programs
|
294
339
|
end
|
295
340
|
|
296
341
|
# @see the `==` method
|
@@ -302,7 +347,7 @@ module TalonOne
|
|
302
347
|
# Calculates hash code according to all attributes.
|
303
348
|
# @return [Integer] Hash code
|
304
349
|
def hash
|
305
|
-
[applications,
|
350
|
+
[applications, live_applications, sandbox_applications, campaigns, active_campaigns, live_active_campaigns, coupons, active_coupons, expired_coupons, referral_codes, active_referral_codes, expired_referral_codes, active_rules, users, roles, custom_attributes, webhooks, loyalty_programs].hash
|
306
351
|
end
|
307
352
|
|
308
353
|
# Builds the object from hash
|