talon_one 3.0.2 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +150 -49
- data/docs/AccountAnalytics.md +3 -1
- data/docs/AccountDashboardStatistic.md +0 -2
- data/docs/AccountDashboardStatisticCampaigns.md +4 -2
- data/docs/Achievement.md +39 -0
- data/docs/AchievementAdditionalProperties.md +23 -0
- data/docs/AchievementProgress.md +35 -0
- data/docs/AddItemCatalogAction.md +3 -1
- data/docs/AddLoyaltyPoints.md +2 -2
- data/docs/AddLoyaltyPointsEffectProps.md +1 -1
- data/docs/AddToAudienceEffectProps.md +23 -0
- data/docs/AdditionalCampaignProperties.md +59 -0
- data/docs/Application.md +3 -5
- data/docs/ApplicationAPIKey.md +6 -2
- data/docs/ApplicationAnalyticsDataPoint.md +31 -0
- data/docs/ApplicationAnalyticsDataPointAvgItemsPerSession.md +19 -0
- data/docs/ApplicationAnalyticsDataPointAvgSessionValue.md +19 -0
- data/docs/ApplicationAnalyticsDataPointSessionsCount.md +19 -0
- data/docs/ApplicationAnalyticsDataPointTotalRevenue.md +19 -0
- data/docs/ApplicationCampaignAnalytics.md +45 -0
- data/docs/ApplicationCampaignAnalyticsAvgItemsPerSession.md +21 -0
- data/docs/ApplicationCampaignAnalyticsAvgSessionValue.md +21 -0
- data/docs/ApplicationCampaignAnalyticsCouponsCount.md +19 -0
- data/docs/ApplicationCampaignAnalyticsSessionsCount.md +21 -0
- data/docs/ApplicationCampaignAnalyticsTotalDiscounts.md +19 -0
- data/docs/ApplicationCampaignAnalyticsTotalRevenue.md +21 -0
- data/docs/ApplicationCustomer.md +2 -2
- data/docs/ApplicationEvent.md +4 -0
- data/docs/ApplicationNotification.md +1 -1
- data/docs/ApplicationSession.md +5 -3
- data/docs/ApplicationStoreEntity.md +17 -0
- data/docs/Audience.md +1 -1
- data/docs/AudienceAnalytics.md +1 -1
- data/docs/AudienceCustomer.md +2 -2
- data/docs/BaseCampaign.md +45 -0
- data/docs/BaseLoyaltyProgram.md +9 -1
- data/docs/BaseNotification.md +5 -1
- data/docs/BaseNotificationEntity.md +3 -1
- data/docs/BaseNotificationWebhook.md +3 -1
- data/docs/BulkOperationOnCampaigns.md +19 -0
- data/docs/Campaign.md +25 -17
- data/docs/CampaignBudget.md +21 -0
- data/docs/CampaignCopy.md +3 -1
- data/docs/CampaignCreatedNotification.md +2 -2
- data/docs/CampaignEvaluationGroup.md +31 -0
- data/docs/CampaignEvaluationPosition.md +21 -0
- data/docs/CampaignEvaluationTreeChangedNotification.md +21 -0
- data/docs/CampaignGroup.md +6 -6
- data/docs/CampaignNotificationPolicy.md +17 -0
- data/docs/CampaignSet.md +3 -5
- data/docs/CampaignSetBranchNode.md +13 -3
- data/docs/CampaignTemplate.md +2 -0
- data/docs/CardExpiringPointsNotificationPolicy.md +21 -0
- data/docs/CardExpiringPointsNotificationTrigger.md +19 -0
- data/docs/CardLedgerPointsEntryIntegrationAPI.md +35 -0
- data/docs/CartItem.md +4 -2
- data/docs/CatalogItem.md +3 -1
- data/docs/ChangeLoyaltyTierLevelEffectProps.md +27 -0
- data/docs/Coupon.md +4 -2
- data/docs/CouponCreationJob.md +1 -1
- data/docs/CouponsNotificationPolicy.md +3 -1
- data/docs/CreateAchievement.md +27 -0
- data/docs/CreateApplicationAPIKey.md +7 -3
- data/docs/CreateTemplateCampaign.md +6 -2
- data/docs/CustomEffectProps.md +1 -1
- data/docs/CustomerInventory.md +3 -1
- data/docs/CustomerProfile.md +2 -2
- data/docs/CustomerProfileAudienceRequestItem.md +1 -1
- data/docs/CustomerProfileIntegrationResponseV2.md +33 -0
- data/docs/CustomerSession.md +1 -1
- data/docs/CustomerSessionV2.md +8 -6
- data/docs/DeactivateUserRequest.md +17 -0
- data/docs/DeleteUserRequest.md +17 -0
- data/docs/Effect.md +2 -0
- data/docs/EffectEntity.md +3 -1
- data/docs/EmailEntity.md +1 -1
- data/docs/Environment.md +2 -0
- data/docs/Event.md +2 -0
- data/docs/EventV2.md +4 -2
- data/docs/ExpiringCouponsNotificationPolicy.md +21 -0
- data/docs/ExpiringCouponsNotificationTrigger.md +19 -0
- data/docs/ExpiringPointsNotificationPolicy.md +4 -2
- data/docs/FuncArgDef.md +1 -1
- data/docs/GetIntegrationCouponRequest.md +19 -0
- data/docs/IdentifiableEntity.md +17 -0
- data/docs/IncreaseAchievementProgressEffectProps.md +29 -0
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +3 -3
- data/docs/InlineResponse20014.md +2 -2
- data/docs/InlineResponse20015.md +3 -5
- data/docs/InlineResponse20016.md +3 -3
- data/docs/InlineResponse20017.md +1 -1
- data/docs/InlineResponse20018.md +1 -1
- data/docs/InlineResponse20019.md +2 -2
- data/docs/InlineResponse20020.md +1 -1
- data/docs/InlineResponse20021.md +2 -4
- data/docs/InlineResponse20022.md +3 -3
- data/docs/InlineResponse20023.md +1 -1
- data/docs/InlineResponse20024.md +3 -1
- data/docs/InlineResponse20025.md +1 -1
- data/docs/InlineResponse20026.md +2 -2
- data/docs/InlineResponse20027.md +2 -2
- data/docs/InlineResponse20028.md +3 -3
- data/docs/InlineResponse20029.md +3 -5
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse20030.md +1 -1
- data/docs/InlineResponse20031.md +3 -3
- data/docs/InlineResponse20032.md +3 -3
- data/docs/InlineResponse20033.md +5 -3
- data/docs/InlineResponse20034.md +1 -1
- data/docs/InlineResponse20035.md +5 -3
- data/docs/InlineResponse20036.md +1 -1
- data/docs/InlineResponse20037.md +1 -1
- data/docs/InlineResponse20038.md +2 -4
- data/docs/InlineResponse20039.md +1 -1
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse20040.md +1 -1
- data/docs/InlineResponse20041.md +19 -0
- data/docs/InlineResponse20042.md +21 -0
- data/docs/InlineResponse20043.md +19 -0
- data/docs/InlineResponse20044.md +19 -0
- data/docs/InlineResponse20045.md +21 -0
- data/docs/InlineResponse20046.md +19 -0
- data/docs/InlineResponse20047.md +19 -0
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +2 -2
- data/docs/InlineResponse2009.md +1 -1
- data/docs/IntegrationApi.md +204 -117
- data/docs/IntegrationCoupon.md +3 -1
- data/docs/IntegrationEvent.md +2 -0
- data/docs/IntegrationEventV2Request.md +4 -2
- data/docs/IntegrationRequest.md +1 -1
- data/docs/IntegrationStoreEntity.md +17 -0
- data/docs/InventoryCoupon.md +4 -2
- data/docs/LedgerPointsEntryIntegrationAPI.md +33 -0
- data/docs/LoginParams.md +1 -1
- data/docs/LoyaltyLedgerTransactions.md +1 -1
- data/docs/LoyaltyProgram.md +15 -1
- data/docs/LoyaltyProgramLedgers.md +2 -0
- data/docs/LoyaltyProgramSubledgers.md +19 -0
- data/docs/LoyaltyProgramTransaction.md +4 -2
- data/docs/ManagementApi.md +3313 -1620
- data/docs/MessageLogEntries.md +19 -0
- data/docs/MessageLogEntry.md +39 -0
- data/docs/MessageLogRequest.md +19 -0
- data/docs/MessageLogResponse.md +21 -0
- data/docs/NewAccountSignUp.md +1 -1
- data/docs/NewApplication.md +6 -10
- data/docs/NewApplicationAPIKey.md +6 -2
- data/docs/NewAudience.md +1 -1
- data/docs/NewBaseNotification.md +2 -0
- data/docs/NewCampaign.md +8 -2
- data/docs/NewCampaignEvaluationGroup.md +27 -0
- data/docs/NewCampaignGroup.md +6 -6
- data/docs/NewCampaignTemplate.md +3 -1
- data/docs/NewCoupons.md +4 -2
- data/docs/NewCustomerSession.md +1 -1
- data/docs/NewCustomerSessionV2.md +5 -3
- data/docs/NewEvent.md +2 -0
- data/docs/NewInternalAudience.md +1 -1
- data/docs/NewInvitation.md +8 -6
- data/docs/NewInviteEmail.md +4 -4
- data/docs/NewLoyaltyProgram.md +8 -0
- data/docs/NewNotificationTest.md +29 -0
- data/docs/NewNotificationWebhook.md +3 -1
- data/docs/NewPicklist.md +1 -1
- data/docs/NewRoleV2.md +23 -0
- data/docs/NewStore.md +23 -0
- data/docs/NewUser.md +1 -1
- data/docs/NotificationActivation.md +17 -0
- data/docs/NotificationListItem.md +23 -0
- data/docs/NotificationTest.md +27 -0
- data/docs/OneTimeCode.md +23 -0
- data/docs/OutgoingIntegrationCleverTapPolicy.md +21 -0
- data/docs/OutgoingIntegrationConfiguration.md +1 -1
- data/docs/OutgoingIntegrationIterablePolicy.md +19 -0
- data/docs/OutgoingIntegrationMoEngagePolicy.md +23 -0
- data/docs/OutgoingIntegrationTemplate.md +33 -0
- data/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md +35 -0
- data/docs/OutgoingIntegrationTemplates.md +17 -0
- data/docs/OutgoingIntegrationType.md +1 -1
- data/docs/PatchItemCatalogAction.md +2 -0
- data/docs/PendingPointsNotificationPolicy.md +19 -0
- data/docs/Picklist.md +1 -1
- data/docs/Product.md +17 -0
- data/docs/RemoveFromAudienceEffectProps.md +23 -0
- data/docs/ReturnedCartItem.md +1 -1
- data/docs/Role.md +1 -1
- data/docs/RoleAssign.md +2 -2
- data/docs/RoleV2.md +12 -6
- data/docs/RoleV2ApplicationDetails.md +6 -4
- data/docs/RoleV2Base.md +23 -0
- data/docs/RoleV2PermissionSet.md +3 -3
- data/docs/RoleV2Permissions.md +3 -3
- data/docs/RoleV2RolesGroup.md +21 -0
- data/docs/RollbackAddedLoyaltyPointsEffectProps.md +1 -1
- data/docs/RollbackDiscountEffectProps.md +1 -1
- data/docs/SSOConfig.md +17 -0
- data/docs/SamlConnectionInternal.md +19 -0
- data/docs/SamlLoginEndpoint.md +4 -2
- data/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md +1 -1
- data/docs/SetDiscountPerItemEffectProps.md +6 -2
- data/docs/Store.md +33 -0
- data/docs/TemplateArgDef.md +1 -1
- data/docs/Tier.md +5 -1
- data/docs/TierDowngradeNotificationPolicy.md +19 -0
- data/docs/TierUpgradeNotificationPolicy.md +19 -0
- data/docs/TierWillDowngradeNotificationPolicy.md +21 -0
- data/docs/TierWillDowngradeNotificationTrigger.md +19 -0
- data/docs/TimePoint.md +27 -0
- data/docs/TrackEventV2Response.md +33 -0
- data/docs/TwoFAConfig.md +19 -0
- data/docs/UpdateAchievement.md +27 -0
- data/docs/UpdateApplication.md +4 -6
- data/docs/UpdateApplicationAPIKey.md +17 -0
- data/docs/UpdateCampaign.md +9 -3
- data/docs/UpdateCampaignEvaluationGroup.md +27 -0
- data/docs/UpdateCampaignGroup.md +6 -6
- data/docs/UpdateCampaignTemplate.md +3 -1
- data/docs/UpdateCoupon.md +4 -2
- data/docs/UpdateCouponBatch.md +2 -2
- data/docs/UpdateLoyaltyProgram.md +8 -0
- data/docs/UpdatePicklist.md +1 -1
- data/docs/UpdateStore.md +21 -0
- data/docs/UpdateUser.md +8 -6
- data/docs/User.md +19 -13
- data/docs/WebhookWithOutgoingIntegrationDetails.md +45 -0
- data/lib/talon_one/api/integration_api.rb +283 -136
- data/lib/talon_one/api/management_api.rb +2787 -890
- data/lib/talon_one/models/account_additional_cost.rb +3 -3
- data/lib/talon_one/models/account_analytics.rb +19 -4
- data/lib/talon_one/models/account_dashboard_statistic.rb +1 -13
- data/lib/talon_one/models/account_dashboard_statistic_campaigns.rb +20 -5
- data/lib/talon_one/models/achievement.rb +406 -0
- data/lib/talon_one/models/achievement_additional_properties.rb +252 -0
- data/lib/talon_one/models/achievement_progress.rb +410 -0
- data/lib/talon_one/models/add_item_catalog_action.rb +12 -3
- data/lib/talon_one/models/add_loyalty_points.rb +2 -2
- data/lib/talon_one/models/add_loyalty_points_effect_props.rb +1 -1
- data/lib/talon_one/models/add_to_audience_effect_props.rb +238 -0
- data/lib/talon_one/models/additional_campaign_properties.rb +463 -0
- data/lib/talon_one/models/application.rb +12 -50
- data/lib/talon_one/models/application_analytics_data_point.rb +273 -0
- data/lib/talon_one/models/application_analytics_data_point_avg_items_per_session.rb +216 -0
- data/lib/talon_one/models/application_analytics_data_point_avg_session_value.rb +216 -0
- data/lib/talon_one/models/application_analytics_data_point_sessions_count.rb +216 -0
- data/lib/talon_one/models/application_analytics_data_point_total_revenue.rb +216 -0
- data/lib/talon_one/models/application_api_key.rb +37 -5
- data/lib/talon_one/models/application_campaign_analytics.rb +379 -0
- data/lib/talon_one/models/application_campaign_analytics_avg_items_per_session.rb +225 -0
- data/lib/talon_one/models/application_campaign_analytics_avg_session_value.rb +225 -0
- data/lib/talon_one/models/application_campaign_analytics_coupons_count.rb +216 -0
- data/lib/talon_one/models/application_campaign_analytics_sessions_count.rb +225 -0
- data/lib/talon_one/models/application_campaign_analytics_total_discounts.rb +216 -0
- data/lib/talon_one/models/application_campaign_analytics_total_revenue.rb +225 -0
- data/lib/talon_one/models/application_customer.rb +2 -2
- data/lib/talon_one/models/application_event.rb +45 -1
- data/lib/talon_one/models/application_notification.rb +1 -1
- data/lib/talon_one/models/application_session.rb +51 -17
- data/lib/talon_one/models/application_store_entity.rb +207 -0
- data/lib/talon_one/models/attribute.rb +2 -2
- data/lib/talon_one/models/audience_analytics.rb +2 -2
- data/lib/talon_one/models/audience_customer.rb +2 -2
- data/lib/talon_one/models/base_campaign.rb +449 -0
- data/lib/talon_one/models/base_loyalty_program.rb +102 -4
- data/lib/talon_one/models/base_notification.rb +65 -4
- data/lib/talon_one/models/base_notification_entity.rb +16 -4
- data/lib/talon_one/models/base_notification_webhook.rb +16 -4
- data/lib/talon_one/models/bulk_operation_on_campaigns.rb +263 -0
- data/lib/talon_one/models/campaign.rb +105 -20
- data/lib/talon_one/models/campaign_budget.rb +280 -0
- data/lib/talon_one/models/campaign_copy.rb +14 -4
- data/lib/talon_one/models/campaign_created_notification.rb +10 -10
- data/lib/talon_one/models/campaign_evaluation_group.rb +378 -0
- data/lib/talon_one/models/campaign_evaluation_position.rb +243 -0
- data/lib/talon_one/models/campaign_evaluation_tree_changed_notification.rb +236 -0
- data/lib/talon_one/models/campaign_group.rb +4 -4
- data/lib/talon_one/models/campaign_notification_policy.rb +231 -0
- data/lib/talon_one/models/campaign_set.rb +16 -31
- data/lib/talon_one/models/campaign_set_branch_node.rb +100 -6
- data/lib/talon_one/models/campaign_template.rb +30 -1
- data/lib/talon_one/models/card_expiring_points_notification_policy.rb +259 -0
- data/lib/talon_one/models/card_expiring_points_notification_trigger.rb +280 -0
- data/lib/talon_one/models/card_ledger_points_entry_integration_api.rb +410 -0
- data/lib/talon_one/models/cart_item.rb +12 -3
- data/lib/talon_one/models/catalog_item.rb +13 -4
- data/lib/talon_one/models/change_loyalty_tier_level_effect_props.rb +278 -0
- data/lib/talon_one/models/coupon.rb +15 -5
- data/lib/talon_one/models/coupon_creation_job.rb +1 -1
- data/lib/talon_one/models/coupons_notification_policy.rb +16 -4
- data/lib/talon_one/models/create_achievement.rb +320 -0
- data/lib/talon_one/models/create_application_api_key.rb +40 -8
- data/lib/talon_one/models/create_template_campaign.rb +27 -5
- data/lib/talon_one/models/custom_effect_props.rb +1 -1
- data/lib/talon_one/models/customer_inventory.rb +15 -4
- data/lib/talon_one/models/customer_profile.rb +2 -2
- data/lib/talon_one/models/customer_profile_audience_request_item.rb +1 -1
- data/lib/talon_one/models/customer_profile_integration_response_v2.rb +307 -0
- data/lib/talon_one/models/customer_session.rb +1 -1
- data/lib/talon_one/models/customer_session_v2.rb +41 -7
- data/lib/talon_one/models/deactivate_user_request.rb +213 -0
- data/lib/talon_one/models/delete_user_request.rb +213 -0
- data/lib/talon_one/models/effect.rb +11 -1
- data/lib/talon_one/models/effect_entity.rb +14 -4
- data/lib/talon_one/models/email_entity.rb +1 -1
- data/lib/talon_one/models/environment.rb +13 -1
- data/lib/talon_one/models/event.rb +35 -1
- data/lib/talon_one/models/event_v2.rb +37 -3
- data/lib/talon_one/models/expiring_coupons_notification_policy.rb +259 -0
- data/lib/talon_one/models/expiring_coupons_notification_trigger.rb +280 -0
- data/lib/talon_one/models/expiring_points_notification_policy.rb +16 -4
- data/lib/talon_one/models/func_arg_def.rb +0 -5
- data/lib/talon_one/models/get_integration_coupon_request.rb +257 -0
- data/lib/talon_one/models/identifiable_entity.rb +212 -0
- data/lib/talon_one/models/increase_achievement_progress_effect_props.rb +298 -0
- 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 +1 -1
- data/lib/talon_one/models/inline_response20013.rb +11 -11
- data/lib/talon_one/models/inline_response20014.rb +1 -3
- data/lib/talon_one/models/inline_response20015.rb +7 -11
- data/lib/talon_one/models/inline_response20016.rb +3 -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 +10 -10
- data/lib/talon_one/models/inline_response20020.rb +1 -1
- data/lib/talon_one/models/inline_response20021.rb +7 -11
- data/lib/talon_one/models/inline_response20022.rb +10 -10
- data/lib/talon_one/models/inline_response20023.rb +1 -1
- data/lib/talon_one/models/inline_response20024.rb +10 -6
- data/lib/talon_one/models/inline_response20025.rb +1 -1
- data/lib/talon_one/models/inline_response20026.rb +6 -1
- data/lib/talon_one/models/inline_response20027.rb +1 -6
- data/lib/talon_one/models/inline_response20028.rb +11 -11
- data/lib/talon_one/models/inline_response20029.rb +7 -11
- data/lib/talon_one/models/inline_response2003.rb +11 -11
- data/lib/talon_one/models/inline_response20030.rb +1 -1
- data/lib/talon_one/models/inline_response20031.rb +8 -13
- data/lib/talon_one/models/inline_response20032.rb +8 -13
- data/lib/talon_one/models/inline_response20033.rb +11 -7
- data/lib/talon_one/models/inline_response20034.rb +1 -1
- data/lib/talon_one/models/inline_response20035.rb +11 -7
- data/lib/talon_one/models/inline_response20036.rb +1 -1
- data/lib/talon_one/models/inline_response20037.rb +1 -1
- data/lib/talon_one/models/inline_response20038.rb +7 -11
- data/lib/talon_one/models/inline_response20039.rb +1 -1
- data/lib/talon_one/models/inline_response2004.rb +11 -11
- data/lib/talon_one/models/inline_response20040.rb +1 -1
- data/lib/talon_one/models/inline_response20041.rb +227 -0
- data/lib/talon_one/models/inline_response20042.rb +231 -0
- data/lib/talon_one/models/inline_response20043.rb +227 -0
- data/lib/talon_one/models/inline_response20044.rb +227 -0
- data/lib/talon_one/models/inline_response20045.rb +231 -0
- data/lib/talon_one/models/inline_response20046.rb +222 -0
- data/lib/talon_one/models/inline_response20047.rb +227 -0
- 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 +10 -10
- data/lib/talon_one/models/inline_response2009.rb +1 -1
- data/lib/talon_one/models/integration_coupon.rb +12 -2
- data/lib/talon_one/models/integration_event.rb +35 -1
- data/lib/talon_one/models/integration_event_v2_request.rb +37 -3
- data/lib/talon_one/models/integration_request.rb +1 -1
- data/lib/talon_one/models/integration_store_entity.rb +231 -0
- data/lib/talon_one/models/inventory_coupon.rb +13 -3
- data/lib/talon_one/models/ledger_points_entry_integration_api.rb +400 -0
- 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_transactions.rb +1 -1
- data/lib/talon_one/models/loyalty_program.rb +136 -4
- data/lib/talon_one/models/loyalty_program_ledgers.rb +12 -2
- data/lib/talon_one/models/loyalty_program_subledgers.rb +230 -0
- data/lib/talon_one/models/loyalty_program_transaction.rb +13 -3
- data/lib/talon_one/models/message_log_entries.rb +241 -0
- data/lib/talon_one/models/message_log_entry.rb +395 -0
- data/lib/talon_one/models/message_log_request.rb +249 -0
- data/lib/talon_one/models/message_log_response.rb +264 -0
- data/lib/talon_one/models/new_account_sign_up.rb +1 -1
- data/lib/talon_one/models/new_additional_cost.rb +3 -3
- data/lib/talon_one/models/new_application.rb +2 -51
- data/lib/talon_one/models/new_application_api_key.rb +37 -5
- data/lib/talon_one/models/new_attribute.rb +2 -2
- data/lib/talon_one/models/new_base_notification.rb +13 -1
- data/lib/talon_one/models/new_campaign.rb +52 -5
- data/lib/talon_one/models/new_campaign_evaluation_group.rb +347 -0
- data/lib/talon_one/models/new_campaign_group.rb +4 -4
- data/lib/talon_one/models/new_campaign_template.rb +33 -4
- data/lib/talon_one/models/new_coupons.rb +15 -5
- data/lib/talon_one/models/new_customer_session.rb +1 -1
- data/lib/talon_one/models/new_customer_session_v2.rb +38 -4
- data/lib/talon_one/models/new_event.rb +35 -1
- data/lib/talon_one/models/new_invitation.rb +24 -18
- data/lib/talon_one/models/new_invite_email.rb +2 -38
- data/lib/talon_one/models/new_loyalty_program.rb +99 -1
- data/lib/talon_one/models/new_notification_test.rb +327 -0
- data/lib/talon_one/models/new_notification_webhook.rb +16 -4
- data/lib/talon_one/models/new_picklist.rb +1 -1
- data/lib/talon_one/models/new_role_v2.rb +249 -0
- data/lib/talon_one/models/new_store.rb +309 -0
- data/lib/talon_one/models/new_user.rb +1 -1
- data/lib/talon_one/models/notification_activation.rb +212 -0
- data/lib/talon_one/models/notification_list_item.rb +257 -0
- data/lib/talon_one/models/notification_test.rb +227 -0
- data/lib/talon_one/models/one_time_code.rb +252 -0
- data/lib/talon_one/models/outgoing_integration_clever_tap_policy.rb +242 -0
- data/lib/talon_one/models/outgoing_integration_configuration.rb +1 -0
- data/lib/talon_one/models/outgoing_integration_iterable_policy.rb +227 -0
- data/lib/talon_one/models/outgoing_integration_mo_engage_policy.rb +257 -0
- data/lib/talon_one/models/outgoing_integration_template.rb +409 -0
- data/lib/talon_one/models/outgoing_integration_template_with_configuration_details.rb +425 -0
- data/lib/talon_one/models/outgoing_integration_templates.rb +209 -0
- data/lib/talon_one/models/patch_item_catalog_action.rb +11 -2
- data/lib/talon_one/models/pending_points_notification_policy.rb +243 -0
- data/lib/talon_one/models/picklist.rb +1 -1
- data/lib/talon_one/models/product.rb +232 -0
- data/lib/talon_one/models/remove_from_audience_effect_props.rb +238 -0
- data/lib/talon_one/models/returned_cart_item.rb +1 -1
- data/lib/talon_one/models/role.rb +1 -1
- data/lib/talon_one/models/role_assign.rb +2 -2
- data/lib/talon_one/models/role_v2.rb +63 -12
- data/lib/talon_one/models/role_v2_application_details.rb +17 -7
- data/lib/talon_one/models/role_v2_base.rb +238 -0
- data/lib/talon_one/models/role_v2_permission_set.rb +12 -11
- data/lib/talon_one/models/role_v2_permissions.rb +2 -2
- data/lib/talon_one/models/role_v2_roles_group.rb +233 -0
- data/lib/talon_one/models/rollback_added_loyalty_points_effect_props.rb +1 -1
- data/lib/talon_one/models/rollback_discount_effect_props.rb +1 -1
- data/lib/talon_one/models/saml_connection_internal.rb +265 -0
- data/lib/talon_one/models/saml_login_endpoint.rb +17 -2
- data/lib/talon_one/models/set_discount_per_additional_cost_per_item_effect_props.rb +1 -1
- data/lib/talon_one/models/set_discount_per_item_effect_props.rb +25 -5
- data/lib/talon_one/models/sso_config.rb +212 -0
- data/lib/talon_one/models/store.rb +381 -0
- data/lib/talon_one/models/talang_attribute.rb +2 -2
- data/lib/talon_one/models/template_arg_def.rb +0 -5
- data/lib/talon_one/models/tier.rb +58 -4
- data/lib/talon_one/models/tier_downgrade_notification_policy.rb +243 -0
- data/lib/talon_one/models/tier_upgrade_notification_policy.rb +243 -0
- data/lib/talon_one/models/tier_will_downgrade_notification_policy.rb +259 -0
- data/lib/talon_one/models/tier_will_downgrade_notification_trigger.rb +261 -0
- data/lib/talon_one/models/time_point.rb +345 -0
- data/lib/talon_one/models/track_event_v2_response.rb +307 -0
- data/lib/talon_one/models/two_fa_config.rb +222 -0
- data/lib/talon_one/models/update_achievement.rb +291 -0
- data/lib/talon_one/models/update_application.rb +15 -53
- data/lib/talon_one/models/update_application_api_key.rb +212 -0
- data/lib/talon_one/models/update_campaign.rb +52 -6
- data/lib/talon_one/models/update_campaign_evaluation_group.rb +348 -0
- data/lib/talon_one/models/update_campaign_group.rb +4 -4
- data/lib/talon_one/models/update_campaign_template.rb +28 -4
- data/lib/talon_one/models/update_coupon.rb +15 -5
- data/lib/talon_one/models/update_coupon_batch.rb +2 -2
- data/lib/talon_one/models/update_loyalty_program.rb +99 -1
- data/lib/talon_one/models/update_picklist.rb +1 -1
- data/lib/talon_one/models/update_store.rb +265 -0
- data/lib/talon_one/models/update_user.rb +25 -14
- data/lib/talon_one/models/user.rb +73 -42
- data/lib/talon_one/models/webhook_with_outgoing_integration_details.rb +449 -0
- data/lib/talon_one/version.rb +1 -1
- data/lib/talon_one.rb +86 -16
- data/spec/api/integration_api_spec.rb +74 -47
- data/spec/api/management_api_spec.rb +669 -299
- data/spec/models/account_analytics_spec.rb +6 -0
- data/spec/models/account_dashboard_statistic_campaigns_spec.rb +6 -0
- data/spec/models/account_dashboard_statistic_spec.rb +0 -6
- data/spec/models/achievement_additional_properties_spec.rb +59 -0
- data/spec/models/achievement_progress_spec.rb +99 -0
- data/spec/models/achievement_spec.rb +107 -0
- data/spec/models/add_item_catalog_action_spec.rb +6 -0
- data/spec/models/add_to_audience_effect_props_spec.rb +59 -0
- data/spec/models/additional_campaign_properties_spec.rb +171 -0
- data/spec/models/application_analytics_data_point_avg_items_per_session_spec.rb +47 -0
- data/spec/models/application_analytics_data_point_avg_session_value_spec.rb +47 -0
- data/spec/models/application_analytics_data_point_sessions_count_spec.rb +47 -0
- data/spec/models/application_analytics_data_point_spec.rb +83 -0
- data/spec/models/application_analytics_data_point_total_revenue_spec.rb +47 -0
- data/spec/models/application_api_key_spec.rb +17 -1
- data/spec/models/application_campaign_analytics_avg_items_per_session_spec.rb +53 -0
- data/spec/models/application_campaign_analytics_avg_session_value_spec.rb +53 -0
- data/spec/models/application_campaign_analytics_coupons_count_spec.rb +47 -0
- data/spec/models/application_campaign_analytics_sessions_count_spec.rb +53 -0
- data/spec/models/application_campaign_analytics_spec.rb +129 -0
- data/spec/models/application_campaign_analytics_total_discounts_spec.rb +47 -0
- data/spec/models/application_campaign_analytics_total_revenue_spec.rb +53 -0
- data/spec/models/application_event_spec.rb +12 -0
- data/spec/models/application_session_spec.rb +9 -3
- data/spec/models/application_spec.rb +6 -20
- data/spec/models/application_store_entity_spec.rb +41 -0
- data/spec/models/attribute_spec.rb +1 -1
- data/spec/models/base_campaign_spec.rb +137 -0
- data/spec/models/base_loyalty_program_spec.rb +36 -0
- data/spec/models/base_notification_entity_spec.rb +6 -0
- data/spec/models/base_notification_spec.rb +16 -0
- data/spec/models/base_notification_webhook_spec.rb +6 -0
- data/spec/models/bulk_operation_on_campaigns_spec.rb +51 -0
- data/spec/models/campaign_budget_spec.rb +53 -0
- data/spec/models/campaign_copy_spec.rb +6 -0
- data/spec/models/campaign_created_notification_spec.rb +1 -1
- data/spec/models/campaign_evaluation_group_spec.rb +91 -0
- data/spec/models/campaign_evaluation_position_spec.rb +53 -0
- data/spec/models/campaign_evaluation_tree_changed_notification_spec.rb +53 -0
- data/spec/models/campaign_notification_policy_spec.rb +41 -0
- data/spec/models/campaign_set_branch_node_spec.rb +38 -0
- data/spec/models/campaign_set_spec.rb +2 -8
- data/spec/models/campaign_spec.rb +33 -1
- data/spec/models/campaign_template_spec.rb +11 -1
- data/spec/models/card_expiring_points_notification_policy_spec.rb +53 -0
- data/spec/models/card_expiring_points_notification_trigger_spec.rb +51 -0
- data/spec/models/card_ledger_points_entry_integration_api_spec.rb +95 -0
- data/spec/models/cart_item_spec.rb +6 -0
- data/spec/models/catalog_item_spec.rb +6 -0
- data/spec/models/change_loyalty_tier_level_effect_props_spec.rb +71 -0
- data/spec/models/coupon_spec.rb +6 -0
- data/spec/models/coupons_notification_policy_spec.rb +6 -0
- data/spec/models/create_achievement_spec.rb +71 -0
- data/spec/models/create_application_api_key_spec.rb +17 -1
- data/spec/models/create_template_campaign_spec.rb +12 -0
- data/spec/models/customer_inventory_spec.rb +6 -0
- data/spec/models/customer_profile_integration_response_v2_spec.rb +89 -0
- data/spec/models/customer_session_v2_spec.rb +6 -0
- data/spec/models/deactivate_user_request_spec.rb +41 -0
- data/spec/models/delete_user_request_spec.rb +41 -0
- data/spec/models/effect_entity_spec.rb +6 -0
- data/spec/models/effect_spec.rb +6 -0
- data/spec/models/environment_spec.rb +6 -0
- data/spec/models/event_spec.rb +6 -0
- data/spec/models/event_v2_spec.rb +6 -0
- data/spec/models/expiring_coupons_notification_policy_spec.rb +53 -0
- data/spec/models/expiring_coupons_notification_trigger_spec.rb +51 -0
- data/spec/models/expiring_points_notification_policy_spec.rb +6 -0
- data/spec/models/get_integration_coupon_request_spec.rb +47 -0
- data/spec/models/identifiable_entity_spec.rb +41 -0
- data/spec/models/increase_achievement_progress_effect_props_spec.rb +77 -0
- data/spec/models/inline_response20013_spec.rb +1 -1
- data/spec/models/inline_response20015_spec.rb +0 -6
- data/spec/models/inline_response20019_spec.rb +1 -1
- data/spec/models/inline_response20021_spec.rb +0 -6
- data/spec/models/inline_response20022_spec.rb +2 -2
- data/spec/models/inline_response20024_spec.rb +6 -0
- data/spec/models/inline_response20028_spec.rb +1 -1
- data/spec/models/inline_response20029_spec.rb +0 -6
- data/spec/models/inline_response20031_spec.rb +1 -1
- data/spec/models/inline_response20032_spec.rb +1 -1
- data/spec/models/inline_response20033_spec.rb +6 -0
- data/spec/models/inline_response20035_spec.rb +6 -0
- data/spec/models/inline_response20038_spec.rb +0 -6
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response20041_spec.rb +47 -0
- data/spec/models/inline_response20042_spec.rb +53 -0
- data/spec/models/inline_response20043_spec.rb +47 -0
- data/spec/models/inline_response20044_spec.rb +47 -0
- data/spec/models/inline_response20045_spec.rb +53 -0
- data/spec/models/inline_response20046_spec.rb +47 -0
- data/spec/models/inline_response20047_spec.rb +47 -0
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/integration_coupon_spec.rb +6 -0
- data/spec/models/integration_event_spec.rb +6 -0
- data/spec/models/integration_event_v2_request_spec.rb +6 -0
- data/spec/models/integration_store_entity_spec.rb +41 -0
- data/spec/models/inventory_coupon_spec.rb +6 -0
- data/spec/models/ledger_points_entry_integration_api_spec.rb +89 -0
- data/spec/models/loyalty_program_ledgers_spec.rb +6 -0
- data/spec/models/loyalty_program_spec.rb +54 -0
- data/spec/models/loyalty_program_subledgers_spec.rb +47 -0
- data/spec/models/loyalty_program_transaction_spec.rb +6 -0
- data/spec/models/message_log_entries_spec.rb +47 -0
- data/spec/models/message_log_entry_spec.rb +111 -0
- data/spec/models/message_log_request_spec.rb +47 -0
- data/spec/models/message_log_response_spec.rb +53 -0
- data/spec/models/new_application_api_key_spec.rb +17 -1
- data/spec/models/new_application_spec.rb +0 -20
- data/spec/models/new_attribute_spec.rb +1 -1
- data/spec/models/new_base_notification_spec.rb +6 -0
- data/spec/models/new_campaign_evaluation_group_spec.rb +79 -0
- data/spec/models/new_campaign_spec.rb +23 -1
- data/spec/models/new_campaign_template_spec.rb +11 -1
- data/spec/models/new_coupons_spec.rb +6 -0
- data/spec/models/new_customer_session_v2_spec.rb +6 -0
- data/spec/models/new_event_spec.rb +6 -0
- data/spec/models/new_invitation_spec.rb +7 -1
- data/spec/models/new_loyalty_program_spec.rb +36 -0
- data/spec/models/new_notification_test_spec.rb +79 -0
- data/spec/models/new_notification_webhook_spec.rb +6 -0
- data/spec/models/new_role_v2_spec.rb +59 -0
- data/spec/models/new_store_spec.rb +59 -0
- data/spec/models/notification_activation_spec.rb +41 -0
- data/spec/models/notification_list_item_spec.rb +59 -0
- data/spec/models/notification_test_spec.rb +47 -0
- data/spec/models/one_time_code_spec.rb +59 -0
- data/spec/models/outgoing_integration_clever_tap_policy_spec.rb +53 -0
- data/spec/models/outgoing_integration_iterable_policy_spec.rb +47 -0
- data/spec/models/outgoing_integration_mo_engage_policy_spec.rb +59 -0
- data/spec/models/outgoing_integration_template_spec.rb +87 -0
- data/spec/models/outgoing_integration_template_with_configuration_details_spec.rb +93 -0
- data/spec/models/outgoing_integration_templates_spec.rb +41 -0
- data/spec/models/patch_item_catalog_action_spec.rb +6 -0
- data/spec/models/pending_points_notification_policy_spec.rb +47 -0
- data/spec/models/product_spec.rb +41 -0
- data/spec/models/remove_from_audience_effect_props_spec.rb +59 -0
- data/spec/models/role_v2_application_details_spec.rb +6 -0
- data/spec/models/role_v2_base_spec.rb +59 -0
- data/spec/models/role_v2_permission_set_spec.rb +1 -1
- data/spec/models/role_v2_roles_group_spec.rb +53 -0
- data/spec/models/role_v2_spec.rb +21 -3
- data/spec/models/saml_connection_internal_spec.rb +47 -0
- data/spec/models/saml_login_endpoint_spec.rb +6 -0
- data/spec/models/set_discount_per_item_effect_props_spec.rb +12 -0
- data/spec/models/sso_config_spec.rb +41 -0
- data/spec/models/store_spec.rb +89 -0
- data/spec/models/talang_attribute_spec.rb +1 -1
- data/spec/models/tier_downgrade_notification_policy_spec.rb +47 -0
- data/spec/models/tier_spec.rb +16 -0
- data/spec/models/tier_upgrade_notification_policy_spec.rb +47 -0
- data/spec/models/tier_will_downgrade_notification_policy_spec.rb +53 -0
- data/spec/models/tier_will_downgrade_notification_trigger_spec.rb +51 -0
- data/spec/models/time_point_spec.rb +71 -0
- data/spec/models/track_event_v2_response_spec.rb +89 -0
- data/spec/models/two_fa_config_spec.rb +47 -0
- data/spec/models/update_achievement_spec.rb +71 -0
- data/spec/models/update_application_api_key_spec.rb +41 -0
- data/spec/models/update_application_spec.rb +6 -20
- data/spec/models/update_campaign_evaluation_group_spec.rb +79 -0
- data/spec/models/update_campaign_spec.rb +23 -1
- data/spec/models/update_campaign_template_spec.rb +11 -1
- data/spec/models/update_coupon_spec.rb +6 -0
- data/spec/models/update_loyalty_program_spec.rb +36 -0
- data/spec/models/update_store_spec.rb +53 -0
- data/spec/models/update_user_spec.rb +12 -6
- data/spec/models/user_spec.rb +23 -5
- data/spec/models/webhook_with_outgoing_integration_details_spec.rb +123 -0
- metadata +713 -369
@@ -18,6 +18,9 @@ module TalonOne
|
|
18
18
|
# ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
|
19
19
|
attr_accessor :profile_id
|
20
20
|
|
21
|
+
# The integration ID of the store. You choose this ID when you create a store.
|
22
|
+
attr_accessor :store_integration_id
|
23
|
+
|
21
24
|
# When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them.
|
22
25
|
attr_accessor :evaluable_campaign_ids
|
23
26
|
|
@@ -27,13 +30,13 @@ module TalonOne
|
|
27
30
|
# Any referral code entered. **Important**: If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it.
|
28
31
|
attr_accessor :referral_code
|
29
32
|
|
30
|
-
#
|
33
|
+
# Identifier of a loyalty card.
|
31
34
|
attr_accessor :loyalty_cards
|
32
35
|
|
33
|
-
# Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities
|
36
|
+
# Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions).
|
34
37
|
attr_accessor :state
|
35
38
|
|
36
|
-
# The items to add to this
|
39
|
+
# The items to add to this session. **Do not exceed 1000 items** and ensure the sum of all cart item's `quantity` **does not exceed 10.000** per request.
|
37
40
|
attr_accessor :cart_items
|
38
41
|
|
39
42
|
# Use this property to set a value for the additional costs of this session, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs).
|
@@ -71,6 +74,7 @@ module TalonOne
|
|
71
74
|
def self.attribute_map
|
72
75
|
{
|
73
76
|
:'profile_id' => :'profileId',
|
77
|
+
:'store_integration_id' => :'storeIntegrationId',
|
74
78
|
:'evaluable_campaign_ids' => :'evaluableCampaignIds',
|
75
79
|
:'coupon_codes' => :'couponCodes',
|
76
80
|
:'referral_code' => :'referralCode',
|
@@ -87,6 +91,7 @@ module TalonOne
|
|
87
91
|
def self.openapi_types
|
88
92
|
{
|
89
93
|
:'profile_id' => :'String',
|
94
|
+
:'store_integration_id' => :'String',
|
90
95
|
:'evaluable_campaign_ids' => :'Array<Integer>',
|
91
96
|
:'coupon_codes' => :'Array<String>',
|
92
97
|
:'referral_code' => :'String',
|
@@ -124,6 +129,10 @@ module TalonOne
|
|
124
129
|
self.profile_id = attributes[:'profile_id']
|
125
130
|
end
|
126
131
|
|
132
|
+
if attributes.key?(:'store_integration_id')
|
133
|
+
self.store_integration_id = attributes[:'store_integration_id']
|
134
|
+
end
|
135
|
+
|
127
136
|
if attributes.key?(:'evaluable_campaign_ids')
|
128
137
|
if (value = attributes[:'evaluable_campaign_ids']).is_a?(Array)
|
129
138
|
self.evaluable_campaign_ids = value
|
@@ -179,6 +188,14 @@ module TalonOne
|
|
179
188
|
# @return Array for valid properties with the reasons
|
180
189
|
def list_invalid_properties
|
181
190
|
invalid_properties = Array.new
|
191
|
+
if !@store_integration_id.nil? && @store_integration_id.to_s.length > 1000
|
192
|
+
invalid_properties.push('invalid value for "store_integration_id", the character length must be smaller than or equal to 1000.')
|
193
|
+
end
|
194
|
+
|
195
|
+
if !@store_integration_id.nil? && @store_integration_id.to_s.length < 1
|
196
|
+
invalid_properties.push('invalid value for "store_integration_id", the character length must be great than or equal to 1.')
|
197
|
+
end
|
198
|
+
|
182
199
|
if !@referral_code.nil? && @referral_code.to_s.length > 100
|
183
200
|
invalid_properties.push('invalid value for "referral_code", the character length must be smaller than or equal to 100.')
|
184
201
|
end
|
@@ -189,12 +206,28 @@ module TalonOne
|
|
189
206
|
# Check to see if the all the properties in the model are valid
|
190
207
|
# @return true if the model is valid
|
191
208
|
def valid?
|
209
|
+
return false if !@store_integration_id.nil? && @store_integration_id.to_s.length > 1000
|
210
|
+
return false if !@store_integration_id.nil? && @store_integration_id.to_s.length < 1
|
192
211
|
return false if !@referral_code.nil? && @referral_code.to_s.length > 100
|
193
212
|
state_validator = EnumAttributeValidator.new('String', ["open", "closed", "partially_returned", "cancelled"])
|
194
213
|
return false unless state_validator.valid?(@state)
|
195
214
|
true
|
196
215
|
end
|
197
216
|
|
217
|
+
# Custom attribute writer method with validation
|
218
|
+
# @param [Object] store_integration_id Value to be assigned
|
219
|
+
def store_integration_id=(store_integration_id)
|
220
|
+
if !store_integration_id.nil? && store_integration_id.to_s.length > 1000
|
221
|
+
fail ArgumentError, 'invalid value for "store_integration_id", the character length must be smaller than or equal to 1000.'
|
222
|
+
end
|
223
|
+
|
224
|
+
if !store_integration_id.nil? && store_integration_id.to_s.length < 1
|
225
|
+
fail ArgumentError, 'invalid value for "store_integration_id", the character length must be great than or equal to 1.'
|
226
|
+
end
|
227
|
+
|
228
|
+
@store_integration_id = store_integration_id
|
229
|
+
end
|
230
|
+
|
198
231
|
# Custom attribute writer method with validation
|
199
232
|
# @param [Object] referral_code Value to be assigned
|
200
233
|
def referral_code=(referral_code)
|
@@ -221,6 +254,7 @@ module TalonOne
|
|
221
254
|
return true if self.equal?(o)
|
222
255
|
self.class == o.class &&
|
223
256
|
profile_id == o.profile_id &&
|
257
|
+
store_integration_id == o.store_integration_id &&
|
224
258
|
evaluable_campaign_ids == o.evaluable_campaign_ids &&
|
225
259
|
coupon_codes == o.coupon_codes &&
|
226
260
|
referral_code == o.referral_code &&
|
@@ -241,7 +275,7 @@ module TalonOne
|
|
241
275
|
# Calculates hash code according to all attributes.
|
242
276
|
# @return [Integer] Hash code
|
243
277
|
def hash
|
244
|
-
[profile_id, evaluable_campaign_ids, coupon_codes, referral_code, loyalty_cards, state, cart_items, additional_costs, identifiers, attributes].hash
|
278
|
+
[profile_id, store_integration_id, evaluable_campaign_ids, coupon_codes, referral_code, loyalty_cards, state, cart_items, additional_costs, identifiers, attributes].hash
|
245
279
|
end
|
246
280
|
|
247
281
|
# Builds the object from hash
|
@@ -18,6 +18,9 @@ module TalonOne
|
|
18
18
|
# ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
|
19
19
|
attr_accessor :profile_id
|
20
20
|
|
21
|
+
# The integration ID of the store. You choose this ID when you create a store.
|
22
|
+
attr_accessor :store_integration_id
|
23
|
+
|
21
24
|
# A string representing the event. Must not be a reserved event name.
|
22
25
|
attr_accessor :type
|
23
26
|
|
@@ -31,6 +34,7 @@ module TalonOne
|
|
31
34
|
def self.attribute_map
|
32
35
|
{
|
33
36
|
:'profile_id' => :'profileId',
|
37
|
+
:'store_integration_id' => :'storeIntegrationId',
|
34
38
|
:'type' => :'type',
|
35
39
|
:'attributes' => :'attributes',
|
36
40
|
:'session_id' => :'sessionId'
|
@@ -41,6 +45,7 @@ module TalonOne
|
|
41
45
|
def self.openapi_types
|
42
46
|
{
|
43
47
|
:'profile_id' => :'String',
|
48
|
+
:'store_integration_id' => :'String',
|
44
49
|
:'type' => :'String',
|
45
50
|
:'attributes' => :'Object',
|
46
51
|
:'session_id' => :'String'
|
@@ -72,6 +77,10 @@ module TalonOne
|
|
72
77
|
self.profile_id = attributes[:'profile_id']
|
73
78
|
end
|
74
79
|
|
80
|
+
if attributes.key?(:'store_integration_id')
|
81
|
+
self.store_integration_id = attributes[:'store_integration_id']
|
82
|
+
end
|
83
|
+
|
75
84
|
if attributes.key?(:'type')
|
76
85
|
self.type = attributes[:'type']
|
77
86
|
end
|
@@ -89,6 +98,14 @@ module TalonOne
|
|
89
98
|
# @return Array for valid properties with the reasons
|
90
99
|
def list_invalid_properties
|
91
100
|
invalid_properties = Array.new
|
101
|
+
if !@store_integration_id.nil? && @store_integration_id.to_s.length > 1000
|
102
|
+
invalid_properties.push('invalid value for "store_integration_id", the character length must be smaller than or equal to 1000.')
|
103
|
+
end
|
104
|
+
|
105
|
+
if !@store_integration_id.nil? && @store_integration_id.to_s.length < 1
|
106
|
+
invalid_properties.push('invalid value for "store_integration_id", the character length must be great than or equal to 1.')
|
107
|
+
end
|
108
|
+
|
92
109
|
if @type.nil?
|
93
110
|
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
94
111
|
end
|
@@ -115,6 +132,8 @@ module TalonOne
|
|
115
132
|
# Check to see if the all the properties in the model are valid
|
116
133
|
# @return true if the model is valid
|
117
134
|
def valid?
|
135
|
+
return false if !@store_integration_id.nil? && @store_integration_id.to_s.length > 1000
|
136
|
+
return false if !@store_integration_id.nil? && @store_integration_id.to_s.length < 1
|
118
137
|
return false if @type.nil?
|
119
138
|
return false if @type.to_s.length < 1
|
120
139
|
return false if @attributes.nil?
|
@@ -123,6 +142,20 @@ module TalonOne
|
|
123
142
|
true
|
124
143
|
end
|
125
144
|
|
145
|
+
# Custom attribute writer method with validation
|
146
|
+
# @param [Object] store_integration_id Value to be assigned
|
147
|
+
def store_integration_id=(store_integration_id)
|
148
|
+
if !store_integration_id.nil? && store_integration_id.to_s.length > 1000
|
149
|
+
fail ArgumentError, 'invalid value for "store_integration_id", the character length must be smaller than or equal to 1000.'
|
150
|
+
end
|
151
|
+
|
152
|
+
if !store_integration_id.nil? && store_integration_id.to_s.length < 1
|
153
|
+
fail ArgumentError, 'invalid value for "store_integration_id", the character length must be great than or equal to 1.'
|
154
|
+
end
|
155
|
+
|
156
|
+
@store_integration_id = store_integration_id
|
157
|
+
end
|
158
|
+
|
126
159
|
# Custom attribute writer method with validation
|
127
160
|
# @param [Object] type Value to be assigned
|
128
161
|
def type=(type)
|
@@ -157,6 +190,7 @@ module TalonOne
|
|
157
190
|
return true if self.equal?(o)
|
158
191
|
self.class == o.class &&
|
159
192
|
profile_id == o.profile_id &&
|
193
|
+
store_integration_id == o.store_integration_id &&
|
160
194
|
type == o.type &&
|
161
195
|
attributes == o.attributes &&
|
162
196
|
session_id == o.session_id
|
@@ -171,7 +205,7 @@ module TalonOne
|
|
171
205
|
# Calculates hash code according to all attributes.
|
172
206
|
# @return [Integer] Hash code
|
173
207
|
def hash
|
174
|
-
[profile_id, type, attributes, session_id].hash
|
208
|
+
[profile_id, store_integration_id, type, attributes, session_id].hash
|
175
209
|
end
|
176
210
|
|
177
211
|
# Builds the object from hash
|
@@ -15,24 +15,29 @@ require 'date'
|
|
15
15
|
module TalonOne
|
16
16
|
# Parameters for inviting a new user.
|
17
17
|
class NewInvitation
|
18
|
-
# Name of the user
|
18
|
+
# Name of the user.
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
+
# Email address of the user.
|
21
22
|
attr_accessor :email
|
22
23
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
24
|
+
# Indicates whether the user is an `admin`.
|
25
|
+
attr_accessor :is_admin
|
25
26
|
|
26
|
-
#
|
27
|
+
# A list of the IDs of the roles assigned to the user.
|
27
28
|
attr_accessor :roles
|
28
29
|
|
30
|
+
# Indicates the access level of the user.
|
31
|
+
attr_accessor :acl
|
32
|
+
|
29
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
34
|
def self.attribute_map
|
31
35
|
{
|
32
36
|
:'name' => :'name',
|
33
37
|
:'email' => :'email',
|
34
|
-
:'
|
35
|
-
:'roles' => :'roles'
|
38
|
+
:'is_admin' => :'isAdmin',
|
39
|
+
:'roles' => :'roles',
|
40
|
+
:'acl' => :'acl'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -41,8 +46,9 @@ module TalonOne
|
|
41
46
|
{
|
42
47
|
:'name' => :'String',
|
43
48
|
:'email' => :'String',
|
44
|
-
:'
|
45
|
-
:'roles' => :'Array<Integer>'
|
49
|
+
:'is_admin' => :'Boolean',
|
50
|
+
:'roles' => :'Array<Integer>',
|
51
|
+
:'acl' => :'String'
|
46
52
|
}
|
47
53
|
end
|
48
54
|
|
@@ -75,8 +81,8 @@ module TalonOne
|
|
75
81
|
self.email = attributes[:'email']
|
76
82
|
end
|
77
83
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
84
|
+
if attributes.key?(:'is_admin')
|
85
|
+
self.is_admin = attributes[:'is_admin']
|
80
86
|
end
|
81
87
|
|
82
88
|
if attributes.key?(:'roles')
|
@@ -84,6 +90,10 @@ module TalonOne
|
|
84
90
|
self.roles = value
|
85
91
|
end
|
86
92
|
end
|
93
|
+
|
94
|
+
if attributes.key?(:'acl')
|
95
|
+
self.acl = attributes[:'acl']
|
96
|
+
end
|
87
97
|
end
|
88
98
|
|
89
99
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -94,10 +104,6 @@ module TalonOne
|
|
94
104
|
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
95
105
|
end
|
96
106
|
|
97
|
-
if @acl.nil?
|
98
|
-
invalid_properties.push('invalid value for "acl", acl cannot be nil.')
|
99
|
-
end
|
100
|
-
|
101
107
|
invalid_properties
|
102
108
|
end
|
103
109
|
|
@@ -105,7 +111,6 @@ module TalonOne
|
|
105
111
|
# @return true if the model is valid
|
106
112
|
def valid?
|
107
113
|
return false if @email.nil?
|
108
|
-
return false if @acl.nil?
|
109
114
|
true
|
110
115
|
end
|
111
116
|
|
@@ -116,8 +121,9 @@ module TalonOne
|
|
116
121
|
self.class == o.class &&
|
117
122
|
name == o.name &&
|
118
123
|
email == o.email &&
|
119
|
-
|
120
|
-
roles == o.roles
|
124
|
+
is_admin == o.is_admin &&
|
125
|
+
roles == o.roles &&
|
126
|
+
acl == o.acl
|
121
127
|
end
|
122
128
|
|
123
129
|
# @see the `==` method
|
@@ -129,7 +135,7 @@ module TalonOne
|
|
129
135
|
# Calculates hash code according to all attributes.
|
130
136
|
# @return [Integer] Hash code
|
131
137
|
def hash
|
132
|
-
[name, email,
|
138
|
+
[name, email, is_admin, roles, acl].hash
|
133
139
|
end
|
134
140
|
|
135
141
|
# Builds the object from hash
|
@@ -14,8 +14,10 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TalonOne
|
16
16
|
class NewInviteEmail
|
17
|
+
# Email address of the user.
|
17
18
|
attr_accessor :email
|
18
19
|
|
20
|
+
# Invitation token of the user.
|
19
21
|
attr_accessor :token
|
20
22
|
|
21
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -72,18 +74,10 @@ module TalonOne
|
|
72
74
|
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
73
75
|
end
|
74
76
|
|
75
|
-
if @email.to_s.length < 1
|
76
|
-
invalid_properties.push('invalid value for "email", the character length must be great than or equal to 1.')
|
77
|
-
end
|
78
|
-
|
79
77
|
if @token.nil?
|
80
78
|
invalid_properties.push('invalid value for "token", token cannot be nil.')
|
81
79
|
end
|
82
80
|
|
83
|
-
if @token.to_s.length < 1
|
84
|
-
invalid_properties.push('invalid value for "token", the character length must be great than or equal to 1.')
|
85
|
-
end
|
86
|
-
|
87
81
|
invalid_properties
|
88
82
|
end
|
89
83
|
|
@@ -91,40 +85,10 @@ module TalonOne
|
|
91
85
|
# @return true if the model is valid
|
92
86
|
def valid?
|
93
87
|
return false if @email.nil?
|
94
|
-
return false if @email.to_s.length < 1
|
95
88
|
return false if @token.nil?
|
96
|
-
return false if @token.to_s.length < 1
|
97
89
|
true
|
98
90
|
end
|
99
91
|
|
100
|
-
# Custom attribute writer method with validation
|
101
|
-
# @param [Object] email Value to be assigned
|
102
|
-
def email=(email)
|
103
|
-
if email.nil?
|
104
|
-
fail ArgumentError, 'email cannot be nil'
|
105
|
-
end
|
106
|
-
|
107
|
-
if email.to_s.length < 1
|
108
|
-
fail ArgumentError, 'invalid value for "email", the character length must be great than or equal to 1.'
|
109
|
-
end
|
110
|
-
|
111
|
-
@email = email
|
112
|
-
end
|
113
|
-
|
114
|
-
# Custom attribute writer method with validation
|
115
|
-
# @param [Object] token Value to be assigned
|
116
|
-
def token=(token)
|
117
|
-
if token.nil?
|
118
|
-
fail ArgumentError, 'token cannot be nil'
|
119
|
-
end
|
120
|
-
|
121
|
-
if token.to_s.length < 1
|
122
|
-
fail ArgumentError, 'invalid value for "token", the character length must be great than or equal to 1.'
|
123
|
-
end
|
124
|
-
|
125
|
-
@token = token
|
126
|
-
end
|
127
|
-
|
128
92
|
# Checks equality by comparing each attribute.
|
129
93
|
# @param [Object] Object to be compared
|
130
94
|
def ==(o)
|
@@ -39,6 +39,18 @@ module TalonOne
|
|
39
39
|
# Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type.
|
40
40
|
attr_accessor :sandbox
|
41
41
|
|
42
|
+
# The policy that defines which date is used to calculate the expiration date of a customer's current tier. - `tier_start_date`: The tier expiration date is calculated based on when the customer joined the current tier. - `program_join_date`: The tier expiration date is calculated based on when the customer joined the loyalty program.
|
43
|
+
attr_accessor :tiers_expiration_policy
|
44
|
+
|
45
|
+
# The amount of time after which the tier expires. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.
|
46
|
+
attr_accessor :tiers_expire_in
|
47
|
+
|
48
|
+
# Customers's tier downgrade policy. - `one_down`: Once the tier expires and if the user doesn't have enough points to stay in the tier, the user is downgraded one tier down. - `balance_based`: Once the tier expires, the user's tier is evaluated based on the amount of active points the user has at this instant.
|
49
|
+
attr_accessor :tiers_downgrade_policy
|
50
|
+
|
51
|
+
# The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time.
|
52
|
+
attr_accessor :program_join_policy
|
53
|
+
|
42
54
|
# The internal name for the Loyalty Program. This is an immutable value.
|
43
55
|
attr_accessor :name
|
44
56
|
|
@@ -51,6 +63,28 @@ module TalonOne
|
|
51
63
|
# Defines the type of loyalty program: - `true`: the program is a card-based. - `false`: the program is profile-based.
|
52
64
|
attr_accessor :card_based
|
53
65
|
|
66
|
+
class EnumAttributeValidator
|
67
|
+
attr_reader :datatype
|
68
|
+
attr_reader :allowable_values
|
69
|
+
|
70
|
+
def initialize(datatype, allowable_values)
|
71
|
+
@allowable_values = allowable_values.map do |value|
|
72
|
+
case datatype.to_s
|
73
|
+
when /Integer/i
|
74
|
+
value.to_i
|
75
|
+
when /Float/i
|
76
|
+
value.to_f
|
77
|
+
else
|
78
|
+
value
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def valid?(value)
|
84
|
+
!value || allowable_values.include?(value)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
54
88
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
89
|
def self.attribute_map
|
56
90
|
{
|
@@ -62,6 +96,10 @@ module TalonOne
|
|
62
96
|
:'allow_subledger' => :'allowSubledger',
|
63
97
|
:'users_per_card_limit' => :'usersPerCardLimit',
|
64
98
|
:'sandbox' => :'sandbox',
|
99
|
+
:'tiers_expiration_policy' => :'tiersExpirationPolicy',
|
100
|
+
:'tiers_expire_in' => :'tiersExpireIn',
|
101
|
+
:'tiers_downgrade_policy' => :'tiersDowngradePolicy',
|
102
|
+
:'program_join_policy' => :'programJoinPolicy',
|
65
103
|
:'name' => :'name',
|
66
104
|
:'tiers' => :'tiers',
|
67
105
|
:'timezone' => :'timezone',
|
@@ -80,6 +118,10 @@ module TalonOne
|
|
80
118
|
:'allow_subledger' => :'Boolean',
|
81
119
|
:'users_per_card_limit' => :'Integer',
|
82
120
|
:'sandbox' => :'Boolean',
|
121
|
+
:'tiers_expiration_policy' => :'String',
|
122
|
+
:'tiers_expire_in' => :'String',
|
123
|
+
:'tiers_downgrade_policy' => :'String',
|
124
|
+
:'program_join_policy' => :'String',
|
83
125
|
:'name' => :'String',
|
84
126
|
:'tiers' => :'Array<NewLoyaltyTier>',
|
85
127
|
:'timezone' => :'String',
|
@@ -142,6 +184,22 @@ module TalonOne
|
|
142
184
|
self.sandbox = attributes[:'sandbox']
|
143
185
|
end
|
144
186
|
|
187
|
+
if attributes.key?(:'tiers_expiration_policy')
|
188
|
+
self.tiers_expiration_policy = attributes[:'tiers_expiration_policy']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.key?(:'tiers_expire_in')
|
192
|
+
self.tiers_expire_in = attributes[:'tiers_expire_in']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.key?(:'tiers_downgrade_policy')
|
196
|
+
self.tiers_downgrade_policy = attributes[:'tiers_downgrade_policy']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.key?(:'program_join_policy')
|
200
|
+
self.program_join_policy = attributes[:'program_join_policy']
|
201
|
+
end
|
202
|
+
|
145
203
|
if attributes.key?(:'name')
|
146
204
|
self.name = attributes[:'name']
|
147
205
|
end
|
@@ -219,6 +277,12 @@ module TalonOne
|
|
219
277
|
return false if @allow_subledger.nil?
|
220
278
|
return false if !@users_per_card_limit.nil? && @users_per_card_limit < 0
|
221
279
|
return false if @sandbox.nil?
|
280
|
+
tiers_expiration_policy_validator = EnumAttributeValidator.new('String', ["tier_start_date", "program_join_date"])
|
281
|
+
return false unless tiers_expiration_policy_validator.valid?(@tiers_expiration_policy)
|
282
|
+
tiers_downgrade_policy_validator = EnumAttributeValidator.new('String', ["one_down", "balance_based"])
|
283
|
+
return false unless tiers_downgrade_policy_validator.valid?(@tiers_downgrade_policy)
|
284
|
+
program_join_policy_validator = EnumAttributeValidator.new('String', ["not_join", "points_activated", "points_earned"])
|
285
|
+
return false unless program_join_policy_validator.valid?(@program_join_policy)
|
222
286
|
return false if @name.nil?
|
223
287
|
return false if @timezone.nil?
|
224
288
|
return false if @timezone.to_s.length < 1
|
@@ -236,6 +300,36 @@ module TalonOne
|
|
236
300
|
@users_per_card_limit = users_per_card_limit
|
237
301
|
end
|
238
302
|
|
303
|
+
# Custom attribute writer method checking allowed values (enum).
|
304
|
+
# @param [Object] tiers_expiration_policy Object to be assigned
|
305
|
+
def tiers_expiration_policy=(tiers_expiration_policy)
|
306
|
+
validator = EnumAttributeValidator.new('String', ["tier_start_date", "program_join_date"])
|
307
|
+
unless validator.valid?(tiers_expiration_policy)
|
308
|
+
fail ArgumentError, "invalid value for \"tiers_expiration_policy\", must be one of #{validator.allowable_values}."
|
309
|
+
end
|
310
|
+
@tiers_expiration_policy = tiers_expiration_policy
|
311
|
+
end
|
312
|
+
|
313
|
+
# Custom attribute writer method checking allowed values (enum).
|
314
|
+
# @param [Object] tiers_downgrade_policy Object to be assigned
|
315
|
+
def tiers_downgrade_policy=(tiers_downgrade_policy)
|
316
|
+
validator = EnumAttributeValidator.new('String', ["one_down", "balance_based"])
|
317
|
+
unless validator.valid?(tiers_downgrade_policy)
|
318
|
+
fail ArgumentError, "invalid value for \"tiers_downgrade_policy\", must be one of #{validator.allowable_values}."
|
319
|
+
end
|
320
|
+
@tiers_downgrade_policy = tiers_downgrade_policy
|
321
|
+
end
|
322
|
+
|
323
|
+
# Custom attribute writer method checking allowed values (enum).
|
324
|
+
# @param [Object] program_join_policy Object to be assigned
|
325
|
+
def program_join_policy=(program_join_policy)
|
326
|
+
validator = EnumAttributeValidator.new('String', ["not_join", "points_activated", "points_earned"])
|
327
|
+
unless validator.valid?(program_join_policy)
|
328
|
+
fail ArgumentError, "invalid value for \"program_join_policy\", must be one of #{validator.allowable_values}."
|
329
|
+
end
|
330
|
+
@program_join_policy = program_join_policy
|
331
|
+
end
|
332
|
+
|
239
333
|
# Custom attribute writer method with validation
|
240
334
|
# @param [Object] timezone Value to be assigned
|
241
335
|
def timezone=(timezone)
|
@@ -263,6 +357,10 @@ module TalonOne
|
|
263
357
|
allow_subledger == o.allow_subledger &&
|
264
358
|
users_per_card_limit == o.users_per_card_limit &&
|
265
359
|
sandbox == o.sandbox &&
|
360
|
+
tiers_expiration_policy == o.tiers_expiration_policy &&
|
361
|
+
tiers_expire_in == o.tiers_expire_in &&
|
362
|
+
tiers_downgrade_policy == o.tiers_downgrade_policy &&
|
363
|
+
program_join_policy == o.program_join_policy &&
|
266
364
|
name == o.name &&
|
267
365
|
tiers == o.tiers &&
|
268
366
|
timezone == o.timezone &&
|
@@ -278,7 +376,7 @@ module TalonOne
|
|
278
376
|
# Calculates hash code according to all attributes.
|
279
377
|
# @return [Integer] Hash code
|
280
378
|
def hash
|
281
|
-
[title, description, subscribed_applications, default_validity, default_pending, allow_subledger, users_per_card_limit, sandbox, name, tiers, timezone, card_based].hash
|
379
|
+
[title, description, subscribed_applications, default_validity, default_pending, allow_subledger, users_per_card_limit, sandbox, tiers_expiration_policy, tiers_expire_in, tiers_downgrade_policy, program_join_policy, name, tiers, timezone, card_based].hash
|
282
380
|
end
|
283
381
|
|
284
382
|
# Builds the object from hash
|