diff --git a/README.md b/README.md index 6e54b33f..192ea1fc 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Add this dependency to your project's POM: one.talon talon-one-client - 6.0.1 + 7.0.0 compile ``` @@ -63,7 +63,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "one.talon:talon-one-client:6.0.1" +compile "one.talon:talon-one-client:7.0.0" ``` ### Others @@ -76,7 +76,7 @@ mvn clean package Then manually install the following JARs: -* `target/talon-one-client-6.0.1.jar` +* `target/talon-one-client-7.0.0.jar` * `target/lib/*.jar` ## Getting Started @@ -137,7 +137,7 @@ public class TalonApiTest { Boolean dryRun = false; // Create/update a customer session using `updateCustomerSessionV2` function - IntegrationStateV2 is = iApi.updateCustomerSessionV2("deetdoot", request, dryRun); + IntegrationStateV2 is = iApi.updateCustomerSessionV2("deetdoot", request, dryRun, null); System.out.println(is.toString()); // Parsing the returned effects list, please consult https://developers.talon.one/Integration-API/handling-effects-v2 for the full list of effects and their corresponding properties @@ -240,6 +240,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**addLoyaltyPoints**](docs/ManagementApi.md#addLoyaltyPoints) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/add_points | Add points to customer profile *ManagementApi* | [**copyCampaignToApplications**](docs/ManagementApi.md#copyCampaignToApplications) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/copy | Copy the campaign into the specified Application *ManagementApi* | [**createAccountCollection**](docs/ManagementApi.md#createAccountCollection) | **POST** /v1/collections | Create account-level collection +*ManagementApi* | [**createAchievement**](docs/ManagementApi.md#createAchievement) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements | Create achievement *ManagementApi* | [**createAdditionalCost**](docs/ManagementApi.md#createAdditionalCost) | **POST** /v1/additional_costs | Create additional cost *ManagementApi* | [**createAttribute**](docs/ManagementApi.md#createAttribute) | **POST** /v1/attributes | Create custom attribute *ManagementApi* | [**createCampaignFromTemplate**](docs/ManagementApi.md#createCampaignFromTemplate) | **POST** /v1/applications/{applicationId}/create_campaign_from_template | Create campaign from campaign template @@ -247,11 +248,15 @@ Class | Method | HTTP request | Description *ManagementApi* | [**createCoupons**](docs/ManagementApi.md#createCoupons) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Create coupons *ManagementApi* | [**createCouponsAsync**](docs/ManagementApi.md#createCouponsAsync) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_async | Create coupons asynchronously *ManagementApi* | [**createCouponsForMultipleRecipients**](docs/ManagementApi.md#createCouponsForMultipleRecipients) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_with_recipients | Create coupons for multiple recipients +*ManagementApi* | [**createInviteEmail**](docs/ManagementApi.md#createInviteEmail) | **POST** /v1/invite_emails | Resend invitation email +*ManagementApi* | [**createInviteV2**](docs/ManagementApi.md#createInviteV2) | **POST** /v2/invites | Invite user *ManagementApi* | [**createPasswordRecoveryEmail**](docs/ManagementApi.md#createPasswordRecoveryEmail) | **POST** /v1/password_recovery_emails | Request a password reset *ManagementApi* | [**createSession**](docs/ManagementApi.md#createSession) | **POST** /v1/sessions | Create session *ManagementApi* | [**createStore**](docs/ManagementApi.md#createStore) | **POST** /v1/applications/{applicationId}/stores | Create store +*ManagementApi* | [**deactivateUserByEmail**](docs/ManagementApi.md#deactivateUserByEmail) | **POST** /v1/users/deactivate | Deactivate user by email address *ManagementApi* | [**deductLoyaltyCardPoints**](docs/ManagementApi.md#deductLoyaltyCardPoints) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/deduct_points | Deduct points from card *ManagementApi* | [**deleteAccountCollection**](docs/ManagementApi.md#deleteAccountCollection) | **DELETE** /v1/collections/{collectionId} | Delete account-level collection +*ManagementApi* | [**deleteAchievement**](docs/ManagementApi.md#deleteAchievement) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Delete achievement *ManagementApi* | [**deleteCampaign**](docs/ManagementApi.md#deleteCampaign) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId} | Delete campaign *ManagementApi* | [**deleteCollection**](docs/ManagementApi.md#deleteCollection) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Delete campaign-level collection *ManagementApi* | [**deleteCoupon**](docs/ManagementApi.md#deleteCoupon) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} | Delete coupon @@ -259,8 +264,12 @@ Class | Method | HTTP request | Description *ManagementApi* | [**deleteLoyaltyCard**](docs/ManagementApi.md#deleteLoyaltyCard) | **DELETE** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Delete loyalty card *ManagementApi* | [**deleteReferral**](docs/ManagementApi.md#deleteReferral) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId} | Delete referral *ManagementApi* | [**deleteStore**](docs/ManagementApi.md#deleteStore) | **DELETE** /v1/applications/{applicationId}/stores/{storeId} | Delete store +*ManagementApi* | [**deleteUser**](docs/ManagementApi.md#deleteUser) | **DELETE** /v1/users/{userId} | Delete user +*ManagementApi* | [**deleteUserByEmail**](docs/ManagementApi.md#deleteUserByEmail) | **POST** /v1/users/delete | Delete user by email address *ManagementApi* | [**destroySession**](docs/ManagementApi.md#destroySession) | **DELETE** /v1/sessions | Destroy session *ManagementApi* | [**exportAccountCollectionItems**](docs/ManagementApi.md#exportAccountCollectionItems) | **GET** /v1/collections/{collectionId}/export | Export account-level collection's items +*ManagementApi* | [**exportAchievements**](docs/ManagementApi.md#exportAchievements) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}/export | Export achievement customer data +*ManagementApi* | [**exportAudiencesMemberships**](docs/ManagementApi.md#exportAudiencesMemberships) | **GET** /v1/audiences/{audienceId}/memberships/export | Export audience members *ManagementApi* | [**exportCollectionItems**](docs/ManagementApi.md#exportCollectionItems) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export | Export campaign-level collection's items *ManagementApi* | [**exportCoupons**](docs/ManagementApi.md#exportCoupons) | **GET** /v1/applications/{applicationId}/export_coupons | Export coupons *ManagementApi* | [**exportCustomerSessions**](docs/ManagementApi.md#exportCustomerSessions) | **GET** /v1/applications/{applicationId}/export_customer_sessions | Export customer sessions @@ -277,6 +286,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**getAccount**](docs/ManagementApi.md#getAccount) | **GET** /v1/accounts/{accountId} | Get account details *ManagementApi* | [**getAccountAnalytics**](docs/ManagementApi.md#getAccountAnalytics) | **GET** /v1/accounts/{accountId}/analytics | Get account analytics *ManagementApi* | [**getAccountCollection**](docs/ManagementApi.md#getAccountCollection) | **GET** /v1/collections/{collectionId} | Get account-level collection +*ManagementApi* | [**getAchievement**](docs/ManagementApi.md#getAchievement) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Get achievement *ManagementApi* | [**getAdditionalCost**](docs/ManagementApi.md#getAdditionalCost) | **GET** /v1/additional_costs/{additionalCostId} | Get additional cost *ManagementApi* | [**getAdditionalCosts**](docs/ManagementApi.md#getAdditionalCosts) | **GET** /v1/additional_costs | List additional costs *ManagementApi* | [**getAllAccessLogs**](docs/ManagementApi.md#getAllAccessLogs) | **GET** /v1/access_logs | List access logs @@ -294,10 +304,14 @@ Class | Method | HTTP request | Description *ManagementApi* | [**getApplications**](docs/ManagementApi.md#getApplications) | **GET** /v1/applications | List Applications *ManagementApi* | [**getAttribute**](docs/ManagementApi.md#getAttribute) | **GET** /v1/attributes/{attributeId} | Get custom attribute *ManagementApi* | [**getAttributes**](docs/ManagementApi.md#getAttributes) | **GET** /v1/attributes | List custom attributes +*ManagementApi* | [**getAudienceMemberships**](docs/ManagementApi.md#getAudienceMemberships) | **GET** /v1/audiences/{audienceId}/memberships | List audience members *ManagementApi* | [**getAudiences**](docs/ManagementApi.md#getAudiences) | **GET** /v1/audiences | List audiences +*ManagementApi* | [**getAudiencesAnalytics**](docs/ManagementApi.md#getAudiencesAnalytics) | **GET** /v1/audiences/analytics | List audience analytics *ManagementApi* | [**getCampaign**](docs/ManagementApi.md#getCampaign) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId} | Get campaign *ManagementApi* | [**getCampaignAnalytics**](docs/ManagementApi.md#getCampaignAnalytics) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/analytics | Get analytics of campaigns *ManagementApi* | [**getCampaignByAttributes**](docs/ManagementApi.md#getCampaignByAttributes) | **POST** /v1/applications/{applicationId}/campaigns_search | List campaigns that match the given attributes +*ManagementApi* | [**getCampaignGroup**](docs/ManagementApi.md#getCampaignGroup) | **GET** /v1/campaign_groups/{campaignGroupId} | Get campaign access group +*ManagementApi* | [**getCampaignGroups**](docs/ManagementApi.md#getCampaignGroups) | **GET** /v1/campaign_groups | List campaign access groups *ManagementApi* | [**getCampaignTemplates**](docs/ManagementApi.md#getCampaignTemplates) | **GET** /v1/campaign_templates | List campaign templates *ManagementApi* | [**getCampaigns**](docs/ManagementApi.md#getCampaigns) | **GET** /v1/applications/{applicationId}/campaigns | List campaigns *ManagementApi* | [**getChanges**](docs/ManagementApi.md#getChanges) | **GET** /v1/changes | Get audit logs for an account @@ -308,6 +322,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**getCustomerActivityReportsWithoutTotalCount**](docs/ManagementApi.md#getCustomerActivityReportsWithoutTotalCount) | **GET** /v1/applications/{applicationId}/customer_activity_reports/no_total | Get Activity Reports for Application Customers *ManagementApi* | [**getCustomerAnalytics**](docs/ManagementApi.md#getCustomerAnalytics) | **GET** /v1/applications/{applicationId}/customers/{customerId}/analytics | Get customer's analytics report *ManagementApi* | [**getCustomerProfile**](docs/ManagementApi.md#getCustomerProfile) | **GET** /v1/customers/{customerId} | Get customer profile +*ManagementApi* | [**getCustomerProfileAchievementProgress**](docs/ManagementApi.md#getCustomerProfileAchievementProgress) | **GET** /v1/applications/{applicationId}/achievement_progress/{integrationId} | List customer achievements *ManagementApi* | [**getCustomerProfiles**](docs/ManagementApi.md#getCustomerProfiles) | **GET** /v1/customers/no_total | List customer profiles *ManagementApi* | [**getCustomersByAttributes**](docs/ManagementApi.md#getCustomersByAttributes) | **POST** /v1/customer_search/no_total | List customer profiles matching the given attributes *ManagementApi* | [**getEventTypes**](docs/ManagementApi.md#getEventTypes) | **GET** /v1/event_types | List event types @@ -333,6 +348,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**getWebhooks**](docs/ManagementApi.md#getWebhooks) | **GET** /v1/webhooks | List webhooks *ManagementApi* | [**importAccountCollection**](docs/ManagementApi.md#importAccountCollection) | **POST** /v1/collections/{collectionId}/import | Import data into existing account-level collection *ManagementApi* | [**importAllowedList**](docs/ManagementApi.md#importAllowedList) | **POST** /v1/attributes/{attributeId}/allowed_list/import | Import allowed values for attribute +*ManagementApi* | [**importAudiencesMemberships**](docs/ManagementApi.md#importAudiencesMemberships) | **POST** /v1/audiences/{audienceId}/memberships/import | Import audience members *ManagementApi* | [**importCollection**](docs/ManagementApi.md#importCollection) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import | Import data into existing campaign-level collection *ManagementApi* | [**importCoupons**](docs/ManagementApi.md#importCoupons) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons | Import coupons *ManagementApi* | [**importLoyaltyCards**](docs/ManagementApi.md#importLoyaltyCards) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/import_cards | Import loyalty cards @@ -341,6 +357,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**importPoolGiveaways**](docs/ManagementApi.md#importPoolGiveaways) | **POST** /v1/giveaways/pools/{poolId}/import | Import giveaway codes into a giveaway pool *ManagementApi* | [**importReferrals**](docs/ManagementApi.md#importReferrals) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/import_referrals | Import referrals *ManagementApi* | [**listAccountCollections**](docs/ManagementApi.md#listAccountCollections) | **GET** /v1/collections | List collections in account +*ManagementApi* | [**listAchievements**](docs/ManagementApi.md#listAchievements) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements | List achievements *ManagementApi* | [**listCatalogItems**](docs/ManagementApi.md#listCatalogItems) | **GET** /v1/catalogs/{catalogId}/items | List items in a catalog *ManagementApi* | [**listCollections**](docs/ManagementApi.md#listCollections) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | List collections in campaign *ManagementApi* | [**listCollectionsInApplication**](docs/ManagementApi.md#listCollectionsInApplication) | **GET** /v1/applications/{applicationId}/collections | List collections in Application @@ -355,6 +372,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**searchCouponsAdvancedWithoutTotalCount**](docs/ManagementApi.md#searchCouponsAdvancedWithoutTotalCount) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_search_advanced/no_total | List coupons that match the given attributes in campaign (without total count) *ManagementApi* | [**transferLoyaltyCard**](docs/ManagementApi.md#transferLoyaltyCard) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/transfer | Transfer card data *ManagementApi* | [**updateAccountCollection**](docs/ManagementApi.md#updateAccountCollection) | **PUT** /v1/collections/{collectionId} | Update account-level collection +*ManagementApi* | [**updateAchievement**](docs/ManagementApi.md#updateAchievement) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Update achievement *ManagementApi* | [**updateAdditionalCost**](docs/ManagementApi.md#updateAdditionalCost) | **PUT** /v1/additional_costs/{additionalCostId} | Update additional cost *ManagementApi* | [**updateAttribute**](docs/ManagementApi.md#updateAttribute) | **PUT** /v1/attributes/{attributeId} | Update custom attribute *ManagementApi* | [**updateCampaign**](docs/ManagementApi.md#updateCampaign) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId} | Update campaign @@ -363,7 +381,9 @@ Class | Method | HTTP request | Description *ManagementApi* | [**updateCouponBatch**](docs/ManagementApi.md#updateCouponBatch) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Update coupons *ManagementApi* | [**updateLoyaltyCard**](docs/ManagementApi.md#updateLoyaltyCard) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Update loyalty card status *ManagementApi* | [**updateReferral**](docs/ManagementApi.md#updateReferral) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId} | Update referral +*ManagementApi* | [**updateRoleV2**](docs/ManagementApi.md#updateRoleV2) | **PUT** /v2/roles/{roleId} | Update role *ManagementApi* | [**updateStore**](docs/ManagementApi.md#updateStore) | **PUT** /v1/applications/{applicationId}/stores/{storeId} | Update store +*ManagementApi* | [**updateUser**](docs/ManagementApi.md#updateUser) | **PUT** /v1/users/{userId} | Update user ## Documentation for Models @@ -376,7 +396,6 @@ Class | Method | HTTP request | Description - [AccountAdditionalCost](docs/AccountAdditionalCost.md) - [AccountAnalytics](docs/AccountAnalytics.md) - [AccountDashboardStatistic](docs/AccountDashboardStatistic.md) - - [AccountDashboardStatisticApiCalls](docs/AccountDashboardStatisticApiCalls.md) - [AccountDashboardStatisticCampaigns](docs/AccountDashboardStatisticCampaigns.md) - [AccountDashboardStatisticDiscount](docs/AccountDashboardStatisticDiscount.md) - [AccountDashboardStatisticLoyaltyPoints](docs/AccountDashboardStatisticLoyaltyPoints.md) @@ -386,6 +405,7 @@ Class | Method | HTTP request | Description - [AccountLimits](docs/AccountLimits.md) - [Achievement](docs/Achievement.md) - [AchievementAdditionalProperties](docs/AchievementAdditionalProperties.md) + - [AchievementProgress](docs/AchievementProgress.md) - [AddFreeItemEffectProps](docs/AddFreeItemEffectProps.md) - [AddItemCatalogAction](docs/AddItemCatalogAction.md) - [AddLoyaltyPoints](docs/AddLoyaltyPoints.md) @@ -396,7 +416,19 @@ Class | Method | HTTP request | Description - [AdditionalCost](docs/AdditionalCost.md) - [Application](docs/Application.md) - [ApplicationAPIKey](docs/ApplicationAPIKey.md) + - [ApplicationAnalyticsDataPoint](docs/ApplicationAnalyticsDataPoint.md) + - [ApplicationAnalyticsDataPointAvgItemsPerSession](docs/ApplicationAnalyticsDataPointAvgItemsPerSession.md) + - [ApplicationAnalyticsDataPointAvgSessionValue](docs/ApplicationAnalyticsDataPointAvgSessionValue.md) + - [ApplicationAnalyticsDataPointSessionsCount](docs/ApplicationAnalyticsDataPointSessionsCount.md) + - [ApplicationAnalyticsDataPointTotalRevenue](docs/ApplicationAnalyticsDataPointTotalRevenue.md) - [ApplicationApiHealth](docs/ApplicationApiHealth.md) + - [ApplicationCampaignAnalytics](docs/ApplicationCampaignAnalytics.md) + - [ApplicationCampaignAnalyticsAvgItemsPerSession](docs/ApplicationCampaignAnalyticsAvgItemsPerSession.md) + - [ApplicationCampaignAnalyticsAvgSessionValue](docs/ApplicationCampaignAnalyticsAvgSessionValue.md) + - [ApplicationCampaignAnalyticsCouponsCount](docs/ApplicationCampaignAnalyticsCouponsCount.md) + - [ApplicationCampaignAnalyticsSessionsCount](docs/ApplicationCampaignAnalyticsSessionsCount.md) + - [ApplicationCampaignAnalyticsTotalDiscounts](docs/ApplicationCampaignAnalyticsTotalDiscounts.md) + - [ApplicationCampaignAnalyticsTotalRevenue](docs/ApplicationCampaignAnalyticsTotalRevenue.md) - [ApplicationCampaignStats](docs/ApplicationCampaignStats.md) - [ApplicationCustomer](docs/ApplicationCustomer.md) - [ApplicationCustomerEntity](docs/ApplicationCustomerEntity.md) @@ -418,7 +450,6 @@ Class | Method | HTTP request | Description - [AudienceMembership](docs/AudienceMembership.md) - [AwardGiveawayEffectProps](docs/AwardGiveawayEffectProps.md) - [BaseCampaign](docs/BaseCampaign.md) - - [BaseCampaignForNotification](docs/BaseCampaignForNotification.md) - [BaseLoyaltyProgram](docs/BaseLoyaltyProgram.md) - [BaseNotification](docs/BaseNotification.md) - [BaseNotificationEntity](docs/BaseNotificationEntity.md) @@ -443,7 +474,6 @@ Class | Method | HTTP request | Description - [CampaignEvaluationGroup](docs/CampaignEvaluationGroup.md) - [CampaignEvaluationPosition](docs/CampaignEvaluationPosition.md) - [CampaignEvaluationTreeChangedNotification](docs/CampaignEvaluationTreeChangedNotification.md) - - [CampaignForNotification](docs/CampaignForNotification.md) - [CampaignGroup](docs/CampaignGroup.md) - [CampaignGroupEntity](docs/CampaignGroupEntity.md) - [CampaignNotification](docs/CampaignNotification.md) @@ -455,10 +485,11 @@ Class | Method | HTTP request | Description - [CampaignSetLeafNode](docs/CampaignSetLeafNode.md) - [CampaignSetNode](docs/CampaignSetNode.md) - [CampaignStateChangedNotification](docs/CampaignStateChangedNotification.md) - - [CampaignStateNotification](docs/CampaignStateNotification.md) - [CampaignTemplate](docs/CampaignTemplate.md) - [CampaignTemplateCollection](docs/CampaignTemplateCollection.md) - [CampaignTemplateParams](docs/CampaignTemplateParams.md) + - [CardExpiringPointsNotificationPolicy](docs/CardExpiringPointsNotificationPolicy.md) + - [CardExpiringPointsNotificationTrigger](docs/CardExpiringPointsNotificationTrigger.md) - [CardLedgerPointsEntryIntegrationAPI](docs/CardLedgerPointsEntryIntegrationAPI.md) - [CardLedgerTransactionLogEntry](docs/CardLedgerTransactionLogEntry.md) - [CardLedgerTransactionLogEntryIntegrationAPI](docs/CardLedgerTransactionLogEntryIntegrationAPI.md) @@ -505,8 +536,10 @@ Class | Method | HTTP request | Description - [CustomerProfileUpdateV2Response](docs/CustomerProfileUpdateV2Response.md) - [CustomerSession](docs/CustomerSession.md) - [CustomerSessionV2](docs/CustomerSessionV2.md) + - [DeactivateUserRequest](docs/DeactivateUserRequest.md) - [DeductLoyaltyPoints](docs/DeductLoyaltyPoints.md) - [DeductLoyaltyPointsEffectProps](docs/DeductLoyaltyPointsEffectProps.md) + - [DeleteUserRequest](docs/DeleteUserRequest.md) - [Effect](docs/Effect.md) - [EffectEntity](docs/EffectEntity.md) - [EmailEntity](docs/EmailEntity.md) @@ -522,6 +555,8 @@ Class | Method | HTTP request | Description - [Event](docs/Event.md) - [EventType](docs/EventType.md) - [EventV2](docs/EventV2.md) + - [ExpiringCouponsNotificationPolicy](docs/ExpiringCouponsNotificationPolicy.md) + - [ExpiringCouponsNotificationTrigger](docs/ExpiringCouponsNotificationTrigger.md) - [ExpiringPointsNotificationPolicy](docs/ExpiringPointsNotificationPolicy.md) - [ExpiringPointsNotificationTrigger](docs/ExpiringPointsNotificationTrigger.md) - [Export](docs/Export.md) @@ -529,10 +564,12 @@ Class | Method | HTTP request | Description - [FeaturesFeed](docs/FeaturesFeed.md) - [FuncArgDef](docs/FuncArgDef.md) - [FunctionDef](docs/FunctionDef.md) + - [GetIntegrationCouponRequest](docs/GetIntegrationCouponRequest.md) - [Giveaway](docs/Giveaway.md) - [GiveawaysPool](docs/GiveawaysPool.md) - [IdentifiableEntity](docs/IdentifiableEntity.md) - [ImportEntity](docs/ImportEntity.md) + - [IncreaseAchievementProgressEffectProps](docs/IncreaseAchievementProgressEffectProps.md) - [InlineResponse200](docs/InlineResponse200.md) - [InlineResponse2001](docs/InlineResponse2001.md) - [InlineResponse20010](docs/InlineResponse20010.md) @@ -572,6 +609,10 @@ Class | Method | HTTP request | Description - [InlineResponse20041](docs/InlineResponse20041.md) - [InlineResponse20042](docs/InlineResponse20042.md) - [InlineResponse20043](docs/InlineResponse20043.md) + - [InlineResponse20044](docs/InlineResponse20044.md) + - [InlineResponse20045](docs/InlineResponse20045.md) + - [InlineResponse20046](docs/InlineResponse20046.md) + - [InlineResponse20047](docs/InlineResponse20047.md) - [InlineResponse2005](docs/InlineResponse2005.md) - [InlineResponse2006](docs/InlineResponse2006.md) - [InlineResponse2007](docs/InlineResponse2007.md) @@ -621,6 +662,10 @@ Class | Method | HTTP request | Description - [LoyaltyTier](docs/LoyaltyTier.md) - [ManagementKey](docs/ManagementKey.md) - [ManagerConfig](docs/ManagerConfig.md) + - [MessageLogEntries](docs/MessageLogEntries.md) + - [MessageLogEntry](docs/MessageLogEntry.md) + - [MessageLogRequest](docs/MessageLogRequest.md) + - [MessageLogResponse](docs/MessageLogResponse.md) - [Meta](docs/Meta.md) - [ModelImport](docs/ModelImport.md) - [ModelReturn](docs/ModelReturn.md) @@ -686,6 +731,7 @@ Class | Method | HTTP request | Description - [NewWebhook](docs/NewWebhook.md) - [Notification](docs/Notification.md) - [NotificationActivation](docs/NotificationActivation.md) + - [NotificationListItem](docs/NotificationListItem.md) - [NotificationTest](docs/NotificationTest.md) - [OneTimeCode](docs/OneTimeCode.md) - [OutgoingIntegrationBrazePolicy](docs/OutgoingIntegrationBrazePolicy.md) @@ -702,6 +748,7 @@ Class | Method | HTTP request | Description - [PatchManyItemsCatalogAction](docs/PatchManyItemsCatalogAction.md) - [PendingPointsNotificationPolicy](docs/PendingPointsNotificationPolicy.md) - [Picklist](docs/Picklist.md) + - [Product](docs/Product.md) - [ProfileAudiencesChanges](docs/ProfileAudiencesChanges.md) - [RedeemReferralEffectProps](docs/RedeemReferralEffectProps.md) - [Referral](docs/Referral.md) @@ -736,6 +783,7 @@ Class | Method | HTTP request | Description - [Ruleset](docs/Ruleset.md) - [SSOConfig](docs/SSOConfig.md) - [SamlConnection](docs/SamlConnection.md) + - [SamlConnectionInternal](docs/SamlConnectionInternal.md) - [SamlConnectionMetadata](docs/SamlConnectionMetadata.md) - [SamlLoginEndpoint](docs/SamlLoginEndpoint.md) - [Session](docs/Session.md) @@ -771,6 +819,7 @@ Class | Method | HTTP request | Description - [UpdateAccount](docs/UpdateAccount.md) - [UpdateAchievement](docs/UpdateAchievement.md) - [UpdateApplication](docs/UpdateApplication.md) + - [UpdateApplicationAPIKey](docs/UpdateApplicationAPIKey.md) - [UpdateAttributeEffectProps](docs/UpdateAttributeEffectProps.md) - [UpdateAudience](docs/UpdateAudience.md) - [UpdateCampaign](docs/UpdateCampaign.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index eb18707e..1259aca6 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -33,8 +33,9 @@ tags: Operations for updating account information such as billing email addresses, inviting users, etc. name: Accounts and users - description: | - Represents a counter that tracks the number of times a certain action has been completed by a customer profile over a defined - period of time. + Achievements allow you to reward a customer profile for performing a number of specific actions or reaching a transactional milestone within a defined period. + + For example, you can use achievements to award your customers when they purchase five cups of coffee in one week or when they purchase items worth $3000 in three months. name: Achievements - description: | An extra fee applied to the cart. For example, shipping fees or processing fees. @@ -68,7 +69,9 @@ tags: See the [docs](https://docs.talon.one/docs/product/audiences/overview). name: Audiences - description: | - Represents the campaign access groups users can create in their Applications. + Represents the campaign access groups you can create in your Applications to organize your campaigns based on the type of campaign or the team in charge. + + See the [docs](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups). name: Campaign access groups - description: | Represents templates used to generate campaigns from. @@ -190,7 +193,7 @@ tags: See the [docs](https://docs.talon.one/docs/product/account/account-settings/managing-roles). name: Roles - description: | - Represents the endpoints related to the SAML config used for SSO. + Represents the endpoints related to the SAML configuration used for single sign-on (SSO). name: SAML - description: | Represents a session used for authentication purposes. @@ -323,6 +326,21 @@ paths: required: true schema: type: string + - description: | + A timestamp value of a future date that acts as a current date when included in the query. + + Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). + + **Note:** + + - It must be an RFC3339 timestamp string. + - It can **only** be a date in the future. + - It can **only** be used if the `dry` parameter in the query is set to `true`. + in: query + name: now + schema: + format: date-time + type: string requestBody: content: application/json: @@ -721,8 +739,7 @@ paths: **Note:** Audiences can also be deleted via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). operationId: deleteAudienceV2 parameters: - - description: The ID of the audience. You get it via the `id` property when - [creating an audience](#operation/createAudienceV2). + - description: The ID of the audience. in: path name: audienceId required: true @@ -763,8 +780,7 @@ paths: To update the audience's members, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. operationId: updateAudienceV2 parameters: - - description: The ID of the audience. You get it via the `id` property when - [creating an audience](#operation/createAudienceV2). + - description: The ID of the audience. in: path name: audienceId required: true @@ -810,8 +826,7 @@ paths: Remove all members from this audience. operationId: deleteAudienceMembershipsV2 parameters: - - description: The ID of the audience. You get it via the `id` property when - [creating an audience](#operation/createAudienceV2). + - description: The ID of the audience. in: path name: audienceId required: true @@ -842,12 +857,11 @@ paths: /v2/customer_audiences: post: description: | - Update the specified customer profiles with the specified audiences. Use this endpoint - when customers join or leave audiences. + Add customer profiles to or remove them from an audience. - The limit of customer profiles per request is 1000. + The endpoint supports 1000 audience actions (`add` or `remove`) per request. - **Note:** You can also add customer profiles to or remove them from an audience using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. + **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. operationId: updateCustomerProfileAudiences requestBody: content: @@ -892,8 +906,7 @@ paths: Update the specified profile attributes to the provided values for all customers in the specified audience. operationId: updateAudienceCustomersAttributes parameters: - - description: The ID of the audience. You get it via the `id` property when - [creating an audience](#operation/createAudienceV2). + - description: The ID of the audience. in: path name: audienceId required: true @@ -1440,6 +1453,11 @@ paths: name: giveaways schema: type: boolean + - description: Set to `true` to include achievement information in the response. + in: query + name: achievements + schema: + type: boolean responses: "200": content: @@ -1649,12 +1667,13 @@ paths: - session - import type: string - - description: "Date and time from which results are returned. Results are filtered\ - \ by transaction creation date.\n\n**Note:** \n\n- It must be an RFC3339\ - \ timestamp string.\n- You can include a time component in your string,\ - \ for example, `T23:59:59` to specify the end of the day. The time zone\ - \ setting considered is `UTC`. If you do not include a time component, a\ - \ default time value of `T00:00:00` (midnight) in `UTC` is considered.\n" + - description: | + Date and time from which results are returned. Results are filtered by transaction creation date. + + **Note:** + + - It must be an RFC3339 timestamp string. + - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: startDate schema: @@ -1672,7 +1691,7 @@ paths: schema: format: date-time type: string - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -1765,12 +1784,13 @@ paths: - session - import type: string - - description: "Date and time from which results are returned. Results are filtered\ - \ by transaction creation date.\n\n**Note:** \n\n- It must be an RFC3339\ - \ timestamp string.\n- You can include a time component in your string,\ - \ for example, `T23:59:59` to specify the end of the day. The time zone\ - \ setting considered is `UTC`. If you do not include a time component, a\ - \ default time value of `T00:00:00` (midnight) in `UTC` is considered.\n" + - description: | + Date and time from which results are returned. Results are filtered by transaction creation date. + + **Note:** + + - It must be an RFC3339 timestamp string. + - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: startDate schema: @@ -1788,7 +1808,7 @@ paths: schema: format: date-time type: string - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -1876,7 +1896,7 @@ paths: name: subledgerId schema: type: string - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -1966,7 +1986,7 @@ paths: name: subledgerId schema: type: string - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -2016,7 +2036,7 @@ paths: description: List all applications in the current account. operationId: getApplications parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -2078,7 +2098,7 @@ paths: List the campaigns of the specified application that match your filter criteria. operationId: getCampaigns parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -2360,7 +2380,7 @@ paths: A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. - For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). + For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). operationId: postAddedDeductedPointsNotification parameters: - description: | @@ -2412,7 +2432,7 @@ paths: /v1/loyalty_programs/{loyaltyProgramId}/notifications/pending_points: post: description: | - Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). + Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). operationId: postPendingPointsNotification parameters: - description: | @@ -2521,7 +2541,7 @@ paths: Get a list of all the campaigns that match a set of attributes. operationId: getCampaignByAttributes parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -2599,7 +2619,7 @@ paths: You should only consider the latest revision of the returned rulesets. operationId: getRulesets parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -3011,7 +3031,7 @@ paths: List all the coupons matching the specified criteria. operationId: getCouponsWithoutTotalCount parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -3226,7 +3246,7 @@ paths: **Note:** The total count is not included in the response. operationId: searchCouponsAdvancedWithoutTotalCount parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -3360,7 +3380,7 @@ paths: **Note:** The total count is not included in the response. operationId: searchCouponsAdvancedApplicationWideWithoutTotalCount parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -3578,7 +3598,7 @@ paths: description: List all referrals of the specified campaign. operationId: getReferralsWithoutTotalCount parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -3673,12 +3693,72 @@ paths: tags: - management x-accepts: application/json + /v1/campaign_groups: + get: + description: List the campaign access groups in the current account. + operationId: getCampaignGroups + parameters: + - description: The number of items in the response. + in: query + name: pageSize + schema: + default: 1000 + maximum: 1000 + minimum: 1 + type: integer + - description: The number of items to skip when paging through large result + sets. + in: query + name: skip + schema: + type: integer + - description: | + The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. + + **Note:** This parameter works only with numeric fields. + in: query + name: sort + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_11' + description: OK + summary: List campaign access groups + tags: + - management + x-accepts: application/json + /v1/campaign_groups/{campaignGroupId}: + get: + description: Get a campaign access group specified by its ID. + operationId: getCampaignGroup + parameters: + - description: The ID of the campaign access group. + in: path + name: campaignGroupId + required: true + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CampaignGroup' + description: OK + summary: Get campaign access group + tags: + - management + x-accepts: application/json /v1/campaign_templates: get: description: Retrieve a list of campaign templates. operationId: getCampaignTemplates parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -3731,7 +3811,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_11' + $ref: '#/components/schemas/inline_response_200_12' description: OK summary: List campaign templates tags: @@ -3783,7 +3863,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_12' + $ref: '#/components/schemas/inline_response_200_13' description: OK summary: List loyalty programs tags: @@ -3800,7 +3880,7 @@ paths: operationId: getLoyaltyProgram parameters: - description: | - Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with + Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. in: path name: loyaltyProgramId @@ -3824,7 +3904,7 @@ paths: Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. - Depending on the loyalty program type, you can import the points into a given customer profile or into a given _active_ loyalty card. + Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: @@ -3864,7 +3944,7 @@ paths: operationId: importLoyaltyPoints parameters: - description: | - Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with + Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. in: path name: loyaltyProgramId @@ -3877,8 +3957,7 @@ paths: schema: properties: upFile: - description: The file with the information about the data that should - be imported. + description: The file containing the data that is being imported. format: csv type: string responses: @@ -3909,9 +3988,11 @@ paths: About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - - If the customer is already in a tier, the customer is assigned to match the new information provided in the CSV file. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. + **Note:** We recommend not using this endpoint to update the tier of a customer. + To update a customer's tier, you can [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their loyalty points. + You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. @@ -3926,7 +4007,7 @@ paths: operationId: importLoyaltyCustomersTiers parameters: - description: | - Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with + Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. in: path name: loyaltyProgramId @@ -3939,8 +4020,7 @@ paths: schema: properties: upFile: - description: The file with the information about the data that should - be imported. + description: The file containing the data that is being imported. format: csv type: string responses: @@ -4147,6 +4227,7 @@ paths: - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. + - `campaignid`: The ID of the campaign. operationId: exportLoyaltyLedger parameters: - description: | @@ -4161,12 +4242,12 @@ paths: schema: format: date-time type: string - - description: "Only return results from before this timestamp. \n\n**Note:**\n\ - - This must be an RFC3339 timestamp string.\n- You can include a time component\ - \ in your string, for example, `T23:59:59` to specify the end of the day.\ - \ The time zone setting considered is `UTC`. If you do not include a time\ - \ component, a default time value of `T00:00:00` (midnight) in `UTC` is\ - \ considered.\n" + - description: | + Only return results from before this timestamp. + + **Note:** + - This must be an RFC3339 timestamp string. + - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: rangeEnd required: true @@ -4198,9 +4279,9 @@ paths: content: application/csv: example: | - customerprofileid,customersessionid,rulesetid,rulename,programid,type,name,subledgerid,startdate,expirydate,id,created,amount,archived - 8NHOS78H,06b0fafb-ccbf-42c7-b44b-d858e8b525022,1691,test,37,subtraction,10% of current total,,immediate,unlimited,60803,2022-11-29 16:16:10,100.00,false - EB780RDN,06b0fafb-ccbf-42c7-b44b-d858e8b525022,1691,test,37,addition,Reimbursed loyalty points,,immediate,unlimited,60804,2022-11-29 16:16:23,100.00,false + customerprofileid,customersessionid,rulesetid,rulename,programid,type,name,subledgerid,startdate,expirydate,id,created,amount,archived,campaignid + 8NHOS78H,06b0fafb-ccbf-42c7-b44b-d858e8b525022,1691,test,37,subtraction,10% of current total,,immediate,unlimited,60803,2022-11-29 16:16:10,100.00,false,5 + EB780RDN,06b0fafb-ccbf-42c7-b44b-d858e8b525022,1691,test,37,addition,Reimbursed loyalty points,,immediate,unlimited,60804,2022-11-29 16:16:23,100.00,false,5 schema: format: csv type: string @@ -4280,7 +4361,7 @@ paths: operationId: getLoyaltyStatistics parameters: - description: | - Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with + Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. in: path name: loyaltyProgramId @@ -4420,15 +4501,15 @@ paths: /v1/loyalty_programs/{loyaltyProgramId}/transactions: get: description: | - Retrieve all loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. - If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. + Retrieve loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. + **Note:** If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). operationId: getLoyaltyProgramTransactions parameters: - description: | - Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with + Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. in: path name: loyaltyProgramId @@ -4453,12 +4534,13 @@ paths: name: subledgerId schema: type: string - - description: "Date and time from which results are returned. Results are filtered\ - \ by transaction creation date.\n\n**Note:** \n\n- It must be an RFC3339\ - \ timestamp string.\n- You can include a time component in your string,\ - \ for example, `T23:59:59` to specify the end of the day. The time zone\ - \ setting considered is `UTC`. If you do not include a time component, a\ - \ default time value of `T00:00:00` (midnight) in `UTC` is considered.\n" + - description: | + Date and time from which results are returned. Results are filtered by transaction creation date. + + **Note:** + + - It must be an RFC3339 timestamp string. + - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: startDate schema: @@ -4476,7 +4558,7 @@ paths: schema: format: date-time type: string - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -4495,7 +4577,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_13' + $ref: '#/components/schemas/inline_response_200_14' description: OK "400": content: @@ -4555,8 +4637,7 @@ paths: schema: properties: upFile: - description: The file with the information about the data that should - be imported. + description: The file containing the data that is being imported. format: csv type: string responses: @@ -4654,7 +4735,7 @@ paths: For the given card-based loyalty program, list the loyalty cards that match your filter criteria. operationId: getLoyaltyCards parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -4701,7 +4782,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_14' + $ref: '#/components/schemas/inline_response_200_15' description: OK "400": content: @@ -5024,12 +5105,12 @@ paths: schema: format: date-time type: string - - description: "Only return results from before this timestamp. \n\n**Note:**\n\ - - This must be an RFC3339 timestamp string.\n- You can include a time component\ - \ in your string, for example, `T23:59:59` to specify the end of the day.\ - \ The time zone setting considered is `UTC`. If you do not include a time\ - \ component, a default time value of `T00:00:00` (midnight) in `UTC` is\ - \ considered.\n" + - description: | + Only return results from before this timestamp. + + **Note:** + - This must be an RFC3339 timestamp string. + - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: rangeEnd required: true @@ -5093,12 +5174,13 @@ paths: schema: maxLength: 108 type: string - - description: "Date and time from which results are returned. Results are filtered\ - \ by transaction creation date.\n\n**Note:** \n\n- It must be an RFC3339\ - \ timestamp string.\n- You can include a time component in your string,\ - \ for example, `T23:59:59` to specify the end of the day. The time zone\ - \ setting considered is `UTC`. If you do not include a time component, a\ - \ default time value of `T00:00:00` (midnight) in `UTC` is considered.\n" + - description: | + Date and time from which results are returned. Results are filtered by transaction creation date. + + **Note:** + + - It must be an RFC3339 timestamp string. + - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: startDate schema: @@ -5116,7 +5198,7 @@ paths: schema: format: date-time type: string - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -5140,7 +5222,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_15' + $ref: '#/components/schemas/inline_response_200_16' description: OK "401": content: @@ -5266,8 +5348,7 @@ paths: schema: properties: upFile: - description: The file with the information about the data that should - be imported. + description: The file containing the data that is being imported. format: csv type: string responses: @@ -5351,7 +5432,7 @@ paths: description: List account-level collections in the account. operationId: listAccountCollections parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -5392,7 +5473,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_16' + $ref: '#/components/schemas/inline_response_200_17' description: OK "400": content: @@ -5569,7 +5650,7 @@ paths: You can retrieve items from both account-level collections and campaign-level collections using this endpoint. operationId: getCollectionItems parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -5595,7 +5676,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_17' + $ref: '#/components/schemas/inline_response_200_18' description: OK "404": content: @@ -5619,7 +5700,7 @@ paths: required: true schema: type: integer - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -5660,7 +5741,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_18' + $ref: '#/components/schemas/inline_response_200_17' description: OK "404": content: @@ -5691,7 +5772,7 @@ paths: required: true schema: type: integer - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -5732,7 +5813,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_18' + $ref: '#/components/schemas/inline_response_200_17' description: OK "404": content: @@ -5954,8 +6035,7 @@ paths: schema: properties: upFile: - description: The file with the information about the data that should - be imported. + description: The file containing the data that is being imported. format: csv type: string responses: @@ -6035,8 +6115,7 @@ paths: schema: properties: upFile: - description: The file with the information about the data that should - be imported. + description: The file containing the data that is being imported. format: csv type: string responses: @@ -6238,19 +6317,19 @@ paths: schema: format: date-time type: string - - description: "Only return results from before this timestamp. \n\n**Note:**\n\ - - This must be an RFC3339 timestamp string.\n- You can include a time component\ - \ in your string, for example, `T23:59:59` to specify the end of the day.\ - \ The time zone setting considered is `UTC`. If you do not include a time\ - \ component, a default time value of `T00:00:00` (midnight) in `UTC` is\ - \ considered.\n" + - description: | + Only return results from before this timestamp. + + **Note:** + - This must be an RFC3339 timestamp string. + - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: rangeEnd required: true schema: format: date-time type: string - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -6297,19 +6376,17 @@ paths: - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: rangeStart - required: true schema: format: date-time type: string - - description: "Only return results from before this timestamp. \n\n**Note:**\n\ - - This must be an RFC3339 timestamp string.\n- You can include a time component\ - \ in your string, for example, `T23:59:59` to specify the end of the day.\ - \ The time zone setting considered is `UTC`. If you do not include a time\ - \ component, a default time value of `T00:00:00` (midnight) in `UTC` is\ - \ considered.\n" + - description: | + Only return results from before this timestamp. + + **Note:** + - This must be an RFC3339 timestamp string. + - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: rangeEnd - required: true schema: format: date-time type: string @@ -6339,7 +6416,7 @@ paths: - success - error type: string - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -6403,12 +6480,12 @@ paths: schema: format: date-time type: string - - description: "Only return results from before this timestamp. \n\n**Note:**\n\ - - This must be an RFC3339 timestamp string.\n- You can include a time component\ - \ in your string, for example, `T23:59:59` to specify the end of the day.\ - \ The time zone setting considered is `UTC`. If you do not include a time\ - \ component, a default time value of `T00:00:00` (midnight) in `UTC` is\ - \ considered.\n" + - description: | + Only return results from before this timestamp. + + **Note:** + - This must be an RFC3339 timestamp string. + - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: rangeEnd required: true @@ -6455,7 +6532,7 @@ paths: name: integrationId schema: type: string - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -6504,7 +6581,7 @@ paths: required: true schema: type: integer - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -6555,7 +6632,7 @@ paths: The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. operationId: getCustomersByAttributes parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -6635,7 +6712,7 @@ paths: description: List all customer profiles. operationId: getCustomerProfiles parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -6705,7 +6782,7 @@ paths: in the response, this endpoint only mentions whether there are more results. operationId: getCustomerActivityReportsWithoutTotalCount parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -6739,12 +6816,12 @@ paths: schema: format: date-time type: string - - description: "Only return results from before this timestamp. \n\n**Note:**\n\ - - This must be an RFC3339 timestamp string.\n- You can include a time component\ - \ in your string, for example, `T23:59:59` to specify the end of the day.\ - \ The time zone setting considered is `UTC`. If you do not include a time\ - \ component, a default time value of `T00:00:00` (midnight) in `UTC` is\ - \ considered.\n" + - description: | + Only return results from before this timestamp. + + **Note:** + - This must be an RFC3339 timestamp string. + - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: rangeEnd required: true @@ -6796,7 +6873,7 @@ paths: in a time range. operationId: getCustomerActivityReport parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -6822,12 +6899,12 @@ paths: schema: format: date-time type: string - - description: "Only return results from before this timestamp. \n\n**Note:**\n\ - - This must be an RFC3339 timestamp string.\n- You can include a time component\ - \ in your string, for example, `T23:59:59` to specify the end of the day.\ - \ The time zone setting considered is `UTC`. If you do not include a time\ - \ component, a default time value of `T00:00:00` (midnight) in `UTC` is\ - \ considered.\n" + - description: | + Only return results from before this timestamp. + + **Note:** + - This must be an RFC3339 timestamp string. + - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. in: query name: rangeEnd required: true @@ -6865,7 +6942,7 @@ paths: description: Fetch analytics for a given customer in the given application. operationId: getCustomerAnalytics parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -6919,7 +6996,7 @@ paths: List all the sessions of the specified Application. operationId: getApplicationSessions parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -6985,6 +7062,12 @@ paths: name: integrationId schema: type: string + - description: The integration ID of the store. You choose this ID when you + create a store. + in: query + name: storeIntegrationId + schema: + type: string - description: The ID of the Application. It is displayed in your Talon.One deployment URL. in: path @@ -7041,7 +7124,7 @@ paths: Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. operationId: getApplicationEventsWithoutTotalCount parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -7152,7 +7235,7 @@ paths: See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) operationId: getApplicationEventTypes parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -7198,7 +7281,7 @@ paths: Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). operationId: getAudiences parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -7240,13 +7323,53 @@ paths: tags: - management x-accepts: application/json - /v1/applications/{applicationId}/profile/{integrationId}/friends: + /v1/audiences/analytics: get: description: | - List the friends referred by the specified customer profile in this Application. - operationId: getApplicationCustomerFriends + Get a list of audience IDs and their member count. + operationId: getAudiencesAnalytics parameters: - - description: The number of items in this response. + - description: | + The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. + + **Note:** This parameter works only with numeric fields. + in: query + name: sort + schema: + type: string + - description: The IDs of one or more audiences, separated by commas, by which + to filter results. + in: query + name: audienceIds + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_31' + description: OK + summary: List audience analytics + tags: + - management + x-accepts: application/json + /v1/audiences/{audienceId}/memberships: + get: + description: | + Get a paginated list of the customer profiles in a given audience. + + A maximum of 1000 customer profiles per page is allowed. + operationId: getAudienceMemberships + parameters: + - description: The ID of the audience. + in: path + name: audienceId + required: true + schema: + type: integer + - description: The number of items in the response. in: query name: pageSize schema: @@ -7268,46 +7391,213 @@ paths: name: sort schema: type: string - - description: The ID of the Application. It is displayed in your Talon.One - deployment URL. + - description: The filter to select a profile. + in: query + name: profileQuery + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_32' + description: OK + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Not found + summary: List audience members + tags: + - management + x-accepts: application/json + /v1/audiences/{audienceId}/memberships/import: + post: + description: | + Upload a CSV file containing the integration IDs of the members you want to add to an audience. + + The file should be sent as multipart data and should contain only the following column (required): + - `profileintegrationid`: The integration ID of the customer profile. + + The import **replaces** the previous list of audience members. + + **Note:** We recommend limiting your file size to 500MB. + + Example: + + ```text + profileintegrationid + charles + alexa + ``` + operationId: importAudiencesMemberships + parameters: + - description: The ID of the audience. in: path - name: applicationId + name: audienceId required: true schema: type: integer - - description: | - When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. + requestBody: + content: + multipart/form-data: + schema: + properties: + upFile: + description: The file containing the data that is being imported. + format: csv + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Import' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Unauthorized - Invalid API key + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Not found + summary: Import audience members + tags: + - management + x-contentType: multipart/form-data + x-accepts: application/json + /v1/audiences/{audienceId}/memberships/export: + get: + description: | + Download a CSV file containing the integration IDs of the members of an audience. - - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. - in: query - name: withTotalResultSize - schema: - type: boolean - - description: The Integration ID of the Advocate's Profile. + **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + + The file contains the following column: + - `profileintegrationid`: The integration ID of the customer profile. + operationId: exportAudiencesMemberships + parameters: + - description: The ID of the audience. in: path - name: integrationId + name: audienceId required: true schema: - type: string + type: integer responses: "200": content: - application/json: + application/csv: + example: | + profileintegrationid + URNGV8294NV + BZGGC2454PA schema: - $ref: '#/components/schemas/inline_response_200_31' + format: csv + type: string description: OK - summary: List friends referred by customer profile + "400": + content: + application/csv: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + "401": + content: + application/csv: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Unauthorized - Invalid API key + "404": + content: + application/csv: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Not found + summary: Export audience members tags: - management - x-accepts: application/json - /v1/attributes: + x-accepts: application/csv + /v1/applications/{applicationId}/profile/{integrationId}/friends: get: description: | - Return all the custom attributes for the account. - operationId: getAttributes + List the friends referred by the specified customer profile in this Application. + operationId: getApplicationCustomerFriends parameters: - - description: The number of items in this response. + - description: The number of items in the response. + in: query + name: pageSize + schema: + default: 1000 + maximum: 1000 + minimum: 1 + type: integer + - description: The number of items to skip when paging through large result + sets. + in: query + name: skip + schema: + type: integer + - description: | + The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. + + **Note:** This parameter works only with numeric fields. + in: query + name: sort + schema: + type: string + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: | + When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. + + - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. + - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. + in: query + name: withTotalResultSize + schema: + type: boolean + - description: The Integration ID of the Advocate's Profile. + in: path + name: integrationId + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_33' + description: OK + summary: List friends referred by customer profile + tags: + - management + x-accepts: application/json + /v1/attributes: + get: + description: | + Return all the custom attributes for the account. + operationId: getAttributes + parameters: + - description: The number of items in the response. in: query name: pageSize schema: @@ -7339,7 +7629,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_32' + $ref: '#/components/schemas/inline_response_200_34' description: OK summary: List custom attributes tags: @@ -7480,8 +7770,7 @@ paths: schema: properties: upFile: - description: The file with the information about the data that should - be imported. + description: The file containing the data that is being imported. format: csv type: string responses: @@ -7527,7 +7816,7 @@ paths: required: true schema: type: integer - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -7550,17 +7839,30 @@ paths: name: withTotalResultSize schema: type: boolean - - description: The SKU of the item. + - description: Filter results by one or more SKUs. Must be exact match. + explode: false in: query name: sku schema: - type: string + items: + type: string + type: array + style: form + - description: Filter results by one or more product names. Must be exact match. + explode: false + in: query + name: productNames + schema: + items: + type: string + type: array + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_33' + $ref: '#/components/schemas/inline_response_200_35' description: OK summary: List items in a catalog tags: @@ -7569,19 +7871,24 @@ paths: /v1/catalogs/{catalogId}/sync: put: description: | - Perform one or more of the following sync actions on this cart item catalog, up to 1000 actions: + Perform one or more of the following actions for a given cart item catalog: + + - Adding an item to the catalog. + - Adding several items to the catalog. + - Editing the attributes of an item in the catalog. + - Editing the attributes of several items in the catalog. + - Removing an item from the catalog. + - Removing several items from the catalog. - - Add an item to the catalog. - - Edit the attributes of an item in the catalog. - - Edit the attributes of more than one item in the catalog. - - Remove an item from the catalog. - - Remove more than one item from the catalog. + You can add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique `SKU`. - **Note:** For more information, see [our documentation on managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). + **Important**: Syncing items with duplicate `SKU` values in a single request returns an error message with a `400` status code. + + For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items - Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs#displaying-the-details-and-content-of-a-catalog) + Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. @@ -7621,11 +7928,57 @@ paths: "payload": { "attributes": { "color": "Navy blue", - "type": "shoe" + "type": "shoes" }, "replaceIfExists": true, "sku": "SKU1241028", - "price": 100 + "price": 100, + "product": { + "name": "sneakers" + } + }, + "type": "ADD" + } + ] + } + ``` + + + +
+ Adding several items to the catalog +
+ + ```json + { + "actions": [ + { + "payload": { + "attributes": { + "color": "Navy blue", + "type": "shoes" + }, + "replaceIfExists": true, + "sku": "SKU1241027", + "price": 100, + "product": { + "name": "sneakers" + } + }, + "type": "ADD" + }, + { + "payload": { + "attributes": { + "color": "Navy blue", + "type": "shoes" + }, + "replaceIfExists": true, + "sku": "SKU1241028", + "price": 100, + "product": { + "name": "sneakers" + } }, "type": "ADD" } @@ -7649,7 +8002,10 @@ paths: "origin": "germany" }, "createIfNotExists": false, - "sku": "SKU1241028" + "sku": "SKU1241028", + "product": { + "name": "sneakers" + } }, "type": "PATCH" } @@ -7660,7 +8016,7 @@ paths:
- Editing the attributes of several items at once + Editing the attributes of several items in the catalog
```json @@ -7709,7 +8065,7 @@ paths:
- Removing several items from the catalog at once + Removing several items from the catalog
```json @@ -7816,7 +8172,7 @@ paths: Returns all the defined additional costs for the account. operationId: getAdditionalCosts parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -7843,7 +8199,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_34' + $ref: '#/components/schemas/inline_response_200_36' description: OK summary: List additional costs tags: @@ -7949,7 +8305,7 @@ paths: name: sort schema: type: string - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -7995,7 +8351,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_35' + $ref: '#/components/schemas/inline_response_200_37' description: OK summary: List webhooks tags: @@ -8031,7 +8387,7 @@ paths: triggers a webhook effect. See the [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). operationId: getWebhookActivationLogs parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -8092,7 +8448,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_36' + $ref: '#/components/schemas/inline_response_200_38' description: OK summary: List webhook activation log entries tags: @@ -8103,7 +8459,7 @@ paths: description: Retrieve all webhook log entries. operationId: getWebhookLogs parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -8174,7 +8530,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_37' + $ref: '#/components/schemas/inline_response_200_39' description: OK summary: List webhook log entries tags: @@ -8198,7 +8554,7 @@ paths: schema: default: false type: boolean - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -8225,7 +8581,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_38' + $ref: '#/components/schemas/inline_response_200_40' description: OK summary: List event types tags: @@ -8280,14 +8636,20 @@ paths: required: true schema: type: integer + - description: | + An indicator of whether to skip duplicate coupon values instead of causing an error. + Duplicate values are ignored when `skipDuplicates=true`. + in: query + name: skipDuplicates + schema: + type: boolean requestBody: content: multipart/form-data: schema: properties: upFile: - description: The file with the information about the data that should - be imported. + description: The file containing the data that is being imported. format: csv type: string responses: @@ -8732,7 +9094,7 @@ paths: application/csv: example: | id,firstsession,integrationid,applicationid,profileid,profileintegrationid,created,state,cartitems,discounts,total,attributes,closedat,cancelledat,referral,identifiers,additional_costs,updated,store_integration_id,coupons - 12327,true,62791173fbf323ee5cfd96f3,270,6111,dxclwds,2022-05-09T13:05:31Z,open,"[{""sku"": ""B00004TKVY"", ""name"": ""Gravel bike - \""Aisle of Man\"""", ""price"": 1800, ""weight"": 6, ""category"": ""gravelbikes"", ""position"": 0, ""quantity"": 1, ""attributes"": {""color"": [""black,white""], ""material"": ""titanium""}, ""returnedQuantity"": 0, ""remainingQuantity"": 1}]","{}",1850.00,"{""ShippingCost"": 50, ""PaymentMethod"": ""creditcard"", ""ShippingMethod"": ""Standard""}",0001-01-01T00:00:00Z,0001-01-01T00:00:00Z,,"null","{""ShippingCost"": {""price"": 50}}",2022-05-09T13:13:28Z,"STORE-001","[""SORRY5QMUJRWA""]" + 12328,true,62791173fbf323ee5cfd96f3,270,6111,dxclwds,2022-05-09T13:05:31Z,open,"[{""sku"": ""B00004TKVY"", ""name"": ""Gravel bike - \""Aisle of Man\"""", ""price"": 1800, ""weight"": 6, ""category"": ""gravelbikes"", ""position"": 0, ""quantity"": 1, ""attributes"": {""color"": [""black,white""], ""material"": ""titanium""}, ""returnedQuantity"": 0, ""remainingQuantity"": 1}]","{}",1850.00,"{""ShippingCost"": 50, ""PaymentMethod"": ""creditcard"", ""ShippingMethod"": ""Standard""}",0001-01-01T00:00:00Z,0001-01-01T00:00:00Z,,"null","{""ShippingCost"": {""price"": 50}}",2022-05-09T13:13:28Z,"STORE-001","[""SORRY5QMUJRWA""]" schema: format: csv type: string @@ -8797,8 +9159,7 @@ paths: schema: properties: upFile: - description: The file with the information about the data that should - be imported. + description: The file containing the data that is being imported. format: csv type: string responses: @@ -8819,7 +9180,7 @@ paths: Retrieve all users in your account. operationId: getUsers parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -8846,13 +9207,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_39' + $ref: '#/components/schemas/inline_response_200_41' description: OK summary: List users in account tags: - management x-accepts: application/json /v1/users/{userId}: + delete: + description: Delete a specific user. + operationId: deleteUser + parameters: + - description: The ID of the user. + in: path + name: userId + required: true + schema: + type: integer + responses: + "204": + content: {} + description: No Content + summary: Delete user + tags: + - management + x-accepts: application/json get: description: | Retrieve the data (including an invitation code) for a user. Non-admin users can only get their own profile. @@ -8875,13 +9254,87 @@ paths: tags: - management x-accepts: application/json + put: + description: Update the details of a specific user. + operationId: updateUser + parameters: + - description: The ID of the user. + in: path + name: userId + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateUser' + description: body + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/User' + description: OK + summary: Update user + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /v1/users/delete: + post: + description: | + Delete a specific user by their email address. + operationId: deleteUserByEmail + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteUserRequest' + description: body + required: true + responses: + "204": + content: {} + description: No Content + summary: Delete user by email address + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /v1/users/deactivate: + post: + description: | + Deactivate a specific user by their email address. + operationId: deactivateUserByEmail + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeactivateUserRequest' + description: body + required: true + responses: + "204": + content: {} + description: No Content + summary: Deactivate user by email address + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json /v1/changes: get: description: | Retrieve the audit logs displayed in **Accounts > Audit logs**. operationId: getChanges parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -8960,12 +9413,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_40' + $ref: '#/components/schemas/inline_response_200_42' description: OK summary: Get audit logs for an account tags: - management x-accepts: application/json + /v2/invites: + post: + description: | + Create a new user in the account and send an invitation to their email address. + + **Note**: The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the [Resend invitation email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) endpoint. + operationId: createInviteV2 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NewInvitation' + description: body + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/User' + description: Created + summary: Invite user + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /v1/invite_emails: + post: + description: | + Resend an email invitation to an existing user. + + **Note:** The invitation token is valid for 24 hours after the email has been sent. + operationId: createInviteEmail + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NewInviteEmail' + description: body + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NewInviteEmail' + description: Created + summary: Resend invitation email + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json /v1/password_recovery_emails: post: description: | @@ -9125,7 +9632,7 @@ paths: List all past exports operationId: getExports parameters: - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -9168,7 +9675,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_41' + $ref: '#/components/schemas/inline_response_200_43' description: OK summary: Get exports tags: @@ -9183,7 +9690,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_42' + $ref: '#/components/schemas/inline_response_200_44' description: OK summary: List roles tags: @@ -9195,7 +9702,10 @@ paths: Get the details of a specific role. To see all the roles, use [List roles](#operation/getAllRoles). operationId: getRole parameters: - - description: 'The ID of role. ' + - description: | + ID of role. + + **Note**: To find the ID of a role, use the [List roles](https://docs.talon.one/management-api#tag/Roles/operation/getAllRoles) endpoint. in: path name: roleId required: true @@ -9212,6 +9722,37 @@ paths: tags: - management x-accepts: application/json + /v2/roles/{roleId}: + put: + description: Update a specific role. + operationId: updateRoleV2 + parameters: + - description: 'The ID of role. ' + in: path + name: roleId + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateRoleV2' + description: body + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RoleV2' + description: OK + summary: Update role + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json /v1/applications/{applicationId}/stores: get: description: List all stores for a specific Application. @@ -9224,7 +9765,7 @@ paths: required: true schema: type: integer - - description: The number of items in this response. + - description: The number of items in the response. in: query name: pageSize schema: @@ -9270,12 +9811,17 @@ paths: name: integrationId schema: type: string + - description: Filter results by `name` or `integrationId`. + in: query + name: query + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_43' + $ref: '#/components/schemas/inline_response_200_45' description: OK summary: List stores tags: @@ -9446,6 +9992,411 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json + /v1/applications/{applicationId}/campaigns/{campaignId}/achievements: + get: + description: List all the achievements for a specific campaign. + operationId: listAchievements + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + - description: The number of items in the response. + in: query + name: pageSize + schema: + default: 50 + maximum: 50 + minimum: 1 + type: integer + - description: The number of items to skip when paging through large result + sets. + in: query + name: skip + schema: + type: integer + - description: | + Filter by the display name for the achievement in the campaign manager. + + **Note**: If no `title` is provided, all the achievements from the campaign are returned. + in: query + name: title + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_46' + description: OK + summary: List achievements + tags: + - management + x-accepts: application/json + post: + description: Create a new achievement in a specific campaign. + operationId: createAchievement + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAchievement' + description: body + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Achievement' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Unauthorized + "409": + content: {} + description: Conflict. An achievement with this name or title already exists. + summary: Create achievement + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}: + delete: + description: Delete the specified achievement. + operationId: deleteAchievement + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + - description: The ID of the achievement. You can get this ID with the [List + achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + endpoint. + in: path + name: achievementId + required: true + schema: + type: integer + responses: + "204": + content: {} + description: No Content + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Not found + summary: Delete achievement + tags: + - management + x-accepts: application/json + get: + description: Get the details of a specific achievement. + operationId: getAchievement + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + - description: The ID of the achievement. You can get this ID with the [List + achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + endpoint. + in: path + name: achievementId + required: true + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Achievement' + description: OK + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Not found + summary: Get achievement + tags: + - management + x-accepts: application/json + put: + description: Update the details of a specific achievement. + operationId: updateAchievement + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + - description: The ID of the achievement. You can get this ID with the [List + achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + endpoint. + in: path + name: achievementId + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateAchievement' + description: body + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Achievement' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Not found + summary: Update achievement + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}/export: + get: + description: | + Download a CSV file containing a list of all the customers who have participated in and are currently participating in the given achievement. + + The CSV file contains the following columns: + - `profileIntegrationID`: The integration ID of the customer profile participating in the achievement. + - `title`: The display name of the achievement in the Campaign Manager. + - `target`: The required number of actions or the transactional milestone to complete the achievement. + - `progress`: The current progress of the customer in the achievement. + - `status`: The status of the achievement. Can be one of: ['inprogress', 'completed', 'expired']. + - `startDate`: The date on which the customer profile started the achievement in RFC3339. + - `endDate`: The date on which the achievement ends and resets for the customer profile in RFC3339. + - `completionDate`: The date on which the customer profile completed the achievement in RFC3339. + operationId: exportAchievements + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + - description: The ID of the achievement. You can get this ID with the [List + achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + endpoint. + in: path + name: achievementId + required: true + schema: + type: integer + responses: + "200": + content: + application/csv: + example: | + profileIntegrationID,title,target,progress,status,startDate,endDate,completionDate + user1231,CoffeeFree10Orders,10.00,5,inprogress,2023-12-10T11:42:25+01:00,2024-01-10T11:42:25+01:00, + user341,CoffeeFree10Orders,10.00,10,completed,2023-12-10T11:42:25+01:00,2024-01-10T11:42:25+01:00,2023-12-20T10:24:34+01:00 + schema: + format: csv + type: string + description: OK + "400": + content: + application/csv: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Bad request + "401": + content: + application/csv: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Unauthorized + "404": + content: + application/csv: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Not found + summary: Export achievement customer data + tags: + - management + x-accepts: application/csv + /v1/applications/{applicationId}/achievement_progress/{integrationId}: + get: + description: | + For the given customer profile, list all the achievements that match your filter criteria. + operationId: getCustomerProfileAchievementProgress + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The identifier of the profile. + in: path + name: integrationId + required: true + schema: + type: string + - description: The number of items in the response. + in: query + name: pageSize + schema: + default: 50 + maximum: 50 + minimum: 1 + type: integer + - description: The number of items to skip when paging through large result + sets. + in: query + name: skip + schema: + type: integer + - description: The ID of the achievement. You can get this ID with the [List + achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + endpoint. + in: query + name: achievementId + schema: + type: integer + - description: Filter results by the `title` of an achievement. + in: query + name: title + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_47' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponseWithStatus' + description: Unauthorized + summary: List customer achievements + tags: + - management + x-accepts: application/json components: schemas: ErrorResponse: @@ -9600,7 +10551,7 @@ components: EmailEntity: properties: email: - description: The email address associated with your account. + description: The email address associated with the user profile. example: john.doe@example.com format: email type: string @@ -9911,7 +10862,7 @@ components: email: john.doe@example.com properties: email: - description: The email address associated with your account. + description: The email address associated with the user profile. example: john.doe@example.com format: email type: string @@ -10172,9 +11123,12 @@ components: sandbox: true description: Customers collect 10 points per 1$ spent title: Point collection + canUpdateJoinPolicy: true subscribedApplications: - 132 - 97 + tiersExpirationPolicy: tier_start_date + programJoinPolicy: not_join accountID: 1 defaultValidity: 2W_U defaultPending: immediate @@ -10208,9 +11162,12 @@ components: sandbox: true description: Customers collect 10 points per 1$ spent title: Point collection + canUpdateJoinPolicy: true subscribedApplications: - 132 - 97 + tiersExpirationPolicy: tier_start_date + programJoinPolicy: not_join accountID: 1 defaultValidity: 2W_U defaultPending: immediate @@ -10356,12 +11313,13 @@ components: NewCampaignGroup: properties: name: - description: The name of this campaign access group. + description: The name of the campaign access group. + example: Europe access group minLength: 1 type: string description: description: A longer description of the campaign access group. - example: My campaign access group. + example: A group that gives access to all the campaigns for the Europe market. type: string subscribedApplicationsIds: description: A list of IDs of the Applications that this campaign access @@ -10388,6 +11346,22 @@ components: type: object CampaignGroup: description: "" + example: + accountId: 3886 + created: 2020-06-10T09:05:27.993483Z + name: Europe access group + subscribedApplicationsIds: + - 1 + - 2 + - 3 + modified: 2021-09-12T10:12:42Z + description: A group that gives access to all the campaigns for the Europe + market. + id: 6 + campaignIds: + - 4 + - 6 + - 8 properties: id: description: Internal ID of this entity. @@ -10408,12 +11382,13 @@ components: example: 3886 type: integer name: - description: The name of this campaign access group. + description: The name of the campaign access group. + example: Europe access group minLength: 1 type: string description: description: A longer description of the campaign access group. - example: My campaign access group. + example: A group that gives access to all the campaigns for the Europe market. type: string subscribedApplicationsIds: description: A list of IDs of the Applications that this campaign access @@ -10446,12 +11421,13 @@ components: description: "" properties: name: - description: The name of this campaign access group. + description: The name of the campaign access group. + example: Europe access group minLength: 1 type: string description: description: A longer description of the campaign access group. - example: My campaign access group. + example: A group that gives access to all the campaigns for the Europe market. type: string subscribedApplicationsIds: description: A list of IDs of the Applications that this campaign access @@ -10542,6 +11518,7 @@ components: - loyalty - giveaways - strikethrough + - achievements type: string type: array couponSettings: @@ -10563,12 +11540,6 @@ components: items: type: integer type: array - evaluationGroupId: - description: The ID of the campaign evaluation group the campaign belongs - to. - example: 2 - title: Evaluation Group ID - type: integer type: default: advanced description: | @@ -10595,6 +11566,12 @@ components: items: type: integer type: array + evaluationGroupId: + description: The ID of the campaign evaluation group the campaign belongs + to. + example: 2 + title: Evaluation Group ID + type: integer required: - features - limits @@ -10783,6 +11760,7 @@ components: - loyalty - giveaways - strikethrough + - achievements type: string type: array couponSettings: @@ -10904,6 +11882,7 @@ components: - loyalty - giveaways - strikethrough + - achievements type: string type: array couponSettings: @@ -10925,12 +11904,6 @@ components: items: type: integer type: array - evaluationGroupId: - description: The ID of the campaign evaluation group the campaign belongs - to. - example: 2 - title: Evaluation Group ID - type: integer type: default: advanced description: | @@ -10964,133 +11937,6 @@ components: - state - tags type: object - BaseCampaignForNotification: - properties: - name: - description: A user-facing name for this campaign. - example: Summer promotions - minLength: 1 - title: Campaign Name - type: string - description: - description: A detailed description of the campaign. - example: Campaign for all summer 2021 promotions - title: Campaign Description - type: string - startTime: - description: Timestamp when the campaign will become active. - example: 2021-07-20T22:00:00Z - format: date-time - type: string - endTime: - description: Timestamp when the campaign will become inactive. - example: 2021-09-22T22:00:00Z - format: date-time - type: string - attributes: - description: Arbitrary properties associated with this campaign. - properties: {} - type: object - state: - default: enabled - description: | - A disabled or archived campaign is not evaluated for rules or coupons. - enum: - - enabled - - disabled - - archived - - draft - - scheduled - - running - - expired - example: enabled - type: string - activeRulesetId: - description: | - [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this - campaign applies on customer session evaluation. - example: 6 - type: integer - tags: - description: A list of tags for the campaign. - example: - - summer - items: - maxLength: 50 - minLength: 1 - type: string - maxItems: 50 - type: array - features: - description: The features enabled in this campaign. - example: - - coupons - - referrals - items: - enum: - - coupons - - referrals - - loyalty - - giveaways - - strikethrough - type: string - type: array - couponSettings: - $ref: '#/components/schemas/CodeGeneratorSettings' - referralSettings: - $ref: '#/components/schemas/CodeGeneratorSettings' - limits: - description: | - The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. - items: - $ref: '#/components/schemas/LimitConfig' - type: array - campaignGroups: - description: | - The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. - example: - - 1 - - 3 - items: - type: integer - type: array - evaluationGroupId: - description: The ID of the campaign evaluation group the campaign belongs - to. - example: 2 - type: integer - type: - default: advanced - description: | - The campaign type. Possible type values: - - `cartItem`: Type of campaign that can apply effects only to cart items. - - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. - enum: - - cartItem - - advanced - example: advanced - type: string - linkedStoreIds: - description: | - A list of store IDs that are linked to the campaign. - - **Note:** Campaigns with linked store IDs will only be evaluated when there is a - [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) - that references a linked store. - example: - - 1 - - 2 - - 3 - items: - type: integer - type: array - required: - - features - - limits - - name - - state - - tags - type: object Campaign: description: "" example: @@ -11105,7 +11951,6 @@ components: - coupons - referrals createdLoyaltyPointsCount: 9.0 - evaluationGroupId: 2 couponSettings: couponPattern: SUMMER-####-#### validCharacters: @@ -11162,6 +12007,7 @@ components: activeRulesetId: 6 reservecouponEffectCount: 9 updatedBy: Jane Doe + frontendState: running created: 2020-06-10T09:05:27.993483Z referralCreationCount: 8 couponRedemptionCount: 163 @@ -11316,6 +12162,7 @@ components: - loyalty - giveaways - strikethrough + - achievements type: string type: array couponSettings: @@ -11337,12 +12184,6 @@ components: items: type: integer type: array - evaluationGroupId: - description: The ID of the campaign evaluation group the campaign belongs - to. - example: 2 - title: Evaluation Group ID - type: integer type: default: advanced description: | @@ -11491,286 +12332,22 @@ components: description: The ID of the Campaign Template this Campaign was created from. example: 3 type: integer - required: - - applicationId - - budgets - - created - - description - - features - - id - - limits - - name - - state - - tags - - type - - userId - type: object - CampaignForNotification: - description: "" - properties: - id: - description: Unique ID for this entity. - example: 4 - type: integer - created: - description: The exact moment this entity was created. - example: 2020-06-10T09:05:27.993483Z - format: date-time - type: string - applicationId: - description: The ID of the application that owns this entity. - example: 322 - type: integer - userId: - description: The ID of the user associated with this entity. - example: 388 - type: integer - name: - description: A user-facing name for this campaign. - example: Summer promotions - minLength: 1 - title: Campaign Name - type: string - description: - description: A detailed description of the campaign. - example: Campaign for all summer 2021 promotions - title: Campaign Description - type: string - startTime: - description: Timestamp when the campaign will become active. - example: 2021-07-20T22:00:00Z - format: date-time - type: string - endTime: - description: Timestamp when the campaign will become inactive. - example: 2021-09-22T22:00:00Z - format: date-time - type: string - attributes: - description: Arbitrary properties associated with this campaign. - properties: {} - type: object - state: - default: enabled - description: | - A disabled or archived campaign is not evaluated for rules or coupons. + frontendState: + description: A campaign state described exactly as in the Campaign Manager. enum: - - enabled - - disabled - - archived - - draft + - expired - scheduled - running - - expired - example: enabled - type: string - activeRulesetId: - description: | - [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this - campaign applies on customer session evaluation. - example: 6 - type: integer - tags: - description: A list of tags for the campaign. - example: - - summer - items: - maxLength: 50 - minLength: 1 - type: string - maxItems: 50 - type: array - features: - description: The features enabled in this campaign. - example: - - coupons - - referrals - items: - enum: - - coupons - - referrals - - loyalty - - giveaways - - strikethrough - type: string - type: array - couponSettings: - $ref: '#/components/schemas/CodeGeneratorSettings' - referralSettings: - $ref: '#/components/schemas/CodeGeneratorSettings' - limits: - description: | - The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. - items: - $ref: '#/components/schemas/LimitConfig' - type: array - campaignGroups: - description: | - The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. - example: - - 1 - - 3 - items: - type: integer - type: array - evaluationGroupId: - description: The ID of the campaign evaluation group the campaign belongs - to. - example: 2 - type: integer - type: - default: advanced - description: | - The campaign type. Possible type values: - - `cartItem`: Type of campaign that can apply effects only to cart items. - - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. - enum: - - cartItem - - advanced - example: advanced - type: string - linkedStoreIds: - description: | - A list of store IDs that are linked to the campaign. - - **Note:** Campaigns with linked store IDs will only be evaluated when there is a - [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) - that references a linked store. - example: - - 1 - - 2 - - 3 - items: - type: integer - type: array - budgets: - description: | - A list of all the budgets that are defined by this campaign and their usage. - - **Note:** Budgets that are not defined do not appear in this list and their usage is - not counted until they are defined. - items: - $ref: '#/components/schemas/CampaignBudget' - type: array - couponRedemptionCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Number of coupons redeemed in the campaign. - example: 163 - type: integer - referralRedemptionCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Number of referral codes redeemed in the campaign. - example: 3 - type: integer - discountCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total amount of discounts redeemed in the campaign. - example: 288.0 - type: number - discountEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of times discounts were redeemed in this campaign. - example: 343 - type: integer - couponCreationCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of coupons created by rules in this campaign. - example: 16 - type: integer - customEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of custom effects triggered by rules in this campaign. - example: 0 - type: integer - referralCreationCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of referrals created by rules in this campaign. - example: 8 - type: integer - addFreeItemEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. - example: 0 - type: integer - awardedGiveawaysCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of giveaways awarded by rules in this campaign. - example: 9 - type: integer - createdLoyaltyPointsCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of loyalty points created by rules in this campaign. - example: 9.0 - type: number - createdLoyaltyPointsEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of loyalty point creation effects triggered by rules in this campaign. - example: 2 - type: integer - redeemedLoyaltyPointsCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of loyalty points redeemed by rules in this campaign. - example: 8.0 - type: number - redeemedLoyaltyPointsEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of loyalty point redemption effects triggered by rules in this campaign. - example: 9 - type: integer - callApiEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of webhooks triggered by rules in this campaign. - example: 0 - type: integer - reservecouponEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of reserve coupon effects triggered by rules in this campaign. - example: 9 - type: integer - lastActivity: - description: Timestamp of the most recent event received by this campaign. - example: 2022-11-10T23:00:00Z - format: date-time - type: string - updated: - description: | - Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign - are **not** registered by this property, such as collection or coupon updates. - format: date-time - type: string - createdBy: - description: Name of the user who created this campaign if available. - example: John Doe - type: string - updatedBy: - description: Name of the user who last updated this campaign if available. - example: Jane Doe + - draft + example: running type: string - templateId: - description: The ID of the Campaign Template this Campaign was created from. - example: 3 - type: integer required: - applicationId - budgets - created - description - features + - frontendState - id - limits - name @@ -11934,8 +12511,18 @@ components: description: The ID of the Campaign Template this Campaign was created from. example: 3 type: integer + frontendState: + description: A campaign state described exactly as in the Campaign Manager. + enum: + - expired + - scheduled + - running + - draft + example: running + type: string required: - budgets + - frontendState type: object NewRuleset: properties: @@ -13403,7 +13990,7 @@ components: minLength: 3 type: string isReservationMandatory: - default: true + default: false description: Whether the reservation effect actually created a new reservation. example: false title: Is reservation mandatory @@ -13631,7 +14218,7 @@ components: properties: {} type: object isReservationMandatory: - default: true + default: false description: Whether the reservation effect actually created a new reservation. example: false title: Is reservation mandatory @@ -13857,7 +14444,7 @@ components: title: Batch ID type: string isReservationMandatory: - default: true + default: false description: Whether the reservation effect actually created a new reservation. example: false title: Is reservation mandatory @@ -14034,7 +14621,7 @@ components: title: Batch ID type: string isReservationMandatory: - default: true + default: false description: Whether the reservation effect actually created a new reservation. example: false title: Is reservation mandatory @@ -14059,6 +14646,26 @@ components: - usageLimit - value type: object + GetIntegrationCouponRequest: + properties: + campaignIds: + description: A list of IDs of the campaigns to get coupons from. + example: + - 1 + - 2 + - 3 + items: + type: integer + type: array + limit: + description: The maximum number of coupons included in the response. + maximum: 1E+3 + minimum: 1 + type: integer + required: + - campaignIds + - limit + type: object InventoryCoupon: description: "" example: @@ -14218,7 +14825,7 @@ components: title: Batch ID type: string isReservationMandatory: - default: true + default: false description: Whether the reservation effect actually created a new reservation. example: false title: Is reservation mandatory @@ -14646,6 +15253,126 @@ components: - url - webhookId type: object + MessageLogEntries: + properties: + nextCursor: + description: | + The next value in the database. + + **Note:** If this value is not present, it means that there are no more values in the database for this combination of request parameters. + example: SmJlNERRMHdyNWFsTmRDZDVYU0c= + format: byte + pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + type: string + data: + description: List of message logs. + items: + $ref: '#/components/schemas/MessageLogEntry' + type: array + required: + - data + type: object + MessageLogEntry: + description: Message Log. + properties: + id: + description: Unique identifier of the message. + example: 123e4567-e89b-12d3-a456-426614174000 + type: string + service: + description: Name of the service that generated the log entry. + example: NotificationService + type: string + changeType: + description: Type of change that triggered the notification. + example: Update + type: string + notificationId: + description: ID of the notification. + example: 101 + type: integer + notificationName: + description: The name of the notification. + example: My campaign notification + type: string + request: + $ref: '#/components/schemas/MessageLogRequest' + response: + $ref: '#/components/schemas/MessageLogResponse' + createdAt: + description: Timestamp when the log entry was created. + example: 2021-07-20T22:00:00Z + format: date-time + type: string + entityType: + description: | + The entity type the log is related to. + enum: + - application + - loyalty_program + - webhook + example: loyalty_program + type: string + url: + description: The target URL of the request. + example: www.my-company.com/my-endpoint-name + type: string + applicationId: + description: Identifier of the Application. + example: 5 + minimum: 1 + type: integer + loyaltyProgramId: + description: Identifier of the loyalty program. + example: 2 + minimum: 1 + type: integer + required: + - createdAt + - id + - service + type: object + MessageLogRequest: + description: Details of the request. + properties: + createdAt: + description: Timestamp when the request was made. + example: 2021-07-20T21:59:00Z + format: date-time + type: string + request: + description: Raw request data. + example: SGVsbG8sIHdvcmxkIQ== + format: byte + pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + type: string + required: + - createdAt + - request + type: object + MessageLogResponse: + description: Details of the response. + properties: + createdAt: + description: Timestamp when the response was received. + example: 2021-07-20T22:00:50Z + format: date-time + type: string + response: + description: Raw response data. + example: UmVzcG9uc2UgY29udGVudA== + format: byte + pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + type: string + status: + description: HTTP status code of the response. + example: 200 + type: integer + required: + - createdAt + - response + - status + type: object WebhookActivationLogEntry: description: Log of activated webhooks. example: @@ -14699,8 +15426,8 @@ components: lastAccessed: 2021-09-12T10:14:42Z id: 6 state: invited - latestFeedTimestamp: 2020-06-01T00:00:00Z authMethod: basic_auth + latestFeedTimestamp: 2020-06-01T00:00:00Z lastSignedIn: 2021-09-12T10:12:42Z email: john.doe@example.com policy: @@ -14721,7 +15448,7 @@ components: format: date-time type: string email: - description: The email address associated with your account. + description: The email address associated with the user profile. example: john.doe@example.com format: email type: string @@ -14729,62 +15456,65 @@ components: description: The ID of the account that owns this entity. example: 3886 type: integer - inviteToken: - description: Invite token, empty if the user as already accepted their invite. - example: Gy9b8w1irmQtEPo5RmbMmSPheL5h4 + name: + description: Name of the user. + example: John Doe type: string state: - description: Current user state. + description: State of the user. enum: - invited - active - deactivated example: invited type: string - name: - description: Full name - example: John Doe + inviteToken: + description: | + Invitation token of the user. + + **Note**: If the user has already accepted their invitation, this is `null`. + example: Gy9b8w1irmQtEPo5RmbMmSPheL5h4 type: string + isAdmin: + description: Indicates whether the user is an `admin`. + example: false + type: boolean policy: - description: User ACL Policy + description: Access level of the user. example: Role: 127 properties: {} type: object - latestFeedTimestamp: - description: Latest timestamp the user has been notified for feed. - example: 2020-06-01T00:00:00Z - format: date-time - type: string roles: - description: Contains a list of all roles the user is a member of. + description: A list of the IDs of the roles assigned to the user. example: - 71 items: type: integer type: array - applicationNotificationSubscriptions: - properties: {} - type: object authMethod: - description: The Authentication method for this user. + description: Authentication method for this user. example: basic_auth type: string - isAdmin: - description: An indication of whether the user has admin permissions. - example: false - type: boolean + applicationNotificationSubscriptions: + description: Application notifications that the user is subscribed to. + properties: {} + type: object lastSignedIn: - description: Date and time when the user last signed in to Talon.One. + description: Timestamp when the user last signed in to Talon.One. example: 2021-09-12T10:12:42Z format: date-time type: string lastAccessed: - description: Date and time of the user's last activity after signing in - to Talon.One. + description: Timestamp of the user's last activity after signing in to Talon.One. example: 2021-09-12T10:14:42Z format: date-time type: string + latestFeedTimestamp: + description: Timestamp when the user was notified for feed. + example: 2020-06-01T00:00:00Z + format: date-time + type: string required: - accountId - created @@ -14796,35 +15526,64 @@ components: - policy - state type: object + DeactivateUserRequest: + description: "" + example: + email: john.doe@example.com + properties: + email: + description: The email address associated with the user profile. + example: john.doe@example.com + format: email + type: string + required: + - email + type: object + DeleteUserRequest: + description: "" + example: + email: john.doe@example.com + properties: + email: + description: The email address associated with the user profile. + example: john.doe@example.com + format: email + type: string + required: + - email + type: object NewInvitation: description: Parameters for inviting a new user. + example: + roles: + - 0 + - 0 + name: John Doe + isAdmin: false + acl: acl + email: john.doe@example.com properties: name: - description: Name of the user being invited. + description: Name of the user. example: John Doe type: string email: + description: Email address of the user. example: john.doe@example.com format: email type: string - acl: - description: | - The `Access Control List` json defining the role of the user. This represents the access control on the user level. - Use one of the following: - - normal user: `{"Role": 0}` - - admin: `{"Role": 127}` - example: '{"Role":0}' - type: string isAdmin: - description: | - An indication of whether the user has admin permissions. We recommend using this flag over using the `acl` with value `{"Role": 127}`. + description: Indicates whether the user is an `admin`. example: false type: boolean roles: - description: An array of role IDs to assign to the new user. + description: A list of the IDs of the roles assigned to the user. items: type: integer type: array + acl: + description: Indicates the access level of the user. + type: string required: - email type: object @@ -15058,9 +15817,12 @@ components: sandbox: true description: Customers collect 10 points per 1$ spent title: Point collection + canUpdateJoinPolicy: true subscribedApplications: - 132 - 97 + tiersExpirationPolicy: tier_start_date + programJoinPolicy: not_join accountID: 1 defaultValidity: 2W_U defaultPending: immediate @@ -15128,9 +15890,18 @@ components: example: true title: Sandbox type: boolean + tiersExpirationPolicy: + description: | + 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. + enum: + - tier_start_date + - program_join_date + type: string tiersExpireIn: description: | - The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. + 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`. @@ -15159,6 +15930,19 @@ components: - one_down - balance_based type: string + programJoinPolicy: + description: | + 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. + enum: + - not_join + - points_activated + - points_earned + type: string accountID: description: The ID of the Talon.One account that owns this program. example: 1 @@ -15208,6 +15992,11 @@ components: `True` if the tier definitions can be updated. example: true type: boolean + canUpdateJoinPolicy: + description: | + Indicates whether the program join policy can be updated. The join policy can be updated when this value is set to `true`. + example: true + type: boolean canUpgradeToAdvancedTiers: default: false description: | @@ -15335,9 +16124,125 @@ components: example: true title: Sandbox type: boolean + tiersExpirationPolicy: + description: | + 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. + enum: + - tier_start_date + - program_join_date + type: string + tiersExpireIn: + description: | + 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. + example: 27W_U + type: string + tiersDowngradePolicy: + description: | + 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. + enum: + - one_down + - balance_based + type: string + programJoinPolicy: + description: | + 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. + enum: + - not_join + - points_activated + - points_earned + type: string + type: object + NewLoyaltyProgram: + description: "" + properties: + title: + description: The display title for the Loyalty Program. + example: Point collection + type: string + description: + description: Description of our Loyalty Program. + example: Customers collect 10 points per 1$ spent + type: string + subscribedApplications: + description: A list containing the IDs of all applications that are subscribed + to this Loyalty Program. + example: + - 132 + - 97 + items: + type: integer + type: array + defaultValidity: + description: | + The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. + The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: + - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. + - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. + example: 2W_U + type: string + defaultPending: + description: | + The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. + The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: + - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. + - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. + example: immediate + type: string + allowSubledger: + description: Indicates if this program supports subledgers inside the program. + example: false + type: boolean + usersPerCardLimit: + description: | + The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. + This property is only used when `cardBased` is `true`. + example: 111 + minimum: 0 + type: integer + sandbox: + description: 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. + example: true + title: Sandbox + type: boolean + tiersExpirationPolicy: + description: | + 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. + enum: + - tier_start_date + - program_join_date + type: string tiersExpireIn: description: | - The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. + 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`. @@ -15366,90 +16271,18 @@ components: - one_down - balance_based type: string - type: object - NewLoyaltyProgram: - description: "" - properties: - title: - description: The display title for the Loyalty Program. - example: Point collection - type: string - description: - description: Description of our Loyalty Program. - example: Customers collect 10 points per 1$ spent - type: string - subscribedApplications: - description: A list containing the IDs of all applications that are subscribed - to this Loyalty Program. - example: - - 132 - - 97 - items: - type: integer - type: array - defaultValidity: - description: | - The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. - The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. - example: 2W_U - type: string - defaultPending: - description: | - The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. - The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. - example: immediate - type: string - allowSubledger: - description: Indicates if this program supports subledgers inside the program. - example: false - type: boolean - usersPerCardLimit: - description: | - The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. - This property is only used when `cardBased` is `true`. - example: 111 - minimum: 0 - type: integer - sandbox: - description: 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. - example: true - title: Sandbox - type: boolean - tiersExpireIn: + programJoinPolicy: description: | - The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. - - 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 + 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. - 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. - example: 27W_U - type: string - tiersDowngradePolicy: - description: | - 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. + **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. enum: - - one_down - - balance_based + - not_join + - points_activated + - points_earned type: string name: description: The internal name for the Loyalty Program. This is an immutable @@ -15536,9 +16369,18 @@ components: example: true title: Sandbox type: boolean + tiersExpirationPolicy: + description: | + 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. + enum: + - tier_start_date + - program_join_date + type: string tiersExpireIn: description: | - The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. + 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`. @@ -15567,6 +16409,19 @@ components: - one_down - balance_based type: string + programJoinPolicy: + description: | + 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. + enum: + - not_join + - points_activated + - points_earned + type: string tiers: description: The tiers in this loyalty program. items: @@ -15577,7 +16432,8 @@ components: description: List of loyalty ledger transactions. properties: hasMore: - description: true means there is more data in the source collection to request. + description: If `true`, it means that there is more data to request in the + source collection. example: true type: boolean data: @@ -16231,6 +17087,7 @@ components: downgradePolicy: one_down name: bronze id: 11 + joinDate: 2000-01-23T04:56:07.000+00:00 subLedgers: key: pendingBalance: 10.0 @@ -16281,6 +17138,7 @@ components: downgradePolicy: one_down name: bronze id: 11 + joinDate: 2000-01-23T04:56:07.000+00:00 subLedgers: key: pendingBalance: 10.0 @@ -16311,6 +17169,13 @@ components: description: Internal name of loyalty program. example: program1 type: string + joinDate: + description: | + The date on which the customer joined the loyalty program in RFC3339. + + **Note**: This is in the loyalty program's time zone. + format: date-time + type: string ledger: $ref: '#/components/schemas/LedgerInfo' subLedgers: @@ -16440,8 +17305,10 @@ components: - name type: object TimePoint: - description: The absolute duration after which the achievement is reset for - a particular customer profile. + description: | + The absolute duration after which the achievement ends and resets for a particular customer profile. + + **Note**: The duration follows the time zone of the Application this achievement belongs to. example: month: 11 dayOfMonth: 23 @@ -16451,7 +17318,7 @@ components: properties: month: description: | - The achievement is reset in this month. + The achievement ends and resets in this month. **Note**: Only applicable if the period is set to `Y`. example: 11 @@ -16460,31 +17327,31 @@ components: type: integer dayOfMonth: description: | - The achievement is reset on this day of the month. + The achievement ends and resets on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. example: 23 - maximum: 28 + maximum: 31 minimum: 1 type: integer dayOfWeek: description: | - The achievement is reset on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. + The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. maximum: 7 minimum: 1 type: integer hour: - description: The achievement is reset at this hour. + description: The achievement ends and resets at this hour. example: 23 type: integer minute: - description: The achievement is reset at this minute. + description: The achievement ends and resets at this minute. example: 59 type: integer second: - description: The achievement is reset at this second. + description: The achievement ends and resets at this second. example: 59 type: integer required: @@ -17053,6 +17920,7 @@ components: example: rulesetId: 11 amount: 10.25 + campaignId: 324 created: 2000-01-23T04:56:07.000+00:00 customerSessionId: 05c2da0d-48fa-4aa1-b629-898f58f1584d type: addition @@ -17077,6 +17945,10 @@ components: description: ID of the loyalty program. example: 324 type: integer + campaignId: + description: ID of the campaign. + example: 324 + type: integer created: description: Date and time the loyalty transaction occurred. format: date-time @@ -17419,7 +18291,7 @@ components: type: string sandbox: description: | - Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). example: false title: Sandbox type: boolean @@ -17435,6 +18307,27 @@ components: type: object CustomerInventory: example: + achievements: + - endDate: 2000-01-23T04:56:07.000+00:00 + campaignId: 3 + name: FreeCoffee10Orders + achievementId: 3 + progress: 10.0 + completionDate: 2000-01-23T04:56:07.000+00:00 + title: 50% off on 50th purchase. + startDate: 2000-01-23T04:56:07.000+00:00 + status: completed + target: 10.0 + - endDate: 2000-01-23T04:56:07.000+00:00 + campaignId: 3 + name: FreeCoffee10Orders + achievementId: 3 + progress: 10.0 + completionDate: 2000-01-23T04:56:07.000+00:00 + title: 50% off on 50th purchase. + startDate: 2000-01-23T04:56:07.000+00:00 + status: completed + target: 10.0 coupons: - recipientIntegrationId: URNGV8294NV implicitlyReserved: false @@ -17660,6 +18553,7 @@ components: downgradePolicy: one_down name: bronze id: 11 + joinDate: 2000-01-23T04:56:07.000+00:00 subLedgers: key: pendingBalance: 10.0 @@ -17719,6 +18613,10 @@ components: items: $ref: '#/components/schemas/Giveaway' type: array + achievements: + items: + $ref: '#/components/schemas/AchievementProgress' + type: array type: object NewCustomerSession: description: "" @@ -17813,6 +18711,8 @@ components: state: open cartItems: - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -17832,6 +18732,8 @@ components: category: shoes height: 0.8008281904610115 - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -17901,7 +18803,7 @@ components: title: Referral code entered in session type: string loyaltyCards: - description: Any loyalty cards used. + description: Identifier of a loyalty card. example: - loyalty-card-1 items: @@ -18242,6 +19144,8 @@ components: applicationId: 322 cartItems: - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -18261,6 +19165,8 @@ components: category: shoes height: 0.8008281904610115 - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -18352,7 +19258,7 @@ components: title: Referral code entered in session type: string loyaltyCards: - description: Any loyalty cards used. + description: Identifier of a loyalty card. example: - loyalty-card-1 items: @@ -18476,6 +19382,8 @@ components: CartItem: example: remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -18538,6 +19446,8 @@ components: example: shoes title: Item category type: string + product: + $ref: '#/components/schemas/Product' weight: description: Weight of item in grams. example: 1130.0 @@ -18935,6 +19845,7 @@ components: downgradePolicy: one_down name: bronze id: 11 + joinDate: 2000-01-23T04:56:07.000+00:00 subLedgers: key: pendingBalance: 10.0 @@ -19118,7 +20029,6 @@ components: - coupons - referrals createdLoyaltyPointsCount: 9.0 - evaluationGroupId: 2 couponSettings: couponPattern: SUMMER-####-#### validCharacters: @@ -19175,6 +20085,7 @@ components: activeRulesetId: 6 reservecouponEffectCount: 9 updatedBy: Jane Doe + frontendState: running created: 2020-06-10T09:05:27.993483Z referralCreationCount: 8 couponRedemptionCount: 163 @@ -19259,7 +20170,6 @@ components: - coupons - referrals createdLoyaltyPointsCount: 9.0 - evaluationGroupId: 2 couponSettings: couponPattern: SUMMER-####-#### validCharacters: @@ -19316,6 +20226,7 @@ components: activeRulesetId: 6 reservecouponEffectCount: 9 updatedBy: Jane Doe + frontendState: running created: 2020-06-10T09:05:27.993483Z referralCreationCount: 8 couponRedemptionCount: 163 @@ -19483,6 +20394,8 @@ components: applicationId: 322 cartItems: - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -19502,6 +20415,8 @@ components: category: shoes height: 0.8008281904610115 - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -19728,7 +20643,6 @@ components: - coupons - referrals createdLoyaltyPointsCount: 9.0 - evaluationGroupId: 2 couponSettings: couponPattern: SUMMER-####-#### validCharacters: @@ -19785,6 +20699,7 @@ components: activeRulesetId: 6 reservecouponEffectCount: 9 updatedBy: Jane Doe + frontendState: running created: 2020-06-10T09:05:27.993483Z referralCreationCount: 8 couponRedemptionCount: 163 @@ -19869,7 +20784,6 @@ components: - coupons - referrals createdLoyaltyPointsCount: 9.0 - evaluationGroupId: 2 couponSettings: couponPattern: SUMMER-####-#### validCharacters: @@ -19926,6 +20840,7 @@ components: activeRulesetId: 6 reservecouponEffectCount: 9 updatedBy: Jane Doe + frontendState: running created: 2020-06-10T09:05:27.993483Z referralCreationCount: 8 couponRedemptionCount: 163 @@ -20120,6 +21035,7 @@ components: downgradePolicy: one_down name: bronze id: 11 + joinDate: 2000-01-23T04:56:07.000+00:00 subLedgers: key: pendingBalance: 10.0 @@ -20398,7 +21314,6 @@ components: - coupons - referrals createdLoyaltyPointsCount: 9.0 - evaluationGroupId: 2 couponSettings: couponPattern: SUMMER-####-#### validCharacters: @@ -20455,6 +21370,7 @@ components: activeRulesetId: 6 reservecouponEffectCount: 9 updatedBy: Jane Doe + frontendState: running created: 2020-06-10T09:05:27.993483Z referralCreationCount: 8 couponRedemptionCount: 163 @@ -20539,7 +21455,6 @@ components: - coupons - referrals createdLoyaltyPointsCount: 9.0 - evaluationGroupId: 2 couponSettings: couponPattern: SUMMER-####-#### validCharacters: @@ -20596,6 +21511,7 @@ components: activeRulesetId: 6 reservecouponEffectCount: 9 updatedBy: Jane Doe + frontendState: running created: 2020-06-10T09:05:27.993483Z referralCreationCount: 8 couponRedemptionCount: 163 @@ -20790,6 +21706,7 @@ components: downgradePolicy: one_down name: bronze id: 11 + joinDate: 2000-01-23T04:56:07.000+00:00 subLedgers: key: pendingBalance: 10.0 @@ -21146,6 +22063,8 @@ components: applicationId: 322 cartItems: - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -21165,6 +22084,8 @@ components: category: shoes height: 0.8008281904610115 - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -21288,7 +22209,7 @@ components: type: string sandbox: description: | - Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). example: false title: Sandbox type: boolean @@ -21380,7 +22301,7 @@ components: type: string sandbox: description: | - Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). example: false title: Sandbox type: boolean @@ -21477,6 +22398,8 @@ components: applicationId: 322 cartItems: - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -21496,6 +22419,8 @@ components: category: shoes height: 0.8008281904610115 - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -22053,7 +22978,7 @@ components: description: "" properties: email: - description: The email address associated with your account. + description: The email address associated with the user profile. example: john.doe@example.com format: email type: string @@ -22073,7 +22998,7 @@ components: description: "" properties: email: - description: The email address associated with your account. + description: The email address associated with the user profile. example: john.doe@example.com format: email type: string @@ -22094,26 +23019,45 @@ components: - password type: object UpdateUser: + example: + applicationNotificationSubscriptions: '{}' + roles: + - 1 + - 3 + name: John Doe + state: deactivated + isAdmin: false + policy: "" properties: name: - description: The user name. + description: Name of the user. example: John Doe type: string - policy: - description: The `Access Control List` json defining the role of the user. - This represents the access control on the user level. - example: "" - type: string state: - description: New state ("deactivated" or "active") for the user. Only usable - by admins for the user. + description: | + The state of the user. + - `deactivated`: The user has been deactivated. + - `active`: The user is active. + + **Note**: Only `admin` users can update the state of another user. enum: - deactivated - active example: deactivated type: string + isAdmin: + description: Indicates whether the user is an `admin`. + example: false + type: boolean + policy: + description: Indicates the access level of the user. + example: "" + type: string roles: - description: List of roles to assign to the user. + description: | + A list of the IDs of the roles assigned to the user. + + **Note**: Use the [List roles](https://docs.talon.one/management-api#tag/Roles/operation/getAllRoles) endpoint to find the ID of a role. example: - 1 - 3 @@ -22121,12 +23065,9 @@ components: type: integer type: array applicationNotificationSubscriptions: + description: Application notifications that the user is subscribed to. properties: {} type: object - isAdmin: - description: An indication of whether the user has admin permissions. - example: false - type: boolean type: object ChangeProfilePassword: properties: @@ -22143,13 +23084,18 @@ components: - password type: object NewInviteEmail: + example: + email: john.doe@example.com + token: Gy9b8w1irmQtEPo5RmbMmSPheL5h4 properties: email: + description: Email address of the user. + example: john.doe@example.com format: email - minLength: 1 type: string token: - minLength: 1 + description: Invitation token of the user. + example: Gy9b8w1irmQtEPo5RmbMmSPheL5h4 type: string required: - email @@ -22228,6 +23174,12 @@ components: items: $ref: '#/components/schemas/LoyaltyProgram' type: array + achievements: + description: The achievements, linked to the campaigns, belonging to the + application. + items: + $ref: '#/components/schemas/Achievement' + type: array attributes: description: The attributes that the application is subscribed to. items: @@ -22302,7 +23254,6 @@ components: also be shown in the rule editor. type: string required: - - description - type type: object TemplateArgDef: @@ -22340,7 +23291,6 @@ components: (`picklist` property) type: boolean required: - - description - title - type - ui @@ -22457,6 +23407,7 @@ components: - loyalty - giveaways - strikethrough + - achievements type: string type: array couponSettings: @@ -22561,6 +23512,7 @@ components: - loyalty - giveaways - strikethrough + - achievements type: string type: array couponSettings: @@ -22843,6 +23795,7 @@ components: - loyalty - giveaways - strikethrough + - achievements type: string type: array couponSettings: @@ -23226,7 +24179,6 @@ components: - coupons - referrals createdLoyaltyPointsCount: 9.0 - evaluationGroupId: 2 couponSettings: couponPattern: SUMMER-####-#### validCharacters: @@ -23283,6 +24235,7 @@ components: activeRulesetId: 6 reservecouponEffectCount: 9 updatedBy: Jane Doe + frontendState: running created: 2020-06-10T09:05:27.993483Z referralCreationCount: 8 couponRedemptionCount: 163 @@ -24357,7 +25310,7 @@ components: type: boolean description: description: A description of the audience. - example: Travel audience 18-25 + example: Travel audience 18-27 type: string required: - name @@ -24369,7 +25322,7 @@ components: name: Travel audience sandbox: true integration: mparticle - description: Travel audience 18-25 + description: Travel audience 18-27 integrationId: 382370BKDB946 createdIn3rdParty: false properties: @@ -24384,7 +25337,7 @@ components: type: boolean description: description: A description of the audience. - example: Travel audience 18-25 + example: Travel audience 18-27 type: string integration: description: | @@ -24437,7 +25390,7 @@ components: name: Travel audience sandbox: true integration: mparticle - description: Travel audience 18-25 + description: Travel audience 18-27 integrationId: 382370BKDB946 id: 6 createdIn3rdParty: false @@ -24466,7 +25419,7 @@ components: type: boolean description: description: A description of the audience. - example: Travel audience 18-25 + example: Travel audience 18-27 type: string integration: description: | @@ -24502,14 +25455,17 @@ components: - name type: object AudienceAnalytics: - description: The audiences and their members count. + description: The audiences and their member count. + example: + membersCount: 1234 + audienceId: 1 properties: audienceId: description: The ID of the audience. example: 1 type: integer membersCount: - description: The count of members under a single audience. + description: The member count of the audience. example: 1234 type: integer type: object @@ -24707,6 +25663,7 @@ components: - Referral - Session - Store + - Achievements type: string name: description: | @@ -24932,7 +25889,7 @@ components: permissions: $ref: '#/components/schemas/RoleV2Permissions' members: - description: A list of user identifiers the role is assigned to. + description: A list of user IDs the role is assigned to. example: - 10 - 12 @@ -24947,6 +25904,53 @@ components: $ref: '#/components/schemas/RoleV2Base' RoleV2: description: "" + example: + accountId: 3886 + created: 2020-06-10T09:05:27.993483Z + permissions: + permissionSets: + - name: Application permission set + logicalOperations: + - getApplicationOperations + - editApplicationOperations + - name: Campaign manager permission set + logicalOperations: + - getCampaignOperations + - createCampaignOperations + - updateCampaignOperations + - name: Campaign read-only permission set + logicalOperations: + - getCampaignOperations + - name: Loyalty program read-only permission set + logicalOperations: + - getLoyaltyProgramOperations + - name: Campaign access group manager permission set + logicalOperations: + - getCampaignAccessGroupOperations + - updateCampaignAccessGroupOperations + - deleteCampaignAccessGroupOperations + roles: + campaignAccessGroups: + "5": Campaign access group manager permission set + loyaltyPrograms: + "10": Loyalty program manager permission set + applications: + "1": + application: Application permission set + "3": + campaign: Campaign manager permission set + "4": + draftCampaign: Campaign read-only permission set + "5": + tools: Tools permission set + members: + - 10 + - 12 + name: Campaign and campaign access group manager + modified: 2021-09-12T10:12:42Z + description: Allows you to create and edit campaigns for specific Applications, + delete specific campaign access groups, and view loyalty programs. + id: 6 properties: id: description: Internal ID of this entity. @@ -24978,7 +25982,7 @@ components: permissions: $ref: '#/components/schemas/RoleV2Permissions' members: - description: A list of user identifiers the role is assigned to. + description: A list of user IDs the role is assigned to. example: - 10 - 12 @@ -24992,6 +25996,49 @@ components: - modified type: object RoleV2Base: + example: + permissions: + permissionSets: + - name: Application permission set + logicalOperations: + - getApplicationOperations + - editApplicationOperations + - name: Campaign manager permission set + logicalOperations: + - getCampaignOperations + - createCampaignOperations + - updateCampaignOperations + - name: Campaign read-only permission set + logicalOperations: + - getCampaignOperations + - name: Loyalty program read-only permission set + logicalOperations: + - getLoyaltyProgramOperations + - name: Campaign access group manager permission set + logicalOperations: + - getCampaignAccessGroupOperations + - updateCampaignAccessGroupOperations + - deleteCampaignAccessGroupOperations + roles: + campaignAccessGroups: + "5": Campaign access group manager permission set + loyaltyPrograms: + "10": Loyalty program manager permission set + applications: + "1": + application: Application permission set + "3": + campaign: Campaign manager permission set + "4": + draftCampaign: Campaign read-only permission set + "5": + tools: Tools permission set + members: + - 10 + - 12 + name: Campaign and campaign access group manager + description: Allows you to create and edit campaigns for specific Applications, + delete specific campaign access groups, and view loyalty programs. properties: name: description: Name of the role. @@ -25005,7 +26052,7 @@ components: permissions: $ref: '#/components/schemas/RoleV2Permissions' members: - description: A list of user identifiers the role is assigned to. + description: A list of user IDs the role is assigned to. example: - 10 - 12 @@ -25014,10 +26061,45 @@ components: type: array type: object RoleV2Permissions: + example: + permissionSets: + - name: Application permission set + logicalOperations: + - getApplicationOperations + - editApplicationOperations + - name: Campaign manager permission set + logicalOperations: + - getCampaignOperations + - createCampaignOperations + - updateCampaignOperations + - name: Campaign read-only permission set + logicalOperations: + - getCampaignOperations + - name: Loyalty program read-only permission set + logicalOperations: + - getLoyaltyProgramOperations + - name: Campaign access group manager permission set + logicalOperations: + - getCampaignAccessGroupOperations + - updateCampaignAccessGroupOperations + - deleteCampaignAccessGroupOperations + roles: + campaignAccessGroups: + "5": Campaign access group manager permission set + loyaltyPrograms: + "10": Loyalty program manager permission set + applications: + "1": + application: Application permission set + "3": + campaign: Campaign manager permission set + "4": + draftCampaign: Campaign read-only permission set + "5": + tools: Tools permission set properties: permissionSets: - description: List of grouped logical operations to use as a reference in - the roles section. Each group of logical operations has a name. + description: List of grouped logical operations referenced by roles. example: - name: Application permission set logicalOperations: @@ -25041,12 +26123,26 @@ components: - deleteCampaignAccessGroupOperations items: $ref: '#/components/schemas/RoleV2PermissionSet' - maxItems: 100 + maxItems: 500 type: array roles: $ref: '#/components/schemas/RoleV2RolesGroup' type: object RoleV2RolesGroup: + example: + campaignAccessGroups: + "5": Campaign access group manager permission set + loyaltyPrograms: + "10": Loyalty program manager permission set + applications: + "1": + application: Application permission set + "3": + campaign: Campaign manager permission set + "4": + draftCampaign: Campaign read-only permission set + "5": + tools: Tools permission set properties: applications: additionalProperties: @@ -25378,11 +26474,11 @@ components: description: "" properties: title: - description: Title for API Key. + description: Title of the API key. example: My generated key type: string expires: - description: The date the API key expired. + description: The date the API key expires. example: 2023-08-24T14:00:00Z format: date-time type: string @@ -25403,6 +26499,22 @@ components: - emarsys example: none type: string + type: + description: | + The API key type. Can be empty or `staging`. + + Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. + + When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + enum: + - staging + example: staging + type: string + timeOffset: + description: | + A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + example: 100000 + type: integer id: description: ID of the API Key. example: 34 @@ -25437,11 +26549,11 @@ components: description: "" properties: title: - description: Title for API Key. + description: Title of the API key. example: My generated key type: string expires: - description: The date the API key expired. + description: The date the API key expires. example: 2023-08-24T14:00:00Z format: date-time type: string @@ -25462,6 +26574,22 @@ components: - emarsys example: none type: string + type: + description: | + The API key type. Can be empty or `staging`. + + Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. + + When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + enum: + - staging + example: staging + type: string + timeOffset: + description: | + A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + example: 100000 + type: integer id: description: ID of the API Key. example: 34 @@ -25500,11 +26628,11 @@ components: CreateApplicationAPIKey: properties: title: - description: Title for API Key. + description: Title of the API key. example: My generated key type: string expires: - description: The date the API key expired. + description: The date the API key expires. example: 2023-08-24T14:00:00Z format: date-time type: string @@ -25525,10 +26653,36 @@ components: - emarsys example: none type: string + type: + description: | + The API key type. Can be empty or `staging`. + + Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. + + When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + enum: + - staging + example: staging + type: string + timeOffset: + description: | + A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + example: 100000 + type: integer required: - expires - title type: object + UpdateApplicationAPIKey: + properties: + timeOffset: + description: | + A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + example: 100000 + type: integer + required: + - timeOffset + type: object CreateManagementKey: properties: name: @@ -25699,10 +26853,40 @@ components: - id - name type: object + NotificationListItem: + properties: + notificationId: + description: The ID of the notification. + example: 1 + type: integer + notificationName: + description: The name of the notification. + example: My campaign notification + type: string + entityId: + description: | + The ID of the entity to which this notification belongs. + For example, in case of a loyalty notification, this value is the ID of the loyalty program. + example: 1 + type: integer + enabled: + description: Indicates whether the notification is activated. + example: true + type: boolean + required: + - enabled + - entityId + - notificationId + - notificationName + type: object Notifications: items: $ref: '#/components/schemas/Notification' type: array + NotificationListItems: + items: + $ref: '#/components/schemas/NotificationListItem' + type: array SamlConnection: description: "" properties: @@ -25804,6 +26988,20 @@ components: - signOnURL - x509certificate type: object + SamlConnectionInternal: + properties: + name: + description: ID of the SAML service. + minLength: 1 + type: string + metadataDocument: + description: Identity Provider metadata XML document. + minLength: 1 + type: string + required: + - metadataDocument + - name + type: object SamlConnectionMetadata: properties: name: @@ -25875,7 +27073,7 @@ components: minLength: 1 type: string loginURL: - description: Single Sign-On URL. + description: The single sign-on URL. minLength: 1 type: string required: @@ -26429,11 +27627,10 @@ components: ChangeLoyaltyTierLevelEffectProps: description: | The properties specific to the "changeLoyaltyTierLevel" effect. - This is triggered whenever the user's loyalty tier is upgraded or downgraded - due to a validated rule that contained an "add loyalty points" effect. + This is triggered whenever the user's loyalty tier is upgraded due to a validated rule that contained an "addLoyaltyPoints" effect. properties: ruleTitle: - description: The title of the rule that triggered the tier upgrade or downgrade. + description: The title of the rule that triggered the tier upgrade. type: string programId: description: The ID of the loyalty program where these points were added. @@ -26443,11 +27640,10 @@ components: points were added. type: string previousTierName: - description: The name of the tier from which the user was upgraded or downgraded. + description: The name of the tier from which the user was upgraded. type: string newTierName: - description: The name of the tier to which the user has been upgraded or - downgraded. + description: The name of the tier to which the user has been upgraded. type: string expiryDate: description: The expiration date of the new tier. @@ -26788,6 +27984,45 @@ components: example: 150 type: integer type: object + IncreaseAchievementProgressEffectProps: + description: The properties specific to the "increaseAchievementProgress" effect. + This gets triggered whenever a validated rule contained an "increase customer + progress" effect. + properties: + achievementId: + description: The internal ID of the achievement. + example: 10 + type: integer + achievementName: + description: The name of the achievement. + example: FreeCoffee10Orders + type: string + progressTrackerId: + description: The internal ID of the achievement progress tracker. + type: integer + delta: + description: The value by which the customer's current progress in the achievement + is increased. + type: number + value: + description: The current progress of the customer in the achievement. + type: number + target: + description: The required number of actions or the transactional milestone + to complete the achievement. + type: number + isJustCompleted: + description: Indicates if the customer has completed the achievement in + the current session. + type: boolean + required: + - achievementId + - achievementName + - delta + - isJustCompleted + - target + - value + type: object ErrorEffectProps: description: Whenever an error occurred during evaluation, we return an error effect. This should never happen for rules created in the rule builder. @@ -26864,6 +28099,8 @@ components: state: open cartItems: - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -26883,6 +28120,8 @@ components: category: shoes height: 0.8008281904610115 - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -27199,7 +28438,7 @@ components: action: description: | Defines the action to perform: - - `add`: Adds the customer profile to the audience. + - `add`: Adds the customer profile to the audience. If the customer profile does not exist, it will be created. - `delete`: Removes the customer profile from the audience. enum: - add @@ -28503,7 +29742,7 @@ components: description: A notification regarding a campaign whose state changed. properties: campaign: - $ref: '#/components/schemas/CampaignForNotification' + $ref: '#/components/schemas/Campaign' oldState: description: | The campaign's old state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'draft', 'archived'] @@ -28525,7 +29764,7 @@ components: description: A notification regarding a campaign whose ruleset was changed. properties: campaign: - $ref: '#/components/schemas/CampaignStateNotification' + $ref: '#/components/schemas/Campaign' oldRuleset: $ref: '#/components/schemas/Ruleset' ruleset: @@ -28537,9 +29776,9 @@ components: description: A notification regarding a campaign which was edited. properties: campaign: - $ref: '#/components/schemas/CampaignStateNotification' + $ref: '#/components/schemas/Campaign' oldCampaign: - $ref: '#/components/schemas/CampaignStateNotification' + $ref: '#/components/schemas/Campaign' ruleset: $ref: '#/components/schemas/Ruleset' required: @@ -28550,7 +29789,7 @@ components: description: A notification regarding a campaign that was created. properties: campaign: - $ref: '#/components/schemas/CampaignStateNotification' + $ref: '#/components/schemas/Campaign' ruleset: $ref: '#/components/schemas/Ruleset' evaluationPosition: @@ -28585,7 +29824,7 @@ components: description: A notification regarding a campaign that was deleted. properties: campaign: - $ref: '#/components/schemas/CampaignStateNotification' + $ref: '#/components/schemas/Campaign' deletedAt: description: Time when the campaign was deleted. example: 2022-11-10T23:00:00Z @@ -28595,289 +29834,6 @@ components: - campaign - deletedAt type: object - CampaignStateNotification: - description: Campaign data and its state changes. - properties: - id: - description: Unique ID for this entity. - example: 4 - type: integer - created: - description: The exact moment this entity was created. - example: 2020-06-10T09:05:27.993483Z - format: date-time - type: string - applicationId: - description: The ID of the application that owns this entity. - example: 322 - type: integer - userId: - description: The ID of the user associated with this entity. - example: 388 - type: integer - name: - description: A user-facing name for this campaign. - example: Summer promotions - minLength: 1 - title: Campaign Name - type: string - description: - description: A detailed description of the campaign. - example: Campaign for all summer 2021 promotions - title: Campaign Description - type: string - startTime: - description: Timestamp when the campaign will become active. - example: 2021-07-20T22:00:00Z - format: date-time - type: string - endTime: - description: Timestamp when the campaign will become inactive. - example: 2021-09-22T22:00:00Z - format: date-time - type: string - attributes: - description: Arbitrary properties associated with this campaign. - properties: {} - type: object - state: - default: enabled - description: | - A disabled or archived campaign is not evaluated for rules or coupons. - enum: - - enabled - - disabled - - archived - example: enabled - type: string - activeRulesetId: - description: | - [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this - campaign applies on customer session evaluation. - example: 6 - type: integer - tags: - description: A list of tags for the campaign. - example: - - summer - items: - maxLength: 50 - minLength: 1 - type: string - maxItems: 50 - type: array - features: - description: The features enabled in this campaign. - example: - - coupons - - referrals - items: - enum: - - coupons - - referrals - - loyalty - - giveaways - - strikethrough - type: string - type: array - couponSettings: - $ref: '#/components/schemas/CodeGeneratorSettings' - referralSettings: - $ref: '#/components/schemas/CodeGeneratorSettings' - limits: - description: | - The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. - items: - $ref: '#/components/schemas/LimitConfig' - type: array - campaignGroups: - description: | - The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. - example: - - 1 - - 3 - items: - type: integer - type: array - evaluationGroupId: - description: The ID of the campaign evaluation group the campaign belongs - to. - example: 2 - title: Evaluation Group ID - type: integer - type: - default: advanced - description: | - The campaign type. Possible type values: - - `cartItem`: Type of campaign that can apply effects only to cart items. - - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. - enum: - - cartItem - - advanced - example: advanced - title: Type - type: string - linkedStoreIds: - description: | - A list of store IDs that you want to link to the campaign. - - **Note:** Campaigns with linked store IDs will only be evaluated when there is a - [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) - that references a linked store. - example: - - 1 - - 2 - - 3 - items: - type: integer - type: array - budgets: - description: | - A list of all the budgets that are defined by this campaign and their usage. - - **Note:** Budgets that are not defined do not appear in this list and their usage is - not counted until they are defined. - items: - $ref: '#/components/schemas/CampaignBudget' - type: array - couponRedemptionCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Number of coupons redeemed in the campaign. - example: 163 - type: integer - referralRedemptionCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Number of referral codes redeemed in the campaign. - example: 3 - type: integer - discountCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total amount of discounts redeemed in the campaign. - example: 288.0 - type: number - discountEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of times discounts were redeemed in this campaign. - example: 343 - type: integer - couponCreationCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of coupons created by rules in this campaign. - example: 16 - type: integer - customEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of custom effects triggered by rules in this campaign. - example: 0 - type: integer - referralCreationCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of referrals created by rules in this campaign. - example: 8 - type: integer - addFreeItemEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. - example: 0 - type: integer - awardedGiveawaysCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of giveaways awarded by rules in this campaign. - example: 9 - type: integer - createdLoyaltyPointsCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of loyalty points created by rules in this campaign. - example: 9.0 - type: number - createdLoyaltyPointsEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of loyalty point creation effects triggered by rules in this campaign. - example: 2 - type: integer - redeemedLoyaltyPointsCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of loyalty points redeemed by rules in this campaign. - example: 8.0 - type: number - redeemedLoyaltyPointsEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of loyalty point redemption effects triggered by rules in this campaign. - example: 9 - type: integer - callApiEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of webhooks triggered by rules in this campaign. - example: 0 - type: integer - reservecouponEffectCount: - description: | - This property is **deprecated**. The count should be available under *budgets* property. - Total number of reserve coupon effects triggered by rules in this campaign. - example: 9 - type: integer - lastActivity: - description: Timestamp of the most recent event received by this campaign. - example: 2022-11-10T23:00:00Z - format: date-time - type: string - updated: - description: | - Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign - are **not** registered by this property, such as collection or coupon updates. - format: date-time - type: string - createdBy: - description: Name of the user who created this campaign if available. - example: John Doe - type: string - updatedBy: - description: Name of the user who last updated this campaign if available. - example: Jane Doe - type: string - templateId: - description: The ID of the Campaign Template this Campaign was created from. - example: 3 - type: integer - frontendState: - description: A campaign state described exactly as in the Campaign Manager. - enum: - - expired - - scheduled - - running - - draft - - disabled - example: running - type: string - required: - - applicationId - - budgets - - created - - description - - features - - frontendState - - id - - limits - - name - - state - - tags - - type - - userId - type: object CampaignEvaluationTreeChangedNotification: description: Notification about an Application whose campaign evaluation tree changed. @@ -29079,7 +30035,9 @@ components: description: "" example: webhook: - headers: 'content-type: application/json' + headers: + - 'content-type: application/json' + - 'content-type: application/json' url: www.my-company.com/my-endpoint-name enabled: true enabled: true @@ -29110,6 +30068,28 @@ components: type: object BaseNotificationPolicy: type: object + ExpiringCouponsNotificationPolicy: + properties: + name: + description: Notification name. + example: Notification to Google + minLength: 1 + type: string + triggers: + items: + $ref: '#/components/schemas/ExpiringCouponsNotificationTrigger' + maxItems: 3 + minItems: 1 + type: array + batchingEnabled: + default: true + description: Indicates whether batching is activated. + example: true + type: boolean + required: + - name + - triggers + type: object ExpiringPointsNotificationPolicy: properties: name: @@ -29132,6 +30112,28 @@ components: - name - triggers type: object + CardExpiringPointsNotificationPolicy: + properties: + name: + description: Notification name. + example: Notification to Google + minLength: 1 + type: string + triggers: + items: + $ref: '#/components/schemas/CardExpiringPointsNotificationTrigger' + maxItems: 3 + minItems: 1 + type: array + batchingEnabled: + default: true + description: Indicates whether batching is activated. + example: true + type: boolean + required: + - name + - triggers + type: object AddedDeductedPointsNotificationPolicy: properties: name: @@ -29172,6 +30174,11 @@ components: maxItems: 4 minItems: 1 type: array + batchingEnabled: + default: true + description: Indicates whether batching is activated. + example: true + type: boolean required: - name - scopes @@ -29193,6 +30200,11 @@ components: example: Christmas Sale minLength: 1 type: string + batchingEnabled: + default: true + description: Indicates whether batching is activated. + example: false + type: boolean required: - name type: object @@ -29203,6 +30215,11 @@ components: example: Christmas Sale minLength: 1 type: string + batchingEnabled: + default: true + description: Indicates whether batching is activated. + example: false + type: boolean required: - name type: object @@ -29213,6 +30230,11 @@ components: example: Christmas Sale minLength: 1 type: string + batchingEnabled: + default: true + description: Indicates whether batching is activated. + example: false + type: boolean required: - name type: object @@ -29233,6 +30255,11 @@ components: example: Notification to Google minLength: 1 type: string + batchingEnabled: + default: true + description: Indicates whether batching is activated. + example: false + type: boolean triggers: items: $ref: '#/components/schemas/TierWillDowngradeNotificationTrigger' @@ -29243,6 +30270,23 @@ components: - name - triggers type: object + ExpiringCouponsNotificationTrigger: + properties: + amount: + description: The amount of period. + minimum: 0 + type: integer + period: + description: Notification period indicated by a letter; "w" means week, + "d" means day. + enum: + - w + - d + type: string + required: + - amount + - period + type: object ExpiringPointsNotificationTrigger: properties: amount: @@ -29260,6 +30304,23 @@ components: - amount - period type: object + CardExpiringPointsNotificationTrigger: + properties: + amount: + description: The amount of period. + minimum: 1 + type: integer + period: + description: Notification period indicated by a letter; "w" means week, + "d" means day. + enum: + - w + - d + type: string + required: + - amount + - period + type: object TierWillDowngradeNotificationTrigger: properties: amount: @@ -29288,7 +30349,9 @@ components: description: "" example: webhook: - headers: 'content-type: application/json' + headers: + - 'content-type: application/json' + - 'content-type: application/json' created: 2020-06-10T09:05:27.993483Z modified: 2021-09-12T10:12:42Z id: 6 @@ -29318,7 +30381,9 @@ components: - campaign - loyalty_added_deducted_points - coupon + - expiring_coupons - expiring_points + - card_expiring_points - pending_to_active_points - strikethrough_pricing - tier_downgrade @@ -29335,7 +30400,9 @@ components: BaseNotificationWebhook: description: "" example: - headers: 'content-type: application/json' + headers: + - 'content-type: application/json' + - 'content-type: application/json' created: 2020-06-10T09:05:27.993483Z modified: 2021-09-12T10:12:42Z id: 6 @@ -29362,8 +30429,8 @@ components: type: string headers: description: List of API HTTP headers for the given webhook-based notification. - example: 'content-type: application/json' items: + example: 'content-type: application/json' pattern: ^[^:,]+:[^,]*$ type: string type: array @@ -29381,7 +30448,9 @@ components: type: object NewNotificationWebhook: example: - headers: 'content-type: application/json' + headers: + - 'content-type: application/json' + - 'content-type: application/json' url: www.my-company.com/my-endpoint-name enabled: true properties: @@ -29391,8 +30460,8 @@ components: type: string headers: description: List of API HTTP headers for the given webhook-based notification. - example: 'content-type: application/json' items: + example: 'content-type: application/json' pattern: ^[^:,]+:[^,]*$ type: string type: array @@ -29423,28 +30492,31 @@ components: - campaign - loyalty_added_deducted_points - coupon + - expiring_coupons - expiring_points - pending_to_active_points - strikethrough_pricing - tier_downgrade - tier_upgrade - tier_will_downgrade + - card_expiring_points example: loyalty_added_deducted_points type: string queryParams: + additionalProperties: + type: string description: Array of query parameters. example: - - 'param1: value1' - items: - type: string - type: array + param1: value1 + param2: value2 + type: object headers: - description: List of API HTTP headers for the given webhook-based notification. - example: 'content-type: application/json' - items: - pattern: ^[^:,]+:[^,]*$ + additionalProperties: type: string - type: array + description: List of API HTTP headers for the given webhook-based notification. + example: + content-type: application/json + type: object verb: description: API method for this notification. enum: @@ -29484,9 +30556,9 @@ components: } type: string httpStatus: - description: The returned http status code and status message. - example: 200 OK - type: string + description: The returned http status code. + example: 200 + type: integer required: - httpResponse - httpStatus @@ -30252,7 +31324,8 @@ components: - value type: object AddItemCatalogAction: - description: The specific properties of the "ADD" catalog sync action. + description: | + The specific properties of the "ADD" catalog sync action. properties: sku: description: The unique SKU of the item to add. @@ -30269,17 +31342,28 @@ components: color: blue properties: {} type: object + product: + $ref: '#/components/schemas/Product' replaceIfExists: default: false - description: Indicates whether to replace the attributes of the item if - the same SKU exists. + description: | + Indicates whether to replace the attributes of the item if the same SKU exists. + + **Note**: When set to `true`: + - If you do not provide a new `price` value, the existing `price` value is retained. + - If you do not provide a new `product` value, the `product` value is set to `null`. example: false type: boolean required: - sku type: object PatchItemCatalogAction: - description: The specific properties of the "PATCH" catalog sync action. + description: | + The specific properties of the "PATCH" catalog sync action. + + **Note:** + - If you do not provide a new `price` value, the existing `price` value is retained. + - If you do not provide a new `product` value, the `product` value is set to `null`. properties: sku: description: The unique SKU of the item to patch. @@ -30292,6 +31376,8 @@ components: description: The attributes of the item to patch. properties: {} type: object + product: + $ref: '#/components/schemas/Product' createIfNotExists: default: false description: Indicates whether to create an item if the SKU does not exist. @@ -30343,6 +31429,8 @@ components: CatalogItem: description: "" example: + product: + name: sample_product catalogid: 6 created: 2020-06-10T09:05:27.993483Z price: 99.99 @@ -30388,6 +31476,8 @@ components: items: $ref: '#/components/schemas/ItemAttribute' type: array + product: + $ref: '#/components/schemas/Product' required: - catalogid - created @@ -30395,6 +31485,20 @@ components: - sku - version type: object + Product: + description: The specific properties of the product this item belongs to, if + available. + example: + name: sample_product + properties: + name: + description: The name of the product. + example: sample_product + maxLength: 50 + type: string + required: + - name + type: object ItemAttribute: description: "" example: @@ -30495,19 +31599,6 @@ components: - datetime - total type: object - AccountDashboardStatisticApiCalls: - properties: - total: - description: Total number of API calls received. - type: number - datetime: - description: Values aggregated for the specified date. - format: date-time - type: string - required: - - datetime - - total - type: object AccountDashboardStatisticCampaigns: properties: live: @@ -30546,11 +31637,6 @@ components: items: $ref: '#/components/schemas/AccountDashboardStatisticReferrals' type: array - apiCalls: - description: Aggregated statistic for the number of account API calls. - items: - $ref: '#/components/schemas/AccountDashboardStatisticApiCalls' - type: array campaigns: $ref: '#/components/schemas/AccountDashboardStatisticCampaigns' required: @@ -30607,8 +31693,10 @@ components: properties: {} type: object integrationId: - description: The integration ID of the store. You choose this ID when you - create a store. + description: | + The integration ID of the store. You choose this ID when you create a store. + + **Note**: You cannot edit the `integrationId` after the store has been created. example: STORE-001 format: string maxLength: 1000 @@ -30664,8 +31752,10 @@ components: properties: {} type: object integrationId: - description: The integration ID of the store. You choose this ID when you - create a store. + description: | + The integration ID of the store. You choose this ID when you create a store. + + **Note**: You cannot edit the `integrationId` after the store has been created. example: STORE-001 format: string maxLength: 1000 @@ -30723,6 +31813,18 @@ components: - operation type: object CreateAchievement: + example: + period: 1Y + name: Order50Discount + periodEndOverride: + month: 11 + dayOfMonth: 23 + hour: 23 + minute: 59 + second: 59 + description: 50% off for every 50th purchase in a year. + title: 50% off on 50th purchase. + target: 50.0 properties: name: description: | @@ -30744,13 +31846,13 @@ components: format: string type: string target: - description: The maximum number of times a specific action must be completed - by a customer profile over a defined period of time. + description: The required number of actions or the transactional milestone + to complete the achievement. example: 50.0 type: number period: description: | - The relative duration after which the achievement is reset for a particular customer profile. + The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. @@ -30788,6 +31890,10 @@ components: type: object AchievementAdditionalProperties: properties: + campaignId: + description: ID of the campaign, to which the achievement belongs to + example: 1 + type: integer userId: description: ID of the user that created this achievement. example: 1234 @@ -30799,12 +31905,34 @@ components: **Note**: This is not available if the user has been deleted. example: John Doe type: string + hasProgress: + description: Indicates if a customer has made progress in the achievement. + type: boolean required: + - campaignId - createdBy - userId type: object Achievement: description: "" + example: + period: 1Y + createdBy: John Doe + created: 2020-06-10T09:05:27.993483Z + campaignId: 1 + name: Order50Discount + periodEndOverride: + month: 11 + dayOfMonth: 23 + hour: 23 + minute: 59 + second: 59 + description: 50% off for every 50th purchase in a year. + id: 6 + title: 50% off on 50th purchase. + userId: 1234 + hasProgress: true + target: 50.0 properties: id: description: Internal ID of this entity. @@ -30835,13 +31963,13 @@ components: format: string type: string target: - description: The maximum number of times a specific action must be completed - by a customer profile over a defined period of time. + description: The required number of actions or the transactional milestone + to complete the achievement. example: 50.0 type: number period: description: | - The relative duration after which the achievement is reset for a particular customer profile. + The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. @@ -30870,6 +31998,10 @@ components: type: string periodEndOverride: $ref: '#/components/schemas/TimePoint' + campaignId: + description: ID of the campaign, to which the achievement belongs to + example: 1 + type: integer userId: description: ID of the user that created this achievement. example: 1234 @@ -30881,7 +32013,11 @@ components: **Note**: This is not available if the user has been deleted. example: John Doe type: string + hasProgress: + description: Indicates if a customer has made progress in the achievement. + type: boolean required: + - campaignId - created - createdBy - description @@ -30893,7 +32029,27 @@ components: - userId type: object UpdateAchievement: + example: + period: 1Y + name: Order50Discount + periodEndOverride: + month: 11 + dayOfMonth: 23 + hour: 23 + minute: 59 + second: 59 + description: 50% off for every 50th purchase in a year. + title: 50% off on 50th purchase. + target: 50.0 properties: + name: + description: | + The internal name of the achievement used in API requests. + example: Order50Discount + maxLength: 1000 + minLength: 1 + pattern: ^[a-zA-Z]\w+$ + type: string title: description: The display name for the achievement in the Campaign Manager. example: 50% off on 50th purchase. @@ -30903,6 +32059,191 @@ components: example: 50% off for every 50th purchase in a year. format: string type: string + target: + description: The required number of actions or the transactional milestone + to complete the achievement. + example: 50.0 + type: number + period: + description: | + The relative duration after which the achievement ends and resets for a particular customer profile. + example: 1Y + type: string + periodEndOverride: + $ref: '#/components/schemas/TimePoint' + type: object + AchievementProgress: + example: + endDate: 2000-01-23T04:56:07.000+00:00 + campaignId: 3 + name: FreeCoffee10Orders + achievementId: 3 + progress: 10.0 + completionDate: 2000-01-23T04:56:07.000+00:00 + title: 50% off on 50th purchase. + startDate: 2000-01-23T04:56:07.000+00:00 + status: completed + target: 10.0 + properties: + achievementId: + description: The internal ID of the achievement. + example: 3 + type: integer + name: + description: | + The internal name of the achievement used in API requests. + example: FreeCoffee10Orders + maxLength: 1000 + minLength: 1 + pattern: ^[a-zA-Z]\w+$ + type: string + title: + description: The display name of the achievement in the Campaign Manager. + example: 50% off on 50th purchase. + type: string + campaignId: + description: The ID of the campaign the achievement belongs to. + example: 3 + type: integer + status: + description: The status of the achievement. + enum: + - inprogress + - completed + - expired + example: completed + type: string + target: + description: The required number of actions or the transactional milestone + to complete the achievement. + example: 10.0 + type: number + progress: + description: The current progress of the customer in the achievement. + example: 10.0 + type: number + startDate: + description: Timestamp at which the customer started the achievement. + format: date-time + type: string + completionDate: + description: Timestamp at which point the customer completed the achievement. + format: date-time + type: string + endDate: + description: Timestamp at which point the achievement ends and resets for + the customer. + format: date-time + type: string + required: + - achievementId + - campaignId + - endDate + - name + - progress + - startDate + - status + - title + type: object + ApplicationAnalyticsDataPoint: + properties: + startTime: + description: The start of the aggregation time frame in UTC. + example: 2024-02-01T00:00:00Z + format: date-time + type: string + endTime: + description: The end of the aggregation time frame in UTC. + format: date-time + type: string + totalRevenue: + $ref: '#/components/schemas/ApplicationAnalyticsDataPoint_totalRevenue' + sessionsCount: + $ref: '#/components/schemas/ApplicationAnalyticsDataPoint_sessionsCount' + avgItemsPerSession: + $ref: '#/components/schemas/ApplicationAnalyticsDataPoint_avgItemsPerSession' + avgSessionValue: + $ref: '#/components/schemas/ApplicationAnalyticsDataPoint_avgSessionValue' + totalDiscounts: + description: The total value of discounts given for cart items in influenced + sessions. + example: 10.0 + type: number + couponsCount: + description: The number of times a coupon was successfully redeemed in influenced + sessions. + example: 12.0 + type: number + type: object + ApplicationCampaignAnalytics: + properties: + startTime: + description: The start of the aggregation time frame in UTC. + example: 2024-02-01T00:00:00Z + format: date-time + type: string + endTime: + description: The end of the aggregation time frame in UTC. + format: date-time + type: string + campaignId: + description: The ID of the campaign. + example: 1 + type: integer + campaignName: + description: The name of the campaign. + example: Summer promotions + type: string + campaignTags: + description: A list of tags for the campaign. + example: + - summer + items: + maxLength: 50 + minLength: 1 + type: string + maxItems: 50 + type: array + campaignState: + default: enabled + description: | + The state of the campaign. + + **Note:** A disabled or archived campaign is not evaluated for rules or coupons. + enum: + - enabled + - disabled + - archived + example: enabled + type: string + campaignActiveRulesetId: + description: | + The [ID of the ruleset](https://docs.talon.one/management-api#operation/getRulesets) this + campaign applies on customer session evaluation. + example: 2 + type: integer + campaignStartTime: + description: Date and time when the campaign becomes active. + example: 2021-07-20T22:00:00Z + format: date-time + type: string + campaignEndTime: + description: Date and time when the campaign becomes inactive. + example: 2021-10-01T02:00:00Z + format: date-time + type: string + totalRevenue: + $ref: '#/components/schemas/ApplicationCampaignAnalytics_totalRevenue' + sessionsCount: + $ref: '#/components/schemas/ApplicationCampaignAnalytics_sessionsCount' + avgItemsPerSession: + $ref: '#/components/schemas/ApplicationCampaignAnalytics_avgItemsPerSession' + avgSessionValue: + $ref: '#/components/schemas/ApplicationCampaignAnalytics_avgSessionValue' + totalDiscounts: + $ref: '#/components/schemas/ApplicationCampaignAnalytics_totalDiscounts' + couponsCount: + $ref: '#/components/schemas/ApplicationCampaignAnalytics_couponsCount' type: object inline_response_201: example: @@ -31198,9 +32539,12 @@ components: sandbox: true description: Customers collect 10 points per 1$ spent title: Point collection + canUpdateJoinPolicy: true subscribedApplications: - 132 - 97 + tiersExpirationPolicy: tier_start_date + programJoinPolicy: not_join accountID: 1 defaultValidity: 2W_U defaultPending: immediate @@ -31234,9 +32578,12 @@ components: sandbox: true description: Customers collect 10 points per 1$ spent title: Point collection + canUpdateJoinPolicy: true subscribedApplications: - 132 - 97 + tiersExpirationPolicy: tier_start_date + programJoinPolicy: not_join accountID: 1 defaultValidity: 2W_U defaultPending: immediate @@ -31307,9 +32654,12 @@ components: sandbox: true description: Customers collect 10 points per 1$ spent title: Point collection + canUpdateJoinPolicy: true subscribedApplications: - 132 - 97 + tiersExpirationPolicy: tier_start_date + programJoinPolicy: not_join accountID: 1 defaultValidity: 2W_U defaultPending: immediate @@ -31343,9 +32693,12 @@ components: sandbox: true description: Customers collect 10 points per 1$ spent title: Point collection + canUpdateJoinPolicy: true subscribedApplications: - 132 - 97 + tiersExpirationPolicy: tier_start_date + programJoinPolicy: not_join accountID: 1 defaultValidity: 2W_U defaultPending: immediate @@ -31399,7 +32752,6 @@ components: - coupons - referrals createdLoyaltyPointsCount: 9.0 - evaluationGroupId: 2 couponSettings: couponPattern: SUMMER-####-#### validCharacters: @@ -31456,6 +32808,7 @@ components: activeRulesetId: 6 reservecouponEffectCount: 9 updatedBy: Jane Doe + frontendState: running created: 2020-06-10T09:05:27.993483Z referralCreationCount: 8 couponRedemptionCount: 163 @@ -31540,7 +32893,6 @@ components: - coupons - referrals createdLoyaltyPointsCount: 9.0 - evaluationGroupId: 2 couponSettings: couponPattern: SUMMER-####-#### validCharacters: @@ -31597,6 +32949,7 @@ components: activeRulesetId: 6 reservecouponEffectCount: 9 updatedBy: Jane Doe + frontendState: running created: 2020-06-10T09:05:27.993483Z referralCreationCount: 8 couponRedemptionCount: 163 @@ -32177,6 +33530,51 @@ components: - data - hasMore inline_response_200_11: + example: + data: + - accountId: 3886 + created: 2020-06-10T09:05:27.993483Z + name: Europe access group + subscribedApplicationsIds: + - 1 + - 2 + - 3 + modified: 2021-09-12T10:12:42Z + description: A group that gives access to all the campaigns for the Europe + market. + id: 6 + campaignIds: + - 4 + - 6 + - 8 + - accountId: 3886 + created: 2020-06-10T09:05:27.993483Z + name: Europe access group + subscribedApplicationsIds: + - 1 + - 2 + - 3 + modified: 2021-09-12T10:12:42Z + description: A group that gives access to all the campaigns for the Europe + market. + id: 6 + campaignIds: + - 4 + - 6 + - 8 + totalResultSize: 1 + properties: + totalResultSize: + example: 1 + type: integer + data: + items: + $ref: '#/components/schemas/CampaignGroup' + type: array + required: + - data + - totalResultSize + inline_response_200_12: example: data: - activeRulesetId: 5 @@ -32455,7 +33853,7 @@ components: required: - data - hasMore - inline_response_200_12: + inline_response_200_13: example: data: - cardBased: true @@ -32483,9 +33881,12 @@ components: sandbox: true description: Customers collect 10 points per 1$ spent title: Point collection + canUpdateJoinPolicy: true subscribedApplications: - 132 - 97 + tiersExpirationPolicy: tier_start_date + programJoinPolicy: not_join accountID: 1 defaultValidity: 2W_U defaultPending: immediate @@ -32519,9 +33920,12 @@ components: sandbox: true description: Customers collect 10 points per 1$ spent title: Point collection + canUpdateJoinPolicy: true subscribedApplications: - 132 - 97 + tiersExpirationPolicy: tier_start_date + programJoinPolicy: not_join accountID: 1 defaultValidity: 2W_U defaultPending: immediate @@ -32542,11 +33946,12 @@ components: required: - data - totalResultSize - inline_response_200_13: + inline_response_200_14: example: data: - rulesetId: 11 amount: 10.25 + campaignId: 324 created: 2000-01-23T04:56:07.000+00:00 customerSessionId: 05c2da0d-48fa-4aa1-b629-898f58f1584d type: addition @@ -32564,6 +33969,7 @@ components: startDate: 2022-01-02T15:04:05Z07:00 - rulesetId: 11 amount: 10.25 + campaignId: 324 created: 2000-01-23T04:56:07.000+00:00 customerSessionId: 05c2da0d-48fa-4aa1-b629-898f58f1584d type: addition @@ -32591,7 +33997,7 @@ components: required: - data - hasMore - inline_response_200_14: + inline_response_200_15: example: data: - ledger: @@ -32688,7 +34094,7 @@ components: required: - data - hasMore - inline_response_200_15: + inline_response_200_16: example: data: - amount: 10.25 @@ -32731,7 +34137,7 @@ components: required: - data - hasMore - inline_response_200_16: + inline_response_200_17: example: data: - accountId: 3886 @@ -32776,7 +34182,7 @@ components: type: array required: - data - inline_response_200_17: + inline_response_200_18: example: data: - item: item @@ -32792,57 +34198,6 @@ components: required: - data - hasMore - inline_response_200_18: - example: - data: - - accountId: 3886 - createdBy: 134 - payload: - - KTL-WH-ET-1 - - KTL-BL-ET-1 - created: 2020-06-10T09:05:27.993483Z - campaignId: 7 - subscribedApplicationsIds: - - 1 - - 2 - - 3 - name: My collection - modified: 2021-09-12T10:12:42Z - description: My collection of SKUs - modifiedBy: 48 - id: 6 - applicationId: 1 - - accountId: 3886 - createdBy: 134 - payload: - - KTL-WH-ET-1 - - KTL-BL-ET-1 - created: 2020-06-10T09:05:27.993483Z - campaignId: 7 - subscribedApplicationsIds: - - 1 - - 2 - - 3 - name: My collection - modified: 2021-09-12T10:12:42Z - description: My collection of SKUs - modifiedBy: 48 - id: 6 - applicationId: 1 - hasMore: true - totalResultSize: 1 - properties: - hasMore: - type: boolean - totalResultSize: - example: 1 - type: integer - data: - items: - $ref: '#/components/schemas/Collection' - type: array - required: - - data inline_response_200_19: example: data: @@ -33284,6 +34639,8 @@ components: applicationId: 322 cartItems: - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -33303,6 +34660,8 @@ components: category: shoes height: 0.8008281904610115 - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -33338,6 +34697,8 @@ components: applicationId: 322 cartItems: - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -33357,6 +34718,8 @@ components: category: shoes height: 0.8008281904610115 - remainingQuantity: 1 + product: + name: sample_product quantity: 1 returnedQuantity: 1 length: 1.4658129805029452 @@ -33531,7 +34894,7 @@ components: name: Travel audience sandbox: true integration: mparticle - description: Travel audience 18-25 + description: Travel audience 18-27 integrationId: 382370BKDB946 id: 6 createdIn3rdParty: false @@ -33541,7 +34904,7 @@ components: name: Travel audience sandbox: true integration: mparticle - description: Travel audience 18-25 + description: Travel audience 18-27 integrationId: 382370BKDB946 id: 6 createdIn3rdParty: false @@ -33560,6 +34923,78 @@ components: required: - data inline_response_200_31: + example: + data: + - membersCount: 1234 + audienceId: 1 + - membersCount: 1234 + audienceId: 1 + hasMore: true + properties: + hasMore: + type: boolean + data: + items: + $ref: '#/components/schemas/AudienceAnalytics' + type: array + required: + - data + inline_response_200_32: + example: + data: + - accountId: 31 + closedSessions: 3 + created: 2000-01-23T04:56:07.000+00:00 + sandbox: false + integrationId: URNGV8294NV + attributes: + Language: english + ShippingCountry: DE + totalSales: 299.99 + lastActivity: 2020-02-08T14:15:20Z + id: 6 + loyaltyMemberships: + - joined: 2000-01-23T04:56:07.000+00:00 + loyaltyProgramId: 323414846 + - joined: 2000-01-23T04:56:07.000+00:00 + loyaltyProgramId: 323414846 + audienceMemberships: + - name: Travel audience + id: 2 + - name: Travel audience + id: 2 + - accountId: 31 + closedSessions: 3 + created: 2000-01-23T04:56:07.000+00:00 + sandbox: false + integrationId: URNGV8294NV + attributes: + Language: english + ShippingCountry: DE + totalSales: 299.99 + lastActivity: 2020-02-08T14:15:20Z + id: 6 + loyaltyMemberships: + - joined: 2000-01-23T04:56:07.000+00:00 + loyaltyProgramId: 323414846 + - joined: 2000-01-23T04:56:07.000+00:00 + loyaltyProgramId: 323414846 + audienceMemberships: + - name: Travel audience + id: 2 + - name: Travel audience + id: 2 + hasMore: true + properties: + hasMore: + type: boolean + data: + items: + $ref: '#/components/schemas/CustomerProfile' + type: array + required: + - data + inline_response_200_33: example: data: - friendIntegrationId: friendIntegrationId @@ -33588,7 +35023,7 @@ components: type: array required: - data - inline_response_200_32: + inline_response_200_34: example: data: - created: 2020-06-10T09:05:27.993483Z @@ -33661,10 +35096,12 @@ components: required: - data - totalResultSize - inline_response_200_33: + inline_response_200_35: example: data: - - catalogid: 6 + - product: + name: sample_product + catalogid: 6 created: 2020-06-10T09:05:27.993483Z price: 99.99 attributes: @@ -33677,7 +35114,9 @@ components: id: 6 sku: SKU1241028 version: 5 - - catalogid: 6 + - product: + name: sample_product + catalogid: 6 created: 2020-06-10T09:05:27.993483Z price: 99.99 attributes: @@ -33704,7 +35143,7 @@ components: type: array required: - data - inline_response_200_34: + inline_response_200_36: example: data: - accountId: 3886 @@ -33739,7 +35178,7 @@ components: required: - data - totalResultSize - inline_response_200_35: + inline_response_200_37: example: data: - headers: @@ -33790,7 +35229,7 @@ components: required: - data - totalResultSize - inline_response_200_36: + inline_response_200_38: example: data: - webhookId: 1 @@ -33815,7 +35254,7 @@ components: required: - data - totalResultSize - inline_response_200_37: + inline_response_200_39: example: data: - requestTime: 2021-07-20T22:00:00Z @@ -33856,7 +35295,7 @@ components: required: - data - totalResultSize - inline_response_200_38: + inline_response_200_40: example: data: - created: 2020-06-10T09:05:27.993483Z @@ -33881,7 +35320,7 @@ components: required: - data - totalResultSize - inline_response_200_39: + inline_response_200_41: example: data: - created: 2020-06-10T09:05:27.993483Z @@ -33896,8 +35335,8 @@ components: lastAccessed: 2021-09-12T10:14:42Z id: 6 state: invited - latestFeedTimestamp: 2020-06-01T00:00:00Z authMethod: basic_auth + latestFeedTimestamp: 2020-06-01T00:00:00Z lastSignedIn: 2021-09-12T10:12:42Z email: john.doe@example.com policy: @@ -33914,8 +35353,8 @@ components: lastAccessed: 2021-09-12T10:14:42Z id: 6 state: invited - latestFeedTimestamp: 2020-06-01T00:00:00Z authMethod: basic_auth + latestFeedTimestamp: 2020-06-01T00:00:00Z lastSignedIn: 2021-09-12T10:12:42Z email: john.doe@example.com policy: @@ -33932,7 +35371,7 @@ components: required: - data - totalResultSize - inline_response_200_40: + inline_response_200_42: example: data: - new: @@ -33983,7 +35422,7 @@ components: type: array required: - data - inline_response_200_41: + inline_response_200_43: example: data: - filter: '{}' @@ -34010,7 +35449,7 @@ components: required: - data - totalResultSize - inline_response_200_42: + inline_response_200_44: example: data: - accountId: 3886 @@ -34053,7 +35492,7 @@ components: required: - data - totalResultSize - inline_response_200_43: + inline_response_200_45: example: data: - linkedCampaignIds: @@ -34098,6 +35537,202 @@ components: type: array required: - data + inline_response_200_46: + example: + data: + - period: 1Y + createdBy: John Doe + created: 2020-06-10T09:05:27.993483Z + campaignId: 1 + name: Order50Discount + periodEndOverride: + month: 11 + dayOfMonth: 23 + hour: 23 + minute: 59 + second: 59 + description: 50% off for every 50th purchase in a year. + id: 6 + title: 50% off on 50th purchase. + userId: 1234 + hasProgress: true + target: 50.0 + - period: 1Y + createdBy: John Doe + created: 2020-06-10T09:05:27.993483Z + campaignId: 1 + name: Order50Discount + periodEndOverride: + month: 11 + dayOfMonth: 23 + hour: 23 + minute: 59 + second: 59 + description: 50% off for every 50th purchase in a year. + id: 6 + title: 50% off on 50th purchase. + userId: 1234 + hasProgress: true + target: 50.0 + hasMore: true + properties: + hasMore: + type: boolean + data: + items: + $ref: '#/components/schemas/Achievement' + type: array + required: + - data + inline_response_200_47: + example: + data: + - endDate: 2000-01-23T04:56:07.000+00:00 + campaignId: 3 + name: FreeCoffee10Orders + achievementId: 3 + progress: 10.0 + completionDate: 2000-01-23T04:56:07.000+00:00 + title: 50% off on 50th purchase. + startDate: 2000-01-23T04:56:07.000+00:00 + status: completed + target: 10.0 + - endDate: 2000-01-23T04:56:07.000+00:00 + campaignId: 3 + name: FreeCoffee10Orders + achievementId: 3 + progress: 10.0 + completionDate: 2000-01-23T04:56:07.000+00:00 + title: 50% off on 50th purchase. + startDate: 2000-01-23T04:56:07.000+00:00 + status: completed + target: 10.0 + hasMore: true + properties: + hasMore: + example: true + type: boolean + data: + items: + $ref: '#/components/schemas/AchievementProgress' + type: array + required: + - data + - hasMore + ApplicationAnalyticsDataPoint_totalRevenue: + description: The total, pre-discount value of all items purchased in a customer + session. + properties: + total: + example: 1.25 + type: number + influenced: + example: 3.25 + type: number + ApplicationAnalyticsDataPoint_sessionsCount: + description: The number of all closed sessions. The `influenced` value includes + only sessions with at least one applied effect. + properties: + total: + example: 15.0 + type: number + influenced: + example: 5.0 + type: number + ApplicationAnalyticsDataPoint_avgItemsPerSession: + description: The number of items from sessions divided by the number of sessions. + The `influenced` value includes only sessions with at least one applied effect. + properties: + total: + example: 1.25 + type: number + influenced: + example: 3.25 + type: number + ApplicationAnalyticsDataPoint_avgSessionValue: + description: The average customer session value, calculated by dividing the + revenue value by the number of sessions. The `influenced` value includes only + sessions with at least one applied effect. + properties: + total: + example: 1.25 + type: number + influenced: + example: 3.25 + type: number + ApplicationCampaignAnalytics_totalRevenue: + description: The total, pre-discount value of all items purchased in a customer + session. + properties: + value: + example: 1.25 + type: number + influence_rate: + example: 3.25 + type: number + trend: + example: 3.25 + type: number + ApplicationCampaignAnalytics_sessionsCount: + description: The number of all closed sessions. The `influenced` value includes + only sessions with at least one applied effect. + properties: + value: + example: 12.0 + type: number + influence_rate: + example: 3.25 + type: number + trend: + example: 3.25 + type: number + ApplicationCampaignAnalytics_avgItemsPerSession: + description: The number of items from sessions divided by the number of sessions. + The `influenced` value includes only sessions with at least one applied effect. + properties: + value: + example: 12.0 + type: number + uplift: + example: 3.25 + type: number + trend: + example: 3.25 + type: number + ApplicationCampaignAnalytics_avgSessionValue: + description: The average customer session value, calculated by dividing the + revenue value by the number of sessions. The `influenced` value includes only + sessions with at least one applied effect. + properties: + value: + example: 12.0 + type: number + uplift: + example: 3.25 + type: number + trend: + example: 3.25 + type: number + ApplicationCampaignAnalytics_totalDiscounts: + description: The total value of discounts given for cart items in influenced + sessions. + properties: + value: + example: 10.0 + type: number + trend: + example: 3.25 + type: number + ApplicationCampaignAnalytics_couponsCount: + description: The number of times a coupon was successfully redeemed in influenced + sessions. + properties: + value: + example: 10.0 + type: number + trend: + example: 3.25 + type: number securitySchemes: api_key_v1: description: | diff --git a/build.gradle b/build.gradle index bb4bff00..762cf03a 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'java' group = 'one.talon' -version = '6.0.1' +version = '7.0.0' buildscript { repositories { diff --git a/build.sbt b/build.sbt index 18c1ee8c..e2100fc2 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "one.talon", name := "talon-one-client", - version := "6.0.1", + version := "7.0.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/docs/AccountDashboardStatistic.md b/docs/AccountDashboardStatistic.md index b7efdc79..5dd825a9 100644 --- a/docs/AccountDashboardStatistic.md +++ b/docs/AccountDashboardStatistic.md @@ -10,7 +10,6 @@ Name | Type | Description | Notes **discounts** | [**List<AccountDashboardStatisticDiscount>**](AccountDashboardStatisticDiscount.md) | Aggregated statistic for account discount. | [optional] **loyaltyPoints** | [**List<AccountDashboardStatisticLoyaltyPoints>**](AccountDashboardStatisticLoyaltyPoints.md) | Aggregated statistic for account loyalty points. | [optional] **referrals** | [**List<AccountDashboardStatisticReferrals>**](AccountDashboardStatisticReferrals.md) | Aggregated statistic for account referrals. | [optional] -**apiCalls** | [**List<AccountDashboardStatisticApiCalls>**](AccountDashboardStatisticApiCalls.md) | Aggregated statistic for the number of account API calls. | [optional] **campaigns** | [**AccountDashboardStatisticCampaigns**](AccountDashboardStatisticCampaigns.md) | | diff --git a/docs/Achievement.md b/docs/Achievement.md index c46d73b4..4475727b 100644 --- a/docs/Achievement.md +++ b/docs/Achievement.md @@ -12,11 +12,13 @@ Name | Type | Description | Notes **name** | **String** | The internal name of the achievement used in API requests. **Note**: The name should start with a letter. This cannot be changed after the achievement has been created. | **title** | **String** | The display name for the achievement in the Campaign Manager. | **description** | **String** | A description of the achievement. | -**target** | [**BigDecimal**](BigDecimal.md) | The maximum number of times a specific action must be completed by a customer profile over a defined period of time. | -**period** | **String** | The relative duration after which the achievement is reset for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. | +**target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | +**period** | **String** | The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. | **periodEndOverride** | [**TimePoint**](TimePoint.md) | | [optional] +**campaignId** | **Integer** | ID of the campaign, to which the achievement belongs to | **userId** | **Integer** | ID of the user that created this achievement. | **createdBy** | **String** | Name of the user that created the achievement. **Note**: This is not available if the user has been deleted. | +**hasProgress** | **Boolean** | Indicates if a customer has made progress in the achievement. | [optional] diff --git a/docs/AchievementAdditionalProperties.md b/docs/AchievementAdditionalProperties.md index 83623dd2..45331ff8 100644 --- a/docs/AchievementAdditionalProperties.md +++ b/docs/AchievementAdditionalProperties.md @@ -6,8 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**campaignId** | **Integer** | ID of the campaign, to which the achievement belongs to | **userId** | **Integer** | ID of the user that created this achievement. | **createdBy** | **String** | Name of the user that created the achievement. **Note**: This is not available if the user has been deleted. | +**hasProgress** | **Boolean** | Indicates if a customer has made progress in the achievement. | [optional] diff --git a/docs/AchievementProgress.md b/docs/AchievementProgress.md new file mode 100644 index 00000000..13346663 --- /dev/null +++ b/docs/AchievementProgress.md @@ -0,0 +1,31 @@ + + +# AchievementProgress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**achievementId** | **Integer** | The internal ID of the achievement. | +**name** | **String** | The internal name of the achievement used in API requests. | +**title** | **String** | The display name of the achievement in the Campaign Manager. | +**campaignId** | **Integer** | The ID of the campaign the achievement belongs to. | +**status** | [**StatusEnum**](#StatusEnum) | The status of the achievement. | +**target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | [optional] +**progress** | [**BigDecimal**](BigDecimal.md) | The current progress of the customer in the achievement. | +**startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which the customer started the achievement. | +**completionDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the customer completed the achievement. | [optional] +**endDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the achievement ends and resets for the customer. | + + + +## Enum: StatusEnum + +Name | Value +---- | ----- +INPROGRESS | "inprogress" +COMPLETED | "completed" +EXPIRED | "expired" + + + diff --git a/docs/AddItemCatalogAction.md b/docs/AddItemCatalogAction.md index b84a64f6..32aec3ee 100644 --- a/docs/AddItemCatalogAction.md +++ b/docs/AddItemCatalogAction.md @@ -2,7 +2,7 @@ # AddItemCatalogAction -The specific properties of the \"ADD\" catalog sync action. +The specific properties of the \"ADD\" catalog sync action. ## Properties Name | Type | Description | Notes @@ -10,7 +10,8 @@ Name | Type | Description | Notes **sku** | **String** | The unique SKU of the item to add. | **price** | [**BigDecimal**](BigDecimal.md) | Price of the item. | [optional] **attributes** | [**Object**](.md) | The attributes of the item to add. | [optional] -**replaceIfExists** | **Boolean** | Indicates whether to replace the attributes of the item if the same SKU exists. | [optional] +**product** | [**Product**](Product.md) | | [optional] +**replaceIfExists** | **Boolean** | Indicates whether to replace the attributes of the item if the same SKU exists. **Note**: When set to `true`: - If you do not provide a new `price` value, the existing `price` value is retained. - If you do not provide a new `product` value, the `product` value is set to `null`. | [optional] diff --git a/docs/AdditionalCampaignProperties.md b/docs/AdditionalCampaignProperties.md index fcf24c23..6def97f0 100644 --- a/docs/AdditionalCampaignProperties.md +++ b/docs/AdditionalCampaignProperties.md @@ -27,6 +27,18 @@ Name | Type | Description | Notes **createdBy** | **String** | Name of the user who created this campaign if available. | [optional] **updatedBy** | **String** | Name of the user who last updated this campaign if available. | [optional] **templateId** | **Integer** | The ID of the Campaign Template this Campaign was created from. | [optional] +**frontendState** | [**FrontendStateEnum**](#FrontendStateEnum) | A campaign state described exactly as in the Campaign Manager. | + + + +## Enum: FrontendStateEnum + +Name | Value +---- | ----- +EXPIRED | "expired" +SCHEDULED | "scheduled" +RUNNING | "running" +DRAFT | "draft" diff --git a/docs/ApplicationAPIKey.md b/docs/ApplicationAPIKey.md index ff3f40b3..d0fff825 100644 --- a/docs/ApplicationAPIKey.md +++ b/docs/ApplicationAPIKey.md @@ -7,9 +7,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **String** | Title for API Key. | -**expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expired. | +**title** | **String** | Title of the API key. | +**expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expires. | **platform** | [**PlatformEnum**](#PlatformEnum) | The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. | [optional] +**type** | [**TypeEnum**](#TypeEnum) | The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. | [optional] +**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] **id** | **Integer** | ID of the API Key. | **createdBy** | **Integer** | ID of user who created. | **accountID** | **Integer** | ID of account the key is used for. | @@ -35,3 +37,11 @@ EMARSYS | "emarsys" +## Enum: TypeEnum + +Name | Value +---- | ----- +STAGING | "staging" + + + diff --git a/docs/ApplicationAnalyticsDataPoint.md b/docs/ApplicationAnalyticsDataPoint.md new file mode 100644 index 00000000..d02dc8c2 --- /dev/null +++ b/docs/ApplicationAnalyticsDataPoint.md @@ -0,0 +1,19 @@ + + +# ApplicationAnalyticsDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**startTime** | [**OffsetDateTime**](OffsetDateTime.md) | The start of the aggregation time frame in UTC. | [optional] +**endTime** | [**OffsetDateTime**](OffsetDateTime.md) | The end of the aggregation time frame in UTC. | [optional] +**totalRevenue** | [**ApplicationAnalyticsDataPointTotalRevenue**](ApplicationAnalyticsDataPointTotalRevenue.md) | | [optional] +**sessionsCount** | [**ApplicationAnalyticsDataPointSessionsCount**](ApplicationAnalyticsDataPointSessionsCount.md) | | [optional] +**avgItemsPerSession** | [**ApplicationAnalyticsDataPointAvgItemsPerSession**](ApplicationAnalyticsDataPointAvgItemsPerSession.md) | | [optional] +**avgSessionValue** | [**ApplicationAnalyticsDataPointAvgSessionValue**](ApplicationAnalyticsDataPointAvgSessionValue.md) | | [optional] +**totalDiscounts** | [**BigDecimal**](BigDecimal.md) | The total value of discounts given for cart items in influenced sessions. | [optional] +**couponsCount** | [**BigDecimal**](BigDecimal.md) | The number of times a coupon was successfully redeemed in influenced sessions. | [optional] + + + diff --git a/docs/ApplicationAnalyticsDataPointAvgItemsPerSession.md b/docs/ApplicationAnalyticsDataPointAvgItemsPerSession.md new file mode 100644 index 00000000..404b02a4 --- /dev/null +++ b/docs/ApplicationAnalyticsDataPointAvgItemsPerSession.md @@ -0,0 +1,14 @@ + + +# ApplicationAnalyticsDataPointAvgItemsPerSession + +The number of items from sessions divided by the number of sessions. The `influenced` value includes only sessions with at least one applied effect. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**BigDecimal**](BigDecimal.md) | | [optional] +**influenced** | [**BigDecimal**](BigDecimal.md) | | [optional] + + + diff --git a/docs/ApplicationAnalyticsDataPointAvgSessionValue.md b/docs/ApplicationAnalyticsDataPointAvgSessionValue.md new file mode 100644 index 00000000..def2660a --- /dev/null +++ b/docs/ApplicationAnalyticsDataPointAvgSessionValue.md @@ -0,0 +1,14 @@ + + +# ApplicationAnalyticsDataPointAvgSessionValue + +The average customer session value, calculated by dividing the revenue value by the number of sessions. The `influenced` value includes only sessions with at least one applied effect. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**BigDecimal**](BigDecimal.md) | | [optional] +**influenced** | [**BigDecimal**](BigDecimal.md) | | [optional] + + + diff --git a/docs/ApplicationAnalyticsDataPointSessionsCount.md b/docs/ApplicationAnalyticsDataPointSessionsCount.md new file mode 100644 index 00000000..8078a792 --- /dev/null +++ b/docs/ApplicationAnalyticsDataPointSessionsCount.md @@ -0,0 +1,14 @@ + + +# ApplicationAnalyticsDataPointSessionsCount + +The number of all closed sessions. The `influenced` value includes only sessions with at least one applied effect. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**BigDecimal**](BigDecimal.md) | | [optional] +**influenced** | [**BigDecimal**](BigDecimal.md) | | [optional] + + + diff --git a/docs/ApplicationAnalyticsDataPointTotalRevenue.md b/docs/ApplicationAnalyticsDataPointTotalRevenue.md new file mode 100644 index 00000000..41d729c3 --- /dev/null +++ b/docs/ApplicationAnalyticsDataPointTotalRevenue.md @@ -0,0 +1,14 @@ + + +# ApplicationAnalyticsDataPointTotalRevenue + +The total, pre-discount value of all items purchased in a customer session. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**BigDecimal**](BigDecimal.md) | | [optional] +**influenced** | [**BigDecimal**](BigDecimal.md) | | [optional] + + + diff --git a/docs/ApplicationCampaignAnalytics.md b/docs/ApplicationCampaignAnalytics.md new file mode 100644 index 00000000..fc7ae1b1 --- /dev/null +++ b/docs/ApplicationCampaignAnalytics.md @@ -0,0 +1,36 @@ + + +# ApplicationCampaignAnalytics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**startTime** | [**OffsetDateTime**](OffsetDateTime.md) | The start of the aggregation time frame in UTC. | [optional] +**endTime** | [**OffsetDateTime**](OffsetDateTime.md) | The end of the aggregation time frame in UTC. | [optional] +**campaignId** | **Integer** | The ID of the campaign. | [optional] +**campaignName** | **String** | The name of the campaign. | [optional] +**campaignTags** | **List<String>** | A list of tags for the campaign. | [optional] +**campaignState** | [**CampaignStateEnum**](#CampaignStateEnum) | The state of the campaign. **Note:** A disabled or archived campaign is not evaluated for rules or coupons. | [optional] +**campaignActiveRulesetId** | **Integer** | The [ID of the ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**campaignStartTime** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time when the campaign becomes active. | [optional] +**campaignEndTime** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time when the campaign becomes inactive. | [optional] +**totalRevenue** | [**ApplicationCampaignAnalyticsTotalRevenue**](ApplicationCampaignAnalyticsTotalRevenue.md) | | [optional] +**sessionsCount** | [**ApplicationCampaignAnalyticsSessionsCount**](ApplicationCampaignAnalyticsSessionsCount.md) | | [optional] +**avgItemsPerSession** | [**ApplicationCampaignAnalyticsAvgItemsPerSession**](ApplicationCampaignAnalyticsAvgItemsPerSession.md) | | [optional] +**avgSessionValue** | [**ApplicationCampaignAnalyticsAvgSessionValue**](ApplicationCampaignAnalyticsAvgSessionValue.md) | | [optional] +**totalDiscounts** | [**ApplicationCampaignAnalyticsTotalDiscounts**](ApplicationCampaignAnalyticsTotalDiscounts.md) | | [optional] +**couponsCount** | [**ApplicationCampaignAnalyticsCouponsCount**](ApplicationCampaignAnalyticsCouponsCount.md) | | [optional] + + + +## Enum: CampaignStateEnum + +Name | Value +---- | ----- +ENABLED | "enabled" +DISABLED | "disabled" +ARCHIVED | "archived" + + + diff --git a/docs/ApplicationCampaignAnalyticsAvgItemsPerSession.md b/docs/ApplicationCampaignAnalyticsAvgItemsPerSession.md new file mode 100644 index 00000000..bc2b56ce --- /dev/null +++ b/docs/ApplicationCampaignAnalyticsAvgItemsPerSession.md @@ -0,0 +1,15 @@ + + +# ApplicationCampaignAnalyticsAvgItemsPerSession + +The number of items from sessions divided by the number of sessions. The `influenced` value includes only sessions with at least one applied effect. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**BigDecimal**](BigDecimal.md) | | [optional] +**uplift** | [**BigDecimal**](BigDecimal.md) | | [optional] +**trend** | [**BigDecimal**](BigDecimal.md) | | [optional] + + + diff --git a/docs/ApplicationCampaignAnalyticsAvgSessionValue.md b/docs/ApplicationCampaignAnalyticsAvgSessionValue.md new file mode 100644 index 00000000..d2586861 --- /dev/null +++ b/docs/ApplicationCampaignAnalyticsAvgSessionValue.md @@ -0,0 +1,15 @@ + + +# ApplicationCampaignAnalyticsAvgSessionValue + +The average customer session value, calculated by dividing the revenue value by the number of sessions. The `influenced` value includes only sessions with at least one applied effect. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**BigDecimal**](BigDecimal.md) | | [optional] +**uplift** | [**BigDecimal**](BigDecimal.md) | | [optional] +**trend** | [**BigDecimal**](BigDecimal.md) | | [optional] + + + diff --git a/docs/ApplicationCampaignAnalyticsCouponsCount.md b/docs/ApplicationCampaignAnalyticsCouponsCount.md new file mode 100644 index 00000000..4979ce96 --- /dev/null +++ b/docs/ApplicationCampaignAnalyticsCouponsCount.md @@ -0,0 +1,14 @@ + + +# ApplicationCampaignAnalyticsCouponsCount + +The number of times a coupon was successfully redeemed in influenced sessions. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**BigDecimal**](BigDecimal.md) | | [optional] +**trend** | [**BigDecimal**](BigDecimal.md) | | [optional] + + + diff --git a/docs/ApplicationCampaignAnalyticsSessionsCount.md b/docs/ApplicationCampaignAnalyticsSessionsCount.md new file mode 100644 index 00000000..a7ad4cd9 --- /dev/null +++ b/docs/ApplicationCampaignAnalyticsSessionsCount.md @@ -0,0 +1,15 @@ + + +# ApplicationCampaignAnalyticsSessionsCount + +The number of all closed sessions. The `influenced` value includes only sessions with at least one applied effect. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**BigDecimal**](BigDecimal.md) | | [optional] +**influenceRate** | [**BigDecimal**](BigDecimal.md) | | [optional] +**trend** | [**BigDecimal**](BigDecimal.md) | | [optional] + + + diff --git a/docs/ApplicationCampaignAnalyticsTotalDiscounts.md b/docs/ApplicationCampaignAnalyticsTotalDiscounts.md new file mode 100644 index 00000000..f6dfa8b2 --- /dev/null +++ b/docs/ApplicationCampaignAnalyticsTotalDiscounts.md @@ -0,0 +1,14 @@ + + +# ApplicationCampaignAnalyticsTotalDiscounts + +The total value of discounts given for cart items in influenced sessions. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**BigDecimal**](BigDecimal.md) | | [optional] +**trend** | [**BigDecimal**](BigDecimal.md) | | [optional] + + + diff --git a/docs/ApplicationCampaignAnalyticsTotalRevenue.md b/docs/ApplicationCampaignAnalyticsTotalRevenue.md new file mode 100644 index 00000000..ceaa7acb --- /dev/null +++ b/docs/ApplicationCampaignAnalyticsTotalRevenue.md @@ -0,0 +1,15 @@ + + +# ApplicationCampaignAnalyticsTotalRevenue + +The total, pre-discount value of all items purchased in a customer session. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**BigDecimal**](BigDecimal.md) | | [optional] +**influenceRate** | [**BigDecimal**](BigDecimal.md) | | [optional] +**trend** | [**BigDecimal**](BigDecimal.md) | | [optional] + + + diff --git a/docs/ApplicationCustomer.md b/docs/ApplicationCustomer.md index 401f3380..fb152708 100644 --- a/docs/ApplicationCustomer.md +++ b/docs/ApplicationCustomer.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **loyaltyMemberships** | [**List<LoyaltyMembership>**](LoyaltyMembership.md) | **DEPRECATED** A list of loyalty programs joined by the customer. | [optional] **audienceMemberships** | [**List<AudienceMembership>**](AudienceMembership.md) | The audiences the customer belongs to. | [optional] **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. | -**sandbox** | **Boolean** | Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). | [optional] +**sandbox** | **Boolean** | An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). | [optional] **advocateIntegrationId** | **String** | The Integration ID of the Customer Profile that referred this Customer in the Application. | [optional] diff --git a/docs/AudienceAnalytics.md b/docs/AudienceAnalytics.md index 93747ef3..e2307465 100644 --- a/docs/AudienceAnalytics.md +++ b/docs/AudienceAnalytics.md @@ -2,13 +2,13 @@ # AudienceAnalytics -The audiences and their members count. +The audiences and their member count. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **audienceId** | **Integer** | The ID of the audience. | [optional] -**membersCount** | **Integer** | The count of members under a single audience. | [optional] +**membersCount** | **Integer** | The member count of the audience. | [optional] diff --git a/docs/AudienceCustomer.md b/docs/AudienceCustomer.md index f5e58eaf..c256d527 100644 --- a/docs/AudienceCustomer.md +++ b/docs/AudienceCustomer.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **loyaltyMemberships** | [**List<LoyaltyMembership>**](LoyaltyMembership.md) | **DEPRECATED** A list of loyalty programs joined by the customer. | [optional] **audienceMemberships** | [**List<AudienceMembership>**](AudienceMembership.md) | The audiences the customer belongs to. | [optional] **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. | -**sandbox** | **Boolean** | Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). | [optional] +**sandbox** | **Boolean** | An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). | [optional] **connectedApplicationsIds** | **List<Integer>** | A list of the IDs of the Applications that are connected to this customer profile. | [optional] **connectedAudiences** | **List<Integer>** | A list of the IDs of the audiences that are connected to this customer profile. | [optional] diff --git a/docs/BaseCampaign.md b/docs/BaseCampaign.md index 4c2f4965..bf4ec0da 100644 --- a/docs/BaseCampaign.md +++ b/docs/BaseCampaign.md @@ -19,7 +19,6 @@ Name | Type | Description | Notes **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | **campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] -**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] **linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] @@ -44,6 +43,7 @@ REFERRALS | "referrals" LOYALTY | "loyalty" GIVEAWAYS | "giveaways" STRIKETHROUGH | "strikethrough" +ACHIEVEMENTS | "achievements" diff --git a/docs/BaseLoyaltyProgram.md b/docs/BaseLoyaltyProgram.md index 4fc16981..502fe4c6 100644 --- a/docs/BaseLoyaltyProgram.md +++ b/docs/BaseLoyaltyProgram.md @@ -14,8 +14,19 @@ Name | Type | Description | Notes **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | [optional] **usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | 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. | [optional] -**tiersExpireIn** | **String** | The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. | [optional] +**tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | 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. | [optional] +**tiersExpireIn** | **String** | 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. | [optional] **tiersDowngradePolicy** | [**TiersDowngradePolicyEnum**](#TiersDowngradePolicyEnum) | 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. | [optional] +**programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | 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. | [optional] + + + +## Enum: TiersExpirationPolicyEnum + +Name | Value +---- | ----- +TIER_START_DATE | "tier_start_date" +PROGRAM_JOIN_DATE | "program_join_date" @@ -28,3 +39,13 @@ BALANCE_BASED | "balance_based" +## Enum: ProgramJoinPolicyEnum + +Name | Value +---- | ----- +NOT_JOIN | "not_join" +POINTS_ACTIVATED | "points_activated" +POINTS_EARNED | "points_earned" + + + diff --git a/docs/BaseNotification.md b/docs/BaseNotification.md index 3d07c924..62ee4c22 100644 --- a/docs/BaseNotification.md +++ b/docs/BaseNotification.md @@ -22,7 +22,9 @@ Name | Value CAMPAIGN | "campaign" LOYALTY_ADDED_DEDUCTED_POINTS | "loyalty_added_deducted_points" COUPON | "coupon" +EXPIRING_COUPONS | "expiring_coupons" EXPIRING_POINTS | "expiring_points" +CARD_EXPIRING_POINTS | "card_expiring_points" PENDING_TO_ACTIVE_POINTS | "pending_to_active_points" STRIKETHROUGH_PRICING | "strikethrough_pricing" TIER_DOWNGRADE | "tier_downgrade" diff --git a/docs/Campaign.md b/docs/Campaign.md index a7daeb8a..5c2e2834 100644 --- a/docs/Campaign.md +++ b/docs/Campaign.md @@ -24,7 +24,6 @@ Name | Type | Description | Notes **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | **campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] -**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | **linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] **budgets** | [**List<CampaignBudget>**](CampaignBudget.md) | A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. | @@ -48,6 +47,7 @@ Name | Type | Description | Notes **createdBy** | **String** | Name of the user who created this campaign if available. | [optional] **updatedBy** | **String** | Name of the user who last updated this campaign if available. | [optional] **templateId** | **Integer** | The ID of the Campaign Template this Campaign was created from. | [optional] +**frontendState** | [**FrontendStateEnum**](#FrontendStateEnum) | A campaign state described exactly as in the Campaign Manager. | @@ -70,6 +70,7 @@ REFERRALS | "referrals" LOYALTY | "loyalty" GIVEAWAYS | "giveaways" STRIKETHROUGH | "strikethrough" +ACHIEVEMENTS | "achievements" @@ -82,3 +83,14 @@ ADVANCED | "advanced" +## Enum: FrontendStateEnum + +Name | Value +---- | ----- +EXPIRED | "expired" +SCHEDULED | "scheduled" +RUNNING | "running" +DRAFT | "draft" + + + diff --git a/docs/CampaignCreatedNotification.md b/docs/CampaignCreatedNotification.md index 071bb6bd..05e65abc 100644 --- a/docs/CampaignCreatedNotification.md +++ b/docs/CampaignCreatedNotification.md @@ -7,7 +7,7 @@ A notification regarding a campaign that was created. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign** | [**CampaignStateNotification**](CampaignStateNotification.md) | | +**campaign** | [**Campaign**](Campaign.md) | | **ruleset** | [**Ruleset**](Ruleset.md) | | [optional] **evaluationPosition** | [**CampaignEvaluationPosition**](CampaignEvaluationPosition.md) | | diff --git a/docs/CampaignDeletedNotification.md b/docs/CampaignDeletedNotification.md index 21b6e240..9f2d49be 100644 --- a/docs/CampaignDeletedNotification.md +++ b/docs/CampaignDeletedNotification.md @@ -7,7 +7,7 @@ A notification regarding a campaign that was deleted. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign** | [**CampaignStateNotification**](CampaignStateNotification.md) | | +**campaign** | [**Campaign**](Campaign.md) | | **deletedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time when the campaign was deleted. | diff --git a/docs/CampaignEditedNotification.md b/docs/CampaignEditedNotification.md index 40d8fe56..bae43911 100644 --- a/docs/CampaignEditedNotification.md +++ b/docs/CampaignEditedNotification.md @@ -7,8 +7,8 @@ A notification regarding a campaign which was edited. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign** | [**CampaignStateNotification**](CampaignStateNotification.md) | | -**oldCampaign** | [**CampaignStateNotification**](CampaignStateNotification.md) | | +**campaign** | [**Campaign**](Campaign.md) | | +**oldCampaign** | [**Campaign**](Campaign.md) | | **ruleset** | [**Ruleset**](Ruleset.md) | | [optional] diff --git a/docs/CampaignGroup.md b/docs/CampaignGroup.md index 78620a72..9dc3750b 100644 --- a/docs/CampaignGroup.md +++ b/docs/CampaignGroup.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **accountId** | **Integer** | The ID of the account that owns this entity. | -**name** | **String** | The name of this campaign access group. | +**name** | **String** | The name of the campaign access group. | **description** | **String** | A longer description of the campaign access group. | [optional] **subscribedApplicationsIds** | **List<Integer>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] **campaignIds** | **List<Integer>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] diff --git a/docs/CampaignRulesetChangedNotification.md b/docs/CampaignRulesetChangedNotification.md index b1a8d1cd..385319b1 100644 --- a/docs/CampaignRulesetChangedNotification.md +++ b/docs/CampaignRulesetChangedNotification.md @@ -7,7 +7,7 @@ A notification regarding a campaign whose ruleset was changed. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign** | [**CampaignStateNotification**](CampaignStateNotification.md) | | +**campaign** | [**Campaign**](Campaign.md) | | **oldRuleset** | [**Ruleset**](Ruleset.md) | | [optional] **ruleset** | [**Ruleset**](Ruleset.md) | | [optional] diff --git a/docs/CampaignStateChangedNotification.md b/docs/CampaignStateChangedNotification.md index cf0e7f70..b2dc816f 100644 --- a/docs/CampaignStateChangedNotification.md +++ b/docs/CampaignStateChangedNotification.md @@ -7,7 +7,7 @@ A notification regarding a campaign whose state changed. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign** | [**CampaignForNotification**](CampaignForNotification.md) | | +**campaign** | [**Campaign**](Campaign.md) | | **oldState** | **String** | The campaign's old state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'draft', 'archived'] | **newState** | **String** | The campaign's new state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'draft', 'archived'] | **ruleset** | [**Ruleset**](Ruleset.md) | | [optional] diff --git a/docs/CampaignTemplate.md b/docs/CampaignTemplate.md index 68d58c5a..0eff1cf5 100644 --- a/docs/CampaignTemplate.md +++ b/docs/CampaignTemplate.md @@ -53,6 +53,7 @@ REFERRALS | "referrals" LOYALTY | "loyalty" GIVEAWAYS | "giveaways" STRIKETHROUGH | "strikethrough" +ACHIEVEMENTS | "achievements" diff --git a/docs/CardExpiringPointsNotificationPolicy.md b/docs/CardExpiringPointsNotificationPolicy.md new file mode 100644 index 00000000..f82124bd --- /dev/null +++ b/docs/CardExpiringPointsNotificationPolicy.md @@ -0,0 +1,14 @@ + + +# CardExpiringPointsNotificationPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Notification name. | +**triggers** | [**List<CardExpiringPointsNotificationTrigger>**](CardExpiringPointsNotificationTrigger.md) | | +**batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] + + + diff --git a/docs/CardExpiringPointsNotificationTrigger.md b/docs/CardExpiringPointsNotificationTrigger.md new file mode 100644 index 00000000..27e5bcf3 --- /dev/null +++ b/docs/CardExpiringPointsNotificationTrigger.md @@ -0,0 +1,22 @@ + + +# CardExpiringPointsNotificationTrigger + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **Integer** | The amount of period. | +**period** | [**PeriodEnum**](#PeriodEnum) | Notification period indicated by a letter; \"w\" means week, \"d\" means day. | + + + +## Enum: PeriodEnum + +Name | Value +---- | ----- +W | "w" +D | "d" + + + diff --git a/docs/CartItem.md b/docs/CartItem.md index a7e9d9b9..1e9358b7 100644 --- a/docs/CartItem.md +++ b/docs/CartItem.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **remainingQuantity** | **Integer** | Remaining quantity of the item, calculated internally based on returns of this item. | [optional] **price** | [**BigDecimal**](BigDecimal.md) | Price of the item in the currency defined by your Application. This field is required if this item is not part of a [catalog](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). If it is part of a catalog, setting a price here overrides the price from the catalog. | [optional] **category** | **String** | Type, group or model of the item. | [optional] +**product** | [**Product**](Product.md) | | [optional] **weight** | [**BigDecimal**](BigDecimal.md) | Weight of item in grams. | [optional] **height** | [**BigDecimal**](BigDecimal.md) | Height of item in mm. | [optional] **width** | [**BigDecimal**](BigDecimal.md) | Width of item in mm. | [optional] diff --git a/docs/CatalogItem.md b/docs/CatalogItem.md index 8607e990..20a8ffcb 100644 --- a/docs/CatalogItem.md +++ b/docs/CatalogItem.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **catalogid** | **Integer** | The ID of the catalog the item belongs to. | **version** | **Integer** | The version of the catalog item. | **attributes** | [**List<ItemAttribute>**](ItemAttribute.md) | | [optional] +**product** | [**Product**](Product.md) | | [optional] diff --git a/docs/ChangeLoyaltyTierLevelEffectProps.md b/docs/ChangeLoyaltyTierLevelEffectProps.md index 1759cae7..d1047ef5 100644 --- a/docs/ChangeLoyaltyTierLevelEffectProps.md +++ b/docs/ChangeLoyaltyTierLevelEffectProps.md @@ -2,16 +2,16 @@ # ChangeLoyaltyTierLevelEffectProps -The properties specific to the \"changeLoyaltyTierLevel\" effect. This is triggered whenever the user's loyalty tier is upgraded or downgraded due to a validated rule that contained an \"add loyalty points\" effect. +The properties specific to the \"changeLoyaltyTierLevel\" effect. This is triggered whenever the user's loyalty tier is upgraded due to a validated rule that contained an \"addLoyaltyPoints\" effect. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ruleTitle** | **String** | The title of the rule that triggered the tier upgrade or downgrade. | +**ruleTitle** | **String** | The title of the rule that triggered the tier upgrade. | **programId** | **Integer** | The ID of the loyalty program where these points were added. | **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were added. | -**previousTierName** | **String** | The name of the tier from which the user was upgraded or downgraded. | [optional] -**newTierName** | **String** | The name of the tier to which the user has been upgraded or downgraded. | +**previousTierName** | **String** | The name of the tier from which the user was upgraded. | [optional] +**newTierName** | **String** | The name of the tier to which the user has been upgraded. | **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | The expiration date of the new tier. | [optional] diff --git a/docs/CouponsNotificationPolicy.md b/docs/CouponsNotificationPolicy.md index e2be8d30..d44a8b9a 100644 --- a/docs/CouponsNotificationPolicy.md +++ b/docs/CouponsNotificationPolicy.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Notification name. | **scopes** | [**List<ScopesEnum>**](#List<ScopesEnum>) | | +**batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] diff --git a/docs/CreateAchievement.md b/docs/CreateAchievement.md index a3ae4e4f..732e59cc 100644 --- a/docs/CreateAchievement.md +++ b/docs/CreateAchievement.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **name** | **String** | The internal name of the achievement used in API requests. **Note**: The name should start with a letter. This cannot be changed after the achievement has been created. | **title** | **String** | The display name for the achievement in the Campaign Manager. | **description** | **String** | A description of the achievement. | -**target** | [**BigDecimal**](BigDecimal.md) | The maximum number of times a specific action must be completed by a customer profile over a defined period of time. | -**period** | **String** | The relative duration after which the achievement is reset for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. | +**target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | +**period** | **String** | The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. | **periodEndOverride** | [**TimePoint**](TimePoint.md) | | [optional] diff --git a/docs/CreateApplicationAPIKey.md b/docs/CreateApplicationAPIKey.md index 2ba49521..98118644 100644 --- a/docs/CreateApplicationAPIKey.md +++ b/docs/CreateApplicationAPIKey.md @@ -6,9 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **String** | Title for API Key. | -**expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expired. | +**title** | **String** | Title of the API key. | +**expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expires. | **platform** | [**PlatformEnum**](#PlatformEnum) | The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. | [optional] +**type** | [**TypeEnum**](#TypeEnum) | The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. | [optional] +**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] @@ -29,3 +31,11 @@ EMARSYS | "emarsys" +## Enum: TypeEnum + +Name | Value +---- | ----- +STAGING | "staging" + + + diff --git a/docs/CustomerInventory.md b/docs/CustomerInventory.md index eed1f820..0dbb1da9 100644 --- a/docs/CustomerInventory.md +++ b/docs/CustomerInventory.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **referrals** | [**List<InventoryReferral>**](InventoryReferral.md) | | [optional] **coupons** | [**List<InventoryCoupon>**](InventoryCoupon.md) | The coupons reserved by this profile. This array includes hard and soft reservations. See each coupon's `reservation` property. | [optional] **giveaways** | [**List<Giveaway>**](Giveaway.md) | | [optional] +**achievements** | [**List<AchievementProgress>**](AchievementProgress.md) | | [optional] diff --git a/docs/CustomerProfile.md b/docs/CustomerProfile.md index 3383a6e4..1499e664 100644 --- a/docs/CustomerProfile.md +++ b/docs/CustomerProfile.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **loyaltyMemberships** | [**List<LoyaltyMembership>**](LoyaltyMembership.md) | **DEPRECATED** A list of loyalty programs joined by the customer. | [optional] **audienceMemberships** | [**List<AudienceMembership>**](AudienceMembership.md) | The audiences the customer belongs to. | [optional] **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. | -**sandbox** | **Boolean** | Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). | [optional] +**sandbox** | **Boolean** | An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). | [optional] diff --git a/docs/CustomerProfileAudienceRequestItem.md b/docs/CustomerProfileAudienceRequestItem.md index 2030cb8b..e038b75b 100644 --- a/docs/CustomerProfileAudienceRequestItem.md +++ b/docs/CustomerProfileAudienceRequestItem.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | [**ActionEnum**](#ActionEnum) | Defines the action to perform: - `add`: Adds the customer profile to the audience. - `delete`: Removes the customer profile from the audience. | +**action** | [**ActionEnum**](#ActionEnum) | Defines the action to perform: - `add`: Adds the customer profile to the audience. If the customer profile does not exist, it will be created. - `delete`: Removes the customer profile from the audience. | **profileIntegrationId** | **String** | The ID of this customer profile in the third-party integration. | **audienceId** | **Integer** | The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). | diff --git a/docs/CustomerSessionV2.md b/docs/CustomerSessionV2.md index 1733db91..ae478d35 100644 --- a/docs/CustomerSessionV2.md +++ b/docs/CustomerSessionV2.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **evaluableCampaignIds** | **List<Integer>** | 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. | [optional] **couponCodes** | **List<String>** | Any coupon codes entered. **Important**: If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. | [optional] **referralCode** | **String** | 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. | [optional] -**loyaltyCards** | **List<String>** | Any loyalty cards used. | [optional] +**loyaltyCards** | **List<String>** | Identifier of a loyalty card. | [optional] **state** | [**StateEnum**](#StateEnum) | 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). | **cartItems** | [**List<CartItem>**](CartItem.md) | 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. | **additionalCosts** | [**Map<String, AdditionalCost>**](AdditionalCost.md) | 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). | [optional] diff --git a/docs/DeactivateUserRequest.md b/docs/DeactivateUserRequest.md new file mode 100644 index 00000000..909210bb --- /dev/null +++ b/docs/DeactivateUserRequest.md @@ -0,0 +1,13 @@ + + +# DeactivateUserRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | The email address associated with the user profile. | + + + diff --git a/docs/DeleteUserRequest.md b/docs/DeleteUserRequest.md new file mode 100644 index 00000000..d9071eda --- /dev/null +++ b/docs/DeleteUserRequest.md @@ -0,0 +1,13 @@ + + +# DeleteUserRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | The email address associated with the user profile. | + + + diff --git a/docs/EmailEntity.md b/docs/EmailEntity.md index 8f147233..5de07a07 100644 --- a/docs/EmailEntity.md +++ b/docs/EmailEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **String** | The email address associated with your account. | +**email** | **String** | The email address associated with the user profile. | diff --git a/docs/Environment.md b/docs/Environment.md index 817cd528..aa4c15c6 100644 --- a/docs/Environment.md +++ b/docs/Environment.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **variables** | **String** | A stringified version of the environment's Talang variables scope. | **giveawaysPools** | [**List<GiveawaysPool>**](GiveawaysPool.md) | The giveaways pools that the application is subscribed to. | [optional] **loyaltyPrograms** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | The loyalty programs that the application is subscribed to. | [optional] +**achievements** | [**List<Achievement>**](Achievement.md) | The achievements, linked to the campaigns, belonging to the application. | [optional] **attributes** | [**List<Attribute>**](Attribute.md) | The attributes that the application is subscribed to. | [optional] **additionalCosts** | [**List<AccountAdditionalCost>**](AccountAdditionalCost.md) | The additional costs that the application is subscribed to. | [optional] **audiences** | [**List<Audience>**](Audience.md) | The audiences contained in the account which the application belongs to. | [optional] diff --git a/docs/ExpiringCouponsNotificationPolicy.md b/docs/ExpiringCouponsNotificationPolicy.md new file mode 100644 index 00000000..14ae9f93 --- /dev/null +++ b/docs/ExpiringCouponsNotificationPolicy.md @@ -0,0 +1,14 @@ + + +# ExpiringCouponsNotificationPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Notification name. | +**triggers** | [**List<ExpiringCouponsNotificationTrigger>**](ExpiringCouponsNotificationTrigger.md) | | +**batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] + + + diff --git a/docs/ExpiringCouponsNotificationTrigger.md b/docs/ExpiringCouponsNotificationTrigger.md new file mode 100644 index 00000000..92660fa2 --- /dev/null +++ b/docs/ExpiringCouponsNotificationTrigger.md @@ -0,0 +1,22 @@ + + +# ExpiringCouponsNotificationTrigger + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **Integer** | The amount of period. | +**period** | [**PeriodEnum**](#PeriodEnum) | Notification period indicated by a letter; \"w\" means week, \"d\" means day. | + + + +## Enum: PeriodEnum + +Name | Value +---- | ----- +W | "w" +D | "d" + + + diff --git a/docs/FuncArgDef.md b/docs/FuncArgDef.md index 87b2332c..a48d2faa 100644 --- a/docs/FuncArgDef.md +++ b/docs/FuncArgDef.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | [**TypeEnum**](#TypeEnum) | The type of value this argument expects. | -**description** | **String** | A campaigner-friendly description of the argument, this will also be shown in the rule editor. | +**description** | **String** | A campaigner-friendly description of the argument, this will also be shown in the rule editor. | [optional] diff --git a/docs/GetIntegrationCouponRequest.md b/docs/GetIntegrationCouponRequest.md new file mode 100644 index 00000000..c52da1eb --- /dev/null +++ b/docs/GetIntegrationCouponRequest.md @@ -0,0 +1,13 @@ + + +# GetIntegrationCouponRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**campaignIds** | **List<Integer>** | A list of IDs of the campaigns to get coupons from. | +**limit** | **Integer** | The maximum number of coupons included in the response. | + + + diff --git a/docs/IncreaseAchievementProgressEffectProps.md b/docs/IncreaseAchievementProgressEffectProps.md new file mode 100644 index 00000000..842e7898 --- /dev/null +++ b/docs/IncreaseAchievementProgressEffectProps.md @@ -0,0 +1,19 @@ + + +# IncreaseAchievementProgressEffectProps + +The properties specific to the \"increaseAchievementProgress\" effect. This gets triggered whenever a validated rule contained an \"increase customer progress\" effect. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**achievementId** | **Integer** | The internal ID of the achievement. | +**achievementName** | **String** | The name of the achievement. | +**progressTrackerId** | **Integer** | The internal ID of the achievement progress tracker. | [optional] +**delta** | [**BigDecimal**](BigDecimal.md) | The value by which the customer's current progress in the achievement is increased. | +**value** | [**BigDecimal**](BigDecimal.md) | The current progress of the customer in the achievement. | +**target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | +**isJustCompleted** | **Boolean** | Indicates if the customer has completed the achievement in the current session. | + + + diff --git a/docs/InlineResponse20011.md b/docs/InlineResponse20011.md index 6bf7a0e4..8044f6ed 100644 --- a/docs/InlineResponse20011.md +++ b/docs/InlineResponse20011.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | -**data** | [**List<CampaignTemplate>**](CampaignTemplate.md) | | +**totalResultSize** | **Integer** | | +**data** | [**List<CampaignGroup>**](CampaignGroup.md) | | diff --git a/docs/InlineResponse20012.md b/docs/InlineResponse20012.md index 9d45a221..e59c0683 100644 --- a/docs/InlineResponse20012.md +++ b/docs/InlineResponse20012.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | -**data** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | | +**hasMore** | **Boolean** | | +**data** | [**List<CampaignTemplate>**](CampaignTemplate.md) | | diff --git a/docs/InlineResponse20013.md b/docs/InlineResponse20013.md index f0cd4510..2fffb06d 100644 --- a/docs/InlineResponse20013.md +++ b/docs/InlineResponse20013.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | -**data** | [**List<LoyaltyProgramTransaction>**](LoyaltyProgramTransaction.md) | | +**totalResultSize** | **Integer** | | +**data** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | | diff --git a/docs/InlineResponse20014.md b/docs/InlineResponse20014.md index d417c1c2..fb39f629 100644 --- a/docs/InlineResponse20014.md +++ b/docs/InlineResponse20014.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | -**data** | [**List<LoyaltyCard>**](LoyaltyCard.md) | | +**data** | [**List<LoyaltyProgramTransaction>**](LoyaltyProgramTransaction.md) | | diff --git a/docs/InlineResponse20015.md b/docs/InlineResponse20015.md index 6b14e42d..75854f39 100644 --- a/docs/InlineResponse20015.md +++ b/docs/InlineResponse20015.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | true means there is more data in the source collection to request.. | -**data** | [**List<CardLedgerTransactionLogEntry>**](CardLedgerTransactionLogEntry.md) | List of loyalty card transaction logs. | +**hasMore** | **Boolean** | | +**data** | [**List<LoyaltyCard>**](LoyaltyCard.md) | | diff --git a/docs/InlineResponse20016.md b/docs/InlineResponse20016.md index 9961efb2..1e14d76d 100644 --- a/docs/InlineResponse20016.md +++ b/docs/InlineResponse20016.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Integer** | | [optional] -**data** | [**List<CollectionWithoutPayload>**](CollectionWithoutPayload.md) | | +**hasMore** | **Boolean** | true means there is more data in the source collection to request.. | +**data** | [**List<CardLedgerTransactionLogEntry>**](CardLedgerTransactionLogEntry.md) | List of loyalty card transaction logs. | diff --git a/docs/InlineResponse20017.md b/docs/InlineResponse20017.md index 183199fd..13d4aade 100644 --- a/docs/InlineResponse20017.md +++ b/docs/InlineResponse20017.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | -**data** | [**List<CollectionItem>**](CollectionItem.md) | | +**hasMore** | **Boolean** | | [optional] +**totalResultSize** | **Integer** | | [optional] +**data** | [**List<CollectionWithoutPayload>**](CollectionWithoutPayload.md) | | diff --git a/docs/InlineResponse20018.md b/docs/InlineResponse20018.md index 83d10840..9fc0bd21 100644 --- a/docs/InlineResponse20018.md +++ b/docs/InlineResponse20018.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Integer** | | [optional] -**data** | [**List<Collection>**](Collection.md) | | +**hasMore** | **Boolean** | | +**data** | [**List<CollectionItem>**](CollectionItem.md) | | diff --git a/docs/InlineResponse20031.md b/docs/InlineResponse20031.md index 4374fb9e..8a81df77 100644 --- a/docs/InlineResponse20031.md +++ b/docs/InlineResponse20031.md @@ -7,8 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Integer** | | [optional] -**data** | [**List<ApplicationReferee>**](ApplicationReferee.md) | | +**data** | [**List<AudienceAnalytics>**](AudienceAnalytics.md) | | diff --git a/docs/InlineResponse20032.md b/docs/InlineResponse20032.md index bc22f20d..9256aaca 100644 --- a/docs/InlineResponse20032.md +++ b/docs/InlineResponse20032.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | -**data** | [**List<Attribute>**](Attribute.md) | | +**hasMore** | **Boolean** | | [optional] +**data** | [**List<CustomerProfile>**](CustomerProfile.md) | | diff --git a/docs/InlineResponse20033.md b/docs/InlineResponse20033.md index 222446df..7c126f9b 100644 --- a/docs/InlineResponse20033.md +++ b/docs/InlineResponse20033.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] **totalResultSize** | **Integer** | | [optional] -**data** | [**List<CatalogItem>**](CatalogItem.md) | | +**data** | [**List<ApplicationReferee>**](ApplicationReferee.md) | | diff --git a/docs/InlineResponse20034.md b/docs/InlineResponse20034.md index 6c0967e6..5704e930 100644 --- a/docs/InlineResponse20034.md +++ b/docs/InlineResponse20034.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Integer** | | -**data** | [**List<AccountAdditionalCost>**](AccountAdditionalCost.md) | | +**data** | [**List<Attribute>**](Attribute.md) | | diff --git a/docs/InlineResponse20035.md b/docs/InlineResponse20035.md index efbae3d4..27b24f50 100644 --- a/docs/InlineResponse20035.md +++ b/docs/InlineResponse20035.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | -**data** | [**List<WebhookWithOutgoingIntegrationDetails>**](WebhookWithOutgoingIntegrationDetails.md) | | +**hasMore** | **Boolean** | | [optional] +**totalResultSize** | **Integer** | | [optional] +**data** | [**List<CatalogItem>**](CatalogItem.md) | | diff --git a/docs/InlineResponse20036.md b/docs/InlineResponse20036.md index ee1c3cf5..b9c287f8 100644 --- a/docs/InlineResponse20036.md +++ b/docs/InlineResponse20036.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Integer** | | -**data** | [**List<WebhookActivationLogEntry>**](WebhookActivationLogEntry.md) | | +**data** | [**List<AccountAdditionalCost>**](AccountAdditionalCost.md) | | diff --git a/docs/InlineResponse20037.md b/docs/InlineResponse20037.md index 701b1c6a..4b01936c 100644 --- a/docs/InlineResponse20037.md +++ b/docs/InlineResponse20037.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Integer** | | -**data** | [**List<WebhookLogEntry>**](WebhookLogEntry.md) | | +**data** | [**List<WebhookWithOutgoingIntegrationDetails>**](WebhookWithOutgoingIntegrationDetails.md) | | diff --git a/docs/InlineResponse20038.md b/docs/InlineResponse20038.md index 0d214953..2c92f13f 100644 --- a/docs/InlineResponse20038.md +++ b/docs/InlineResponse20038.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Integer** | | -**data** | [**List<EventType>**](EventType.md) | | +**data** | [**List<WebhookActivationLogEntry>**](WebhookActivationLogEntry.md) | | diff --git a/docs/InlineResponse20039.md b/docs/InlineResponse20039.md index 3ad75189..45316638 100644 --- a/docs/InlineResponse20039.md +++ b/docs/InlineResponse20039.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Integer** | | -**data** | [**List<User>**](User.md) | | +**data** | [**List<WebhookLogEntry>**](WebhookLogEntry.md) | | diff --git a/docs/InlineResponse20040.md b/docs/InlineResponse20040.md index 79b93b7d..724895c7 100644 --- a/docs/InlineResponse20040.md +++ b/docs/InlineResponse20040.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | [optional] -**hasMore** | **Boolean** | | [optional] -**data** | [**List<Change>**](Change.md) | | +**totalResultSize** | **Integer** | | +**data** | [**List<EventType>**](EventType.md) | | diff --git a/docs/InlineResponse20041.md b/docs/InlineResponse20041.md index 84b45fed..9514383e 100644 --- a/docs/InlineResponse20041.md +++ b/docs/InlineResponse20041.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Integer** | | -**data** | [**List<Export>**](Export.md) | | +**data** | [**List<User>**](User.md) | | diff --git a/docs/InlineResponse20042.md b/docs/InlineResponse20042.md index 85bb4342..d8183c1d 100644 --- a/docs/InlineResponse20042.md +++ b/docs/InlineResponse20042.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | -**data** | [**List<Role>**](Role.md) | | +**totalResultSize** | **Integer** | | [optional] +**hasMore** | **Boolean** | | [optional] +**data** | [**List<Change>**](Change.md) | | diff --git a/docs/InlineResponse20043.md b/docs/InlineResponse20043.md index 19ad1d9d..f8106df0 100644 --- a/docs/InlineResponse20043.md +++ b/docs/InlineResponse20043.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Integer** | | [optional] -**data** | [**List<Store>**](Store.md) | | +**totalResultSize** | **Integer** | | +**data** | [**List<Export>**](Export.md) | | diff --git a/docs/InlineResponse20044.md b/docs/InlineResponse20044.md new file mode 100644 index 00000000..66a35083 --- /dev/null +++ b/docs/InlineResponse20044.md @@ -0,0 +1,13 @@ + + +# InlineResponse20044 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**totalResultSize** | **Integer** | | +**data** | [**List<Role>**](Role.md) | | + + + diff --git a/docs/InlineResponse20045.md b/docs/InlineResponse20045.md new file mode 100644 index 00000000..26456774 --- /dev/null +++ b/docs/InlineResponse20045.md @@ -0,0 +1,14 @@ + + +# InlineResponse20045 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hasMore** | **Boolean** | | [optional] +**totalResultSize** | **Integer** | | [optional] +**data** | [**List<Store>**](Store.md) | | + + + diff --git a/docs/InlineResponse20046.md b/docs/InlineResponse20046.md new file mode 100644 index 00000000..969d2c36 --- /dev/null +++ b/docs/InlineResponse20046.md @@ -0,0 +1,13 @@ + + +# InlineResponse20046 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hasMore** | **Boolean** | | [optional] +**data** | [**List<Achievement>**](Achievement.md) | | + + + diff --git a/docs/InlineResponse20047.md b/docs/InlineResponse20047.md new file mode 100644 index 00000000..cf503521 --- /dev/null +++ b/docs/InlineResponse20047.md @@ -0,0 +1,13 @@ + + +# InlineResponse20047 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hasMore** | **Boolean** | | +**data** | [**List<AchievementProgress>**](AchievementProgress.md) | | + + + diff --git a/docs/IntegrationApi.md b/docs/IntegrationApi.md index b0caa7d6..424a66ff 100644 --- a/docs/IntegrationApi.md +++ b/docs/IntegrationApi.md @@ -355,7 +355,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer audienceId = 56; // Integer | The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). + Integer audienceId = 56; // Integer | The ID of the audience. try { apiInstance.deleteAudienceMembershipsV2(audienceId); } catch (ApiException e) { @@ -373,7 +373,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Integer**| The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). | + **audienceId** | **Integer**| The ID of the audience. | ### Return type @@ -425,7 +425,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer audienceId = 56; // Integer | The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). + Integer audienceId = 56; // Integer | The ID of the audience. try { apiInstance.deleteAudienceV2(audienceId); } catch (ApiException e) { @@ -443,7 +443,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Integer**| The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). | + **audienceId** | **Integer**| The ID of the audience. | ### Return type @@ -611,7 +611,7 @@ null (empty response body) # **getCustomerInventory** -> CustomerInventory getCustomerInventory(integrationId, profile, referrals, coupons, loyalty, giveaways) +> CustomerInventory getCustomerInventory(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements) List customer data @@ -645,8 +645,9 @@ public class Example { Boolean coupons = true; // Boolean | Set to `true` to include coupon information in the response. Boolean loyalty = true; // Boolean | Set to `true` to include loyalty information in the response. Boolean giveaways = true; // Boolean | Set to `true` to include giveaways information in the response. + Boolean achievements = true; // Boolean | Set to `true` to include achievement information in the response. try { - CustomerInventory result = apiInstance.getCustomerInventory(integrationId, profile, referrals, coupons, loyalty, giveaways); + CustomerInventory result = apiInstance.getCustomerInventory(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling IntegrationApi#getCustomerInventory"); @@ -669,6 +670,7 @@ Name | Type | Description | Notes **coupons** | **Boolean**| Set to `true` to include coupon information in the response. | [optional] **loyalty** | **Boolean**| Set to `true` to include loyalty information in the response. | [optional] **giveaways** | **Boolean**| Set to `true` to include giveaways information in the response. | [optional] + **achievements** | **Boolean**| Set to `true` to include achievement information in the response. | [optional] ### Return type @@ -947,7 +949,7 @@ public class Example { String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. String status = "active"; // String | Filter points based on their status. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. - Integer pageSize = 50; // Integer | The number of items in this response. + Integer pageSize = 50; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse2003 result = apiInstance.getLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip); @@ -971,7 +973,7 @@ Name | Type | Description | Notes **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **status** | **String**| Filter points based on their status. | [optional] [default to active] [enum: active, pending, expired] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 50] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type @@ -1029,9 +1031,9 @@ public class Example { String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. - OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse2001 result = apiInstance.getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); @@ -1055,9 +1057,9 @@ Name | Type | Description | Notes **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] **loyaltyTransactionType** | **String**| Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. | [optional] [enum: manual, session, import] - **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] + **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type @@ -1115,7 +1117,7 @@ public class Example { String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. String status = "active"; // String | Filter points based on their status. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. - Integer pageSize = 50; // Integer | The number of items in this response. + Integer pageSize = 50; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse2004 result = apiInstance.getLoyaltyProgramProfilePoints(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip); @@ -1139,7 +1141,7 @@ Name | Type | Description | Notes **integrationId** | **String**| The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. | **status** | **String**| Filter points based on their status. | [optional] [default to active] [enum: active, pending, expired] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 50] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type @@ -1197,9 +1199,9 @@ public class Example { String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. - OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Integer pageSize = 50; // Integer | The number of items in this response. + Integer pageSize = 50; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse2002 result = apiInstance.getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); @@ -1223,9 +1225,9 @@ Name | Type | Description | Notes **integrationId** | **String**| The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. | **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] **loyaltyTransactionType** | **String**| Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. | [optional] [enum: manual, session, import] - **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] + **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 50] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type @@ -1549,7 +1551,7 @@ Name | Type | Description | Notes Sync cart item catalog -Perform one or more of the following sync actions on this cart item catalog, up to 1000 actions: - Add an item to the catalog. - Edit the attributes of an item in the catalog. - Edit the attributes of more than one item in the catalog. - Remove an item from the catalog. - Remove more than one item from the catalog. **Note:** For more information, see [our documentation on managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs#displaying-the-details-and-content-of-a-catalog) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoe\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100 }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\" }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of several items at once</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing several items from the catalog at once</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> +Perform one or more of the following actions for a given cart item catalog: - Adding an item to the catalog. - Adding several items to the catalog. - Editing the attributes of an item in the catalog. - Editing the attributes of several items in the catalog. - Removing an item from the catalog. - Removing several items from the catalog. You can add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique `SKU`. **Important**: Syncing items with duplicate `SKU` values in a single request returns an error message with a `400` status code. For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Adding several items to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241027\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" }, { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\", \"product\": { \"name\": \"sneakers\" } }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of several items in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing several items from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> ### Example ```java @@ -1723,7 +1725,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer audienceId = 56; // Integer | The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). + Integer audienceId = 56; // Integer | The ID of the audience. Object body = null; // Object | body try { apiInstance.updateAudienceCustomersAttributes(audienceId, body); @@ -1742,7 +1744,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Integer**| The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). | + **audienceId** | **Integer**| The ID of the audience. | **body** | **Object**| body | ### Return type @@ -1795,7 +1797,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer audienceId = 56; // Integer | The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). + Integer audienceId = 56; // Integer | The ID of the audience. UpdateAudience body = new UpdateAudience(); // UpdateAudience | body try { Audience result = apiInstance.updateAudienceV2(audienceId, body); @@ -1815,7 +1817,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Integer**| The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). | + **audienceId** | **Integer**| The ID of the audience. | **body** | [**UpdateAudience**](UpdateAudience.md)| body | ### Return type @@ -1844,7 +1846,7 @@ Name | Type | Description | Notes Update multiple customer profiles' audiences -Update the specified customer profiles with the specified audiences. Use this endpoint when customers join or leave audiences. The limit of customer profiles per request is 1000. **Note:** You can also add customer profiles to or remove them from an audience using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. +Add customer profiles to or remove them from an audience. The endpoint supports 1000 audience actions (`add` or `remove`) per request. **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. ### Example ```java @@ -2062,7 +2064,7 @@ Name | Type | Description | Notes # **updateCustomerSessionV2** -> IntegrationStateV2 updateCustomerSessionV2(customerSessionId, body, dry) +> IntegrationStateV2 updateCustomerSessionV2(customerSessionId, body, dry, now) Update customer session @@ -2093,8 +2095,9 @@ public class Example { String customerSessionId = "customerSessionId_example"; // String | The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. IntegrationRequest body = new IntegrationRequest(); // IntegrationRequest | body Boolean dry = true; // Boolean | Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint will **only** consider the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). + OffsetDateTime now = new OffsetDateTime(); // OffsetDateTime | A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`. try { - IntegrationStateV2 result = apiInstance.updateCustomerSessionV2(customerSessionId, body, dry); + IntegrationStateV2 result = apiInstance.updateCustomerSessionV2(customerSessionId, body, dry, now); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling IntegrationApi#updateCustomerSessionV2"); @@ -2114,6 +2117,7 @@ Name | Type | Description | Notes **customerSessionId** | **String**| The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. | **body** | [**IntegrationRequest**](IntegrationRequest.md)| body | **dry** | **Boolean**| Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint will **only** consider the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). | [optional] + **now** | **OffsetDateTime**| A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`. | [optional] ### Return type diff --git a/docs/LoginParams.md b/docs/LoginParams.md index f1b4bca4..2730c9c5 100644 --- a/docs/LoginParams.md +++ b/docs/LoginParams.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **String** | The email address associated with your account. | +**email** | **String** | The email address associated with the user profile. | **password** | **String** | The password for your account. | diff --git a/docs/LoyaltyLedgerTransactions.md b/docs/LoyaltyLedgerTransactions.md index 9791ed50..41a6c2f9 100644 --- a/docs/LoyaltyLedgerTransactions.md +++ b/docs/LoyaltyLedgerTransactions.md @@ -7,7 +7,7 @@ List of loyalty ledger transactions. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | true means there is more data in the source collection to request. | [optional] +**hasMore** | **Boolean** | If `true`, it means that there is more data to request in the source collection. | [optional] **data** | [**List<LoyaltyLedgerEntry>**](LoyaltyLedgerEntry.md) | List of transaction entries from a loyalty ledger. | [optional] diff --git a/docs/LoyaltyProgram.md b/docs/LoyaltyProgram.md index 272cfb1c..f4581814 100644 --- a/docs/LoyaltyProgram.md +++ b/docs/LoyaltyProgram.md @@ -17,18 +17,30 @@ Name | Type | Description | Notes **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | **usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | 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. | -**tiersExpireIn** | **String** | The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. | [optional] +**tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | 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. | [optional] +**tiersExpireIn** | **String** | 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. | [optional] **tiersDowngradePolicy** | [**TiersDowngradePolicyEnum**](#TiersDowngradePolicyEnum) | 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. | [optional] +**programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | 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. | [optional] **accountID** | **Integer** | The ID of the Talon.One account that owns this program. | **name** | **String** | The internal name for the Loyalty Program. This is an immutable value. | **tiers** | [**List<LoyaltyTier>**](LoyaltyTier.md) | The tiers in this loyalty program. | [optional] **timezone** | **String** | A string containing an IANA timezone descriptor. | **cardBased** | **Boolean** | Defines the type of loyalty program: - `true`: the program is a card-based. - `false`: the program is profile-based. | **canUpdateTiers** | **Boolean** | `True` if the tier definitions can be updated. | [optional] +**canUpdateJoinPolicy** | **Boolean** | Indicates whether the program join policy can be updated. The join policy can be updated when this value is set to `true`. | [optional] **canUpgradeToAdvancedTiers** | **Boolean** | `True` if the program can be upgraded to use the `tiersExpireIn` and `tiersDowngradePolicy` properties. | [optional] +## Enum: TiersExpirationPolicyEnum + +Name | Value +---- | ----- +TIER_START_DATE | "tier_start_date" +PROGRAM_JOIN_DATE | "program_join_date" + + + ## Enum: TiersDowngradePolicyEnum Name | Value @@ -38,3 +50,13 @@ BALANCE_BASED | "balance_based" +## Enum: ProgramJoinPolicyEnum + +Name | Value +---- | ----- +NOT_JOIN | "not_join" +POINTS_ACTIVATED | "points_activated" +POINTS_EARNED | "points_earned" + + + diff --git a/docs/LoyaltyProgramLedgers.md b/docs/LoyaltyProgramLedgers.md index d9010edc..b2bba196 100644 --- a/docs/LoyaltyProgramLedgers.md +++ b/docs/LoyaltyProgramLedgers.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **id** | **Integer** | The internal ID of loyalty program. | **title** | **String** | Visible name of loyalty program. | **name** | **String** | Internal name of loyalty program. | +**joinDate** | [**OffsetDateTime**](OffsetDateTime.md) | The date on which the customer joined the loyalty program in RFC3339. **Note**: This is in the loyalty program's time zone. | [optional] **ledger** | [**LedgerInfo**](LedgerInfo.md) | | **subLedgers** | [**Map<String, LedgerInfo>**](LedgerInfo.md) | A map containing information about each loyalty subledger. | [optional] diff --git a/docs/LoyaltyProgramTransaction.md b/docs/LoyaltyProgramTransaction.md index bbb4da02..d3f56252 100644 --- a/docs/LoyaltyProgramTransaction.md +++ b/docs/LoyaltyProgramTransaction.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Integer** | ID of the loyalty ledger transaction. | **programId** | **Integer** | ID of the loyalty program. | +**campaignId** | **Integer** | ID of the campaign. | [optional] **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty transaction occurred. | **type** | [**TypeEnum**](#TypeEnum) | Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. | **amount** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points added or deducted in the transaction. | diff --git a/docs/ManagementApi.md b/docs/ManagementApi.md index 411c4d47..37af01b7 100644 --- a/docs/ManagementApi.md +++ b/docs/ManagementApi.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**addLoyaltyPoints**](ManagementApi.md#addLoyaltyPoints) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/add_points | Add points to customer profile [**copyCampaignToApplications**](ManagementApi.md#copyCampaignToApplications) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/copy | Copy the campaign into the specified Application [**createAccountCollection**](ManagementApi.md#createAccountCollection) | **POST** /v1/collections | Create account-level collection +[**createAchievement**](ManagementApi.md#createAchievement) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements | Create achievement [**createAdditionalCost**](ManagementApi.md#createAdditionalCost) | **POST** /v1/additional_costs | Create additional cost [**createAttribute**](ManagementApi.md#createAttribute) | **POST** /v1/attributes | Create custom attribute [**createCampaignFromTemplate**](ManagementApi.md#createCampaignFromTemplate) | **POST** /v1/applications/{applicationId}/create_campaign_from_template | Create campaign from campaign template @@ -15,11 +16,15 @@ Method | HTTP request | Description [**createCoupons**](ManagementApi.md#createCoupons) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Create coupons [**createCouponsAsync**](ManagementApi.md#createCouponsAsync) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_async | Create coupons asynchronously [**createCouponsForMultipleRecipients**](ManagementApi.md#createCouponsForMultipleRecipients) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_with_recipients | Create coupons for multiple recipients +[**createInviteEmail**](ManagementApi.md#createInviteEmail) | **POST** /v1/invite_emails | Resend invitation email +[**createInviteV2**](ManagementApi.md#createInviteV2) | **POST** /v2/invites | Invite user [**createPasswordRecoveryEmail**](ManagementApi.md#createPasswordRecoveryEmail) | **POST** /v1/password_recovery_emails | Request a password reset [**createSession**](ManagementApi.md#createSession) | **POST** /v1/sessions | Create session [**createStore**](ManagementApi.md#createStore) | **POST** /v1/applications/{applicationId}/stores | Create store +[**deactivateUserByEmail**](ManagementApi.md#deactivateUserByEmail) | **POST** /v1/users/deactivate | Deactivate user by email address [**deductLoyaltyCardPoints**](ManagementApi.md#deductLoyaltyCardPoints) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/deduct_points | Deduct points from card [**deleteAccountCollection**](ManagementApi.md#deleteAccountCollection) | **DELETE** /v1/collections/{collectionId} | Delete account-level collection +[**deleteAchievement**](ManagementApi.md#deleteAchievement) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Delete achievement [**deleteCampaign**](ManagementApi.md#deleteCampaign) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId} | Delete campaign [**deleteCollection**](ManagementApi.md#deleteCollection) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Delete campaign-level collection [**deleteCoupon**](ManagementApi.md#deleteCoupon) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} | Delete coupon @@ -27,8 +32,12 @@ Method | HTTP request | Description [**deleteLoyaltyCard**](ManagementApi.md#deleteLoyaltyCard) | **DELETE** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Delete loyalty card [**deleteReferral**](ManagementApi.md#deleteReferral) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId} | Delete referral [**deleteStore**](ManagementApi.md#deleteStore) | **DELETE** /v1/applications/{applicationId}/stores/{storeId} | Delete store +[**deleteUser**](ManagementApi.md#deleteUser) | **DELETE** /v1/users/{userId} | Delete user +[**deleteUserByEmail**](ManagementApi.md#deleteUserByEmail) | **POST** /v1/users/delete | Delete user by email address [**destroySession**](ManagementApi.md#destroySession) | **DELETE** /v1/sessions | Destroy session [**exportAccountCollectionItems**](ManagementApi.md#exportAccountCollectionItems) | **GET** /v1/collections/{collectionId}/export | Export account-level collection's items +[**exportAchievements**](ManagementApi.md#exportAchievements) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}/export | Export achievement customer data +[**exportAudiencesMemberships**](ManagementApi.md#exportAudiencesMemberships) | **GET** /v1/audiences/{audienceId}/memberships/export | Export audience members [**exportCollectionItems**](ManagementApi.md#exportCollectionItems) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export | Export campaign-level collection's items [**exportCoupons**](ManagementApi.md#exportCoupons) | **GET** /v1/applications/{applicationId}/export_coupons | Export coupons [**exportCustomerSessions**](ManagementApi.md#exportCustomerSessions) | **GET** /v1/applications/{applicationId}/export_customer_sessions | Export customer sessions @@ -45,6 +54,7 @@ Method | HTTP request | Description [**getAccount**](ManagementApi.md#getAccount) | **GET** /v1/accounts/{accountId} | Get account details [**getAccountAnalytics**](ManagementApi.md#getAccountAnalytics) | **GET** /v1/accounts/{accountId}/analytics | Get account analytics [**getAccountCollection**](ManagementApi.md#getAccountCollection) | **GET** /v1/collections/{collectionId} | Get account-level collection +[**getAchievement**](ManagementApi.md#getAchievement) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Get achievement [**getAdditionalCost**](ManagementApi.md#getAdditionalCost) | **GET** /v1/additional_costs/{additionalCostId} | Get additional cost [**getAdditionalCosts**](ManagementApi.md#getAdditionalCosts) | **GET** /v1/additional_costs | List additional costs [**getAllAccessLogs**](ManagementApi.md#getAllAccessLogs) | **GET** /v1/access_logs | List access logs @@ -62,10 +72,14 @@ Method | HTTP request | Description [**getApplications**](ManagementApi.md#getApplications) | **GET** /v1/applications | List Applications [**getAttribute**](ManagementApi.md#getAttribute) | **GET** /v1/attributes/{attributeId} | Get custom attribute [**getAttributes**](ManagementApi.md#getAttributes) | **GET** /v1/attributes | List custom attributes +[**getAudienceMemberships**](ManagementApi.md#getAudienceMemberships) | **GET** /v1/audiences/{audienceId}/memberships | List audience members [**getAudiences**](ManagementApi.md#getAudiences) | **GET** /v1/audiences | List audiences +[**getAudiencesAnalytics**](ManagementApi.md#getAudiencesAnalytics) | **GET** /v1/audiences/analytics | List audience analytics [**getCampaign**](ManagementApi.md#getCampaign) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId} | Get campaign [**getCampaignAnalytics**](ManagementApi.md#getCampaignAnalytics) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/analytics | Get analytics of campaigns [**getCampaignByAttributes**](ManagementApi.md#getCampaignByAttributes) | **POST** /v1/applications/{applicationId}/campaigns_search | List campaigns that match the given attributes +[**getCampaignGroup**](ManagementApi.md#getCampaignGroup) | **GET** /v1/campaign_groups/{campaignGroupId} | Get campaign access group +[**getCampaignGroups**](ManagementApi.md#getCampaignGroups) | **GET** /v1/campaign_groups | List campaign access groups [**getCampaignTemplates**](ManagementApi.md#getCampaignTemplates) | **GET** /v1/campaign_templates | List campaign templates [**getCampaigns**](ManagementApi.md#getCampaigns) | **GET** /v1/applications/{applicationId}/campaigns | List campaigns [**getChanges**](ManagementApi.md#getChanges) | **GET** /v1/changes | Get audit logs for an account @@ -76,6 +90,7 @@ Method | HTTP request | Description [**getCustomerActivityReportsWithoutTotalCount**](ManagementApi.md#getCustomerActivityReportsWithoutTotalCount) | **GET** /v1/applications/{applicationId}/customer_activity_reports/no_total | Get Activity Reports for Application Customers [**getCustomerAnalytics**](ManagementApi.md#getCustomerAnalytics) | **GET** /v1/applications/{applicationId}/customers/{customerId}/analytics | Get customer's analytics report [**getCustomerProfile**](ManagementApi.md#getCustomerProfile) | **GET** /v1/customers/{customerId} | Get customer profile +[**getCustomerProfileAchievementProgress**](ManagementApi.md#getCustomerProfileAchievementProgress) | **GET** /v1/applications/{applicationId}/achievement_progress/{integrationId} | List customer achievements [**getCustomerProfiles**](ManagementApi.md#getCustomerProfiles) | **GET** /v1/customers/no_total | List customer profiles [**getCustomersByAttributes**](ManagementApi.md#getCustomersByAttributes) | **POST** /v1/customer_search/no_total | List customer profiles matching the given attributes [**getEventTypes**](ManagementApi.md#getEventTypes) | **GET** /v1/event_types | List event types @@ -101,6 +116,7 @@ Method | HTTP request | Description [**getWebhooks**](ManagementApi.md#getWebhooks) | **GET** /v1/webhooks | List webhooks [**importAccountCollection**](ManagementApi.md#importAccountCollection) | **POST** /v1/collections/{collectionId}/import | Import data into existing account-level collection [**importAllowedList**](ManagementApi.md#importAllowedList) | **POST** /v1/attributes/{attributeId}/allowed_list/import | Import allowed values for attribute +[**importAudiencesMemberships**](ManagementApi.md#importAudiencesMemberships) | **POST** /v1/audiences/{audienceId}/memberships/import | Import audience members [**importCollection**](ManagementApi.md#importCollection) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import | Import data into existing campaign-level collection [**importCoupons**](ManagementApi.md#importCoupons) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons | Import coupons [**importLoyaltyCards**](ManagementApi.md#importLoyaltyCards) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/import_cards | Import loyalty cards @@ -109,6 +125,7 @@ Method | HTTP request | Description [**importPoolGiveaways**](ManagementApi.md#importPoolGiveaways) | **POST** /v1/giveaways/pools/{poolId}/import | Import giveaway codes into a giveaway pool [**importReferrals**](ManagementApi.md#importReferrals) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/import_referrals | Import referrals [**listAccountCollections**](ManagementApi.md#listAccountCollections) | **GET** /v1/collections | List collections in account +[**listAchievements**](ManagementApi.md#listAchievements) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements | List achievements [**listCatalogItems**](ManagementApi.md#listCatalogItems) | **GET** /v1/catalogs/{catalogId}/items | List items in a catalog [**listCollections**](ManagementApi.md#listCollections) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | List collections in campaign [**listCollectionsInApplication**](ManagementApi.md#listCollectionsInApplication) | **GET** /v1/applications/{applicationId}/collections | List collections in Application @@ -123,6 +140,7 @@ Method | HTTP request | Description [**searchCouponsAdvancedWithoutTotalCount**](ManagementApi.md#searchCouponsAdvancedWithoutTotalCount) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_search_advanced/no_total | List coupons that match the given attributes in campaign (without total count) [**transferLoyaltyCard**](ManagementApi.md#transferLoyaltyCard) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/transfer | Transfer card data [**updateAccountCollection**](ManagementApi.md#updateAccountCollection) | **PUT** /v1/collections/{collectionId} | Update account-level collection +[**updateAchievement**](ManagementApi.md#updateAchievement) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Update achievement [**updateAdditionalCost**](ManagementApi.md#updateAdditionalCost) | **PUT** /v1/additional_costs/{additionalCostId} | Update additional cost [**updateAttribute**](ManagementApi.md#updateAttribute) | **PUT** /v1/attributes/{attributeId} | Update custom attribute [**updateCampaign**](ManagementApi.md#updateCampaign) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId} | Update campaign @@ -131,7 +149,9 @@ Method | HTTP request | Description [**updateCouponBatch**](ManagementApi.md#updateCouponBatch) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Update coupons [**updateLoyaltyCard**](ManagementApi.md#updateLoyaltyCard) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Update loyalty card status [**updateReferral**](ManagementApi.md#updateReferral) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId} | Update referral +[**updateRoleV2**](ManagementApi.md#updateRoleV2) | **PUT** /v2/roles/{roleId} | Update role [**updateStore**](ManagementApi.md#updateStore) | **PUT** /v1/applications/{applicationId}/stores/{storeId} | Update store +[**updateUser**](ManagementApi.md#updateUser) | **PUT** /v1/users/{userId} | Update user @@ -453,6 +473,88 @@ Name | Type | Description | Notes **401** | Unauthorized | - | **409** | Conflict. A collection with this name already exists. | - | + +# **createAchievement** +> Achievement createAchievement(applicationId, campaignId, body) + +Create achievement + +Create a new achievement in a specific campaign. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + CreateAchievement body = new CreateAchievement(); // CreateAchievement | body + try { + Achievement result = apiInstance.createAchievement(applicationId, campaignId, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#createAchievement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **body** | [**CreateAchievement**](CreateAchievement.md)| body | + +### Return type + +[**Achievement**](Achievement.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**400** | Bad request | - | +**401** | Unauthorized | - | +**409** | Conflict. An achievement with this name or title already exists. | - | + # **createAdditionalCost** > AccountAdditionalCost createAdditionalCost(body) @@ -1002,13 +1104,13 @@ Name | Type | Description | Notes **200** | OK | - | **204** | No Content | - | - -# **createPasswordRecoveryEmail** -> NewPasswordEmail createPasswordRecoveryEmail(body) + +# **createInviteEmail** +> NewInviteEmail createInviteEmail(body) -Request a password reset +Resend invitation email -Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. +Resend an email invitation to an existing user. **Note:** The invitation token is valid for 24 hours after the email has been sent. ### Example ```java @@ -1038,12 +1140,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - NewPasswordEmail body = new NewPasswordEmail(); // NewPasswordEmail | body + NewInviteEmail body = new NewInviteEmail(); // NewInviteEmail | body try { - NewPasswordEmail result = apiInstance.createPasswordRecoveryEmail(body); + NewInviteEmail result = apiInstance.createInviteEmail(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#createPasswordRecoveryEmail"); + System.err.println("Exception when calling ManagementApi#createInviteEmail"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1057,11 +1159,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**NewPasswordEmail**](NewPasswordEmail.md)| body | + **body** | [**NewInviteEmail**](NewInviteEmail.md)| body | ### Return type -[**NewPasswordEmail**](NewPasswordEmail.md) +[**NewInviteEmail**](NewInviteEmail.md) ### Authorization @@ -1075,15 +1177,15 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Created | - | +**201** | Created | - | - -# **createSession** -> Session createSession(body) + +# **createInviteV2** +> User createInviteV2(body) -Create session +Invite user -Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> +Create a new user in the account and send an invitation to their email address. **Note**: The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the [Resend invitation email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) endpoint. ### Example ```java @@ -1113,12 +1215,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - LoginParams body = new LoginParams(); // LoginParams | body + NewInvitation body = new NewInvitation(); // NewInvitation | body try { - Session result = apiInstance.createSession(body); + User result = apiInstance.createInviteV2(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#createSession"); + System.err.println("Exception when calling ManagementApi#createInviteV2"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1132,11 +1234,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**LoginParams**](LoginParams.md)| body | + **body** | [**NewInvitation**](NewInvitation.md)| body | ### Return type -[**Session**](Session.md) +[**User**](User.md) ### Authorization @@ -1152,13 +1254,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **201** | Created | - | - -# **createStore** -> Store createStore(applicationId, body) + +# **createPasswordRecoveryEmail** +> NewPasswordEmail createPasswordRecoveryEmail(body) -Create store +Request a password reset -Create a new store in a specific Application. +Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. ### Example ```java @@ -1188,13 +1290,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - NewStore body = new NewStore(); // NewStore | body + NewPasswordEmail body = new NewPasswordEmail(); // NewPasswordEmail | body try { - Store result = apiInstance.createStore(applicationId, body); + NewPasswordEmail result = apiInstance.createPasswordRecoveryEmail(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#createStore"); + System.err.println("Exception when calling ManagementApi#createPasswordRecoveryEmail"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1208,12 +1309,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **body** | [**NewStore**](NewStore.md)| body | + **body** | [**NewPasswordEmail**](NewPasswordEmail.md)| body | ### Return type -[**Store**](Store.md) +[**NewPasswordEmail**](NewPasswordEmail.md) ### Authorization @@ -1227,17 +1327,15 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Created | - | -**400** | Bad request | - | -**409** | Conflict. A store with this integration ID already exists for this application. | - | +**204** | Created | - | - -# **deductLoyaltyCardPoints** -> deductLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body) + +# **createSession** +> Session createSession(body) -Deduct points from card +Create session -Deduct points from the given loyalty card in the specified card-based loyalty program. +Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> ### Example ```java @@ -1267,13 +1365,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. - String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. - DeductLoyaltyPoints body = new DeductLoyaltyPoints(); // DeductLoyaltyPoints | body + LoginParams body = new LoginParams(); // LoginParams | body try { - apiInstance.deductLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body); + Session result = apiInstance.createSession(body); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deductLoyaltyCardPoints"); + System.err.println("Exception when calling ManagementApi#createSession"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1287,13 +1384,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | - **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | - **body** | [**DeductLoyaltyPoints**](DeductLoyaltyPoints.md)| body | + **body** | [**LoginParams**](LoginParams.md)| body | ### Return type -null (empty response body) +[**Session**](Session.md) ### Authorization @@ -1307,18 +1402,15 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | No Content | - | -**400** | Bad request | - | -**401** | Unauthorized | - | -**404** | Not found | - | +**201** | Created | - | - -# **deleteAccountCollection** -> deleteAccountCollection(collectionId) + +# **createStore** +> Store createStore(applicationId, body) -Delete account-level collection +Create store -Delete a given account-level collection. +Create a new store in a specific Application. ### Example ```java @@ -1348,11 +1440,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + NewStore body = new NewStore(); // NewStore | body try { - apiInstance.deleteAccountCollection(collectionId); + Store result = apiInstance.createStore(applicationId, body); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deleteAccountCollection"); + System.err.println("Exception when calling ManagementApi#createStore"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1366,11 +1460,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **body** | [**NewStore**](NewStore.md)| body | ### Return type -null (empty response body) +[**Store**](Store.md) ### Authorization @@ -1378,22 +1473,23 @@ null (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | No Content | - | -**404** | Not found | - | +**201** | Created | - | +**400** | Bad request | - | +**409** | Conflict. A store with this integration ID already exists for this application. | - | - -# **deleteCampaign** -> deleteCampaign(applicationId, campaignId) + +# **deactivateUserByEmail** +> deactivateUserByEmail(body) -Delete campaign +Deactivate user by email address -Delete the given campaign. +Deactivate a specific user by their email address. ### Example ```java @@ -1423,12 +1519,11 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + DeactivateUserRequest body = new DeactivateUserRequest(); // DeactivateUserRequest | body try { - apiInstance.deleteCampaign(applicationId, campaignId); + apiInstance.deactivateUserByEmail(body); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deleteCampaign"); + System.err.println("Exception when calling ManagementApi#deactivateUserByEmail"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1442,8 +1537,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **body** | [**DeactivateUserRequest**](DeactivateUserRequest.md)| body | ### Return type @@ -1455,7 +1549,7 @@ null (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: Not defined ### HTTP response details @@ -1463,13 +1557,13 @@ null (empty response body) |-------------|-------------|------------------| **204** | No Content | - | - -# **deleteCollection** -> deleteCollection(applicationId, campaignId, collectionId) + +# **deductLoyaltyCardPoints** +> deductLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body) -Delete campaign-level collection +Deduct points from card -Delete a given campaign-level collection. +Deduct points from the given loyalty card in the specified card-based loyalty program. ### Example ```java @@ -1499,13 +1593,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. + DeductLoyaltyPoints body = new DeductLoyaltyPoints(); // DeductLoyaltyPoints | body try { - apiInstance.deleteCollection(applicationId, campaignId, collectionId); + apiInstance.deductLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deleteCollection"); + System.err.println("Exception when calling ManagementApi#deductLoyaltyCardPoints"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1519,9 +1613,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | + **body** | [**DeductLoyaltyPoints**](DeductLoyaltyPoints.md)| body | ### Return type @@ -1533,22 +1627,24 @@ null (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | No Content | - | +**400** | Bad request | - | **401** | Unauthorized | - | +**404** | Not found | - | - -# **deleteCoupon** -> deleteCoupon(applicationId, campaignId, couponId) + +# **deleteAccountCollection** +> deleteAccountCollection(collectionId) -Delete coupon +Delete account-level collection -Delete the specified coupon. +Delete a given account-level collection. ### Example ```java @@ -1578,13 +1674,11 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - String couponId = "couponId_example"; // String | The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. try { - apiInstance.deleteCoupon(applicationId, campaignId, couponId); + apiInstance.deleteAccountCollection(collectionId); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deleteCoupon"); + System.err.println("Exception when calling ManagementApi#deleteAccountCollection"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1598,9 +1692,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **couponId** | **String**| The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | ### Return type @@ -1613,20 +1705,21 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | No Content | - | +**404** | Not found | - | - -# **deleteCoupons** -> deleteCoupons(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch) + +# **deleteAchievement** +> deleteAchievement(applicationId, campaignId, achievementId) -Delete coupons +Delete achievement -Deletes all the coupons matching the specified criteria. +Delete the specified achievement. ### Example ```java @@ -1658,23 +1751,90 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. - OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - OffsetDateTime startsAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - OffsetDateTime startsBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - OffsetDateTime expiresAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - OffsetDateTime expiresBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - String valid = "valid_example"; // String | - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. - String batchId = "batchId_example"; // String | Filter results by batches of coupons - String usable = "usable_example"; // String | - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. - Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. - String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. - Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code + Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. try { - apiInstance.deleteCoupons(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch); + apiInstance.deleteAchievement(applicationId, campaignId, achievementId); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deleteCoupons"); + System.err.println("Exception when calling ManagementApi#deleteAchievement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | + +### Return type + +null (empty response body) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content | - | +**401** | Unauthorized | - | +**404** | Not found | - | + + +# **deleteCampaign** +> deleteCampaign(applicationId, campaignId) + +Delete campaign + +Delete the given campaign. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + try { + apiInstance.deleteCampaign(applicationId, campaignId); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#deleteCampaign"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1690,19 +1850,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] - **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **startsAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **startsBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **expiresAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **expiresBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **valid** | **String**| - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] - **batchId** | **String**| Filter results by batches of coupons | [optional] - **usable** | **String**| - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. | [optional] [enum: true, false] - **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] - **recipientIntegrationId** | **String**| Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. | [optional] - **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code | [optional] [default to false] ### Return type @@ -1722,13 +1869,13 @@ null (empty response body) |-------------|-------------|------------------| **204** | No Content | - | - -# **deleteLoyaltyCard** -> deleteLoyaltyCard(loyaltyProgramId, loyaltyCardId) + +# **deleteCollection** +> deleteCollection(applicationId, campaignId, collectionId) -Delete loyalty card +Delete campaign-level collection -Delete the given loyalty card. +Delete a given campaign-level collection. ### Example ```java @@ -1758,12 +1905,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. - String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. try { - apiInstance.deleteLoyaltyCard(loyaltyProgramId, loyaltyCardId); + apiInstance.deleteCollection(applicationId, campaignId, collectionId); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deleteLoyaltyCard"); + System.err.println("Exception when calling ManagementApi#deleteCollection"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1777,8 +1925,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | - **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | ### Return type @@ -1798,15 +1947,14 @@ null (empty response body) |-------------|-------------|------------------| **204** | No Content | - | **401** | Unauthorized | - | -**404** | Not found | - | - -# **deleteReferral** -> deleteReferral(applicationId, campaignId, referralId) + +# **deleteCoupon** +> deleteCoupon(applicationId, campaignId, couponId) -Delete referral +Delete coupon -Delete the specified referral. +Delete the specified coupon. ### Example ```java @@ -1838,11 +1986,11 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - String referralId = "referralId_example"; // String | The ID of the referral code. + String couponId = "couponId_example"; // String | The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. try { - apiInstance.deleteReferral(applicationId, campaignId, referralId); + apiInstance.deleteCoupon(applicationId, campaignId, couponId); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deleteReferral"); + System.err.println("Exception when calling ManagementApi#deleteCoupon"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1858,7 +2006,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **referralId** | **String**| The ID of the referral code. | + **couponId** | **String**| The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. | ### Return type @@ -1878,13 +2026,13 @@ null (empty response body) |-------------|-------------|------------------| **204** | No Content | - | - -# **deleteStore** -> deleteStore(applicationId, storeId) + +# **deleteCoupons** +> deleteCoupons(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch) -Delete store +Delete coupons -Delete the specified store. +Deletes all the coupons matching the specified criteria. ### Example ```java @@ -1915,11 +2063,24 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. + OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + OffsetDateTime startsAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + OffsetDateTime startsBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + OffsetDateTime expiresAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + OffsetDateTime expiresBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + String valid = "valid_example"; // String | - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. + String batchId = "batchId_example"; // String | Filter results by batches of coupons + String usable = "usable_example"; // String | - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. + Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. + Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code try { - apiInstance.deleteStore(applicationId, storeId); + apiInstance.deleteCoupons(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#deleteStore"); + System.err.println("Exception when calling ManagementApi#deleteCoupons"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1934,7 +2095,20 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **storeId** | **String**| The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] + **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **startsAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **startsBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **expiresAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **expiresBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **valid** | **String**| - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] + **batchId** | **String**| Filter results by batches of coupons | [optional] + **usable** | **String**| - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. | [optional] [enum: true, false] + **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **recipientIntegrationId** | **String**| Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. | [optional] + **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code | [optional] [default to false] ### Return type @@ -1947,21 +2121,20 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | No Content | - | -**404** | Not found | - | - -# **destroySession** -> destroySession() + +# **deleteLoyaltyCard** +> deleteLoyaltyCard(loyaltyProgramId, loyaltyCardId) -Destroy session +Delete loyalty card -Destroys the session. +Delete the given loyalty card. ### Example ```java @@ -1991,10 +2164,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. try { - apiInstance.destroySession(); + apiInstance.deleteLoyaltyCard(loyaltyProgramId, loyaltyCardId); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#destroySession"); + System.err.println("Exception when calling ManagementApi#deleteLoyaltyCard"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2005,7 +2180,11 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | ### Return type @@ -2018,20 +2197,22 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | No Content | - | +**401** | Unauthorized | - | +**404** | Not found | - | - -# **exportAccountCollectionItems** -> String exportAccountCollectionItems(collectionId) + +# **deleteReferral** +> deleteReferral(applicationId, campaignId, referralId) -Export account-level collection's items +Delete referral -Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). +Delete the specified referral. ### Example ```java @@ -2061,12 +2242,974 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + String referralId = "referralId_example"; // String | The ID of the referral code. + try { + apiInstance.deleteReferral(applicationId, campaignId, referralId); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#deleteReferral"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **referralId** | **String**| The ID of the referral code. | + +### Return type + +null (empty response body) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content | - | + + +# **deleteStore** +> deleteStore(applicationId, storeId) + +Delete store + +Delete the specified store. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. + try { + apiInstance.deleteStore(applicationId, storeId); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#deleteStore"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **storeId** | **String**| The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | + +### Return type + +null (empty response body) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content | - | +**404** | Not found | - | + + +# **deleteUser** +> deleteUser(userId) + +Delete user + +Delete a specific user. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer userId = 56; // Integer | The ID of the user. + try { + apiInstance.deleteUser(userId); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#deleteUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Integer**| The ID of the user. | + +### Return type + +null (empty response body) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content | - | + + +# **deleteUserByEmail** +> deleteUserByEmail(body) + +Delete user by email address + +Delete a specific user by their email address. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + DeleteUserRequest body = new DeleteUserRequest(); // DeleteUserRequest | body + try { + apiInstance.deleteUserByEmail(body); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#deleteUserByEmail"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**DeleteUserRequest**](DeleteUserRequest.md)| body | + +### Return type + +null (empty response body) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content | - | + + +# **destroySession** +> destroySession() + +Destroy session + +Destroys the session. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + try { + apiInstance.destroySession(); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#destroySession"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +null (empty response body) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content | - | + + +# **exportAccountCollectionItems** +> String exportAccountCollectionItems(collectionId) + +Export account-level collection's items + +Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + try { + String result = apiInstance.exportAccountCollectionItems(collectionId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#exportAccountCollectionItems"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + +### Return type + +**String** + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/csv + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized - Invalid API key | - | +**404** | Not found | - | + + +# **exportAchievements** +> String exportAchievements(applicationId, campaignId, achievementId) + +Export achievement customer data + +Download a CSV file containing a list of all the customers who have participated in and are currently participating in the given achievement. The CSV file contains the following columns: - `profileIntegrationID`: The integration ID of the customer profile participating in the achievement. - `title`: The display name of the achievement in the Campaign Manager. - `target`: The required number of actions or the transactional milestone to complete the achievement. - `progress`: The current progress of the customer in the achievement. - `status`: The status of the achievement. Can be one of: ['inprogress', 'completed', 'expired']. - `startDate`: The date on which the customer profile started the achievement in RFC3339. - `endDate`: The date on which the achievement ends and resets for the customer profile in RFC3339. - `completionDate`: The date on which the customer profile completed the achievement in RFC3339. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + try { + String result = apiInstance.exportAchievements(applicationId, campaignId, achievementId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#exportAchievements"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | + +### Return type + +**String** + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/csv + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad request | - | +**401** | Unauthorized | - | +**404** | Not found | - | + + +# **exportAudiencesMemberships** +> String exportAudiencesMemberships(audienceId) + +Export audience members + +Download a CSV file containing the integration IDs of the members of an audience. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The file contains the following column: - `profileintegrationid`: The integration ID of the customer profile. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer audienceId = 56; // Integer | The ID of the audience. + try { + String result = apiInstance.exportAudiencesMemberships(audienceId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#exportAudiencesMemberships"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audienceId** | **Integer**| The ID of the audience. | + +### Return type + +**String** + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/csv + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad request | - | +**401** | Unauthorized - Invalid API key | - | +**404** | Not found | - | + + +# **exportCollectionItems** +> String exportCollectionItems(applicationId, campaignId, collectionId) + +Export campaign-level collection's items + +Download a CSV file containing items from a given campaign-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + try { + String result = apiInstance.exportCollectionItems(applicationId, campaignId, collectionId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#exportCollectionItems"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + +### Return type + +**String** + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/csv + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | +**404** | Not found | - | + + +# **exportCoupons** +> String exportCoupons(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly) + +Export coupons + +Download a CSV file containing the coupons that match the given properties. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file can contain the following columns: - `accountid`: The ID of your deployment. - `applicationid`: The ID of the Application this coupon is related to. - `attributes`: A json object describing _custom_ referral attribute names and their values. - `batchid`: The ID of the batch this coupon is part of. - `campaignid`: The ID of the campaign this coupon is related to. - `counter`: The number of times this coupon has been redeemed. - `created`: The creation date of the coupon code. - `deleted`: Whether the coupon code is deleted. - `deleted_changelogid`: The ID of the delete event in the logs. - `discount_counter`: The amount of discount given by this coupon. - `discount_limitval`: The maximum discount amount that can be given be this coupon. - `expirydate`: The end date in RFC3339 of the code redemption period. - `id`: The internal ID of the coupon code. - `importid`: The ID of the import job that created this coupon. - `is_reservation_mandatory`: Whether this coupon requires a reservation to be redeemed. - `limits`: The limits set on this coupon. - `limitval`: The maximum number of redemptions of this code. - `recipientintegrationid`: The integration ID of the customer considered as recipient of the coupon. Only the customer with this integration ID can redeem the corresponding coupon code. Learn about [coupon reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). - `referralid`: The ID of the referral code that triggered the creation of this coupon (create coupon effect). - `reservation`: Whether the coupon is reserved. - `reservation_counter`: How many times this coupon has been reserved. - `reservation_limitval`: The maximum of number of reservations this coupon can have. - `startdate`: The start date in RFC3339 of the code redemption period. - `value`: The coupon code. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign. + String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. + String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. + OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. + String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. + Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. + String batchId = "batchId_example"; // String | Filter results by batches of coupons + Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code. + String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. + String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. + Boolean valuesOnly = false; // Boolean | Filter results to only return the coupon codes (`value` column) without the associated coupon data. + try { + String result = apiInstance.exportCoupons(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#exportCoupons"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **BigDecimal**| Filter results by campaign. | [optional] + **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] + **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] + **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **valid** | **String**| Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] + **usable** | **String**| Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. | [optional] [enum: true, false] + **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **recipientIntegrationId** | **String**| Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. | [optional] + **batchId** | **String**| Filter results by batches of coupons | [optional] + **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false] + **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] + **campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. | [optional] [enum: enabled, disabled, archived, draft, scheduled, running, expired] + **valuesOnly** | **Boolean**| Filter results to only return the coupon codes (`value` column) without the associated coupon data. | [optional] [default to false] + +### Return type + +**String** + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/csv + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **exportCustomerSessions** +> String exportCustomerSessions(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState) + +Export customer sessions + +Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. + OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. + String profileIntegrationId = "profileIntegrationId_example"; // String | Only return sessions for the customer that matches this customer integration ID. + String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. + String customerSessionState = "customerSessionState_example"; // String | Filter results by state. + try { + String result = apiInstance.exportCustomerSessions(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#exportCustomerSessions"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. | [optional] + **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. | [optional] + **profileIntegrationId** | **String**| Only return sessions for the customer that matches this customer integration ID. | [optional] + **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] + **customerSessionState** | **String**| Filter results by state. | [optional] [enum: open, closed, partially_returned, cancelled] + +### Return type + +**String** + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/csv + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **exportCustomersTiers** +> String exportCustomersTiers(loyaltyProgramId, subledgerIds, tierNames) + +Export customers' tier data + +Download a CSV file containing the tier information for customers of the specified loyalty program. The generated file contains the following columns: - `programid`: The identifier of the loyalty program. It is displayed in your Talon.One deployment URL. - `subledgerid`: The ID of the subledger associated with the loyalty program. This column is empty if the loyalty program has no subledger. In this case, refer to the export file name to get the ID of the loyalty program. - `customerprofileid`: The ID used to integrate customer profiles with the loyalty program. - `tiername`: The name of the tier. - `startdate`: The tier start date in RFC3339. - `expirydate`: The tier expiry date in RFC3339. You can filter the results by providing the following optional input parameters: - `subledgerId` (optional): Filter results by subledger ID. If no value is provided, all subledger data for the specified loyalty program will be exported. - `tierName` (optional): Filter results by tier name. If no value is provided, all tier data for the specified loyalty program will be exported. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program. + List subledgerIds = Arrays.asList(); // List | An array of subledgers IDs to filter the export by. + List tierNames = Arrays.asList(); // List | An array of tier names to filter the export by. + try { + String result = apiInstance.exportCustomersTiers(loyaltyProgramId, subledgerIds, tierNames); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#exportCustomersTiers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **loyaltyProgramId** | **String**| The identifier for the loyalty program. | + **subledgerIds** | [**List<String>**](String.md)| An array of subledgers IDs to filter the export by. | [optional] + **tierNames** | [**List<String>**](String.md)| An array of tier names to filter the export by. | [optional] + +### Return type + +**String** + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/csv + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **exportEffects** +> String exportEffects(applicationId, campaignId, createdBefore, createdAfter, dateFormat) + +Export triggered effects + +Download a CSV file containing the triggered effects that match the given attributes. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `applicationid`: The ID of the Application. - `campaignid`: The ID of the campaign. - `couponid`: The ID of the coupon, when applicable to the effect. - `created`: The timestamp of the effect. - `event_type`: The name of the event. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/events). - `eventid`: The internal ID of the effect. - `name`: The effect name. See the [docs](https://docs.talon.one/docs/dev/integration-api/api-effects). - `profileintegrationid`: The ID of the customer profile, when applicable. - `props`: The [properties](https://docs.talon.one/docs/dev/integration-api/api-effects) of the effect. - `ruleindex`: The index of the rule. - `rulesetid`: The ID of the rule set. - `sessionid`: The internal ID of the session that triggered the effect. - `profileid`: The internal ID of the customer profile. - `sessionintegrationid`: The integration ID of the session. - `total_revenue`: The total revenue. - `store_integration_id`: The integration ID of the store. You choose this ID when you create a store. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign. + OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. try { - String result = apiInstance.exportAccountCollectionItems(collectionId); + String result = apiInstance.exportEffects(applicationId, campaignId, createdBefore, createdAfter, dateFormat); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportAccountCollectionItems"); + System.err.println("Exception when calling ManagementApi#exportEffects"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2080,7 +3223,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **BigDecimal**| Filter results by campaign. | [optional] + **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] ### Return type @@ -2099,16 +3246,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**401** | Unauthorized - Invalid API key | - | -**404** | Not found | - | - -# **exportCollectionItems** -> String exportCollectionItems(applicationId, campaignId, collectionId) + +# **exportLoyaltyBalance** +> String exportLoyaltyBalance(loyaltyProgramId, endDate) -Export campaign-level collection's items +Export customer loyalty balance to CSV -Download a CSV file containing items from a given campaign-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). +⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To export customer loyalty balances to CSV, use the [Export customer loyalty balances to CSV](/management-api#tag/Loyalty/operation/exportLoyaltyBalances) endpoint. Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). ### Example ```java @@ -2138,14 +3283,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program. + OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. try { - String result = apiInstance.exportCollectionItems(applicationId, campaignId, collectionId); + String result = apiInstance.exportLoyaltyBalance(loyaltyProgramId, endDate); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportCollectionItems"); + System.err.println("Exception when calling ManagementApi#exportLoyaltyBalance"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2159,9 +3303,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **loyaltyProgramId** | **String**| The identifier for the loyalty program. | + **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] ### Return type @@ -2180,16 +3323,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad request | - | **401** | Unauthorized | - | -**404** | Not found | - | - -# **exportCoupons** -> String exportCoupons(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly) + +# **exportLoyaltyBalances** +> String exportLoyaltyBalances(loyaltyProgramId, endDate) -Export coupons +Export customer loyalty balances -Download a CSV file containing the coupons that match the given properties. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file can contain the following columns: - `accountid`: The ID of your deployment. - `applicationid`: The ID of the Application this coupon is related to. - `attributes`: A json object describing _custom_ referral attribute names and their values. - `batchid`: The ID of the batch this coupon is part of. - `campaignid`: The ID of the campaign this coupon is related to. - `counter`: The number of times this coupon has been redeemed. - `created`: The creation date of the coupon code. - `deleted`: Whether the coupon code is deleted. - `deleted_changelogid`: The ID of the delete event in the logs. - `discount_counter`: The amount of discount given by this coupon. - `discount_limitval`: The maximum discount amount that can be given be this coupon. - `expirydate`: The end date in RFC3339 of the code redemption period. - `id`: The internal ID of the coupon code. - `importid`: The ID of the import job that created this coupon. - `is_reservation_mandatory`: Whether this coupon requires a reservation to be redeemed. - `limits`: The limits set on this coupon. - `limitval`: The maximum number of redemptions of this code. - `recipientintegrationid`: The integration ID of the customer considered as recipient of the coupon. Only the customer with this integration ID can redeem the corresponding coupon code. Learn about [coupon reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). - `referralid`: The ID of the referral code that triggered the creation of this coupon (create coupon effect). - `reservation`: Whether the coupon is reserved. - `reservation_counter`: How many times this coupon has been reserved. - `reservation_limitval`: The maximum of number of reservations this coupon can have. - `startdate`: The start date in RFC3339 of the code redemption period. - `value`: The coupon code. +Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `profileIntegrationID`: The integration ID of the customer profile. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. - `currentTier`: The tier that the customer is in at the time of the export. ### Example ```java @@ -2219,26 +3362,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign. - String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. - String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. - OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. - String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. - Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. - String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. - String batchId = "batchId_example"; // String | Filter results by batches of coupons - Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code. - String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. - String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. - Boolean valuesOnly = false; // Boolean | Filter results to only return the coupon codes (`value` column) without the associated coupon data. + String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program. + OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. try { - String result = apiInstance.exportCoupons(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly); + String result = apiInstance.exportLoyaltyBalances(loyaltyProgramId, endDate); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportCoupons"); + System.err.println("Exception when calling ManagementApi#exportLoyaltyBalances"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2252,21 +3382,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **BigDecimal**| Filter results by campaign. | [optional] - **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] - **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] - **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **valid** | **String**| Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] - **usable** | **String**| Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. | [optional] [enum: true, false] - **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] - **recipientIntegrationId** | **String**| Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. | [optional] - **batchId** | **String**| Filter results by batches of coupons | [optional] - **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false] - **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] - **campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. | [optional] [enum: enabled, disabled, archived, draft, scheduled, running, expired] - **valuesOnly** | **Boolean**| Filter results to only return the coupon codes (`value` column) without the associated coupon data. | [optional] [default to false] + **loyaltyProgramId** | **String**| The identifier for the loyalty program. | + **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] ### Return type @@ -2285,14 +3402,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad request | - | +**401** | Unauthorized | - | - -# **exportCustomerSessions** -> String exportCustomerSessions(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState) + +# **exportLoyaltyCardBalances** +> String exportLoyaltyCardBalances(loyaltyProgramId, endDate) -Export customer sessions +Export all card transaction logs -Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. +Download a CSV file containing the balances of all cards in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `cardIdentifier`: The alphanumeric identifier of the loyalty card. - `cardState`:The state of the loyalty card. It can be `active` or `inactive`. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. ### Example ```java @@ -2322,17 +3441,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. - OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. - String profileIntegrationId = "profileIntegrationId_example"; // String | Only return sessions for the customer that matches this customer integration ID. - String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. - String customerSessionState = "customerSessionState_example"; // String | Filter results by state. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. try { - String result = apiInstance.exportCustomerSessions(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState); + String result = apiInstance.exportLoyaltyCardBalances(loyaltyProgramId, endDate); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportCustomerSessions"); + System.err.println("Exception when calling ManagementApi#exportLoyaltyCardBalances"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2346,12 +3461,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. | [optional] - **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. | [optional] - **profileIntegrationId** | **String**| Only return sessions for the customer that matches this customer integration ID. | [optional] - **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] - **customerSessionState** | **String**| Filter results by state. | [optional] [enum: open, closed, partially_returned, cancelled] + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] ### Return type @@ -2370,14 +3481,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad request | - | +**401** | Unauthorized | - | - -# **exportCustomersTiers** -> String exportCustomersTiers(loyaltyProgramId, subledgerIds, tierNames) + +# **exportLoyaltyCardLedger** +> String exportLoyaltyCardLedger(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat) -Export customers' tier data +Export card's ledger log -Download a CSV file containing the tier information for customers of the specified loyalty program. The generated file contains the following columns: - `programid`: The identifier of the loyalty program. It is displayed in your Talon.One deployment URL. - `subledgerid`: The ID of the subledger associated with the loyalty program. This column is empty if the loyalty program has no subledger. In this case, refer to the export file name to get the ID of the loyalty program. - `customerprofileid`: The ID used to integrate customer profiles with the loyalty program. - `tiername`: The name of the tier. - `startdate`: The tier start date in RFC3339. - `expirydate`: The tier expiry date in RFC3339. You can filter the results by providing the following optional input parameters: - `subledgerId` (optional): Filter results by subledger ID. If no value is provided, all subledger data for the specified loyalty program will be exported. - `tierName` (optional): Filter results by tier name. If no value is provided, all tier data for the specified loyalty program will be exported. +Download a CSV file containing a loyalty card ledger log of the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). ### Example ```java @@ -2407,14 +3520,16 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program. - List subledgerIds = Arrays.asList(); // List | An array of subledgers IDs to filter the export by. - List tierNames = Arrays.asList(); // List | An array of tier names to filter the export by. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. + OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. try { - String result = apiInstance.exportCustomersTiers(loyaltyProgramId, subledgerIds, tierNames); + String result = apiInstance.exportLoyaltyCardLedger(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportCustomersTiers"); + System.err.println("Exception when calling ManagementApi#exportLoyaltyCardLedger"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2428,9 +3543,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **String**| The identifier for the loyalty program. | - **subledgerIds** | [**List<String>**](String.md)| An array of subledgers IDs to filter the export by. | [optional] - **tierNames** | [**List<String>**](String.md)| An array of tier names to filter the export by. | [optional] + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | + **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | + **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | + **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] ### Return type @@ -2449,14 +3566,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**401** | Unauthorized | - | +**404** | Not found | - | - -# **exportEffects** -> String exportEffects(applicationId, campaignId, createdBefore, createdAfter, dateFormat) + +# **exportLoyaltyLedger** +> String exportLoyaltyLedger(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat) -Export triggered effects +Export customer's transaction logs -Download a CSV file containing the triggered effects that match the given attributes. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `applicationid`: The ID of the Application. - `campaignid`: The ID of the campaign. - `couponid`: The ID of the coupon, when applicable to the effect. - `created`: The timestamp of the effect. - `event_type`: The name of the event. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/events). - `eventid`: The internal ID of the effect. - `name`: The effect name. See the [docs](https://docs.talon.one/docs/dev/integration-api/api-effects). - `profileintegrationid`: The ID of the customer profile, when applicable. - `props`: The [properties](https://docs.talon.one/docs/dev/integration-api/api-effects) of the effect. - `ruleindex`: The index of the rule. - `rulesetid`: The ID of the rule set. - `sessionid`: The internal ID of the session that triggered the effect. - `profileid`: The internal ID of the customer profile. - `sessionintegrationid`: The integration ID of the session. - `total_revenue`: The total revenue. - `store_integration_id`: The integration ID of the store. You choose this ID when you create a store. +Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The type of the loyalty program. - `name`: The name of the loyalty program. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. ### Example ```java @@ -2486,16 +3605,16 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign. - OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program. + String integrationId = "integrationId_example"; // String | The identifier of the profile. String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. try { - String result = apiInstance.exportEffects(applicationId, campaignId, createdBefore, createdAfter, dateFormat); + String result = apiInstance.exportLoyaltyLedger(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportEffects"); + System.err.println("Exception when calling ManagementApi#exportLoyaltyLedger"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2509,10 +3628,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **BigDecimal**| Filter results by campaign. | [optional] - **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | + **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | + **loyaltyProgramId** | **String**| The identifier for the loyalty program. | + **integrationId** | **String**| The identifier of the profile. | **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] ### Return type @@ -2533,13 +3652,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **exportLoyaltyBalance** -> String exportLoyaltyBalance(loyaltyProgramId, endDate) + +# **exportPoolGiveaways** +> String exportPoolGiveaways(poolId, createdBefore, createdAfter) -Export customer loyalty balance to CSV +Export giveaway codes of a giveaway pool -⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To export customer loyalty balances to CSV, use the [Export customer loyalty balances to CSV](/management-api#tag/Loyalty/operation/exportLoyaltyBalances) endpoint. Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). +Download a CSV file containing the giveaway codes of a specific giveaway pool. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `id`: The internal ID of the giveaway. - `poolid`: The internal ID of the giveaway pool. - `code`: The giveaway code. - `startdate`: The validity start date in RFC3339 of the giveaway (can be empty). - `enddate`: The validity end date in RFC3339 of the giveaway (can be empty). - `attributes`: Any custom attributes associated with the giveaway code (can be empty). - `used`: An indication of whether the giveaway is already awarded. - `importid`: The ID of the import which created the giveaway. - `created`: The creation time of the giveaway code. - `profileintegrationid`: The third-party integration ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded. - `profileid`: The internal ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded or an internal ID does not exist. ### Example ```java @@ -2569,13 +3688,14 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program. - OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + Integer poolId = 56; // Integer | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. + OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. + OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. try { - String result = apiInstance.exportLoyaltyBalance(loyaltyProgramId, endDate); + String result = apiInstance.exportPoolGiveaways(poolId, createdBefore, createdAfter); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportLoyaltyBalance"); + System.err.println("Exception when calling ManagementApi#exportPoolGiveaways"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2589,8 +3709,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **String**| The identifier for the loyalty program. | - **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] + **poolId** | **Integer**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. | + **createdBefore** | **OffsetDateTime**| Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. | [optional] + **createdAfter** | **OffsetDateTime**| Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. | [optional] ### Return type @@ -2610,15 +3731,14 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad request | - | -**401** | Unauthorized | - | - -# **exportLoyaltyBalances** -> String exportLoyaltyBalances(loyaltyProgramId, endDate) + +# **exportReferrals** +> String exportReferrals(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat) -Export customer loyalty balances +Export referrals -Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `profileIntegrationID`: The integration ID of the customer profile. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. - `currentTier`: The tier that the customer is in at the time of the export. +Download a CSV file containing the referrals that match the given parameters. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `code`: The referral code. - `advocateprofileintegrationid`: The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A json object describing _custom_ referral attribute names and their values. ### Example ```java @@ -2648,13 +3768,19 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program. - OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign. + OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + String valid = "valid_example"; // String | - `expired`: Matches referrals in which the expiration date is set and in the past. - `validNow`: Matches referrals in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches referrals in which start date is set and in the future. + String usable = "usable_example"; // String | - `true`, only referrals where `usageCounter < usageLimit` will be returned. - `false`, only referrals where `usageCounter >= usageLimit` will be returned. + String batchId = "batchId_example"; // String | Filter results by batches of referrals + String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. try { - String result = apiInstance.exportLoyaltyBalances(loyaltyProgramId, endDate); + String result = apiInstance.exportReferrals(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportLoyaltyBalances"); + System.err.println("Exception when calling ManagementApi#exportReferrals"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2668,8 +3794,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **String**| The identifier for the loyalty program. | - **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **BigDecimal**| Filter results by campaign. | [optional] + **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **valid** | **String**| - `expired`: Matches referrals in which the expiration date is set and in the past. - `validNow`: Matches referrals in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches referrals in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] + **usable** | **String**| - `true`, only referrals where `usageCounter < usageLimit` will be returned. - `false`, only referrals where `usageCounter >= usageLimit` will be returned. | [optional] [enum: true, false] + **batchId** | **String**| Filter results by batches of referrals | [optional] + **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] ### Return type @@ -2688,16 +3820,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**400** | Bad request | - | -**401** | Unauthorized | - | - -# **exportLoyaltyCardBalances** -> String exportLoyaltyCardBalances(loyaltyProgramId, endDate) + +# **getAccessLogsWithoutTotalCount** +> InlineResponse20019 getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort) -Export all card transaction logs +Get access logs for Application -Download a CSV file containing the balances of all cards in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `cardIdentifier`: The alphanumeric identifier of the loyalty card. - `cardState`:The state of the loyalty card. It can be `active` or `inactive`. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. +Retrieve the list of API calls sent to the specified Application. ### Example ```java @@ -2726,14 +3856,21 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //manager_auth.setApiKeyPrefix("Token"); - ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. - OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + String path = "path_example"; // String | Only return results where the request path matches the given regular expression. + String method = "method_example"; // String | Only return results where the request method matches the given regular expression. + String status = "status_example"; // String | Filter results by HTTP status codes. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. try { - String result = apiInstance.exportLoyaltyCardBalances(loyaltyProgramId, endDate); + InlineResponse20019 result = apiInstance.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportLoyaltyCardBalances"); + System.err.println("Exception when calling ManagementApi#getAccessLogsWithoutTotalCount"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2747,12 +3884,19 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | - **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | + **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | + **path** | **String**| Only return results where the request path matches the given regular expression. | [optional] + **method** | **String**| Only return results where the request method matches the given regular expression. | [optional] [enum: get, put, post, delete, patch] + **status** | **String**| Filter results by HTTP status codes. | [optional] [enum: success, error] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] ### Return type -**String** +[**InlineResponse20019**](InlineResponse20019.md) ### Authorization @@ -2761,22 +3905,20 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/csv + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**400** | Bad request | - | -**401** | Unauthorized | - | - -# **exportLoyaltyCardLedger** -> String exportLoyaltyCardLedger(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat) + +# **getAccount** +> Account getAccount(accountId) -Export card's ledger log +Get account details -Download a CSV file containing a loyalty card ledger log of the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). +Return the details of your companies Talon.One account. ### Example ```java @@ -2806,16 +3948,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. - String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. - OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. + Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. try { - String result = apiInstance.exportLoyaltyCardLedger(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat); + Account result = apiInstance.getAccount(accountId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportLoyaltyCardLedger"); + System.err.println("Exception when calling ManagementApi#getAccount"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2829,15 +3967,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | - **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | - **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] + **accountId** | **Integer**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | ### Return type -**String** +[**Account**](Account.md) ### Authorization @@ -2846,22 +3980,20 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/csv + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**401** | Unauthorized | - | -**404** | Not found | - | - -# **exportLoyaltyLedger** -> String exportLoyaltyLedger(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat) + +# **getAccountAnalytics** +> AccountAnalytics getAccountAnalytics(accountId) -Export customer's transaction logs +Get account analytics -Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The type of the loyalty program. - `name`: The name of the loyalty program. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. +Return the analytics of your Talon.One account. ### Example ```java @@ -2891,16 +4023,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program. - String integrationId = "integrationId_example"; // String | The identifier of the profile. - String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. + Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. try { - String result = apiInstance.exportLoyaltyLedger(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat); + AccountAnalytics result = apiInstance.getAccountAnalytics(accountId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportLoyaltyLedger"); + System.err.println("Exception when calling ManagementApi#getAccountAnalytics"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2914,15 +4042,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **loyaltyProgramId** | **String**| The identifier for the loyalty program. | - **integrationId** | **String**| The identifier of the profile. | - **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] + **accountId** | **Integer**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | ### Return type -**String** +[**AccountAnalytics**](AccountAnalytics.md) ### Authorization @@ -2931,20 +4055,20 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/csv + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | - -# **exportPoolGiveaways** -> String exportPoolGiveaways(poolId, createdBefore, createdAfter) + +# **getAccountCollection** +> Collection getAccountCollection(collectionId) -Export giveaway codes of a giveaway pool +Get account-level collection -Download a CSV file containing the giveaway codes of a specific giveaway pool. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `id`: The internal ID of the giveaway. - `poolid`: The internal ID of the giveaway pool. - `code`: The giveaway code. - `startdate`: The validity start date in RFC3339 of the giveaway (can be empty). - `enddate`: The validity end date in RFC3339 of the giveaway (can be empty). - `attributes`: Any custom attributes associated with the giveaway code (can be empty). - `used`: An indication of whether the giveaway is already awarded. - `importid`: The ID of the import which created the giveaway. - `created`: The creation time of the giveaway code. - `profileintegrationid`: The third-party integration ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded. - `profileid`: The internal ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded or an internal ID does not exist. +Retrieve a given account-level collection. ### Example ```java @@ -2974,14 +4098,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer poolId = 56; // Integer | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. - OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. - OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. try { - String result = apiInstance.exportPoolGiveaways(poolId, createdBefore, createdAfter); + Collection result = apiInstance.getAccountCollection(collectionId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportPoolGiveaways"); + System.err.println("Exception when calling ManagementApi#getAccountCollection"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2995,13 +4117,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **poolId** | **Integer**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. | - **createdBefore** | **OffsetDateTime**| Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. | [optional] - **createdAfter** | **OffsetDateTime**| Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. | [optional] + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | ### Return type -**String** +[**Collection**](Collection.md) ### Authorization @@ -3010,21 +4130,21 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/csv + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**400** | Bad request | - | +**404** | Not found | - | - -# **exportReferrals** -> String exportReferrals(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat) + +# **getAchievement** +> Achievement getAchievement(applicationId, campaignId, achievementId) -Export referrals +Get achievement -Download a CSV file containing the referrals that match the given parameters. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `code`: The referral code. - `advocateprofileintegrationid`: The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A json object describing _custom_ referral attribute names and their values. +Get the details of a specific achievement. ### Example ```java @@ -3055,18 +4175,13 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign. - OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - String valid = "valid_example"; // String | - `expired`: Matches referrals in which the expiration date is set and in the past. - `validNow`: Matches referrals in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches referrals in which start date is set and in the future. - String usable = "usable_example"; // String | - `true`, only referrals where `usageCounter < usageLimit` will be returned. - `false`, only referrals where `usageCounter >= usageLimit` will be returned. - String batchId = "batchId_example"; // String | Filter results by batches of referrals - String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. try { - String result = apiInstance.exportReferrals(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat); + Achievement result = apiInstance.getAchievement(applicationId, campaignId, achievementId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#exportReferrals"); + System.err.println("Exception when calling ManagementApi#getAchievement"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3081,17 +4196,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **BigDecimal**| Filter results by campaign. | [optional] - **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **valid** | **String**| - `expired`: Matches referrals in which the expiration date is set and in the past. - `validNow`: Matches referrals in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches referrals in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] - **usable** | **String**| - `true`, only referrals where `usageCounter < usageLimit` will be returned. - `false`, only referrals where `usageCounter >= usageLimit` will be returned. | [optional] [enum: true, false] - **batchId** | **String**| Filter results by batches of referrals | [optional] - **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | ### Return type -**String** +[**Achievement**](Achievement.md) ### Authorization @@ -3100,20 +4210,22 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/csv + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**401** | Unauthorized | - | +**404** | Not found | - | - -# **getAccessLogsWithoutTotalCount** -> InlineResponse20019 getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort) + +# **getAdditionalCost** +> AccountAdditionalCost getAdditionalCost(additionalCostId) -Get access logs for Application +Get additional cost -Retrieve the list of API calls sent to the specified Application. +Returns the additional cost. ### Example ```java @@ -3143,20 +4255,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - String path = "path_example"; // String | Only return results where the request path matches the given regular expression. - String method = "method_example"; // String | Only return results where the request method matches the given regular expression. - String status = "status_example"; // String | Filter results by HTTP status codes. - Integer pageSize = 1000; // Integer | The number of items in this response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. - String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. + Integer additionalCostId = 56; // Integer | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. try { - InlineResponse20019 result = apiInstance.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); + AccountAdditionalCost result = apiInstance.getAdditionalCost(additionalCostId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAccessLogsWithoutTotalCount"); + System.err.println("Exception when calling ManagementApi#getAdditionalCost"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3170,19 +4274,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **path** | **String**| Only return results where the request path matches the given regular expression. | [optional] - **method** | **String**| Only return results where the request method matches the given regular expression. | [optional] [enum: get, put, post, delete, patch] - **status** | **String**| Filter results by HTTP status codes. | [optional] [enum: success, error] - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] - **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] + **additionalCostId** | **Integer**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. | ### Return type -[**InlineResponse20019**](InlineResponse20019.md) +[**AccountAdditionalCost**](AccountAdditionalCost.md) ### Authorization @@ -3198,13 +4294,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getAccount** -> Account getAccount(accountId) + +# **getAdditionalCosts** +> InlineResponse20036 getAdditionalCosts(pageSize, skip, sort) -Get account details +List additional costs -Return the details of your companies Talon.One account. +Returns all the defined additional costs for the account. ### Example ```java @@ -3234,12 +4330,14 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. try { - Account result = apiInstance.getAccount(accountId); + InlineResponse20036 result = apiInstance.getAdditionalCosts(pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAccount"); + System.err.println("Exception when calling ManagementApi#getAdditionalCosts"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3253,11 +4351,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountId** | **Integer**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] ### Return type -[**Account**](Account.md) +[**InlineResponse20036**](InlineResponse20036.md) ### Authorization @@ -3273,13 +4373,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getAccountAnalytics** -> AccountAnalytics getAccountAnalytics(accountId) + +# **getAllAccessLogs** +> InlineResponse20020 getAllAccessLogs(rangeStart, rangeEnd, path, method, status, pageSize, skip, sort) -Get account analytics +List access logs -Return the analytics of your Talon.One account. +Fetches the access logs for the entire account. Sensitive requests (logins) are _always_ filtered from the logs. ### Example ```java @@ -3309,12 +4409,19 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. + OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + String path = "path_example"; // String | Only return results where the request path matches the given regular expression. + String method = "method_example"; // String | Only return results where the request method matches the given regular expression. + String status = "status_example"; // String | Filter results by HTTP status codes. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. try { - AccountAnalytics result = apiInstance.getAccountAnalytics(accountId); + InlineResponse20020 result = apiInstance.getAllAccessLogs(rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAccountAnalytics"); + System.err.println("Exception when calling ManagementApi#getAllAccessLogs"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3328,11 +4435,18 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountId** | **Integer**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | + **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] + **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] + **path** | **String**| Only return results where the request path matches the given regular expression. | [optional] + **method** | **String**| Only return results where the request method matches the given regular expression. | [optional] [enum: get, put, post, delete, patch] + **status** | **String**| Filter results by HTTP status codes. | [optional] [enum: success, error] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] ### Return type -[**AccountAnalytics**](AccountAnalytics.md) +[**InlineResponse20020**](InlineResponse20020.md) ### Authorization @@ -3348,13 +4462,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getAccountCollection** -> Collection getAccountCollection(collectionId) + +# **getAllRoles** +> InlineResponse20044 getAllRoles() -Get account-level collection +List roles -Retrieve a given account-level collection. +List all roles. ### Example ```java @@ -3384,12 +4498,11 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. try { - Collection result = apiInstance.getAccountCollection(collectionId); + InlineResponse20044 result = apiInstance.getAllRoles(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAccountCollection"); + System.err.println("Exception when calling ManagementApi#getAllRoles"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3400,14 +4513,11 @@ public class Example { ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | +This endpoint does not need any parameter. ### Return type -[**Collection**](Collection.md) +[**InlineResponse20044**](InlineResponse20044.md) ### Authorization @@ -3422,15 +4532,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**404** | Not found | - | - -# **getAdditionalCost** -> AccountAdditionalCost getAdditionalCost(additionalCostId) + +# **getApplication** +> Application getApplication(applicationId) -Get additional cost +Get Application -Returns the additional cost. +Get the application specified by the ID. ### Example ```java @@ -3460,12 +4569,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer additionalCostId = 56; // Integer | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. try { - AccountAdditionalCost result = apiInstance.getAdditionalCost(additionalCostId); + Application result = apiInstance.getApplication(applicationId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAdditionalCost"); + System.err.println("Exception when calling ManagementApi#getApplication"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3479,11 +4588,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **additionalCostId** | **Integer**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | ### Return type -[**AccountAdditionalCost**](AccountAdditionalCost.md) +[**Application**](Application.md) ### Authorization @@ -3499,13 +4608,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getAdditionalCosts** -> InlineResponse20034 getAdditionalCosts(pageSize, skip, sort) + +# **getApplicationApiHealth** +> ApplicationApiHealth getApplicationApiHealth(applicationId) -List additional costs +Get Application health -Returns all the defined additional costs for the account. +Display the health of the Application and show the last time the Application was used. You can also display this information from the **Settings** of an Application, in the **Developer Settings** menu. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status). ### Example ```java @@ -3535,14 +4644,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. - String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. try { - InlineResponse20034 result = apiInstance.getAdditionalCosts(pageSize, skip, sort); + ApplicationApiHealth result = apiInstance.getApplicationApiHealth(applicationId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAdditionalCosts"); + System.err.println("Exception when calling ManagementApi#getApplicationApiHealth"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3556,13 +4663,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] - **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | ### Return type -[**InlineResponse20034**](InlineResponse20034.md) +[**ApplicationApiHealth**](ApplicationApiHealth.md) ### Authorization @@ -3578,13 +4683,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getAllAccessLogs** -> InlineResponse20020 getAllAccessLogs(rangeStart, rangeEnd, path, method, status, pageSize, skip, sort) + +# **getApplicationCustomer** +> ApplicationCustomer getApplicationCustomer(applicationId, customerId) -List access logs +Get application's customer -Fetches the access logs for the entire account. Sensitive requests (logins) are _always_ filtered from the logs. +Retrieve the customers of the specified application. ### Example ```java @@ -3614,19 +4719,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - String path = "path_example"; // String | Only return results where the request path matches the given regular expression. - String method = "method_example"; // String | Only return results where the request method matches the given regular expression. - String status = "status_example"; // String | Filter results by HTTP status codes. - Integer pageSize = 1000; // Integer | The number of items in this response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. - String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. try { - InlineResponse20020 result = apiInstance.getAllAccessLogs(rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); + ApplicationCustomer result = apiInstance.getApplicationCustomer(applicationId, customerId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAllAccessLogs"); + System.err.println("Exception when calling ManagementApi#getApplicationCustomer"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3640,18 +4739,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **path** | **String**| Only return results where the request path matches the given regular expression. | [optional] - **method** | **String**| Only return results where the request method matches the given regular expression. | [optional] [enum: get, put, post, delete, patch] - **status** | **String**| Filter results by HTTP status codes. | [optional] [enum: success, error] - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] - **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | ### Return type -[**InlineResponse20020**](InlineResponse20020.md) +[**ApplicationCustomer**](ApplicationCustomer.md) ### Authorization @@ -3667,13 +4760,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getAllRoles** -> InlineResponse20042 getAllRoles() + +# **getApplicationCustomerFriends** +> InlineResponse20033 getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize) -List roles +List friends referred by customer profile -List all roles. +List the friends referred by the specified customer profile in this Application. ### Example ```java @@ -3703,11 +4796,17 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + String integrationId = "integrationId_example"; // String | The Integration ID of the Advocate's Profile. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. + Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { - InlineResponse20042 result = apiInstance.getAllRoles(); + InlineResponse20033 result = apiInstance.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAllRoles"); + System.err.println("Exception when calling ManagementApi#getApplicationCustomerFriends"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3718,11 +4817,19 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **integrationId** | **String**| The Integration ID of the Advocate's Profile. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] + **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] ### Return type -[**InlineResponse20042**](InlineResponse20042.md) +[**InlineResponse20033**](InlineResponse20033.md) ### Authorization @@ -3738,13 +4845,13 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | - -# **getApplication** -> Application getApplication(applicationId) + +# **getApplicationCustomers** +> InlineResponse20022 getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize) -Get Application +List application's customers -Get the application specified by the ID. +List all the customers of the specified application. ### Example ```java @@ -3775,11 +4882,15 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + String integrationId = "integrationId_example"; // String | Filter results performing an exact matching against the profile integration identifier. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { - Application result = apiInstance.getApplication(applicationId); + InlineResponse20022 result = apiInstance.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getApplication"); + System.err.println("Exception when calling ManagementApi#getApplicationCustomers"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3794,10 +4905,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **integrationId** | **String**| Filter results performing an exact matching against the profile integration identifier. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] ### Return type -[**Application**](Application.md) +[**InlineResponse20022**](InlineResponse20022.md) ### Authorization @@ -3813,13 +4928,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getApplicationApiHealth** -> ApplicationApiHealth getApplicationApiHealth(applicationId) + +# **getApplicationCustomersByAttributes** +> InlineResponse20023 getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize) -Get Application health +List application customers matching the given attributes -Display the health of the Application and show the last time the Application was used. You can also display this information from the **Settings** of an Application, in the **Developer Settings** menu. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status). +Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. ### Example ```java @@ -3850,11 +4965,15 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + CustomerProfileSearchQuery body = new CustomerProfileSearchQuery(); // CustomerProfileSearchQuery | body + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { - ApplicationApiHealth result = apiInstance.getApplicationApiHealth(applicationId); + InlineResponse20023 result = apiInstance.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getApplicationApiHealth"); + System.err.println("Exception when calling ManagementApi#getApplicationCustomersByAttributes"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3869,10 +4988,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **body** | [**CustomerProfileSearchQuery**](CustomerProfileSearchQuery.md)| body | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] ### Return type -[**ApplicationApiHealth**](ApplicationApiHealth.md) +[**InlineResponse20023**](InlineResponse20023.md) ### Authorization @@ -3880,7 +5003,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -3888,13 +5011,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getApplicationCustomer** -> ApplicationCustomer getApplicationCustomer(applicationId, customerId) + +# **getApplicationEventTypes** +> InlineResponse20029 getApplicationEventTypes(applicationId, pageSize, skip, sort) -Get application's customer +List Applications event types -Retrieve the customers of the specified application. +Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) ### Example ```java @@ -3925,12 +5048,14 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. try { - ApplicationCustomer result = apiInstance.getApplicationCustomer(applicationId, customerId); + InlineResponse20029 result = apiInstance.getApplicationEventTypes(applicationId, pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getApplicationCustomer"); + System.err.println("Exception when calling ManagementApi#getApplicationEventTypes"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3945,11 +5070,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] ### Return type -[**ApplicationCustomer**](ApplicationCustomer.md) +[**InlineResponse20029**](InlineResponse20029.md) ### Authorization @@ -3965,13 +5092,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getApplicationCustomerFriends** -> InlineResponse20031 getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize) + +# **getApplicationEventsWithoutTotalCount** +> InlineResponse20028 getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery) -List friends referred by customer profile +List Applications events -List the friends referred by the specified customer profile in this Application. +Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. ### Example ```java @@ -4002,16 +5129,25 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - String integrationId = "integrationId_example"; // String | The Integration ID of the Advocate's Profile. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. - Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. + String type = "type_example"; // String | Comma-separated list of types by which to filter events. Must be exact match(es). + OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. + OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. + String session = "session_example"; // String | Session integration ID filter for events. Must be exact match. + String profile = "profile_example"; // String | Profile integration ID filter for events. Must be exact match. + String customerName = "customerName_example"; // String | Customer name filter for events. Will match substrings case-insensitively. + String customerEmail = "customerEmail_example"; // String | Customer e-mail address filter for events. Will match substrings case-insensitively. + String couponCode = "couponCode_example"; // String | Coupon code + String referralCode = "referralCode_example"; // String | Referral code + String ruleQuery = "ruleQuery_example"; // String | Rule name filter for events + String campaignQuery = "campaignQuery_example"; // String | Campaign name filter for events try { - InlineResponse20031 result = apiInstance.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); + InlineResponse20028 result = apiInstance.getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getApplicationCustomerFriends"); + System.err.println("Exception when calling ManagementApi#getApplicationEventsWithoutTotalCount"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4026,15 +5162,24 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **integrationId** | **String**| The Integration ID of the Advocate's Profile. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] - **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] + **type** | **String**| Comma-separated list of types by which to filter events. Must be exact match(es). | [optional] + **createdBefore** | **OffsetDateTime**| Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **createdAfter** | **OffsetDateTime**| Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **session** | **String**| Session integration ID filter for events. Must be exact match. | [optional] + **profile** | **String**| Profile integration ID filter for events. Must be exact match. | [optional] + **customerName** | **String**| Customer name filter for events. Will match substrings case-insensitively. | [optional] + **customerEmail** | **String**| Customer e-mail address filter for events. Will match substrings case-insensitively. | [optional] + **couponCode** | **String**| Coupon code | [optional] + **referralCode** | **String**| Referral code | [optional] + **ruleQuery** | **String**| Rule name filter for events | [optional] + **campaignQuery** | **String**| Campaign name filter for events | [optional] ### Return type -[**InlineResponse20031**](InlineResponse20031.md) +[**InlineResponse20028**](InlineResponse20028.md) ### Authorization @@ -4050,13 +5195,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getApplicationCustomers** -> InlineResponse20022 getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize) + +# **getApplicationSession** +> ApplicationSession getApplicationSession(applicationId, sessionId) -List application's customers +Get Application session -List all the customers of the specified application. +Get the details of the given session. You can list the sessions with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. ### Example ```java @@ -4087,15 +5232,12 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - String integrationId = "integrationId_example"; // String | Filter results performing an exact matching against the profile integration identifier. - Integer pageSize = 1000; // Integer | The number of items in this response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. - Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. + Integer sessionId = 56; // Integer | The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. try { - InlineResponse20022 result = apiInstance.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize); + ApplicationSession result = apiInstance.getApplicationSession(applicationId, sessionId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getApplicationCustomers"); + System.err.println("Exception when calling ManagementApi#getApplicationSession"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4110,14 +5252,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **integrationId** | **String**| Filter results performing an exact matching against the profile integration identifier. | [optional] - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] - **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] + **sessionId** | **Integer**| The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. | ### Return type -[**InlineResponse20022**](InlineResponse20022.md) +[**ApplicationSession**](ApplicationSession.md) ### Authorization @@ -4133,13 +5272,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getApplicationCustomersByAttributes** -> InlineResponse20023 getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize) + +# **getApplicationSessions** +> InlineResponse20027 getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId) -List application customers matching the given attributes +List Application sessions -Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. +List all the sessions of the specified Application. ### Example ```java @@ -4170,15 +5309,22 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - CustomerProfileSearchQuery body = new CustomerProfileSearchQuery(); // CustomerProfileSearchQuery | body - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. - Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. + String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. + String profile = "profile_example"; // String | Profile integration ID filter for sessions. Must be exact match. + String state = "state_example"; // String | Filter by sessions with this state. Must be exact match. + OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. + OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. + String coupon = "coupon_example"; // String | Filter by sessions with this coupon. Must be exact match. + String referral = "referral_example"; // String | Filter by sessions with this referral. Must be exact match. + String integrationId = "integrationId_example"; // String | Filter by sessions with this integrationId. Must be exact match. + String storeIntegrationId = "storeIntegrationId_example"; // String | The integration ID of the store. You choose this ID when you create a store. try { - InlineResponse20023 result = apiInstance.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize); + InlineResponse20027 result = apiInstance.getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getApplicationCustomersByAttributes"); + System.err.println("Exception when calling ManagementApi#getApplicationSessions"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4193,14 +5339,21 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **body** | [**CustomerProfileSearchQuery**](CustomerProfileSearchQuery.md)| body | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] - **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] + **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] + **profile** | **String**| Profile integration ID filter for sessions. Must be exact match. | [optional] + **state** | **String**| Filter by sessions with this state. Must be exact match. | [optional] [enum: open, closed, partially_returned, cancelled] + **createdBefore** | **OffsetDateTime**| Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **createdAfter** | **OffsetDateTime**| Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] + **coupon** | **String**| Filter by sessions with this coupon. Must be exact match. | [optional] + **referral** | **String**| Filter by sessions with this referral. Must be exact match. | [optional] + **integrationId** | **String**| Filter by sessions with this integrationId. Must be exact match. | [optional] + **storeIntegrationId** | **String**| The integration ID of the store. You choose this ID when you create a store. | [optional] ### Return type -[**InlineResponse20023**](InlineResponse20023.md) +[**InlineResponse20027**](InlineResponse20027.md) ### Authorization @@ -4208,21 +5361,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | - - -# **getApplicationEventTypes** -> InlineResponse20029 getApplicationEventTypes(applicationId, pageSize, skip, sort) +**200** | OK | - | -List Applications event types + +# **getApplications** +> InlineResponse2005 getApplications(pageSize, skip, sort) -Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) +List Applications + +List all applications in the current account. ### Example ```java @@ -4252,15 +5405,14 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. try { - InlineResponse20029 result = apiInstance.getApplicationEventTypes(applicationId, pageSize, skip, sort); + InlineResponse2005 result = apiInstance.getApplications(pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getApplicationEventTypes"); + System.err.println("Exception when calling ManagementApi#getApplications"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4274,14 +5426,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] ### Return type -[**InlineResponse20029**](InlineResponse20029.md) +[**InlineResponse2005**](InlineResponse2005.md) ### Authorization @@ -4297,13 +5448,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getApplicationEventsWithoutTotalCount** -> InlineResponse20028 getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery) + +# **getAttribute** +> Attribute getAttribute(attributeId) -List Applications events +Get custom attribute -Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. +Retrieve the specified custom attribute. ### Example ```java @@ -4333,26 +5484,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in this response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. - String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. - String type = "type_example"; // String | Comma-separated list of types by which to filter events. Must be exact match(es). - OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. - OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. - String session = "session_example"; // String | Session integration ID filter for events. Must be exact match. - String profile = "profile_example"; // String | Profile integration ID filter for events. Must be exact match. - String customerName = "customerName_example"; // String | Customer name filter for events. Will match substrings case-insensitively. - String customerEmail = "customerEmail_example"; // String | Customer e-mail address filter for events. Will match substrings case-insensitively. - String couponCode = "couponCode_example"; // String | Coupon code - String referralCode = "referralCode_example"; // String | Referral code - String ruleQuery = "ruleQuery_example"; // String | Rule name filter for events - String campaignQuery = "campaignQuery_example"; // String | Campaign name filter for events + Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. try { - InlineResponse20028 result = apiInstance.getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery); + Attribute result = apiInstance.getAttribute(attributeId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getApplicationEventsWithoutTotalCount"); + System.err.println("Exception when calling ManagementApi#getAttribute"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4366,25 +5503,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] - **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] - **type** | **String**| Comma-separated list of types by which to filter events. Must be exact match(es). | [optional] - **createdBefore** | **OffsetDateTime**| Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **createdAfter** | **OffsetDateTime**| Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **session** | **String**| Session integration ID filter for events. Must be exact match. | [optional] - **profile** | **String**| Profile integration ID filter for events. Must be exact match. | [optional] - **customerName** | **String**| Customer name filter for events. Will match substrings case-insensitively. | [optional] - **customerEmail** | **String**| Customer e-mail address filter for events. Will match substrings case-insensitively. | [optional] - **couponCode** | **String**| Coupon code | [optional] - **referralCode** | **String**| Referral code | [optional] - **ruleQuery** | **String**| Rule name filter for events | [optional] - **campaignQuery** | **String**| Campaign name filter for events | [optional] + **attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | ### Return type -[**InlineResponse20028**](InlineResponse20028.md) +[**Attribute**](Attribute.md) ### Authorization @@ -4400,13 +5523,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getApplicationSession** -> ApplicationSession getApplicationSession(applicationId, sessionId) + +# **getAttributes** +> InlineResponse20034 getAttributes(pageSize, skip, sort, entity) -Get Application session +List custom attributes -Get the details of the given session. You can list the sessions with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. +Return all the custom attributes for the account. ### Example ```java @@ -4436,13 +5559,15 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer sessionId = 56; // Integer | The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. + String entity = "entity_example"; // String | Returned attributes will be filtered by supplied entity. try { - ApplicationSession result = apiInstance.getApplicationSession(applicationId, sessionId); + InlineResponse20034 result = apiInstance.getAttributes(pageSize, skip, sort, entity); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getApplicationSession"); + System.err.println("Exception when calling ManagementApi#getAttributes"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4456,12 +5581,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **sessionId** | **Integer**| The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] + **entity** | **String**| Returned attributes will be filtered by supplied entity. | [optional] ### Return type -[**ApplicationSession**](ApplicationSession.md) +[**InlineResponse20034**](InlineResponse20034.md) ### Authorization @@ -4477,13 +5604,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getApplicationSessions** -> InlineResponse20027 getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId) + +# **getAudienceMemberships** +> InlineResponse20032 getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery) -List Application sessions +List audience members -List all the sessions of the specified Application. +Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. ### Example ```java @@ -4513,22 +5640,16 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer audienceId = 56; // Integer | The ID of the audience. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. - String profile = "profile_example"; // String | Profile integration ID filter for sessions. Must be exact match. - String state = "state_example"; // String | Filter by sessions with this state. Must be exact match. - OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. - OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. - String coupon = "coupon_example"; // String | Filter by sessions with this coupon. Must be exact match. - String referral = "referral_example"; // String | Filter by sessions with this referral. Must be exact match. - String integrationId = "integrationId_example"; // String | Filter by sessions with this integrationId. Must be exact match. + String profileQuery = "profileQuery_example"; // String | The filter to select a profile. try { - InlineResponse20027 result = apiInstance.getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId); + InlineResponse20032 result = apiInstance.getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getApplicationSessions"); + System.err.println("Exception when calling ManagementApi#getAudienceMemberships"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4542,21 +5663,15 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **audienceId** | **Integer**| The ID of the audience. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] - **profile** | **String**| Profile integration ID filter for sessions. Must be exact match. | [optional] - **state** | **String**| Filter by sessions with this state. Must be exact match. | [optional] [enum: open, closed, partially_returned, cancelled] - **createdBefore** | **OffsetDateTime**| Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **createdAfter** | **OffsetDateTime**| Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **coupon** | **String**| Filter by sessions with this coupon. Must be exact match. | [optional] - **referral** | **String**| Filter by sessions with this referral. Must be exact match. | [optional] - **integrationId** | **String**| Filter by sessions with this integrationId. Must be exact match. | [optional] + **profileQuery** | **String**| The filter to select a profile. | [optional] ### Return type -[**InlineResponse20027**](InlineResponse20027.md) +[**InlineResponse20032**](InlineResponse20032.md) ### Authorization @@ -4571,14 +5686,15 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**404** | Not found | - | - -# **getApplications** -> InlineResponse2005 getApplications(pageSize, skip, sort) + +# **getAudiences** +> InlineResponse20030 getAudiences(pageSize, skip, sort, withTotalResultSize) -List Applications +List audiences -List all applications in the current account. +Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). ### Example ```java @@ -4608,14 +5724,15 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. + Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { - InlineResponse2005 result = apiInstance.getApplications(pageSize, skip, sort); + InlineResponse20030 result = apiInstance.getAudiences(pageSize, skip, sort, withTotalResultSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getApplications"); + System.err.println("Exception when calling ManagementApi#getAudiences"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4629,13 +5746,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] + **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] ### Return type -[**InlineResponse2005**](InlineResponse2005.md) +[**InlineResponse20030**](InlineResponse20030.md) ### Authorization @@ -4651,13 +5769,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getAttribute** -> Attribute getAttribute(attributeId) + +# **getAudiencesAnalytics** +> InlineResponse20031 getAudiencesAnalytics(audienceIds, sort) -Get custom attribute +List audience analytics -Retrieve the specified custom attribute. +Get a list of audience IDs and their member count. ### Example ```java @@ -4687,12 +5805,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. + String audienceIds = "audienceIds_example"; // String | The IDs of one or more audiences, separated by commas, by which to filter results. + String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. try { - Attribute result = apiInstance.getAttribute(attributeId); + InlineResponse20031 result = apiInstance.getAudiencesAnalytics(audienceIds, sort); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAttribute"); + System.err.println("Exception when calling ManagementApi#getAudiencesAnalytics"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4706,11 +5825,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | + **audienceIds** | **String**| The IDs of one or more audiences, separated by commas, by which to filter results. | + **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] ### Return type -[**Attribute**](Attribute.md) +[**InlineResponse20031**](InlineResponse20031.md) ### Authorization @@ -4726,13 +5846,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getAttributes** -> InlineResponse20032 getAttributes(pageSize, skip, sort, entity) + +# **getCampaign** +> Campaign getCampaign(applicationId, campaignId) -List custom attributes +Get campaign -Return all the custom attributes for the account. +Retrieve the given campaign. ### Example ```java @@ -4762,15 +5882,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. - String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. - String entity = "entity_example"; // String | Returned attributes will be filtered by supplied entity. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. try { - InlineResponse20032 result = apiInstance.getAttributes(pageSize, skip, sort, entity); + Campaign result = apiInstance.getCampaign(applicationId, campaignId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAttributes"); + System.err.println("Exception when calling ManagementApi#getCampaign"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4784,14 +5902,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] - **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] - **entity** | **String**| Returned attributes will be filtered by supplied entity. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | ### Return type -[**InlineResponse20032**](InlineResponse20032.md) +[**Campaign**](Campaign.md) ### Authorization @@ -4807,13 +5923,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getAudiences** -> InlineResponse20030 getAudiences(pageSize, skip, sort, withTotalResultSize) + +# **getCampaignAnalytics** +> InlineResponse20021 getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity) -List audiences +Get analytics of campaigns -Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). +Retrieve statistical data about the performance of the given campaign. ### Example ```java @@ -4843,15 +5959,16 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. - String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. - Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + String granularity = "granularity_example"; // String | The time interval between the results in the returned time-series. try { - InlineResponse20030 result = apiInstance.getAudiences(pageSize, skip, sort, withTotalResultSize); + InlineResponse20021 result = apiInstance.getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getAudiences"); + System.err.println("Exception when calling ManagementApi#getCampaignAnalytics"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4865,14 +5982,15 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] - **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] - **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | + **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | + **granularity** | **String**| The time interval between the results in the returned time-series. | [optional] [enum: 1 hour, 1 day, 1 week, 1 month, 1 year] ### Return type -[**InlineResponse20030**](InlineResponse20030.md) +[**InlineResponse20021**](InlineResponse20021.md) ### Authorization @@ -4888,13 +6006,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getCampaign** -> Campaign getCampaign(applicationId, campaignId) + +# **getCampaignByAttributes** +> InlineResponse2006 getCampaignByAttributes(applicationId, body, pageSize, skip, sort, campaignState) -Get campaign +List campaigns that match the given attributes -Retrieve the given campaign. +Get a list of all the campaigns that match a set of attributes. ### Example ```java @@ -4925,12 +6043,16 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + CampaignSearch body = new CampaignSearch(); // CampaignSearch | body + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. + String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. try { - Campaign result = apiInstance.getCampaign(applicationId, campaignId); + InlineResponse2006 result = apiInstance.getCampaignByAttributes(applicationId, body, pageSize, skip, sort, campaignState); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getCampaign"); + System.err.println("Exception when calling ManagementApi#getCampaignByAttributes"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4945,11 +6067,15 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **body** | [**CampaignSearch**](CampaignSearch.md)| body | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] + **campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. | [optional] [enum: enabled, disabled, archived, draft, scheduled, running, expired] ### Return type -[**Campaign**](Campaign.md) +[**InlineResponse2006**](InlineResponse2006.md) ### Authorization @@ -4957,7 +6083,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -4965,13 +6091,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getCampaignAnalytics** -> InlineResponse20021 getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity) + +# **getCampaignGroup** +> CampaignGroup getCampaignGroup(campaignGroupId) -Get analytics of campaigns +Get campaign access group -Retrieve statistical data about the performance of the given campaign. +Get a campaign access group specified by its ID. ### Example ```java @@ -5001,16 +6127,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - String granularity = "granularity_example"; // String | The time interval between the results in the returned time-series. + Integer campaignGroupId = 56; // Integer | The ID of the campaign access group. try { - InlineResponse20021 result = apiInstance.getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity); + CampaignGroup result = apiInstance.getCampaignGroup(campaignGroupId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getCampaignAnalytics"); + System.err.println("Exception when calling ManagementApi#getCampaignGroup"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -5024,15 +6146,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **granularity** | **String**| The time interval between the results in the returned time-series. | [optional] [enum: 1 hour, 1 day, 1 week, 1 month, 1 year] + **campaignGroupId** | **Integer**| The ID of the campaign access group. | ### Return type -[**InlineResponse20021**](InlineResponse20021.md) +[**CampaignGroup**](CampaignGroup.md) ### Authorization @@ -5048,13 +6166,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | - -# **getCampaignByAttributes** -> InlineResponse2006 getCampaignByAttributes(applicationId, body, pageSize, skip, sort, campaignState) + +# **getCampaignGroups** +> InlineResponse20011 getCampaignGroups(pageSize, skip, sort) -List campaigns that match the given attributes +List campaign access groups -Get a list of all the campaigns that match a set of attributes. +List the campaign access groups in the current account. ### Example ```java @@ -5084,17 +6202,14 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - CampaignSearch body = new CampaignSearch(); // CampaignSearch | body - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. - String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. try { - InlineResponse2006 result = apiInstance.getCampaignByAttributes(applicationId, body, pageSize, skip, sort, campaignState); + InlineResponse20011 result = apiInstance.getCampaignGroups(pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#getCampaignByAttributes"); + System.err.println("Exception when calling ManagementApi#getCampaignGroups"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -5108,16 +6223,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **body** | [**CampaignSearch**](CampaignSearch.md)| body | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] - **campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. | [optional] [enum: enabled, disabled, archived, draft, scheduled, running, expired] ### Return type -[**InlineResponse2006**](InlineResponse2006.md) +[**InlineResponse20011**](InlineResponse20011.md) ### Authorization @@ -5125,7 +6237,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -5135,7 +6247,7 @@ Name | Type | Description | Notes # **getCampaignTemplates** -> InlineResponse20011 getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId) +> InlineResponse20012 getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId) List campaign templates @@ -5169,7 +6281,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. String state = "state_example"; // String | Filter results by the state of the campaign template. @@ -5177,7 +6289,7 @@ public class Example { String tags = "tags_example"; // String | Filter results performing case-insensitive matching against the tags of the campaign template. 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. Integer userId = 56; // Integer | Filter results by user ID. try { - InlineResponse20011 result = apiInstance.getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId); + InlineResponse20012 result = apiInstance.getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getCampaignTemplates"); @@ -5194,7 +6306,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **state** | **String**| Filter results by the state of the campaign template. | [optional] [enum: enabled, disabled, draft] @@ -5204,7 +6316,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20011**](InlineResponse20011.md) +[**InlineResponse20012**](InlineResponse20012.md) ### Authorization @@ -5257,7 +6369,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. @@ -5287,7 +6399,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. | [optional] [enum: enabled, disabled, archived, draft, scheduled, running, expired] @@ -5320,7 +6432,7 @@ Name | Type | Description | Notes # **getChanges** -> InlineResponse20040 getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld) +> InlineResponse20042 getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld) Get audit logs for an account @@ -5354,7 +6466,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID. @@ -5366,7 +6478,7 @@ public class Example { Integer managementKeyId = 56; // Integer | Filter results that match the given management key ID. Boolean includeOld = true; // Boolean | When this flag is set to false, the state without the change will not be returned. The default value is true. try { - InlineResponse20040 result = apiInstance.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); + InlineResponse20042 result = apiInstance.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getChanges"); @@ -5383,7 +6495,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **applicationId** | **BigDecimal**| Filter results by Application ID. | [optional] @@ -5397,7 +6509,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20040**](InlineResponse20040.md) +[**InlineResponse20042**](InlineResponse20042.md) ### Authorization @@ -5495,7 +6607,7 @@ Name | Type | Description | Notes # **getCollectionItems** -> InlineResponse20017 getCollectionItems(collectionId, pageSize, skip) +> InlineResponse20018 getCollectionItems(collectionId, pageSize, skip) Get collection items @@ -5530,10 +6642,10 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { - InlineResponse20017 result = apiInstance.getCollectionItems(collectionId, pageSize, skip); + InlineResponse20018 result = apiInstance.getCollectionItems(collectionId, pageSize, skip); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getCollectionItems"); @@ -5551,12 +6663,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type -[**InlineResponse20017**](InlineResponse20017.md) +[**InlineResponse20018**](InlineResponse20018.md) ### Authorization @@ -5611,7 +6723,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. @@ -5643,7 +6755,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] @@ -5711,10 +6823,10 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { CustomerActivityReport result = apiInstance.getCustomerActivityReport(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip); @@ -5735,10 +6847,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | + **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type @@ -5796,9 +6908,9 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. String name = "name_example"; // String | Only return reports matching the customer name @@ -5824,9 +6936,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | + **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **name** | **String**| Only return reports matching the customer name | [optional] @@ -5890,7 +7002,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. try { @@ -5913,7 +7025,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] @@ -6010,6 +7122,93 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | + +# **getCustomerProfileAchievementProgress** +> InlineResponse20047 getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title) + +List customer achievements + +For the given customer profile, list all the achievements that match your filter criteria. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + String integrationId = "integrationId_example"; // String | The identifier of the profile. + Integer pageSize = 50; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + String title = "title_example"; // String | Filter results by the `title` of an achievement. + try { + InlineResponse20047 result = apiInstance.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#getCustomerProfileAchievementProgress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **integrationId** | **String**| The identifier of the profile. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | [optional] + **title** | **String**| Filter results by the `title` of an achievement. | [optional] + +### Return type + +[**InlineResponse20047**](InlineResponse20047.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad request | - | +**401** | Unauthorized | - | + # **getCustomerProfiles** > InlineResponse20025 getCustomerProfiles(pageSize, skip, sandbox) @@ -6046,7 +7245,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. Boolean sandbox = false; // Boolean | Indicates whether you are pointing to a sandbox or Live customer. try { @@ -6067,7 +7266,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sandbox** | **Boolean**| Indicates whether you are pointing to a sandbox or Live customer. | [optional] [default to false] @@ -6126,7 +7325,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); CustomerProfileSearchQuery body = new CustomerProfileSearchQuery(); // CustomerProfileSearchQuery | body - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. Boolean sandbox = false; // Boolean | Indicates whether you are pointing to a sandbox or Live customer. try { @@ -6148,7 +7347,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**CustomerProfileSearchQuery**](CustomerProfileSearchQuery.md)| body | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sandbox** | **Boolean**| Indicates whether you are pointing to a sandbox or Live customer. | [optional] [default to false] @@ -6172,7 +7371,7 @@ Name | Type | Description | Notes # **getEventTypes** -> InlineResponse20038 getEventTypes(name, includeOldVersions, pageSize, skip, sort) +> InlineResponse20040 getEventTypes(name, includeOldVersions, pageSize, skip, sort) List event types @@ -6208,11 +7407,11 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); String name = "name_example"; // String | Filter results to event types with the given name. This parameter implies `includeOldVersions`. Boolean includeOldVersions = false; // Boolean | Include all versions of every event type. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. try { - InlineResponse20038 result = apiInstance.getEventTypes(name, includeOldVersions, pageSize, skip, sort); + InlineResponse20040 result = apiInstance.getEventTypes(name, includeOldVersions, pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getEventTypes"); @@ -6231,13 +7430,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| Filter results to event types with the given name. This parameter implies `includeOldVersions`. | [optional] **includeOldVersions** | **Boolean**| Include all versions of every event type. | [optional] [default to false] - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] ### Return type -[**InlineResponse20038**](InlineResponse20038.md) +[**InlineResponse20040**](InlineResponse20040.md) ### Authorization @@ -6255,7 +7454,7 @@ Name | Type | Description | Notes # **getExports** -> InlineResponse20041 getExports(pageSize, skip, applicationId, campaignId, entity) +> InlineResponse20043 getExports(pageSize, skip, applicationId, campaignId, entity) Get exports @@ -6289,13 +7488,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID. Integer campaignId = 56; // Integer | Filter by the campaign ID on which the limit counters are used. String entity = "entity_example"; // String | The name of the entity type that was exported. try { - InlineResponse20041 result = apiInstance.getExports(pageSize, skip, applicationId, campaignId, entity); + InlineResponse20043 result = apiInstance.getExports(pageSize, skip, applicationId, campaignId, entity); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getExports"); @@ -6312,7 +7511,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **applicationId** | **BigDecimal**| Filter results by Application ID. | [optional] **campaignId** | **Integer**| Filter by the campaign ID on which the limit counters are used. | [optional] @@ -6320,7 +7519,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20041**](InlineResponse20041.md) +[**InlineResponse20043**](InlineResponse20043.md) ### Authorization @@ -6418,7 +7617,7 @@ Name | Type | Description | Notes # **getLoyaltyCardTransactionLogs** -> InlineResponse20015 getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId) +> InlineResponse20016 getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId) List card's transactions @@ -6454,13 +7653,13 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. - OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. try { - InlineResponse20015 result = apiInstance.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); + InlineResponse20016 result = apiInstance.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getLoyaltyCardTransactionLogs"); @@ -6479,15 +7678,15 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | - **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] + **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] ### Return type -[**InlineResponse20015**](InlineResponse20015.md) +[**InlineResponse20016**](InlineResponse20016.md) ### Authorization @@ -6507,7 +7706,7 @@ Name | Type | Description | Notes # **getLoyaltyCards** -> InlineResponse20014 getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId) +> InlineResponse20015 getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId) List loyalty cards @@ -6542,13 +7741,13 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. String identifier = "identifier_example"; // String | Optional query parameter to search cards by identifier. Integer profileId = 56; // Integer | Filter by the profile ID. try { - InlineResponse20014 result = apiInstance.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId); + InlineResponse20015 result = apiInstance.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getLoyaltyCards"); @@ -6566,7 +7765,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **identifier** | **String**| Optional query parameter to search cards by identifier. | [optional] @@ -6574,7 +7773,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20014**](InlineResponse20014.md) +[**InlineResponse20015**](InlineResponse20015.md) ### Authorization @@ -6705,7 +7904,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. try { LoyaltyProgram result = apiInstance.getLoyaltyProgram(loyaltyProgramId); System.out.println(result); @@ -6724,7 +7923,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | ### Return type @@ -6746,11 +7945,11 @@ Name | Type | Description | Notes # **getLoyaltyProgramTransactions** -> InlineResponse20013 getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip) +> InlineResponse20014 getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip) List loyalty program transactions -Retrieve all loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). +Retrieve loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. **Note:** If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). ### Example ```java @@ -6780,15 +7979,15 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. - OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. + OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Integer pageSize = 50; // Integer | The number of items in this response. + Integer pageSize = 50; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { - InlineResponse20013 result = apiInstance.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); + InlineResponse20014 result = apiInstance.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getLoyaltyProgramTransactions"); @@ -6805,17 +8004,17 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyTransactionType** | **String**| Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. | [optional] [enum: manual, session, import] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] - **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] + **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 50] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type -[**InlineResponse20013**](InlineResponse20013.md) +[**InlineResponse20014**](InlineResponse20014.md) ### Authorization @@ -6836,7 +8035,7 @@ Name | Type | Description | Notes # **getLoyaltyPrograms** -> InlineResponse20012 getLoyaltyPrograms() +> InlineResponse20013 getLoyaltyPrograms() List loyalty programs @@ -6871,7 +8070,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); try { - InlineResponse20012 result = apiInstance.getLoyaltyPrograms(); + InlineResponse20013 result = apiInstance.getLoyaltyPrograms(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getLoyaltyPrograms"); @@ -6889,7 +8088,7 @@ This endpoint does not need any parameter. ### Return type -[**InlineResponse20012**](InlineResponse20012.md) +[**InlineResponse20013**](InlineResponse20013.md) ### Authorization @@ -6941,7 +8140,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. try { LoyaltyDashboardData result = apiInstance.getLoyaltyStatistics(loyaltyProgramId); System.out.println(result); @@ -6960,7 +8159,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | ### Return type @@ -7018,7 +8217,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. String code = "code_example"; // String | Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. @@ -7047,7 +8246,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **code** | **String**| Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] @@ -7111,7 +8310,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer roleId = 56; // Integer | The ID of role. + Integer roleId = 56; // Integer | ID of role. **Note**: To find the ID of a role, use the [List roles](https://docs.talon.one/management-api#tag/Roles/operation/getAllRoles) endpoint. try { Role result = apiInstance.getRole(roleId); System.out.println(result); @@ -7130,7 +8329,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **roleId** | **Integer**| The ID of role. | + **roleId** | **Integer**| ID of role. **Note**: To find the ID of a role, use the [List roles](https://docs.talon.one/management-api#tag/Roles/operation/getAllRoles) endpoint. | ### Return type @@ -7267,7 +8466,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. try { @@ -7290,7 +8489,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] @@ -7467,7 +8666,7 @@ Name | Type | Description | Notes # **getUsers** -> InlineResponse20039 getUsers(pageSize, skip, sort) +> InlineResponse20041 getUsers(pageSize, skip, sort) List users in account @@ -7501,11 +8700,11 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. try { - InlineResponse20039 result = apiInstance.getUsers(pageSize, skip, sort); + InlineResponse20041 result = apiInstance.getUsers(pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getUsers"); @@ -7522,13 +8721,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] ### Return type -[**InlineResponse20039**](InlineResponse20039.md) +[**InlineResponse20041**](InlineResponse20041.md) ### Authorization @@ -7621,7 +8820,7 @@ Name | Type | Description | Notes # **getWebhookActivationLogs** -> InlineResponse20036 getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter) +> InlineResponse20038 getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter) List webhook activation log entries @@ -7655,7 +8854,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. String integrationRequestUuid = "integrationRequestUuid_example"; // String | Filter results by integration request UUID. @@ -7665,7 +8864,7 @@ public class Example { OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. try { - InlineResponse20036 result = apiInstance.getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter); + InlineResponse20038 result = apiInstance.getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getWebhookActivationLogs"); @@ -7682,7 +8881,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **integrationRequestUuid** | **String**| Filter results by integration request UUID. | [optional] @@ -7694,7 +8893,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20036**](InlineResponse20036.md) +[**InlineResponse20038**](InlineResponse20038.md) ### Authorization @@ -7712,7 +8911,7 @@ Name | Type | Description | Notes # **getWebhookLogs** -> InlineResponse20037 getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter) +> InlineResponse20039 getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter) List webhook log entries @@ -7746,7 +8945,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. String status = "status_example"; // String | Filter results by HTTP status codes. @@ -7757,7 +8956,7 @@ public class Example { OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. try { - InlineResponse20037 result = apiInstance.getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter); + InlineResponse20039 result = apiInstance.getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getWebhookLogs"); @@ -7774,7 +8973,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **status** | **String**| Filter results by HTTP status codes. | [optional] [enum: success, error] @@ -7787,7 +8986,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20037**](InlineResponse20037.md) +[**InlineResponse20039**](InlineResponse20039.md) ### Authorization @@ -7805,7 +9004,7 @@ Name | Type | Description | Notes # **getWebhooks** -> InlineResponse20035 getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title) +> InlineResponse20037 getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title) List webhooks @@ -7841,14 +9040,14 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); String applicationIds = "applicationIds_example"; // String | Filter by one or more Application IDs, separated by a comma. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String creationType = "creationType_example"; // String | Filter results by creation type. String visibility = "visibility_example"; // String | Filter results by visibility. Integer outgoingIntegrationsTypeId = 56; // Integer | Filter results by outgoing integration type ID. String title = "title_example"; // String | Filter results performing case-insensitive matching against the webhook title. try { - InlineResponse20035 result = apiInstance.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); + InlineResponse20037 result = apiInstance.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getWebhooks"); @@ -7867,7 +9066,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationIds** | **String**| Filter by one or more Application IDs, separated by a comma. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **creationType** | **String**| Filter results by creation type. | [optional] [enum: templateWebhooks, webhooks] **visibility** | **String**| Filter results by visibility. | [optional] [enum: visible, hidden] @@ -7876,7 +9075,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20035**](InlineResponse20035.md) +[**InlineResponse20037**](InlineResponse20037.md) ### Authorization @@ -7929,7 +9128,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. - String upFile = "upFile_example"; // String | The file with the information about the data that should be imported. + String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importAccountCollection(collectionId, upFile); System.out.println(result); @@ -7949,7 +9148,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | - **upFile** | **String**| The file with the information about the data that should be imported. | [optional] + **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type @@ -8008,7 +9207,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. - String upFile = "upFile_example"; // String | The file with the information about the data that should be imported. + String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importAllowedList(attributeId, upFile); System.out.println(result); @@ -8028,7 +9227,87 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | - **upFile** | **String**| The file with the information about the data that should be imported. | [optional] + **upFile** | **String**| The file containing the data that is being imported. | [optional] + +### Return type + +[**ModelImport**](ModelImport.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad request | - | +**401** | Unauthorized - Invalid API key | - | +**404** | Not found | - | + + +# **importAudiencesMemberships** +> ModelImport importAudiencesMemberships(audienceId, upFile) + +Import audience members + +Upload a CSV file containing the integration IDs of the members you want to add to an audience. The file should be sent as multipart data and should contain only the following column (required): - `profileintegrationid`: The integration ID of the customer profile. The import **replaces** the previous list of audience members. **Note:** We recommend limiting your file size to 500MB. Example: ```text profileintegrationid charles alexa ``` + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer audienceId = 56; // Integer | The ID of the audience. + String upFile = "upFile_example"; // String | The file containing the data that is being imported. + try { + ModelImport result = apiInstance.importAudiencesMemberships(audienceId, upFile); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#importAudiencesMemberships"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audienceId** | **Integer**| The ID of the audience. | + **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type @@ -8090,7 +9369,7 @@ public class Example { Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. - String upFile = "upFile_example"; // String | The file with the information about the data that should be imported. + String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importCollection(applicationId, campaignId, collectionId, upFile); System.out.println(result); @@ -8112,7 +9391,7 @@ Name | Type | Description | Notes **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | - **upFile** | **String**| The file with the information about the data that should be imported. | [optional] + **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type @@ -8135,7 +9414,7 @@ Name | Type | Description | Notes # **importCoupons** -> ModelImport importCoupons(applicationId, campaignId, upFile) +> ModelImport importCoupons(applicationId, campaignId, skipDuplicates, upFile) Import coupons @@ -8171,9 +9450,10 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - String upFile = "upFile_example"; // String | The file with the information about the data that should be imported. + Boolean skipDuplicates = true; // Boolean | An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. + String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { - ModelImport result = apiInstance.importCoupons(applicationId, campaignId, upFile); + ModelImport result = apiInstance.importCoupons(applicationId, campaignId, skipDuplicates, upFile); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#importCoupons"); @@ -8192,7 +9472,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **upFile** | **String**| The file with the information about the data that should be imported. | [optional] + **skipDuplicates** | **Boolean**| An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. | [optional] + **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type @@ -8249,7 +9530,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. - String upFile = "upFile_example"; // String | The file with the information about the data that should be imported. + String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importLoyaltyCards(loyaltyProgramId, upFile); System.out.println(result); @@ -8269,7 +9550,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | - **upFile** | **String**| The file with the information about the data that should be imported. | [optional] + **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type @@ -8297,7 +9578,7 @@ Name | Type | Description | Notes Import customers into loyalty tiers -Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in a tier, the customer is assigned to match the new information provided in the CSV file. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` +Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. **Note:** We recommend not using this endpoint to update the tier of a customer. To update a customer's tier, you can [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their loyalty points. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` ### Example ```java @@ -8327,8 +9608,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. - String upFile = "upFile_example"; // String | The file with the information about the data that should be imported. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importLoyaltyCustomersTiers(loyaltyProgramId, upFile); System.out.println(result); @@ -8347,8 +9628,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | - **upFile** | **String**| The file with the information about the data that should be imported. | [optional] + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type @@ -8377,7 +9658,7 @@ Name | Type | Description | Notes Import loyalty points -Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the loyalty program type, you can import the points into a given customer profile or into a given _active_ loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` +Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` ### Example ```java @@ -8407,8 +9688,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. - String upFile = "upFile_example"; // String | The file with the information about the data that should be imported. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importLoyaltyPoints(loyaltyProgramId, upFile); System.out.println(result); @@ -8427,8 +9708,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | - **upFile** | **String**| The file with the information about the data that should be imported. | [optional] + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type @@ -8485,7 +9766,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer poolId = 56; // Integer | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. - String upFile = "upFile_example"; // String | The file with the information about the data that should be imported. + String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importPoolGiveaways(poolId, upFile); System.out.println(result); @@ -8505,7 +9786,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **poolId** | **Integer**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. | - **upFile** | **String**| The file with the information about the data that should be imported. | [optional] + **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type @@ -8561,14 +9842,95 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - String upFile = "upFile_example"; // String | The file with the information about the data that should be imported. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + String upFile = "upFile_example"; // String | The file containing the data that is being imported. + try { + ModelImport result = apiInstance.importReferrals(applicationId, campaignId, upFile); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#importReferrals"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **upFile** | **String**| The file containing the data that is being imported. | [optional] + +### Return type + +[**ModelImport**](ModelImport.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **listAccountCollections** +> InlineResponse20017 listAccountCollections(pageSize, skip, sort, withTotalResultSize, name) + +List collections in account + +List account-level collections in the account. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. + Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. + String name = "name_example"; // String | Filter by collection name. try { - ModelImport result = apiInstance.importReferrals(applicationId, campaignId, upFile); + InlineResponse20017 result = apiInstance.listAccountCollections(pageSize, skip, sort, withTotalResultSize, name); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#importReferrals"); + System.err.println("Exception when calling ManagementApi#listAccountCollections"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -8582,13 +9944,15 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **upFile** | **String**| The file with the information about the data that should be imported. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] + **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] + **name** | **String**| Filter by collection name. | [optional] ### Return type -[**ModelImport**](ModelImport.md) +[**InlineResponse20017**](InlineResponse20017.md) ### Authorization @@ -8596,21 +9960,24 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: multipart/form-data + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad request | - | +**401** | Unauthorized | - | +**404** | Not found | - | - -# **listAccountCollections** -> InlineResponse20016 listAccountCollections(pageSize, skip, sort, withTotalResultSize, name) + +# **listAchievements** +> InlineResponse20046 listAchievements(applicationId, campaignId, pageSize, skip, title) -List collections in account +List achievements -List account-level collections in the account. +List all the achievements for a specific campaign. ### Example ```java @@ -8640,16 +10007,16 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer pageSize = 50; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. - String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. - Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. - String name = "name_example"; // String | Filter by collection name. + String title = "title_example"; // String | Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. try { - InlineResponse20016 result = apiInstance.listAccountCollections(pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20046 result = apiInstance.listAchievements(applicationId, campaignId, pageSize, skip, title); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#listAccountCollections"); + System.err.println("Exception when calling ManagementApi#listAchievements"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -8663,15 +10030,15 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] - **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] - **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] - **name** | **String**| Filter by collection name. | [optional] + **title** | **String**| Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. | [optional] ### Return type -[**InlineResponse20016**](InlineResponse20016.md) +[**InlineResponse20046**](InlineResponse20046.md) ### Authorization @@ -8686,13 +10053,10 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**400** | Bad request | - | -**401** | Unauthorized | - | -**404** | Not found | - | # **listCatalogItems** -> InlineResponse20033 listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku) +> InlineResponse20035 listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames) List items in a catalog @@ -8727,12 +10091,13 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer catalogId = 56; // Integer | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. - String sku = "sku_example"; // String | The SKU of the item. + List sku = Arrays.asList(); // List | Filter results by one or more SKUs. Must be exact match. + List productNames = Arrays.asList(); // List | Filter results by one or more product names. Must be exact match. try { - InlineResponse20033 result = apiInstance.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku); + InlineResponse20035 result = apiInstance.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#listCatalogItems"); @@ -8750,14 +10115,15 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **catalogId** | **Integer**| The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] - **sku** | **String**| The SKU of the item. | [optional] + **sku** | [**List<String>**](String.md)| Filter results by one or more SKUs. Must be exact match. | [optional] + **productNames** | [**List<String>**](String.md)| Filter results by one or more product names. Must be exact match. | [optional] ### Return type -[**InlineResponse20033**](InlineResponse20033.md) +[**InlineResponse20035**](InlineResponse20035.md) ### Authorization @@ -8775,7 +10141,7 @@ Name | Type | Description | Notes # **listCollections** -> InlineResponse20018 listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name) +> InlineResponse20017 listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name) List collections in campaign @@ -8811,13 +10177,13 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. String name = "name_example"; // String | Filter by collection name. try { - InlineResponse20018 result = apiInstance.listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20017 result = apiInstance.listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#listCollections"); @@ -8836,7 +10202,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] @@ -8844,7 +10210,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20018**](InlineResponse20018.md) +[**InlineResponse20017**](InlineResponse20017.md) ### Authorization @@ -8863,7 +10229,7 @@ Name | Type | Description | Notes # **listCollectionsInApplication** -> InlineResponse20018 listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name) +> InlineResponse20017 listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name) List collections in Application @@ -8898,13 +10264,13 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. String name = "name_example"; // String | Filter by collection name. try { - InlineResponse20018 result = apiInstance.listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20017 result = apiInstance.listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#listCollectionsInApplication"); @@ -8922,7 +10288,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] @@ -8930,7 +10296,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20018**](InlineResponse20018.md) +[**InlineResponse20017**](InlineResponse20017.md) ### Authorization @@ -8949,7 +10315,7 @@ Name | Type | Description | Notes # **listStores** -> InlineResponse20043 listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId) +> InlineResponse20045 listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query) List stores @@ -8984,15 +10350,16 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign. String name = "name_example"; // String | The name of the store. String integrationId = "integrationId_example"; // String | The integration ID of the store. + String query = "query_example"; // String | Filter results by `name` or `integrationId`. try { - InlineResponse20043 result = apiInstance.listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId); + InlineResponse20045 result = apiInstance.listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#listStores"); @@ -9010,17 +10377,18 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] **campaignId** | **BigDecimal**| Filter results by campaign. | [optional] **name** | **String**| The name of the store. | [optional] **integrationId** | **String**| The integration ID of the store. | [optional] + **query** | **String**| Filter results by `name` or `integrationId`. | [optional] ### Return type -[**InlineResponse20043**](InlineResponse20043.md) +[**InlineResponse20045**](InlineResponse20045.md) ### Authorization @@ -9118,7 +10486,7 @@ null (empty response body) Create notification about added or deducted loyalty points -Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). +Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). ### Example ```java @@ -9278,7 +10646,7 @@ Name | Type | Description | Notes Create notification about pending loyalty points -Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). +Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). ### Example ```java @@ -9546,7 +10914,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Object body = null; // Object | body - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. @@ -9579,7 +10947,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **body** | **Object**| body | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] @@ -9650,7 +11018,7 @@ public class Example { Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. Object body = null; // Object | body - Integer pageSize = 1000; // Integer | The number of items in this response. + Integer pageSize = 1000; // Integer | The number of items in the response. Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. @@ -9683,7 +11051,7 @@ Name | Type | Description | Notes **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | **Object**| body | - **pageSize** | **Integer**| The number of items in this response. | [optional] [default to 1000] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional] **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] @@ -9875,6 +11243,90 @@ Name | Type | Description | Notes **401** | Unauthorized | - | **409** | Conflict. A collection with this name already exists. | - | + +# **updateAchievement** +> Achievement updateAchievement(applicationId, campaignId, achievementId, body) + +Update achievement + +Update the details of a specific achievement. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + UpdateAchievement body = new UpdateAchievement(); // UpdateAchievement | body + try { + Achievement result = apiInstance.updateAchievement(applicationId, campaignId, achievementId, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#updateAchievement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | + **body** | [**UpdateAchievement**](UpdateAchievement.md)| body | + +### Return type + +[**Achievement**](Achievement.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad request | - | +**401** | Unauthorized | - | +**404** | Not found | - | + # **updateAdditionalCost** > AccountAdditionalCost updateAdditionalCost(additionalCostId, body) @@ -10512,6 +11964,83 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | + +# **updateRoleV2** +> RoleV2 updateRoleV2(roleId, body) + +Update role + +Update a specific role. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer roleId = 56; // Integer | The ID of role. + RoleV2Base body = new RoleV2Base(); // RoleV2Base | body + try { + RoleV2 result = apiInstance.updateRoleV2(roleId, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#updateRoleV2"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roleId** | **Integer**| The ID of role. | + **body** | **RoleV2Base**| body | + +### Return type + +[**RoleV2**](RoleV2.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + # **updateStore** > Store updateStore(applicationId, storeId, body) @@ -10593,3 +12122,80 @@ Name | Type | Description | Notes **400** | Bad request | - | **404** | Not found | - | + +# **updateUser** +> User updateUser(userId, body) + +Update user + +Update the details of a specific user. + +### Example +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer userId = 56; // Integer | The ID of the user. + UpdateUser body = new UpdateUser(); // UpdateUser | body + try { + User result = apiInstance.updateUser(userId, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#updateUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Integer**| The ID of the user. | + **body** | [**UpdateUser**](UpdateUser.md)| body | + +### Return type + +[**User**](User.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/docs/MessageLogEntries.md b/docs/MessageLogEntries.md new file mode 100644 index 00000000..dbe5b413 --- /dev/null +++ b/docs/MessageLogEntries.md @@ -0,0 +1,13 @@ + + +# MessageLogEntries + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nextCursor** | **byte[]** | The next value in the database. **Note:** If this value is not present, it means that there are no more values in the database for this combination of request parameters. | [optional] +**data** | [**List<MessageLogEntry>**](MessageLogEntry.md) | List of message logs. | + + + diff --git a/docs/MessageLogEntry.md b/docs/MessageLogEntry.md new file mode 100644 index 00000000..07d962c0 --- /dev/null +++ b/docs/MessageLogEntry.md @@ -0,0 +1,34 @@ + + +# MessageLogEntry + +Message Log. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | Unique identifier of the message. | +**service** | **String** | Name of the service that generated the log entry. | +**changeType** | **String** | Type of change that triggered the notification. | [optional] +**notificationId** | **Integer** | ID of the notification. | [optional] +**notificationName** | **String** | The name of the notification. | [optional] +**request** | [**MessageLogRequest**](MessageLogRequest.md) | | [optional] +**response** | [**MessageLogResponse**](MessageLogResponse.md) | | [optional] +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the log entry was created. | +**entityType** | [**EntityTypeEnum**](#EntityTypeEnum) | The entity type the log is related to. | [optional] +**url** | **String** | The target URL of the request. | [optional] +**applicationId** | **Integer** | Identifier of the Application. | [optional] +**loyaltyProgramId** | **Integer** | Identifier of the loyalty program. | [optional] + + + +## Enum: EntityTypeEnum + +Name | Value +---- | ----- +APPLICATION | "application" +LOYALTY_PROGRAM | "loyalty_program" +WEBHOOK | "webhook" + + + diff --git a/docs/MessageLogRequest.md b/docs/MessageLogRequest.md new file mode 100644 index 00000000..3c1cc429 --- /dev/null +++ b/docs/MessageLogRequest.md @@ -0,0 +1,14 @@ + + +# MessageLogRequest + +Details of the request. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the request was made. | +**request** | **byte[]** | Raw request data. | + + + diff --git a/docs/MessageLogResponse.md b/docs/MessageLogResponse.md new file mode 100644 index 00000000..850cce36 --- /dev/null +++ b/docs/MessageLogResponse.md @@ -0,0 +1,15 @@ + + +# MessageLogResponse + +Details of the response. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the response was received. | +**response** | **byte[]** | Raw response data. | +**status** | **Integer** | HTTP status code of the response. | + + + diff --git a/docs/NewAccountSignUp.md b/docs/NewAccountSignUp.md index a3b506db..0164cbda 100644 --- a/docs/NewAccountSignUp.md +++ b/docs/NewAccountSignUp.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **String** | The email address associated with your account. | +**email** | **String** | The email address associated with the user profile. | **password** | **String** | The password for your account. | **companyName** | **String** | | diff --git a/docs/NewApplicationAPIKey.md b/docs/NewApplicationAPIKey.md index 071e76fb..561bebaf 100644 --- a/docs/NewApplicationAPIKey.md +++ b/docs/NewApplicationAPIKey.md @@ -7,9 +7,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **String** | Title for API Key. | -**expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expired. | +**title** | **String** | Title of the API key. | +**expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expires. | **platform** | [**PlatformEnum**](#PlatformEnum) | The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. | [optional] +**type** | [**TypeEnum**](#TypeEnum) | The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. | [optional] +**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] **id** | **Integer** | ID of the API Key. | **createdBy** | **Integer** | ID of user who created. | **accountID** | **Integer** | ID of account the key is used for. | @@ -36,3 +38,11 @@ EMARSYS | "emarsys" +## Enum: TypeEnum + +Name | Value +---- | ----- +STAGING | "staging" + + + diff --git a/docs/NewCampaign.md b/docs/NewCampaign.md index 5f03e85e..bbe30a93 100644 --- a/docs/NewCampaign.md +++ b/docs/NewCampaign.md @@ -20,9 +20,9 @@ Name | Type | Description | Notes **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | **campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] -**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] **linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] @@ -45,6 +45,7 @@ REFERRALS | "referrals" LOYALTY | "loyalty" GIVEAWAYS | "giveaways" STRIKETHROUGH | "strikethrough" +ACHIEVEMENTS | "achievements" diff --git a/docs/NewCampaignGroup.md b/docs/NewCampaignGroup.md index ec4821e7..73199ce1 100644 --- a/docs/NewCampaignGroup.md +++ b/docs/NewCampaignGroup.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | The name of this campaign access group. | +**name** | **String** | The name of the campaign access group. | **description** | **String** | A longer description of the campaign access group. | [optional] **subscribedApplicationsIds** | **List<Integer>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] **campaignIds** | **List<Integer>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] diff --git a/docs/NewCampaignTemplate.md b/docs/NewCampaignTemplate.md index ef14a2cc..763fa515 100644 --- a/docs/NewCampaignTemplate.md +++ b/docs/NewCampaignTemplate.md @@ -43,6 +43,7 @@ REFERRALS | "referrals" LOYALTY | "loyalty" GIVEAWAYS | "giveaways" STRIKETHROUGH | "strikethrough" +ACHIEVEMENTS | "achievements" diff --git a/docs/NewCustomerSessionV2.md b/docs/NewCustomerSessionV2.md index 2595a5e7..43596cec 100644 --- a/docs/NewCustomerSessionV2.md +++ b/docs/NewCustomerSessionV2.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **evaluableCampaignIds** | **List<Integer>** | 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. | [optional] **couponCodes** | **List<String>** | Any coupon codes entered. **Important**: If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. | [optional] **referralCode** | **String** | 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. | [optional] -**loyaltyCards** | **List<String>** | Any loyalty cards used. | [optional] +**loyaltyCards** | **List<String>** | Identifier of a loyalty card. | [optional] **state** | [**StateEnum**](#StateEnum) | 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). | [optional] **cartItems** | [**List<CartItem>**](CartItem.md) | 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. | [optional] **additionalCosts** | [**Map<String, AdditionalCost>**](AdditionalCost.md) | 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). | [optional] diff --git a/docs/NewInvitation.md b/docs/NewInvitation.md index f55aa6ba..9c8f4203 100644 --- a/docs/NewInvitation.md +++ b/docs/NewInvitation.md @@ -7,11 +7,11 @@ Parameters for inviting a new user. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | Name of the user being invited. | [optional] -**email** | **String** | | -**acl** | **String** | The `Access Control List` json defining the role of the user. This represents the access control on the user level. Use one of the following: - normal user: `{\"Role\": 0}` - admin: `{\"Role\": 127}` | [optional] -**isAdmin** | **Boolean** | An indication of whether the user has admin permissions. We recommend using this flag over using the `acl` with value `{\"Role\": 127}`. | [optional] -**roles** | **List<Integer>** | An array of role IDs to assign to the new user. | [optional] +**name** | **String** | Name of the user. | [optional] +**email** | **String** | Email address of the user. | +**isAdmin** | **Boolean** | Indicates whether the user is an `admin`. | [optional] +**roles** | **List<Integer>** | A list of the IDs of the roles assigned to the user. | [optional] +**acl** | **String** | Indicates the access level of the user. | [optional] diff --git a/docs/NewInviteEmail.md b/docs/NewInviteEmail.md index 14bc426b..9c199a1a 100644 --- a/docs/NewInviteEmail.md +++ b/docs/NewInviteEmail.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **String** | | -**token** | **String** | | +**email** | **String** | Email address of the user. | +**token** | **String** | Invitation token of the user. | diff --git a/docs/NewLoyaltyProgram.md b/docs/NewLoyaltyProgram.md index fc938fa1..d0965865 100644 --- a/docs/NewLoyaltyProgram.md +++ b/docs/NewLoyaltyProgram.md @@ -15,8 +15,10 @@ Name | Type | Description | Notes **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | **usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | 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. | -**tiersExpireIn** | **String** | The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. | [optional] +**tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | 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. | [optional] +**tiersExpireIn** | **String** | 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. | [optional] **tiersDowngradePolicy** | [**TiersDowngradePolicyEnum**](#TiersDowngradePolicyEnum) | 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. | [optional] +**programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | 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. | [optional] **name** | **String** | The internal name for the Loyalty Program. This is an immutable value. | **tiers** | [**List<NewLoyaltyTier>**](NewLoyaltyTier.md) | The tiers in this loyalty program. | [optional] **timezone** | **String** | A string containing an IANA timezone descriptor. | @@ -24,6 +26,15 @@ Name | Type | Description | Notes +## Enum: TiersExpirationPolicyEnum + +Name | Value +---- | ----- +TIER_START_DATE | "tier_start_date" +PROGRAM_JOIN_DATE | "program_join_date" + + + ## Enum: TiersDowngradePolicyEnum Name | Value @@ -33,3 +44,13 @@ BALANCE_BASED | "balance_based" +## Enum: ProgramJoinPolicyEnum + +Name | Value +---- | ----- +NOT_JOIN | "not_join" +POINTS_ACTIVATED | "points_activated" +POINTS_EARNED | "points_earned" + + + diff --git a/docs/NewNotificationTest.md b/docs/NewNotificationTest.md index 84ae8c7b..a3e12ad9 100644 --- a/docs/NewNotificationTest.md +++ b/docs/NewNotificationTest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | [**TypeEnum**](#TypeEnum) | The notification type. | -**queryParams** | **List<String>** | Array of query parameters. | [optional] -**headers** | **List<String>** | List of API HTTP headers for the given webhook-based notification. | [optional] +**queryParams** | **Map<String, String>** | Array of query parameters. | [optional] +**headers** | **Map<String, String>** | List of API HTTP headers for the given webhook-based notification. | [optional] **verb** | [**VerbEnum**](#VerbEnum) | API method for this notification. | **url** | **String** | API URL for the given notification. | **payload** | **String** | API payload of this notification. | @@ -22,12 +22,14 @@ Name | Value CAMPAIGN | "campaign" LOYALTY_ADDED_DEDUCTED_POINTS | "loyalty_added_deducted_points" COUPON | "coupon" +EXPIRING_COUPONS | "expiring_coupons" EXPIRING_POINTS | "expiring_points" PENDING_TO_ACTIVE_POINTS | "pending_to_active_points" STRIKETHROUGH_PRICING | "strikethrough_pricing" TIER_DOWNGRADE | "tier_downgrade" TIER_UPGRADE | "tier_upgrade" TIER_WILL_DOWNGRADE | "tier_will_downgrade" +CARD_EXPIRING_POINTS | "card_expiring_points" diff --git a/docs/NewRoleV2.md b/docs/NewRoleV2.md index 08bda01e..b2351704 100644 --- a/docs/NewRoleV2.md +++ b/docs/NewRoleV2.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the role. | **description** | **String** | Description of the role. | **permissions** | [**RoleV2Permissions**](RoleV2Permissions.md) | | [optional] -**members** | **List<Integer>** | A list of user identifiers the role is assigned to. | [optional] +**members** | **List<Integer>** | A list of user IDs the role is assigned to. | [optional] diff --git a/docs/NewStore.md b/docs/NewStore.md index 60b65a9a..13fd2b77 100644 --- a/docs/NewStore.md +++ b/docs/NewStore.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **name** | **String** | The name of the store. | **description** | **String** | The description of the store. | **attributes** | [**Object**](.md) | The attributes of the store. | [optional] -**integrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | +**integrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. **Note**: You cannot edit the `integrationId` after the store has been created. | diff --git a/docs/NewUser.md b/docs/NewUser.md index d155372b..89f9eacc 100644 --- a/docs/NewUser.md +++ b/docs/NewUser.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **String** | The email address associated with your account. | +**email** | **String** | The email address associated with the user profile. | **password** | **String** | The password for your account. | **name** | **String** | Your name. | [optional] **inviteToken** | **String** | | diff --git a/docs/NotificationListItem.md b/docs/NotificationListItem.md new file mode 100644 index 00000000..0e021bd9 --- /dev/null +++ b/docs/NotificationListItem.md @@ -0,0 +1,15 @@ + + +# NotificationListItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notificationId** | **Integer** | The ID of the notification. | +**notificationName** | **String** | The name of the notification. | +**entityId** | **Integer** | The ID of the entity to which this notification belongs. For example, in case of a loyalty notification, this value is the ID of the loyalty program. | +**enabled** | **Boolean** | Indicates whether the notification is activated. | + + + diff --git a/docs/NotificationTest.md b/docs/NotificationTest.md index 9007c5a5..5d5b36eb 100644 --- a/docs/NotificationTest.md +++ b/docs/NotificationTest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **httpResponse** | **String** | The returned http response. | -**httpStatus** | **String** | The returned http status code and status message. | +**httpStatus** | **Integer** | The returned http status code. | diff --git a/docs/PatchItemCatalogAction.md b/docs/PatchItemCatalogAction.md index 5eb2e300..ee27c32c 100644 --- a/docs/PatchItemCatalogAction.md +++ b/docs/PatchItemCatalogAction.md @@ -2,7 +2,7 @@ # PatchItemCatalogAction -The specific properties of the \"PATCH\" catalog sync action. +The specific properties of the \"PATCH\" catalog sync action. **Note:** - If you do not provide a new `price` value, the existing `price` value is retained. - If you do not provide a new `product` value, the `product` value is set to `null`. ## Properties Name | Type | Description | Notes @@ -10,6 +10,7 @@ Name | Type | Description | Notes **sku** | **String** | The unique SKU of the item to patch. | **price** | [**BigDecimal**](BigDecimal.md) | Price of the item. | [optional] **attributes** | [**Object**](.md) | The attributes of the item to patch. | [optional] +**product** | [**Product**](Product.md) | | [optional] **createIfNotExists** | **Boolean** | Indicates whether to create an item if the SKU does not exist. | [optional] diff --git a/docs/PendingPointsNotificationPolicy.md b/docs/PendingPointsNotificationPolicy.md index a2843431..9b4db933 100644 --- a/docs/PendingPointsNotificationPolicy.md +++ b/docs/PendingPointsNotificationPolicy.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Notification name. | +**batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] diff --git a/docs/Product.md b/docs/Product.md new file mode 100644 index 00000000..dc0d1480 --- /dev/null +++ b/docs/Product.md @@ -0,0 +1,13 @@ + + +# Product + +The specific properties of the product this item belongs to, if available. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the product. | + + + diff --git a/docs/RoleV2.md b/docs/RoleV2.md index a404e9dc..bfcd0b68 100644 --- a/docs/RoleV2.md +++ b/docs/RoleV2.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the role. | [optional] **description** | **String** | Description of the role. | [optional] **permissions** | [**RoleV2Permissions**](RoleV2Permissions.md) | | [optional] -**members** | **List<Integer>** | A list of user identifiers the role is assigned to. | [optional] +**members** | **List<Integer>** | A list of user IDs the role is assigned to. | [optional] diff --git a/docs/RoleV2Base.md b/docs/RoleV2Base.md index 24d573f1..2557f618 100644 --- a/docs/RoleV2Base.md +++ b/docs/RoleV2Base.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the role. | [optional] **description** | **String** | Description of the role. | [optional] **permissions** | [**RoleV2Permissions**](RoleV2Permissions.md) | | [optional] -**members** | **List<Integer>** | A list of user identifiers the role is assigned to. | [optional] +**members** | **List<Integer>** | A list of user IDs the role is assigned to. | [optional] diff --git a/docs/RoleV2Permissions.md b/docs/RoleV2Permissions.md index 1897ee76..270f4d01 100644 --- a/docs/RoleV2Permissions.md +++ b/docs/RoleV2Permissions.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**permissionSets** | [**List<RoleV2PermissionSet>**](RoleV2PermissionSet.md) | List of grouped logical operations to use as a reference in the roles section. Each group of logical operations has a name. | [optional] +**permissionSets** | [**List<RoleV2PermissionSet>**](RoleV2PermissionSet.md) | List of grouped logical operations referenced by roles. | [optional] **roles** | [**RoleV2RolesGroup**](RoleV2RolesGroup.md) | | [optional] diff --git a/docs/SamlConnectionInternal.md b/docs/SamlConnectionInternal.md new file mode 100644 index 00000000..23e731e8 --- /dev/null +++ b/docs/SamlConnectionInternal.md @@ -0,0 +1,13 @@ + + +# SamlConnectionInternal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | ID of the SAML service. | +**metadataDocument** | **String** | Identity Provider metadata XML document. | + + + diff --git a/docs/SamlLoginEndpoint.md b/docs/SamlLoginEndpoint.md index ff6ae9d2..11e32a8b 100644 --- a/docs/SamlLoginEndpoint.md +++ b/docs/SamlLoginEndpoint.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Integer** | ID of the SAML login endpoint. | **name** | **String** | ID of the SAML service. | -**loginURL** | **String** | Single Sign-On URL. | +**loginURL** | **String** | The single sign-on URL. | diff --git a/docs/Store.md b/docs/Store.md index f6d85aea..5cddd021 100644 --- a/docs/Store.md +++ b/docs/Store.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **name** | **String** | The name of the store. | **description** | **String** | The description of the store. | **attributes** | [**Object**](.md) | The attributes of the store. | [optional] -**integrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | +**integrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. **Note**: You cannot edit the `integrationId` after the store has been created. | **applicationId** | **Integer** | The ID of the application that owns this entity. | **updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update on this entity. | **linkedCampaignIds** | **List<Integer>** | A list of IDs of the campaigns that are linked with current store. | [optional] diff --git a/docs/TalangAttribute.md b/docs/TalangAttribute.md index 50b0eaa7..9135ab0c 100644 --- a/docs/TalangAttribute.md +++ b/docs/TalangAttribute.md @@ -41,6 +41,7 @@ GIVEAWAY | "Giveaway" REFERRAL | "Referral" SESSION | "Session" STORE | "Store" +ACHIEVEMENTS | "Achievements" diff --git a/docs/TemplateArgDef.md b/docs/TemplateArgDef.md index 13777b0e..cda5288d 100644 --- a/docs/TemplateArgDef.md +++ b/docs/TemplateArgDef.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | [**TypeEnum**](#TypeEnum) | The type of value this argument expects. | -**description** | **String** | A campaigner-friendly description of the argument, this will also be shown in the rule editor. | +**description** | **String** | A campaigner-friendly description of the argument, this will also be shown in the rule editor. | [optional] **title** | **String** | A campaigner friendly name for the argument, this will be shown in the rule editor. | **ui** | [**Object**](.md) | Arbitrary metadata that may be used to render an input for this argument. | **picklistID** | **Integer** | ID of the picklist linked to a template. | [optional] diff --git a/docs/TierDowngradeNotificationPolicy.md b/docs/TierDowngradeNotificationPolicy.md index 10d51fb3..831cab4f 100644 --- a/docs/TierDowngradeNotificationPolicy.md +++ b/docs/TierDowngradeNotificationPolicy.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the notification. | +**batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] diff --git a/docs/TierUpgradeNotificationPolicy.md b/docs/TierUpgradeNotificationPolicy.md index 1de5e72c..997866db 100644 --- a/docs/TierUpgradeNotificationPolicy.md +++ b/docs/TierUpgradeNotificationPolicy.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Notification name. | +**batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] diff --git a/docs/TierWillDowngradeNotificationPolicy.md b/docs/TierWillDowngradeNotificationPolicy.md index bcd21009..a5cde860 100644 --- a/docs/TierWillDowngradeNotificationPolicy.md +++ b/docs/TierWillDowngradeNotificationPolicy.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the notification. | +**batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] **triggers** | [**List<TierWillDowngradeNotificationTrigger>**](TierWillDowngradeNotificationTrigger.md) | | diff --git a/docs/TimePoint.md b/docs/TimePoint.md index 53715ab9..3e69e308 100644 --- a/docs/TimePoint.md +++ b/docs/TimePoint.md @@ -2,17 +2,17 @@ # TimePoint -The absolute duration after which the achievement is reset for a particular customer profile. +The absolute duration after which the achievement ends and resets for a particular customer profile. **Note**: The duration follows the time zone of the Application this achievement belongs to. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**month** | **Integer** | The achievement is reset in this month. **Note**: Only applicable if the period is set to `Y`. | [optional] -**dayOfMonth** | **Integer** | The achievement is reset on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. | [optional] -**dayOfWeek** | **Integer** | The achievement is reset on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. | [optional] -**hour** | **Integer** | The achievement is reset at this hour. | -**minute** | **Integer** | The achievement is reset at this minute. | -**second** | **Integer** | The achievement is reset at this second. | +**month** | **Integer** | The achievement ends and resets in this month. **Note**: Only applicable if the period is set to `Y`. | [optional] +**dayOfMonth** | **Integer** | The achievement ends and resets on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. | [optional] +**dayOfWeek** | **Integer** | The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. | [optional] +**hour** | **Integer** | The achievement ends and resets at this hour. | +**minute** | **Integer** | The achievement ends and resets at this minute. | +**second** | **Integer** | The achievement ends and resets at this second. | diff --git a/docs/UpdateAchievement.md b/docs/UpdateAchievement.md index 017e39e6..a4f88953 100644 --- a/docs/UpdateAchievement.md +++ b/docs/UpdateAchievement.md @@ -6,8 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **String** | The internal name of the achievement used in API requests. | [optional] **title** | **String** | The display name for the achievement in the Campaign Manager. | [optional] **description** | **String** | A description of the achievement. | [optional] +**target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | [optional] +**period** | **String** | The relative duration after which the achievement ends and resets for a particular customer profile. | [optional] +**periodEndOverride** | [**TimePoint**](TimePoint.md) | | [optional] diff --git a/docs/UpdateApplicationAPIKey.md b/docs/UpdateApplicationAPIKey.md new file mode 100644 index 00000000..b98defda --- /dev/null +++ b/docs/UpdateApplicationAPIKey.md @@ -0,0 +1,12 @@ + + +# UpdateApplicationAPIKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | + + + diff --git a/docs/UpdateCampaign.md b/docs/UpdateCampaign.md index a39ff467..b7361845 100644 --- a/docs/UpdateCampaign.md +++ b/docs/UpdateCampaign.md @@ -44,6 +44,7 @@ REFERRALS | "referrals" LOYALTY | "loyalty" GIVEAWAYS | "giveaways" STRIKETHROUGH | "strikethrough" +ACHIEVEMENTS | "achievements" diff --git a/docs/UpdateCampaignGroup.md b/docs/UpdateCampaignGroup.md index e4b70edf..da80f1e2 100644 --- a/docs/UpdateCampaignGroup.md +++ b/docs/UpdateCampaignGroup.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | The name of this campaign access group. | +**name** | **String** | The name of the campaign access group. | **description** | **String** | A longer description of the campaign access group. | [optional] **subscribedApplicationsIds** | **List<Integer>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] **campaignIds** | **List<Integer>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] diff --git a/docs/UpdateCampaignTemplate.md b/docs/UpdateCampaignTemplate.md index eafc7aaf..29628490 100644 --- a/docs/UpdateCampaignTemplate.md +++ b/docs/UpdateCampaignTemplate.md @@ -45,6 +45,7 @@ REFERRALS | "referrals" LOYALTY | "loyalty" GIVEAWAYS | "giveaways" STRIKETHROUGH | "strikethrough" +ACHIEVEMENTS | "achievements" diff --git a/docs/UpdateLoyaltyProgram.md b/docs/UpdateLoyaltyProgram.md index 7d762668..8f4d62cc 100644 --- a/docs/UpdateLoyaltyProgram.md +++ b/docs/UpdateLoyaltyProgram.md @@ -15,12 +15,23 @@ Name | Type | Description | Notes **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | [optional] **usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | 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. | [optional] -**tiersExpireIn** | **String** | The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. | [optional] +**tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | 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. | [optional] +**tiersExpireIn** | **String** | 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. | [optional] **tiersDowngradePolicy** | [**TiersDowngradePolicyEnum**](#TiersDowngradePolicyEnum) | 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. | [optional] +**programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | 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. | [optional] **tiers** | [**List<NewLoyaltyTier>**](NewLoyaltyTier.md) | The tiers in this loyalty program. | [optional] +## Enum: TiersExpirationPolicyEnum + +Name | Value +---- | ----- +TIER_START_DATE | "tier_start_date" +PROGRAM_JOIN_DATE | "program_join_date" + + + ## Enum: TiersDowngradePolicyEnum Name | Value @@ -30,3 +41,13 @@ BALANCE_BASED | "balance_based" +## Enum: ProgramJoinPolicyEnum + +Name | Value +---- | ----- +NOT_JOIN | "not_join" +POINTS_ACTIVATED | "points_activated" +POINTS_EARNED | "points_earned" + + + diff --git a/docs/UpdateUser.md b/docs/UpdateUser.md index b179742c..15cc8535 100644 --- a/docs/UpdateUser.md +++ b/docs/UpdateUser.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | The user name. | [optional] -**policy** | **String** | The `Access Control List` json defining the role of the user. This represents the access control on the user level. | [optional] -**state** | [**StateEnum**](#StateEnum) | New state (\"deactivated\" or \"active\") for the user. Only usable by admins for the user. | [optional] -**roles** | **List<Integer>** | List of roles to assign to the user. | [optional] -**applicationNotificationSubscriptions** | [**Object**](.md) | | [optional] -**isAdmin** | **Boolean** | An indication of whether the user has admin permissions. | [optional] +**name** | **String** | Name of the user. | [optional] +**state** | [**StateEnum**](#StateEnum) | The state of the user. - `deactivated`: The user has been deactivated. - `active`: The user is active. **Note**: Only `admin` users can update the state of another user. | [optional] +**isAdmin** | **Boolean** | Indicates whether the user is an `admin`. | [optional] +**policy** | **String** | Indicates the access level of the user. | [optional] +**roles** | **List<Integer>** | A list of the IDs of the roles assigned to the user. **Note**: Use the [List roles](https://docs.talon.one/management-api#tag/Roles/operation/getAllRoles) endpoint to find the ID of a role. | [optional] +**applicationNotificationSubscriptions** | [**Object**](.md) | Application notifications that the user is subscribed to. | [optional] diff --git a/docs/User.md b/docs/User.md index 47a789e6..0190e234 100644 --- a/docs/User.md +++ b/docs/User.md @@ -10,19 +10,19 @@ Name | Type | Description | Notes **id** | **Integer** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**email** | **String** | The email address associated with your account. | +**email** | **String** | The email address associated with the user profile. | **accountId** | **Integer** | The ID of the account that owns this entity. | -**inviteToken** | **String** | Invite token, empty if the user as already accepted their invite. | -**state** | [**StateEnum**](#StateEnum) | Current user state. | -**name** | **String** | Full name | -**policy** | [**Object**](.md) | User ACL Policy | -**latestFeedTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | Latest timestamp the user has been notified for feed. | [optional] -**roles** | **List<Integer>** | Contains a list of all roles the user is a member of. | [optional] -**applicationNotificationSubscriptions** | [**Object**](.md) | | [optional] -**authMethod** | **String** | The Authentication method for this user. | [optional] -**isAdmin** | **Boolean** | An indication of whether the user has admin permissions. | [optional] -**lastSignedIn** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time when the user last signed in to Talon.One. | [optional] -**lastAccessed** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time of the user's last activity after signing in to Talon.One. | [optional] +**name** | **String** | Name of the user. | +**state** | [**StateEnum**](#StateEnum) | State of the user. | +**inviteToken** | **String** | Invitation token of the user. **Note**: If the user has already accepted their invitation, this is `null`. | +**isAdmin** | **Boolean** | Indicates whether the user is an `admin`. | [optional] +**policy** | [**Object**](.md) | Access level of the user. | +**roles** | **List<Integer>** | A list of the IDs of the roles assigned to the user. | [optional] +**authMethod** | **String** | Authentication method for this user. | [optional] +**applicationNotificationSubscriptions** | [**Object**](.md) | Application notifications that the user is subscribed to. | [optional] +**lastSignedIn** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the user last signed in to Talon.One. | [optional] +**lastAccessed** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the user's last activity after signing in to Talon.One. | [optional] +**latestFeedTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the user was notified for feed. | [optional] diff --git a/pom.xml b/pom.xml index 165f24d0..739c54db 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ talon-one-client jar talon-one-client - 6.0.1 + 7.0.0 https://github.com/talon-one/maven-artefacts Talon.One unified JAVA SDK. It allows for programmatic access to the integration and management API with their respective authentication strategies diff --git a/src/main/java/one/talon/ApiClient.java b/src/main/java/one/talon/ApiClient.java index c76b417e..52323709 100644 --- a/src/main/java/one/talon/ApiClient.java +++ b/src/main/java/one/talon/ApiClient.java @@ -132,7 +132,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/6.0.1/java"); + setUserAgent("OpenAPI-Generator/7.0.0/java"); authentications = new HashMap(); } diff --git a/src/main/java/one/talon/api/IntegrationApi.java b/src/main/java/one/talon/api/IntegrationApi.java index b65a06c4..7261db53 100644 --- a/src/main/java/one/talon/api/IntegrationApi.java +++ b/src/main/java/one/talon/api/IntegrationApi.java @@ -592,7 +592,7 @@ public okhttp3.Call createReferralsForMultipleAdvocatesAsync(NewReferralsForMult } /** * Build call for deleteAudienceMembershipsV2 - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -651,7 +651,7 @@ private okhttp3.Call deleteAudienceMembershipsV2ValidateBeforeCall(Integer audie /** * Delete audience memberships * Remove all members from this audience. - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -668,7 +668,7 @@ public void deleteAudienceMembershipsV2(Integer audienceId) throws ApiException /** * Delete audience memberships * Remove all members from this audience. - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -687,7 +687,7 @@ public ApiResponse deleteAudienceMembershipsV2WithHttpInfo(Integer audienc /** * Delete audience memberships (asynchronously) * Remove all members from this audience. - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -707,7 +707,7 @@ public okhttp3.Call deleteAudienceMembershipsV2Async(Integer audienceId, final A } /** * Build call for deleteAudienceV2 - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -767,7 +767,7 @@ private okhttp3.Call deleteAudienceV2ValidateBeforeCall(Integer audienceId, fina /** * Delete audience * Delete an audience created by a third-party integration. **Warning:** This endpoint also removes any associations recorded between a customer profile and this audience. **Note:** Audiences can also be deleted via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
@@ -785,7 +785,7 @@ public void deleteAudienceV2(Integer audienceId) throws ApiException { /** * Delete audience * Delete an audience created by a third-party integration. **Warning:** This endpoint also removes any associations recorded between a customer profile and this audience. **Note:** Audiences can also be deleted via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -805,7 +805,7 @@ public ApiResponse deleteAudienceV2WithHttpInfo(Integer audienceId) throws /** * Delete audience (asynchronously) * Delete an audience created by a third-party integration. **Warning:** This endpoint also removes any associations recorded between a customer profile and this audience. **Note:** Audiences can also be deleted via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1075,6 +1075,7 @@ public okhttp3.Call deleteCustomerDataAsync(String integrationId, final ApiCallb * @param coupons Set to `true` to include coupon information in the response. (optional) * @param loyalty Set to `true` to include loyalty information in the response. (optional) * @param giveaways Set to `true` to include giveaways information in the response. (optional) + * @param achievements Set to `true` to include achievement information in the response. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1086,7 +1087,7 @@ public okhttp3.Call deleteCustomerDataAsync(String integrationId, final ApiCallb
404 Not found -
*/ - public okhttp3.Call getCustomerInventoryCall(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerInventoryCall(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1115,6 +1116,10 @@ public okhttp3.Call getCustomerInventoryCall(String integrationId, Boolean profi localVarQueryParams.addAll(localVarApiClient.parameterToPair("giveaways", giveaways)); } + if (achievements != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("achievements", achievements)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -1137,7 +1142,7 @@ public okhttp3.Call getCustomerInventoryCall(String integrationId, Boolean profi } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerInventoryValidateBeforeCall(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCustomerInventoryValidateBeforeCall(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements, final ApiCallback _callback) throws ApiException { // verify the required parameter 'integrationId' is set if (integrationId == null) { @@ -1145,7 +1150,7 @@ private okhttp3.Call getCustomerInventoryValidateBeforeCall(String integrationId } - okhttp3.Call localVarCall = getCustomerInventoryCall(integrationId, profile, referrals, coupons, loyalty, giveaways, _callback); + okhttp3.Call localVarCall = getCustomerInventoryCall(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements, _callback); return localVarCall; } @@ -1159,6 +1164,7 @@ private okhttp3.Call getCustomerInventoryValidateBeforeCall(String integrationId * @param coupons Set to `true` to include coupon information in the response. (optional) * @param loyalty Set to `true` to include loyalty information in the response. (optional) * @param giveaways Set to `true` to include giveaways information in the response. (optional) + * @param achievements Set to `true` to include achievement information in the response. (optional) * @return CustomerInventory * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1169,8 +1175,8 @@ private okhttp3.Call getCustomerInventoryValidateBeforeCall(String integrationId 404 Not found - */ - public CustomerInventory getCustomerInventory(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways) throws ApiException { - ApiResponse localVarResp = getCustomerInventoryWithHttpInfo(integrationId, profile, referrals, coupons, loyalty, giveaways); + public CustomerInventory getCustomerInventory(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements) throws ApiException { + ApiResponse localVarResp = getCustomerInventoryWithHttpInfo(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements); return localVarResp.getData(); } @@ -1183,6 +1189,7 @@ public CustomerInventory getCustomerInventory(String integrationId, Boolean prof * @param coupons Set to `true` to include coupon information in the response. (optional) * @param loyalty Set to `true` to include loyalty information in the response. (optional) * @param giveaways Set to `true` to include giveaways information in the response. (optional) + * @param achievements Set to `true` to include achievement information in the response. (optional) * @return ApiResponse<CustomerInventory> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1193,8 +1200,8 @@ public CustomerInventory getCustomerInventory(String integrationId, Boolean prof 404 Not found - */ - public ApiResponse getCustomerInventoryWithHttpInfo(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways) throws ApiException { - okhttp3.Call localVarCall = getCustomerInventoryValidateBeforeCall(integrationId, profile, referrals, coupons, loyalty, giveaways, null); + public ApiResponse getCustomerInventoryWithHttpInfo(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements) throws ApiException { + okhttp3.Call localVarCall = getCustomerInventoryValidateBeforeCall(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1208,6 +1215,7 @@ public ApiResponse getCustomerInventoryWithHttpInfo(String in * @param coupons Set to `true` to include coupon information in the response. (optional) * @param loyalty Set to `true` to include loyalty information in the response. (optional) * @param giveaways Set to `true` to include giveaways information in the response. (optional) + * @param achievements Set to `true` to include achievement information in the response. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1219,9 +1227,9 @@ public ApiResponse getCustomerInventoryWithHttpInfo(String in 404 Not found - */ - public okhttp3.Call getCustomerInventoryAsync(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerInventoryAsync(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCustomerInventoryValidateBeforeCall(integrationId, profile, referrals, coupons, loyalty, giveaways, _callback); + okhttp3.Call localVarCall = getCustomerInventoryValidateBeforeCall(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1633,7 +1641,7 @@ public okhttp3.Call getLoyaltyCardBalancesAsync(Integer loyaltyProgramId, String * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1720,7 +1728,7 @@ private okhttp3.Call getLoyaltyCardPointsValidateBeforeCall(Integer loyaltyProgr * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse2003 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1745,7 +1753,7 @@ public InlineResponse2003 getLoyaltyCardPoints(Integer loyaltyProgramId, String * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse2003> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1771,7 +1779,7 @@ public ApiResponse getLoyaltyCardPointsWithHttpInfo(Integer * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1798,9 +1806,9 @@ public okhttp3.Call getLoyaltyCardPointsAsync(Integer loyaltyProgramId, String l * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1895,9 +1903,9 @@ private okhttp3.Call getLoyaltyCardTransactionsValidateBeforeCall(Integer loyalt * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse2001 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1922,9 +1930,9 @@ public InlineResponse2001 getLoyaltyCardTransactions(Integer loyaltyProgramId, S * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse2001> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1950,9 +1958,9 @@ public ApiResponse getLoyaltyCardTransactionsWithHttpInfo(In * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1979,7 +1987,7 @@ public okhttp3.Call getLoyaltyCardTransactionsAsync(Integer loyaltyProgramId, St * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2066,7 +2074,7 @@ private okhttp3.Call getLoyaltyProgramProfilePointsValidateBeforeCall(Integer lo * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse2004 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2091,7 +2099,7 @@ public InlineResponse2004 getLoyaltyProgramProfilePoints(Integer loyaltyProgramI * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse2004> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2117,7 +2125,7 @@ public ApiResponse getLoyaltyProgramProfilePointsWithHttpInf * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2144,9 +2152,9 @@ public okhttp3.Call getLoyaltyProgramProfilePointsAsync(Integer loyaltyProgramId * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2241,9 +2249,9 @@ private okhttp3.Call getLoyaltyProgramProfileTransactionsValidateBeforeCall(Inte * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse2002 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2268,9 +2276,9 @@ public InlineResponse2002 getLoyaltyProgramProfileTransactions(Integer loyaltyPr * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse2002> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2296,9 +2304,9 @@ public ApiResponse getLoyaltyProgramProfileTransactionsWithH * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2906,7 +2914,7 @@ private okhttp3.Call syncCatalogValidateBeforeCall(Integer catalogId, CatalogSyn /** * Sync cart item catalog - * Perform one or more of the following sync actions on this cart item catalog, up to 1000 actions: - Add an item to the catalog. - Edit the attributes of an item in the catalog. - Edit the attributes of more than one item in the catalog. - Remove an item from the catalog. - Remove more than one item from the catalog. **Note:** For more information, see [our documentation on managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs#displaying-the-details-and-content-of-a-catalog) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoe\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100 }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\" }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of several items at once</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing several items from the catalog at once</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> + * Perform one or more of the following actions for a given cart item catalog: - Adding an item to the catalog. - Adding several items to the catalog. - Editing the attributes of an item in the catalog. - Editing the attributes of several items in the catalog. - Removing an item from the catalog. - Removing several items from the catalog. You can add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique `SKU`. **Important**: Syncing items with duplicate `SKU` values in a single request returns an error message with a `400` status code. For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Adding several items to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241027\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" }, { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\", \"product\": { \"name\": \"sneakers\" } }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of several items in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing several items from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) * @param body body (required) * @return Catalog @@ -2927,7 +2935,7 @@ public Catalog syncCatalog(Integer catalogId, CatalogSyncRequest body) throws Ap /** * Sync cart item catalog - * Perform one or more of the following sync actions on this cart item catalog, up to 1000 actions: - Add an item to the catalog. - Edit the attributes of an item in the catalog. - Edit the attributes of more than one item in the catalog. - Remove an item from the catalog. - Remove more than one item from the catalog. **Note:** For more information, see [our documentation on managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs#displaying-the-details-and-content-of-a-catalog) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoe\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100 }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\" }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of several items at once</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing several items from the catalog at once</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> + * Perform one or more of the following actions for a given cart item catalog: - Adding an item to the catalog. - Adding several items to the catalog. - Editing the attributes of an item in the catalog. - Editing the attributes of several items in the catalog. - Removing an item from the catalog. - Removing several items from the catalog. You can add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique `SKU`. **Important**: Syncing items with duplicate `SKU` values in a single request returns an error message with a `400` status code. For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Adding several items to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241027\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" }, { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\", \"product\": { \"name\": \"sneakers\" } }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of several items in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing several items from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) * @param body body (required) * @return ApiResponse<Catalog> @@ -2949,7 +2957,7 @@ public ApiResponse syncCatalogWithHttpInfo(Integer catalogId, CatalogSy /** * Sync cart item catalog (asynchronously) - * Perform one or more of the following sync actions on this cart item catalog, up to 1000 actions: - Add an item to the catalog. - Edit the attributes of an item in the catalog. - Edit the attributes of more than one item in the catalog. - Remove an item from the catalog. - Remove more than one item from the catalog. **Note:** For more information, see [our documentation on managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs#displaying-the-details-and-content-of-a-catalog) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoe\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100 }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\" }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of several items at once</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing several items from the catalog at once</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> + * Perform one or more of the following actions for a given cart item catalog: - Adding an item to the catalog. - Adding several items to the catalog. - Editing the attributes of an item in the catalog. - Editing the attributes of several items in the catalog. - Removing an item from the catalog. - Removing several items from the catalog. You can add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique `SKU`. **Important**: Syncing items with duplicate `SKU` values in a single request returns an error message with a `400` status code. For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Adding several items to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241027\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" }, { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\", \"product\": { \"name\": \"sneakers\" } }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of several items in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing several items from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) * @param body body (required) * @param _callback The callback to be executed when the API call finishes @@ -3111,7 +3119,7 @@ public okhttp3.Call trackEventV2Async(IntegrationEventV2Request body, String sil } /** * Build call for updateAudienceCustomersAttributes - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3176,7 +3184,7 @@ private okhttp3.Call updateAudienceCustomersAttributesValidateBeforeCall(Integer /** * Update profile attributes for all customers in audience * Update the specified profile attributes to the provided values for all customers in the specified audience. - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param body body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3194,7 +3202,7 @@ public void updateAudienceCustomersAttributes(Integer audienceId, Object body) t /** * Update profile attributes for all customers in audience * Update the specified profile attributes to the provided values for all customers in the specified audience. - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param body body (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3214,7 +3222,7 @@ public ApiResponse updateAudienceCustomersAttributesWithHttpInfo(Integer a /** * Update profile attributes for all customers in audience (asynchronously) * Update the specified profile attributes to the provided values for all customers in the specified audience. - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3235,7 +3243,7 @@ public okhttp3.Call updateAudienceCustomersAttributesAsync(Integer audienceId, O } /** * Build call for updateAudienceV2 - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3300,7 +3308,7 @@ private okhttp3.Call updateAudienceV2ValidateBeforeCall(Integer audienceId, Upda /** * Update audience name * Update the name of the given audience created by a third-party integration. Sending a request to this endpoint does **not** trigger the Rule Engine. To update the audience's members, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param body body (required) * @return Audience * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3320,7 +3328,7 @@ public Audience updateAudienceV2(Integer audienceId, UpdateAudience body) throws /** * Update audience name * Update the name of the given audience created by a third-party integration. Sending a request to this endpoint does **not** trigger the Rule Engine. To update the audience's members, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param body body (required) * @return ApiResponse<Audience> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3341,7 +3349,7 @@ public ApiResponse updateAudienceV2WithHttpInfo(Integer audienceId, Up /** * Update audience name (asynchronously) * Update the name of the given audience created by a third-party integration. Sending a request to this endpoint does **not** trigger the Rule Engine. To update the audience's members, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. - * @param audienceId The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). (required) + * @param audienceId The ID of the audience. (required) * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3421,7 +3429,7 @@ private okhttp3.Call updateCustomerProfileAudiencesValidateBeforeCall(CustomerPr /** * Update multiple customer profiles' audiences - * Update the specified customer profiles with the specified audiences. Use this endpoint when customers join or leave audiences. The limit of customer profiles per request is 1000. **Note:** You can also add customer profiles to or remove them from an audience using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. + * Add customer profiles to or remove them from an audience. The endpoint supports 1000 audience actions (`add` or `remove`) per request. **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. * @param body body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3439,7 +3447,7 @@ public void updateCustomerProfileAudiences(CustomerProfileAudienceRequest body) /** * Update multiple customer profiles' audiences - * Update the specified customer profiles with the specified audiences. Use this endpoint when customers join or leave audiences. The limit of customer profiles per request is 1000. **Note:** You can also add customer profiles to or remove them from an audience using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. + * Add customer profiles to or remove them from an audience. The endpoint supports 1000 audience actions (`add` or `remove`) per request. **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. * @param body body (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3459,7 +3467,7 @@ public ApiResponse updateCustomerProfileAudiencesWithHttpInfo(CustomerProf /** * Update multiple customer profiles' audiences (asynchronously) - * Update the specified customer profiles with the specified audiences. Use this endpoint when customers join or leave audiences. The limit of customer profiles per request is 1000. **Note:** You can also add customer profiles to or remove them from an audience using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. + * Add customer profiles to or remove them from an audience. The endpoint supports 1000 audience actions (`add` or `remove`) per request. **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3758,6 +3766,7 @@ public okhttp3.Call updateCustomerProfilesV2Async(MultipleCustomerProfileIntegra * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) * @param body body (required) * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint will **only** consider the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). (optional) + * @param now A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3770,7 +3779,7 @@ public okhttp3.Call updateCustomerProfilesV2Async(MultipleCustomerProfileIntegra 409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). - */ - public okhttp3.Call updateCustomerSessionV2Call(String customerSessionId, IntegrationRequest body, Boolean dry, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCustomerSessionV2Call(String customerSessionId, IntegrationRequest body, Boolean dry, OffsetDateTime now, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3783,6 +3792,10 @@ public okhttp3.Call updateCustomerSessionV2Call(String customerSessionId, Integr localVarQueryParams.addAll(localVarApiClient.parameterToPair("dry", dry)); } + if (now != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("now", now)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -3805,7 +3818,7 @@ public okhttp3.Call updateCustomerSessionV2Call(String customerSessionId, Integr } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCustomerSessionV2ValidateBeforeCall(String customerSessionId, IntegrationRequest body, Boolean dry, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateCustomerSessionV2ValidateBeforeCall(String customerSessionId, IntegrationRequest body, Boolean dry, OffsetDateTime now, final ApiCallback _callback) throws ApiException { // verify the required parameter 'customerSessionId' is set if (customerSessionId == null) { @@ -3818,7 +3831,7 @@ private okhttp3.Call updateCustomerSessionV2ValidateBeforeCall(String customerSe } - okhttp3.Call localVarCall = updateCustomerSessionV2Call(customerSessionId, body, dry, _callback); + okhttp3.Call localVarCall = updateCustomerSessionV2Call(customerSessionId, body, dry, now, _callback); return localVarCall; } @@ -3829,6 +3842,7 @@ private okhttp3.Call updateCustomerSessionV2ValidateBeforeCall(String customerSe * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) * @param body body (required) * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint will **only** consider the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). (optional) + * @param now A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`. (optional) * @return IntegrationStateV2 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3840,8 +3854,8 @@ private okhttp3.Call updateCustomerSessionV2ValidateBeforeCall(String customerSe 409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). - */ - public IntegrationStateV2 updateCustomerSessionV2(String customerSessionId, IntegrationRequest body, Boolean dry) throws ApiException { - ApiResponse localVarResp = updateCustomerSessionV2WithHttpInfo(customerSessionId, body, dry); + public IntegrationStateV2 updateCustomerSessionV2(String customerSessionId, IntegrationRequest body, Boolean dry, OffsetDateTime now) throws ApiException { + ApiResponse localVarResp = updateCustomerSessionV2WithHttpInfo(customerSessionId, body, dry, now); return localVarResp.getData(); } @@ -3851,6 +3865,7 @@ public IntegrationStateV2 updateCustomerSessionV2(String customerSessionId, Inte * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) * @param body body (required) * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint will **only** consider the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). (optional) + * @param now A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`. (optional) * @return ApiResponse<IntegrationStateV2> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3862,8 +3877,8 @@ public IntegrationStateV2 updateCustomerSessionV2(String customerSessionId, Inte 409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). - */ - public ApiResponse updateCustomerSessionV2WithHttpInfo(String customerSessionId, IntegrationRequest body, Boolean dry) throws ApiException { - okhttp3.Call localVarCall = updateCustomerSessionV2ValidateBeforeCall(customerSessionId, body, dry, null); + public ApiResponse updateCustomerSessionV2WithHttpInfo(String customerSessionId, IntegrationRequest body, Boolean dry, OffsetDateTime now) throws ApiException { + okhttp3.Call localVarCall = updateCustomerSessionV2ValidateBeforeCall(customerSessionId, body, dry, now, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3874,6 +3889,7 @@ public ApiResponse updateCustomerSessionV2WithHttpInfo(Strin * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) * @param body body (required) * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint will **only** consider the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). (optional) + * @param now A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3886,9 +3902,9 @@ public ApiResponse updateCustomerSessionV2WithHttpInfo(Strin 409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). - */ - public okhttp3.Call updateCustomerSessionV2Async(String customerSessionId, IntegrationRequest body, Boolean dry, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCustomerSessionV2Async(String customerSessionId, IntegrationRequest body, Boolean dry, OffsetDateTime now, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateCustomerSessionV2ValidateBeforeCall(customerSessionId, body, dry, _callback); + okhttp3.Call localVarCall = updateCustomerSessionV2ValidateBeforeCall(customerSessionId, body, dry, now, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/one/talon/api/ManagementApi.java b/src/main/java/one/talon/api/ManagementApi.java index 3f570d78..98e9f649 100644 --- a/src/main/java/one/talon/api/ManagementApi.java +++ b/src/main/java/one/talon/api/ManagementApi.java @@ -30,6 +30,7 @@ import one.talon.model.Account; import one.talon.model.AccountAdditionalCost; import one.talon.model.AccountAnalytics; +import one.talon.model.Achievement; import one.talon.model.AddLoyaltyPoints; import one.talon.model.Application; import one.talon.model.ApplicationApiHealth; @@ -41,16 +42,20 @@ import java.math.BigDecimal; import one.talon.model.Campaign; import one.talon.model.CampaignCopy; +import one.talon.model.CampaignGroup; import one.talon.model.CampaignSearch; import one.talon.model.Collection; import one.talon.model.Coupon; +import one.talon.model.CreateAchievement; import one.talon.model.CreateTemplateCampaign; import one.talon.model.CreateTemplateCampaignResponse; import one.talon.model.CustomerActivityReport; import one.talon.model.CustomerAnalytics; import one.talon.model.CustomerProfile; import one.talon.model.CustomerProfileSearchQuery; +import one.talon.model.DeactivateUserRequest; import one.talon.model.DeductLoyaltyPoints; +import one.talon.model.DeleteUserRequest; import one.talon.model.ErrorResponse; import one.talon.model.ErrorResponseWithStatus; import one.talon.model.InlineResponse20010; @@ -87,6 +92,10 @@ import one.talon.model.InlineResponse20041; import one.talon.model.InlineResponse20042; import one.talon.model.InlineResponse20043; +import one.talon.model.InlineResponse20044; +import one.talon.model.InlineResponse20045; +import one.talon.model.InlineResponse20046; +import one.talon.model.InlineResponse20047; import one.talon.model.InlineResponse2005; import one.talon.model.InlineResponse2006; import one.talon.model.InlineResponse2007; @@ -106,6 +115,8 @@ import one.talon.model.NewCouponCreationJob; import one.talon.model.NewCoupons; import one.talon.model.NewCouponsForMultipleRecipients; +import one.talon.model.NewInvitation; +import one.talon.model.NewInviteEmail; import one.talon.model.NewPassword; import one.talon.model.NewPasswordEmail; import one.talon.model.NewStore; @@ -113,10 +124,13 @@ import org.threeten.bp.OffsetDateTime; import one.talon.model.Referral; import one.talon.model.Role; +import one.talon.model.RoleV2; +import one.talon.model.RoleV2Base; import one.talon.model.Ruleset; import one.talon.model.Session; import one.talon.model.Store; import one.talon.model.TransferLoyaltyCard; +import one.talon.model.UpdateAchievement; import one.talon.model.UpdateCampaign; import one.talon.model.UpdateCampaignCollection; import one.talon.model.UpdateCollection; @@ -124,6 +138,7 @@ import one.talon.model.UpdateCouponBatch; import one.talon.model.UpdateLoyaltyCard; import one.talon.model.UpdateReferral; +import one.talon.model.UpdateUser; import one.talon.model.User; import one.talon.model.Webhook; @@ -680,6 +695,148 @@ public okhttp3.Call createAccountCollectionAsync(NewCollection body, final ApiCa localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for createAchievement + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An achievement with this name or title already exists. -
+ */ + public okhttp3.Call createAchievementCall(Integer applicationId, Integer campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling createAchievement(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling createAchievement(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createAchievement(Async)"); + } + + + okhttp3.Call localVarCall = createAchievementCall(applicationId, campaignId, body, _callback); + return localVarCall; + + } + + /** + * Create achievement + * Create a new achievement in a specific campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param body body (required) + * @return Achievement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An achievement with this name or title already exists. -
+ */ + public Achievement createAchievement(Integer applicationId, Integer campaignId, CreateAchievement body) throws ApiException { + ApiResponse localVarResp = createAchievementWithHttpInfo(applicationId, campaignId, body); + return localVarResp.getData(); + } + + /** + * Create achievement + * Create a new achievement in a specific campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param body body (required) + * @return ApiResponse<Achievement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An achievement with this name or title already exists. -
+ */ + public ApiResponse createAchievementWithHttpInfo(Integer applicationId, Integer campaignId, CreateAchievement body) throws ApiException { + okhttp3.Call localVarCall = createAchievementValidateBeforeCall(applicationId, campaignId, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create achievement (asynchronously) + * Create a new achievement in a specific campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An achievement with this name or title already exists. -
+ */ + public okhttp3.Call createAchievementAsync(Integer applicationId, Integer campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createAchievementValidateBeforeCall(applicationId, campaignId, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for createAdditionalCost * @param body body (required) @@ -1565,7 +1722,7 @@ public okhttp3.Call createCouponsForMultipleRecipientsAsync(Integer applicationI return localVarCall; } /** - * Build call for createPasswordRecoveryEmail + * Build call for createInviteEmail * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1573,14 +1730,14 @@ public okhttp3.Call createCouponsForMultipleRecipientsAsync(Integer applicationI * @http.response.details - +
Status Code Description Response Headers
204 Created -
201 Created -
*/ - public okhttp3.Call createPasswordRecoveryEmailCall(NewPasswordEmail body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createInviteEmailCall(NewInviteEmail body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/password_recovery_emails"; + String localVarPath = "/v1/invite_emails"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1606,57 +1763,57 @@ public okhttp3.Call createPasswordRecoveryEmailCall(NewPasswordEmail body, final } @SuppressWarnings("rawtypes") - private okhttp3.Call createPasswordRecoveryEmailValidateBeforeCall(NewPasswordEmail body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createInviteEmailValidateBeforeCall(NewInviteEmail body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createPasswordRecoveryEmail(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createInviteEmail(Async)"); } - okhttp3.Call localVarCall = createPasswordRecoveryEmailCall(body, _callback); + okhttp3.Call localVarCall = createInviteEmailCall(body, _callback); return localVarCall; } /** - * Request a password reset - * Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. + * Resend invitation email + * Resend an email invitation to an existing user. **Note:** The invitation token is valid for 24 hours after the email has been sent. * @param body body (required) - * @return NewPasswordEmail + * @return NewInviteEmail * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
204 Created -
201 Created -
*/ - public NewPasswordEmail createPasswordRecoveryEmail(NewPasswordEmail body) throws ApiException { - ApiResponse localVarResp = createPasswordRecoveryEmailWithHttpInfo(body); + public NewInviteEmail createInviteEmail(NewInviteEmail body) throws ApiException { + ApiResponse localVarResp = createInviteEmailWithHttpInfo(body); return localVarResp.getData(); } /** - * Request a password reset - * Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. + * Resend invitation email + * Resend an email invitation to an existing user. **Note:** The invitation token is valid for 24 hours after the email has been sent. * @param body body (required) - * @return ApiResponse<NewPasswordEmail> + * @return ApiResponse<NewInviteEmail> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
204 Created -
201 Created -
*/ - public ApiResponse createPasswordRecoveryEmailWithHttpInfo(NewPasswordEmail body) throws ApiException { - okhttp3.Call localVarCall = createPasswordRecoveryEmailValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createInviteEmailWithHttpInfo(NewInviteEmail body) throws ApiException { + okhttp3.Call localVarCall = createInviteEmailValidateBeforeCall(body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Request a password reset (asynchronously) - * Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. + * Resend invitation email (asynchronously) + * Resend an email invitation to an existing user. **Note:** The invitation token is valid for 24 hours after the email has been sent. * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1664,18 +1821,18 @@ public ApiResponse createPasswordRecoveryEmailWithHttpInfo(New * @http.response.details - +
Status Code Description Response Headers
204 Created -
201 Created -
*/ - public okhttp3.Call createPasswordRecoveryEmailAsync(NewPasswordEmail body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createInviteEmailAsync(NewInviteEmail body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createPasswordRecoveryEmailValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createInviteEmailValidateBeforeCall(body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for createSession + * Build call for createInviteV2 * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1686,11 +1843,11 @@ public okhttp3.Call createPasswordRecoveryEmailAsync(NewPasswordEmail body, fina 201 Created - */ - public okhttp3.Call createSessionCall(LoginParams body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createInviteV2Call(NewInvitation body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/sessions"; + String localVarPath = "/v2/invites"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1716,24 +1873,24 @@ public okhttp3.Call createSessionCall(LoginParams body, final ApiCallback _callb } @SuppressWarnings("rawtypes") - private okhttp3.Call createSessionValidateBeforeCall(LoginParams body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createInviteV2ValidateBeforeCall(NewInvitation body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createSession(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createInviteV2(Async)"); } - okhttp3.Call localVarCall = createSessionCall(body, _callback); + okhttp3.Call localVarCall = createInviteV2Call(body, _callback); return localVarCall; } /** - * Create session - * Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> + * Invite user + * Create a new user in the account and send an invitation to their email address. **Note**: The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the [Resend invitation email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) endpoint. * @param body body (required) - * @return Session + * @return User * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1741,16 +1898,16 @@ private okhttp3.Call createSessionValidateBeforeCall(LoginParams body, final Api
201 Created -
*/ - public Session createSession(LoginParams body) throws ApiException { - ApiResponse localVarResp = createSessionWithHttpInfo(body); + public User createInviteV2(NewInvitation body) throws ApiException { + ApiResponse localVarResp = createInviteV2WithHttpInfo(body); return localVarResp.getData(); } /** - * Create session - * Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> + * Invite user + * Create a new user in the account and send an invitation to their email address. **Note**: The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the [Resend invitation email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) endpoint. * @param body body (required) - * @return ApiResponse<Session> + * @return ApiResponse<User> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1758,15 +1915,15 @@ public Session createSession(LoginParams body) throws ApiException {
201 Created -
*/ - public ApiResponse createSessionWithHttpInfo(LoginParams body) throws ApiException { - okhttp3.Call localVarCall = createSessionValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createInviteV2WithHttpInfo(NewInvitation body) throws ApiException { + okhttp3.Call localVarCall = createInviteV2ValidateBeforeCall(body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Create session (asynchronously) - * Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> + * Invite user (asynchronously) + * Create a new user in the account and send an invitation to their email address. **Note**: The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the [Resend invitation email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) endpoint. * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1777,16 +1934,15 @@ public ApiResponse createSessionWithHttpInfo(LoginParams body) throws A 201 Created - */ - public okhttp3.Call createSessionAsync(LoginParams body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createInviteV2Async(NewInvitation body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createSessionValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createInviteV2ValidateBeforeCall(body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for createStore - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * Build call for createPasswordRecoveryEmail * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1794,17 +1950,14 @@ public okhttp3.Call createSessionAsync(LoginParams body, final ApiCallback Status Code Description Response Headers - 201 Created - - 400 Bad request - - 409 Conflict. A store with this integration ID already exists for this application. - + 204 Created - */ - public okhttp3.Call createStoreCall(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createPasswordRecoveryEmailCall(NewPasswordEmail body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/stores" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + String localVarPath = "/v1/password_recovery_emails"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1830,69 +1983,57 @@ public okhttp3.Call createStoreCall(Integer applicationId, NewStore body, final } @SuppressWarnings("rawtypes") - private okhttp3.Call createStoreValidateBeforeCall(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'applicationId' is set - if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling createStore(Async)"); - } + private okhttp3.Call createPasswordRecoveryEmailValidateBeforeCall(NewPasswordEmail body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createStore(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createPasswordRecoveryEmail(Async)"); } - okhttp3.Call localVarCall = createStoreCall(applicationId, body, _callback); + okhttp3.Call localVarCall = createPasswordRecoveryEmailCall(body, _callback); return localVarCall; } /** - * Create store - * Create a new store in a specific Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * Request a password reset + * Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. * @param body body (required) - * @return Store + * @return NewPasswordEmail * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - +
Status Code Description Response Headers
201 Created -
400 Bad request -
409 Conflict. A store with this integration ID already exists for this application. -
204 Created -
*/ - public Store createStore(Integer applicationId, NewStore body) throws ApiException { - ApiResponse localVarResp = createStoreWithHttpInfo(applicationId, body); + public NewPasswordEmail createPasswordRecoveryEmail(NewPasswordEmail body) throws ApiException { + ApiResponse localVarResp = createPasswordRecoveryEmailWithHttpInfo(body); return localVarResp.getData(); } /** - * Create store - * Create a new store in a specific Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * Request a password reset + * Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. * @param body body (required) - * @return ApiResponse<Store> + * @return ApiResponse<NewPasswordEmail> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - +
Status Code Description Response Headers
201 Created -
400 Bad request -
409 Conflict. A store with this integration ID already exists for this application. -
204 Created -
*/ - public ApiResponse createStoreWithHttpInfo(Integer applicationId, NewStore body) throws ApiException { - okhttp3.Call localVarCall = createStoreValidateBeforeCall(applicationId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createPasswordRecoveryEmailWithHttpInfo(NewPasswordEmail body) throws ApiException { + okhttp3.Call localVarCall = createPasswordRecoveryEmailValidateBeforeCall(body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Create store (asynchronously) - * Create a new store in a specific Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * Request a password reset (asynchronously) + * Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1900,22 +2041,18 @@ public ApiResponse createStoreWithHttpInfo(Integer applicationId, NewStor * @http.response.details - - - +
Status Code Description Response Headers
201 Created -
400 Bad request -
409 Conflict. A store with this integration ID already exists for this application. -
204 Created -
*/ - public okhttp3.Call createStoreAsync(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createPasswordRecoveryEmailAsync(NewPasswordEmail body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createStoreValidateBeforeCall(applicationId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createPasswordRecoveryEmailValidateBeforeCall(body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deductLoyaltyCardPoints - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * Build call for createSession * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1923,19 +2060,14 @@ public okhttp3.Call createStoreAsync(Integer applicationId, NewStore body, final * @http.response.details - - - - +
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
201 Created -
*/ - public okhttp3.Call deductLoyaltyCardPointsCall(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createSessionCall(LoginParams body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/deduct_points" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + String localVarPath = "/v1/sessions"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1957,80 +2089,187 @@ public okhttp3.Call deductLoyaltyCardPointsCall(Integer loyaltyProgramId, String localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deductLoyaltyCardPointsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createSessionValidateBeforeCall(LoginParams body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'loyaltyProgramId' is set - if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling deductLoyaltyCardPoints(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createSession(Async)"); } - // verify the required parameter 'loyaltyCardId' is set - if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling deductLoyaltyCardPoints(Async)"); + + okhttp3.Call localVarCall = createSessionCall(body, _callback); + return localVarCall; + + } + + /** + * Create session + * Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> + * @param body body (required) + * @return Session + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public Session createSession(LoginParams body) throws ApiException { + ApiResponse localVarResp = createSessionWithHttpInfo(body); + return localVarResp.getData(); + } + + /** + * Create session + * Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> + * @param body body (required) + * @return ApiResponse<Session> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ApiResponse createSessionWithHttpInfo(LoginParams body) throws ApiException { + okhttp3.Call localVarCall = createSessionValidateBeforeCall(body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create session (asynchronously) + * Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createSessionAsync(LoginParams body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createSessionValidateBeforeCall(body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createStore + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad request -
409 Conflict. A store with this integration ID already exists for this application. -
+ */ + public okhttp3.Call createStoreCall(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/stores" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createStoreValidateBeforeCall(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling createStore(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling deductLoyaltyCardPoints(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createStore(Async)"); } - okhttp3.Call localVarCall = deductLoyaltyCardPointsCall(loyaltyProgramId, loyaltyCardId, body, _callback); + okhttp3.Call localVarCall = createStoreCall(applicationId, body, _callback); return localVarCall; } /** - * Deduct points from card - * Deduct points from the given loyalty card in the specified card-based loyalty program. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * Create store + * Create a new store in a specific Application. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) + * @return Store * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + - - +
Status Code Description Response Headers
204 No Content -
201 Created -
400 Bad request -
401 Unauthorized -
404 Not found -
409 Conflict. A store with this integration ID already exists for this application. -
*/ - public void deductLoyaltyCardPoints(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body) throws ApiException { - deductLoyaltyCardPointsWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); + public Store createStore(Integer applicationId, NewStore body) throws ApiException { + ApiResponse localVarResp = createStoreWithHttpInfo(applicationId, body); + return localVarResp.getData(); } /** - * Deduct points from card - * Deduct points from the given loyalty card in the specified card-based loyalty program. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * Create store + * Create a new store in a specific Application. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @return ApiResponse<Void> + * @return ApiResponse<Store> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + - - +
Status Code Description Response Headers
204 No Content -
201 Created -
400 Bad request -
401 Unauthorized -
404 Not found -
409 Conflict. A store with this integration ID already exists for this application. -
*/ - public ApiResponse deductLoyaltyCardPointsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body) throws ApiException { - okhttp3.Call localVarCall = deductLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); - return localVarApiClient.execute(localVarCall); + public ApiResponse createStoreWithHttpInfo(Integer applicationId, NewStore body) throws ApiException { + okhttp3.Call localVarCall = createStoreValidateBeforeCall(applicationId, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Deduct points from card (asynchronously) - * Deduct points from the given loyalty card in the specified card-based loyalty program. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * Create store (asynchronously) + * Create a new store in a specific Application. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2038,21 +2277,21 @@ public ApiResponse deductLoyaltyCardPointsWithHttpInfo(Integer loyaltyProg * @http.response.details - + - - +
Status Code Description Response Headers
204 No Content -
201 Created -
400 Bad request -
401 Unauthorized -
404 Not found -
409 Conflict. A store with this integration ID already exists for this application. -
*/ - public okhttp3.Call deductLoyaltyCardPointsAsync(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createStoreAsync(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deductLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); + okhttp3.Call localVarCall = createStoreValidateBeforeCall(applicationId, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteAccountCollection - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Build call for deactivateUserByEmail + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2060,15 +2299,13 @@ public okhttp3.Call deductLoyaltyCardPointsAsync(Integer loyaltyProgramId, Strin -
Status Code Description Response Headers
204 No Content -
404 Not found -
*/ - public okhttp3.Call deleteAccountCollectionCall(Integer collectionId, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call deactivateUserByEmailCall(DeactivateUserRequest body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/collections/{collectionId}" - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + String localVarPath = "/v1/users/deactivate"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2076,7 +2313,7 @@ public okhttp3.Call deleteAccountCollectionCall(Integer collectionId, final ApiC Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2084,67 +2321,65 @@ public okhttp3.Call deleteAccountCollectionCall(Integer collectionId, final ApiC } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAccountCollectionValidateBeforeCall(Integer collectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deactivateUserByEmailValidateBeforeCall(DeactivateUserRequest body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'collectionId' is set - if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling deleteAccountCollection(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling deactivateUserByEmail(Async)"); } - okhttp3.Call localVarCall = deleteAccountCollectionCall(collectionId, _callback); + okhttp3.Call localVarCall = deactivateUserByEmailCall(body, _callback); return localVarCall; } /** - * Delete account-level collection - * Delete a given account-level collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Deactivate user by email address + * Deactivate a specific user by their email address. + * @param body body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
204 No Content -
404 Not found -
*/ - public void deleteAccountCollection(Integer collectionId) throws ApiException { - deleteAccountCollectionWithHttpInfo(collectionId); + public void deactivateUserByEmail(DeactivateUserRequest body) throws ApiException { + deactivateUserByEmailWithHttpInfo(body); } /** - * Delete account-level collection - * Delete a given account-level collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Deactivate user by email address + * Deactivate a specific user by their email address. + * @param body body (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
204 No Content -
404 Not found -
*/ - public ApiResponse deleteAccountCollectionWithHttpInfo(Integer collectionId) throws ApiException { - okhttp3.Call localVarCall = deleteAccountCollectionValidateBeforeCall(collectionId, null); + public ApiResponse deactivateUserByEmailWithHttpInfo(DeactivateUserRequest body) throws ApiException { + okhttp3.Call localVarCall = deactivateUserByEmailValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } /** - * Delete account-level collection (asynchronously) - * Delete a given account-level collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Deactivate user by email address (asynchronously) + * Deactivate a specific user by their email address. + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2152,19 +2387,19 @@ public ApiResponse deleteAccountCollectionWithHttpInfo(Integer collectionI -
Status Code Description Response Headers
204 No Content -
404 Not found -
*/ - public okhttp3.Call deleteAccountCollectionAsync(Integer collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deactivateUserByEmailAsync(DeactivateUserRequest body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAccountCollectionValidateBeforeCall(collectionId, _callback); + okhttp3.Call localVarCall = deactivateUserByEmailValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** - * Build call for deleteCampaign - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * Build call for deductLoyaltyCardPoints + * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2172,15 +2407,18 @@ public okhttp3.Call deleteAccountCollectionAsync(Integer collectionId, final Api + + +
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
*/ - public okhttp3.Call deleteCampaignCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call deductLoyaltyCardPointsCall(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/deduct_points" + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2188,7 +2426,7 @@ public okhttp3.Call deleteCampaignCall(Integer applicationId, Integer campaignId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2196,73 +2434,1055 @@ public okhttp3.Call deleteCampaignCall(Integer applicationId, Integer campaignId } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCampaignValidateBeforeCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deductLoyaltyCardPointsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'loyaltyProgramId' is set + if (loyaltyProgramId == null) { + throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling deductLoyaltyCardPoints(Async)"); + } + + // verify the required parameter 'loyaltyCardId' is set + if (loyaltyCardId == null) { + throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling deductLoyaltyCardPoints(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling deductLoyaltyCardPoints(Async)"); + } + + + okhttp3.Call localVarCall = deductLoyaltyCardPointsCall(loyaltyProgramId, loyaltyCardId, body, _callback); + return localVarCall; + + } + + /** + * Deduct points from card + * Deduct points from the given loyalty card in the specified card-based loyalty program. + * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * @param body body (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
+ */ + public void deductLoyaltyCardPoints(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body) throws ApiException { + deductLoyaltyCardPointsWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); + } + + /** + * Deduct points from card + * Deduct points from the given loyalty card in the specified card-based loyalty program. + * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * @param body body (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
+ */ + public ApiResponse deductLoyaltyCardPointsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body) throws ApiException { + okhttp3.Call localVarCall = deductLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Deduct points from card (asynchronously) + * Deduct points from the given loyalty card in the specified card-based loyalty program. + * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
+ */ + public okhttp3.Call deductLoyaltyCardPointsAsync(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deductLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteAccountCollection + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
404 Not found -
+ */ + public okhttp3.Call deleteAccountCollectionCall(Integer collectionId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/collections/{collectionId}" + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteAccountCollectionValidateBeforeCall(Integer collectionId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'collectionId' is set + if (collectionId == null) { + throw new ApiException("Missing the required parameter 'collectionId' when calling deleteAccountCollection(Async)"); + } + + + okhttp3.Call localVarCall = deleteAccountCollectionCall(collectionId, _callback); + return localVarCall; + + } + + /** + * Delete account-level collection + * Delete a given account-level collection. + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
404 Not found -
+ */ + public void deleteAccountCollection(Integer collectionId) throws ApiException { + deleteAccountCollectionWithHttpInfo(collectionId); + } + + /** + * Delete account-level collection + * Delete a given account-level collection. + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
404 Not found -
+ */ + public ApiResponse deleteAccountCollectionWithHttpInfo(Integer collectionId) throws ApiException { + okhttp3.Call localVarCall = deleteAccountCollectionValidateBeforeCall(collectionId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete account-level collection (asynchronously) + * Delete a given account-level collection. + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
404 Not found -
+ */ + public okhttp3.Call deleteAccountCollectionAsync(Integer collectionId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteAccountCollectionValidateBeforeCall(collectionId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteAchievement + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ */ + public okhttp3.Call deleteAchievementCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling deleteAchievement(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling deleteAchievement(Async)"); + } + + // verify the required parameter 'achievementId' is set + if (achievementId == null) { + throw new ApiException("Missing the required parameter 'achievementId' when calling deleteAchievement(Async)"); + } + + + okhttp3.Call localVarCall = deleteAchievementCall(applicationId, campaignId, achievementId, _callback); + return localVarCall; + + } + + /** + * Delete achievement + * Delete the specified achievement. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ */ + public void deleteAchievement(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { + deleteAchievementWithHttpInfo(applicationId, campaignId, achievementId); + } + + /** + * Delete achievement + * Delete the specified achievement. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ */ + public ApiResponse deleteAchievementWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { + okhttp3.Call localVarCall = deleteAchievementValidateBeforeCall(applicationId, campaignId, achievementId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete achievement (asynchronously) + * Delete the specified achievement. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ */ + public okhttp3.Call deleteAchievementAsync(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteAchievementValidateBeforeCall(applicationId, campaignId, achievementId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteCampaign + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteCampaignCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCampaignValidateBeforeCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCampaign(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCampaign(Async)"); + } + + + okhttp3.Call localVarCall = deleteCampaignCall(applicationId, campaignId, _callback); + return localVarCall; + + } + + /** + * Delete campaign + * Delete the given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteCampaign(Integer applicationId, Integer campaignId) throws ApiException { + deleteCampaignWithHttpInfo(applicationId, campaignId); + } + + /** + * Delete campaign + * Delete the given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteCampaignWithHttpInfo(Integer applicationId, Integer campaignId) throws ApiException { + okhttp3.Call localVarCall = deleteCampaignValidateBeforeCall(applicationId, campaignId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete campaign (asynchronously) + * Delete the given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteCampaignAsync(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCampaignValidateBeforeCall(applicationId, campaignId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteCollection + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCollection(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCollection(Async)"); + } + + // verify the required parameter 'collectionId' is set + if (collectionId == null) { + throw new ApiException("Missing the required parameter 'collectionId' when calling deleteCollection(Async)"); + } + + + okhttp3.Call localVarCall = deleteCollectionCall(applicationId, campaignId, collectionId, _callback); + return localVarCall; + + } + + /** + * Delete campaign-level collection + * Delete a given campaign-level collection. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
+ */ + public void deleteCollection(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { + deleteCollectionWithHttpInfo(applicationId, campaignId, collectionId); + } + + /** + * Delete campaign-level collection + * Delete a given campaign-level collection. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(applicationId, campaignId, collectionId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete campaign-level collection (asynchronously) + * Delete a given campaign-level collection. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionAsync(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(applicationId, campaignId, collectionId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteCoupon + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteCouponCall(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId}" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "couponId" + "\\}", localVarApiClient.escapeString(couponId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCouponValidateBeforeCall(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCoupon(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCoupon(Async)"); + } + + // verify the required parameter 'couponId' is set + if (couponId == null) { + throw new ApiException("Missing the required parameter 'couponId' when calling deleteCoupon(Async)"); + } + + + okhttp3.Call localVarCall = deleteCouponCall(applicationId, campaignId, couponId, _callback); + return localVarCall; + + } + + /** + * Delete coupon + * Delete the specified coupon. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteCoupon(Integer applicationId, Integer campaignId, String couponId) throws ApiException { + deleteCouponWithHttpInfo(applicationId, campaignId, couponId); + } + + /** + * Delete coupon + * Delete the specified coupon. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteCouponWithHttpInfo(Integer applicationId, Integer campaignId, String couponId) throws ApiException { + okhttp3.Call localVarCall = deleteCouponValidateBeforeCall(applicationId, campaignId, couponId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete coupon (asynchronously) + * Delete the specified coupon. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteCouponAsync(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCouponValidateBeforeCall(applicationId, campaignId, couponId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteCoupons + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) + * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) + * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. (optional) + * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteCouponsCall(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (value != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); + } + + if (createdBefore != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("createdBefore", createdBefore)); + } + + if (createdAfter != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("createdAfter", createdAfter)); + } + + if (startsAfter != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("startsAfter", startsAfter)); + } + + if (startsBefore != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("startsBefore", startsBefore)); + } + + if (expiresAfter != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("expiresAfter", expiresAfter)); + } + + if (expiresBefore != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("expiresBefore", expiresBefore)); + } + + if (valid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("valid", valid)); + } + + if (batchId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("batchId", batchId)); + } + + if (usable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("usable", usable)); + } + + if (referralId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("referralId", referralId)); + } + + if (recipientIntegrationId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); + } + + if (exactMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exactMatch", exactMatch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCouponsValidateBeforeCall(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCampaign(Async)"); + throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCoupons(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCoupons(Async)"); + } + + + okhttp3.Call localVarCall = deleteCouponsCall(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch, _callback); + return localVarCall; + + } + + /** + * Delete coupons + * Deletes all the coupons matching the specified criteria. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) + * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) + * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. (optional) + * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteCoupons(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch) throws ApiException { + deleteCouponsWithHttpInfo(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch); + } + + /** + * Delete coupons + * Deletes all the coupons matching the specified criteria. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) + * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) + * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. (optional) + * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteCouponsWithHttpInfo(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch) throws ApiException { + okhttp3.Call localVarCall = deleteCouponsValidateBeforeCall(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete coupons (asynchronously) + * Deletes all the coupons matching the specified criteria. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) + * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) + * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. (optional) + * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteCouponsAsync(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCouponsValidateBeforeCall(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteLoyaltyCard + * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ */ + public okhttp3.Call deleteLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}" + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'loyaltyProgramId' is set + if (loyaltyProgramId == null) { + throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling deleteLoyaltyCard(Async)"); } - // verify the required parameter 'campaignId' is set - if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCampaign(Async)"); + // verify the required parameter 'loyaltyCardId' is set + if (loyaltyCardId == null) { + throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling deleteLoyaltyCard(Async)"); } - okhttp3.Call localVarCall = deleteCampaignCall(applicationId, campaignId, _callback); + okhttp3.Call localVarCall = deleteLoyaltyCardCall(loyaltyProgramId, loyaltyCardId, _callback); return localVarCall; } /** - * Delete campaign - * Delete the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * Delete loyalty card + * Delete the given loyalty card. + * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
*/ - public void deleteCampaign(Integer applicationId, Integer campaignId) throws ApiException { - deleteCampaignWithHttpInfo(applicationId, campaignId); + public void deleteLoyaltyCard(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { + deleteLoyaltyCardWithHttpInfo(loyaltyProgramId, loyaltyCardId); } /** - * Delete campaign - * Delete the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * Delete loyalty card + * Delete the given loyalty card. + * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
*/ - public ApiResponse deleteCampaignWithHttpInfo(Integer applicationId, Integer campaignId) throws ApiException { - okhttp3.Call localVarCall = deleteCampaignValidateBeforeCall(applicationId, campaignId, null); + public ApiResponse deleteLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { + okhttp3.Call localVarCall = deleteLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, null); return localVarApiClient.execute(localVarCall); } /** - * Delete campaign (asynchronously) - * Delete the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * Delete loyalty card (asynchronously) + * Delete the given loyalty card. + * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2270,19 +3490,21 @@ public ApiResponse deleteCampaignWithHttpInfo(Integer applicationId, Integ + +
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
*/ - public okhttp3.Call deleteCampaignAsync(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteLoyaltyCardAsync(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCampaignValidateBeforeCall(applicationId, campaignId, _callback); + okhttp3.Call localVarCall = deleteLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** - * Build call for deleteCollection + * Build call for deleteReferral * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * @param referralId The ID of the referral code. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2290,17 +3512,16 @@ public okhttp3.Call deleteCampaignAsync(Integer applicationId, Integer campaignI -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
*/ - public okhttp3.Call deleteCollectionCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteReferralCall(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}" + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId}" .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "referralId" + "\\}", localVarApiClient.escapeString(referralId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2308,7 +3529,7 @@ public okhttp3.Call deleteCollectionCall(Integer applicationId, Integer campaign Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2326,73 +3547,71 @@ public okhttp3.Call deleteCollectionCall(Integer applicationId, Integer campaign } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteReferralValidateBeforeCall(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCollection(Async)"); + throw new ApiException("Missing the required parameter 'applicationId' when calling deleteReferral(Async)"); } // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCollection(Async)"); + throw new ApiException("Missing the required parameter 'campaignId' when calling deleteReferral(Async)"); } - // verify the required parameter 'collectionId' is set - if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling deleteCollection(Async)"); + // verify the required parameter 'referralId' is set + if (referralId == null) { + throw new ApiException("Missing the required parameter 'referralId' when calling deleteReferral(Async)"); } - okhttp3.Call localVarCall = deleteCollectionCall(applicationId, campaignId, collectionId, _callback); + okhttp3.Call localVarCall = deleteReferralCall(applicationId, campaignId, referralId, _callback); return localVarCall; } /** - * Delete campaign-level collection - * Delete a given campaign-level collection. + * Delete referral + * Delete the specified referral. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * @param referralId The ID of the referral code. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
*/ - public void deleteCollection(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { - deleteCollectionWithHttpInfo(applicationId, campaignId, collectionId); + public void deleteReferral(Integer applicationId, Integer campaignId, String referralId) throws ApiException { + deleteReferralWithHttpInfo(applicationId, campaignId, referralId); } /** - * Delete campaign-level collection - * Delete a given campaign-level collection. + * Delete referral + * Delete the specified referral. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * @param referralId The ID of the referral code. (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(applicationId, campaignId, collectionId, null); + public ApiResponse deleteReferralWithHttpInfo(Integer applicationId, Integer campaignId, String referralId) throws ApiException { + okhttp3.Call localVarCall = deleteReferralValidateBeforeCall(applicationId, campaignId, referralId, null); return localVarApiClient.execute(localVarCall); } /** - * Delete campaign-level collection (asynchronously) - * Delete a given campaign-level collection. + * Delete referral (asynchronously) + * Delete the specified referral. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * @param referralId The ID of the referral code. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2400,20 +3619,18 @@ public ApiResponse deleteCollectionWithHttpInfo(Integer applicationId, Int -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
*/ - public okhttp3.Call deleteCollectionAsync(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteReferralAsync(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(applicationId, campaignId, collectionId, _callback); + okhttp3.Call localVarCall = deleteReferralValidateBeforeCall(applicationId, campaignId, referralId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** - * Build call for deleteCoupon + * Build call for deleteStore * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) + * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2421,16 +3638,16 @@ public okhttp3.Call deleteCollectionAsync(Integer applicationId, Integer campaig +
Status Code Description Response Headers
204 No Content -
404 Not found -
*/ - public okhttp3.Call deleteCouponCall(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStoreCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId}" + String localVarPath = "/v1/applications/{applicationId}/stores/{storeId}" .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "couponId" + "\\}", localVarApiClient.escapeString(couponId.toString())); + .replaceAll("\\{" + "storeId" + "\\}", localVarApiClient.escapeString(storeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2438,7 +3655,7 @@ public okhttp3.Call deleteCouponCall(Integer applicationId, Integer campaignId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2456,71 +3673,65 @@ public okhttp3.Call deleteCouponCall(Integer applicationId, Integer campaignId, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCouponValidateBeforeCall(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStoreValidateBeforeCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCoupon(Async)"); - } - - // verify the required parameter 'campaignId' is set - if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCoupon(Async)"); + throw new ApiException("Missing the required parameter 'applicationId' when calling deleteStore(Async)"); } - // verify the required parameter 'couponId' is set - if (couponId == null) { - throw new ApiException("Missing the required parameter 'couponId' when calling deleteCoupon(Async)"); + // verify the required parameter 'storeId' is set + if (storeId == null) { + throw new ApiException("Missing the required parameter 'storeId' when calling deleteStore(Async)"); } - okhttp3.Call localVarCall = deleteCouponCall(applicationId, campaignId, couponId, _callback); + okhttp3.Call localVarCall = deleteStoreCall(applicationId, storeId, _callback); return localVarCall; } /** - * Delete coupon - * Delete the specified coupon. + * Delete store + * Delete the specified store. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) + * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
204 No Content -
404 Not found -
*/ - public void deleteCoupon(Integer applicationId, Integer campaignId, String couponId) throws ApiException { - deleteCouponWithHttpInfo(applicationId, campaignId, couponId); + public void deleteStore(Integer applicationId, String storeId) throws ApiException { + deleteStoreWithHttpInfo(applicationId, storeId); } /** - * Delete coupon - * Delete the specified coupon. + * Delete store + * Delete the specified store. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) + * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
204 No Content -
404 Not found -
*/ - public ApiResponse deleteCouponWithHttpInfo(Integer applicationId, Integer campaignId, String couponId) throws ApiException { - okhttp3.Call localVarCall = deleteCouponValidateBeforeCall(applicationId, campaignId, couponId, null); + public ApiResponse deleteStoreWithHttpInfo(Integer applicationId, String storeId) throws ApiException { + okhttp3.Call localVarCall = deleteStoreValidateBeforeCall(applicationId, storeId, null); return localVarApiClient.execute(localVarCall); } /** - * Delete coupon (asynchronously) - * Delete the specified coupon. + * Delete store (asynchronously) + * Delete the specified store. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) + * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2528,31 +3739,18 @@ public ApiResponse deleteCouponWithHttpInfo(Integer applicationId, Integer +
Status Code Description Response Headers
204 No Content -
404 Not found -
*/ - public okhttp3.Call deleteCouponAsync(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStoreAsync(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCouponValidateBeforeCall(applicationId, campaignId, couponId, _callback); + okhttp3.Call localVarCall = deleteStoreValidateBeforeCall(applicationId, storeId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** - * Build call for deleteCoupons - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) + * Build call for deleteUser + * @param userId The ID of the user. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2562,68 +3760,15 @@ public okhttp3.Call deleteCouponAsync(Integer applicationId, Integer campaignId, 204 No Content - */ - public okhttp3.Call deleteCouponsCall(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserCall(Integer userId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (value != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); - } - - if (createdBefore != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("createdBefore", createdBefore)); - } - - if (createdAfter != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("createdAfter", createdAfter)); - } - - if (startsAfter != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startsAfter", startsAfter)); - } - - if (startsBefore != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startsBefore", startsBefore)); - } - - if (expiresAfter != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("expiresAfter", expiresAfter)); - } - - if (expiresBefore != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("expiresBefore", expiresBefore)); - } - - if (valid != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("valid", valid)); - } - - if (batchId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("batchId", batchId)); - } - - if (usable != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("usable", usable)); - } - - if (referralId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("referralId", referralId)); - } - - if (recipientIntegrationId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); - } - - if (exactMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("exactMatch", exactMatch)); - } + // create path and map variables + String localVarPath = "/v1/users/{userId}" + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -2646,42 +3791,23 @@ public okhttp3.Call deleteCouponsCall(Integer applicationId, Integer campaignId, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCouponsValidateBeforeCall(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'applicationId' is set - if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCoupons(Async)"); - } + private okhttp3.Call deleteUserValidateBeforeCall(Integer userId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'campaignId' is set - if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCoupons(Async)"); + // verify the required parameter 'userId' is set + if (userId == null) { + throw new ApiException("Missing the required parameter 'userId' when calling deleteUser(Async)"); } - okhttp3.Call localVarCall = deleteCouponsCall(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch, _callback); + okhttp3.Call localVarCall = deleteUserCall(userId, _callback); return localVarCall; } /** - * Delete coupons - * Deletes all the coupons matching the specified criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) + * Delete user + * Delete a specific user. + * @param userId The ID of the user. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2689,28 +3815,14 @@ private okhttp3.Call deleteCouponsValidateBeforeCall(Integer applicationId, Inte
204 No Content -
*/ - public void deleteCoupons(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch) throws ApiException { - deleteCouponsWithHttpInfo(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch); + public void deleteUser(Integer userId) throws ApiException { + deleteUserWithHttpInfo(userId); } /** - * Delete coupons - * Deletes all the coupons matching the specified criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) + * Delete user + * Delete a specific user. + * @param userId The ID of the user. (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2719,29 +3831,15 @@ public void deleteCoupons(Integer applicationId, Integer campaignId, String valu 204 No Content - */ - public ApiResponse deleteCouponsWithHttpInfo(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch) throws ApiException { - okhttp3.Call localVarCall = deleteCouponsValidateBeforeCall(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch, null); + public ApiResponse deleteUserWithHttpInfo(Integer userId) throws ApiException { + okhttp3.Call localVarCall = deleteUserValidateBeforeCall(userId, null); return localVarApiClient.execute(localVarCall); } /** - * Delete coupons (asynchronously) - * Deletes all the coupons matching the specified criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) + * Delete user (asynchronously) + * Delete a specific user. + * @param userId The ID of the user. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2751,16 +3849,15 @@ public ApiResponse deleteCouponsWithHttpInfo(Integer applicationId, Intege 204 No Content - */ - public okhttp3.Call deleteCouponsAsync(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserAsync(Integer userId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCouponsValidateBeforeCall(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch, _callback); + okhttp3.Call localVarCall = deleteUserValidateBeforeCall(userId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** - * Build call for deleteLoyaltyCard - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * Build call for deleteUserByEmail + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2768,17 +3865,13 @@ public okhttp3.Call deleteCouponsAsync(Integer applicationId, Integer campaignId - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
*/ - public okhttp3.Call deleteLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call deleteUserByEmailCall(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + String localVarPath = "/v1/users/delete"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2786,7 +3879,7 @@ public okhttp3.Call deleteLoyaltyCardCall(Integer loyaltyProgramId, String loyal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2794,77 +3887,65 @@ public okhttp3.Call deleteLoyaltyCardCall(Integer loyaltyProgramId, String loyal } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'loyaltyProgramId' is set - if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling deleteLoyaltyCard(Async)"); - } + private okhttp3.Call deleteUserByEmailValidateBeforeCall(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'loyaltyCardId' is set - if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling deleteLoyaltyCard(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling deleteUserByEmail(Async)"); } - okhttp3.Call localVarCall = deleteLoyaltyCardCall(loyaltyProgramId, loyaltyCardId, _callback); + okhttp3.Call localVarCall = deleteUserByEmailCall(body, _callback); return localVarCall; } /** - * Delete loyalty card - * Delete the given loyalty card. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * Delete user by email address + * Delete a specific user by their email address. + * @param body body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
*/ - public void deleteLoyaltyCard(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { - deleteLoyaltyCardWithHttpInfo(loyaltyProgramId, loyaltyCardId); + public void deleteUserByEmail(DeleteUserRequest body) throws ApiException { + deleteUserByEmailWithHttpInfo(body); } /** - * Delete loyalty card - * Delete the given loyalty card. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * Delete user by email address + * Delete a specific user by their email address. + * @param body body (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
*/ - public ApiResponse deleteLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { - okhttp3.Call localVarCall = deleteLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, null); + public ApiResponse deleteUserByEmailWithHttpInfo(DeleteUserRequest body) throws ApiException { + okhttp3.Call localVarCall = deleteUserByEmailValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } /** - * Delete loyalty card (asynchronously) - * Delete the given loyalty card. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * Delete user by email address (asynchronously) + * Delete a specific user by their email address. + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2872,21 +3953,16 @@ public ApiResponse deleteLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
*/ - public okhttp3.Call deleteLoyaltyCardAsync(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserByEmailAsync(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, _callback); + okhttp3.Call localVarCall = deleteUserByEmailValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** - * Build call for deleteReferral - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) + * Build call for destroySession * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2896,14 +3972,11 @@ public okhttp3.Call deleteLoyaltyCardAsync(Integer loyaltyProgramId, String loya 204 No Content - */ - public okhttp3.Call deleteReferralCall(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call destroySessionCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "referralId" + "\\}", localVarApiClient.escapeString(referralId.toString())); + String localVarPath = "/v1/sessions"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2929,35 +4002,17 @@ public okhttp3.Call deleteReferralCall(Integer applicationId, Integer campaignId } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteReferralValidateBeforeCall(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'applicationId' is set - if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling deleteReferral(Async)"); - } - - // verify the required parameter 'campaignId' is set - if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling deleteReferral(Async)"); - } - - // verify the required parameter 'referralId' is set - if (referralId == null) { - throw new ApiException("Missing the required parameter 'referralId' when calling deleteReferral(Async)"); - } + private okhttp3.Call destroySessionValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteReferralCall(applicationId, campaignId, referralId, _callback); + okhttp3.Call localVarCall = destroySessionCall(_callback); return localVarCall; } /** - * Delete referral - * Delete the specified referral. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) + * Destroy session + * Destroys the session. * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2965,16 +4020,13 @@ private okhttp3.Call deleteReferralValidateBeforeCall(Integer applicationId, Int
204 No Content -
*/ - public void deleteReferral(Integer applicationId, Integer campaignId, String referralId) throws ApiException { - deleteReferralWithHttpInfo(applicationId, campaignId, referralId); + public void destroySession() throws ApiException { + destroySessionWithHttpInfo(); } /** - * Delete referral - * Delete the specified referral. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) + * Destroy session + * Destroys the session. * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2983,17 +4035,14 @@ public void deleteReferral(Integer applicationId, Integer campaignId, String ref 204 No Content - */ - public ApiResponse deleteReferralWithHttpInfo(Integer applicationId, Integer campaignId, String referralId) throws ApiException { - okhttp3.Call localVarCall = deleteReferralValidateBeforeCall(applicationId, campaignId, referralId, null); + public ApiResponse destroySessionWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = destroySessionValidateBeforeCall(null); return localVarApiClient.execute(localVarCall); } /** - * Delete referral (asynchronously) - * Delete the specified referral. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) + * Destroy session (asynchronously) + * Destroys the session. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3003,33 +4052,32 @@ public ApiResponse deleteReferralWithHttpInfo(Integer applicationId, Integ 204 No Content - */ - public okhttp3.Call deleteReferralAsync(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call destroySessionAsync(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteReferralValidateBeforeCall(applicationId, campaignId, referralId, _callback); + okhttp3.Call localVarCall = destroySessionValidateBeforeCall(_callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** - * Build call for deleteStore - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) + * Build call for exportAccountCollectionItems + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - + +
Status Code Description Response Headers
204 No Content -
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public okhttp3.Call deleteStoreCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAccountCollectionItemsCall(Integer collectionId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/stores/{storeId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "storeId" + "\\}", localVarApiClient.escapeString(storeId.toString())); + String localVarPath = "/v1/collections/{collectionId}/export" + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3037,7 +4085,7 @@ public okhttp3.Call deleteStoreCall(Integer applicationId, String storeId, final Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3051,101 +4099,109 @@ public okhttp3.Call deleteStoreCall(Integer applicationId, String storeId, final localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStoreValidateBeforeCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'applicationId' is set - if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling deleteStore(Async)"); - } + private okhttp3.Call exportAccountCollectionItemsValidateBeforeCall(Integer collectionId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'storeId' is set - if (storeId == null) { - throw new ApiException("Missing the required parameter 'storeId' when calling deleteStore(Async)"); + // verify the required parameter 'collectionId' is set + if (collectionId == null) { + throw new ApiException("Missing the required parameter 'collectionId' when calling exportAccountCollectionItems(Async)"); } - okhttp3.Call localVarCall = deleteStoreCall(applicationId, storeId, _callback); + okhttp3.Call localVarCall = exportAccountCollectionItemsCall(collectionId, _callback); return localVarCall; } /** - * Delete store - * Delete the specified store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) + * Export account-level collection's items + * Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + +
Status Code Description Response Headers
204 No Content -
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public void deleteStore(Integer applicationId, String storeId) throws ApiException { - deleteStoreWithHttpInfo(applicationId, storeId); + public String exportAccountCollectionItems(Integer collectionId) throws ApiException { + ApiResponse localVarResp = exportAccountCollectionItemsWithHttpInfo(collectionId); + return localVarResp.getData(); } /** - * Delete store - * Delete the specified store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) - * @return ApiResponse<Void> + * Export account-level collection's items + * Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + +
Status Code Description Response Headers
204 No Content -
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public ApiResponse deleteStoreWithHttpInfo(Integer applicationId, String storeId) throws ApiException { - okhttp3.Call localVarCall = deleteStoreValidateBeforeCall(applicationId, storeId, null); - return localVarApiClient.execute(localVarCall); + public ApiResponse exportAccountCollectionItemsWithHttpInfo(Integer collectionId) throws ApiException { + okhttp3.Call localVarCall = exportAccountCollectionItemsValidateBeforeCall(collectionId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Delete store (asynchronously) - * Delete the specified store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) + * Export account-level collection's items (asynchronously) + * Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - + +
Status Code Description Response Headers
204 No Content -
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public okhttp3.Call deleteStoreAsync(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAccountCollectionItemsAsync(Integer collectionId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteStoreValidateBeforeCall(applicationId, storeId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); + okhttp3.Call localVarCall = exportAccountCollectionItemsValidateBeforeCall(collectionId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for destroySession + * Build call for exportAchievements + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - + + + +
Status Code Description Response Headers
204 No Content -
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
*/ - public okhttp3.Call destroySessionCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAchievementsCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/sessions"; + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}/export" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3153,7 +4209,7 @@ public okhttp3.Call destroySessionCall(final ApiCallback _callback) throws ApiEx Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3167,69 +4223,106 @@ public okhttp3.Call destroySessionCall(final ApiCallback _callback) throws ApiEx localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call destroySessionValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportAchievementsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling exportAchievements(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling exportAchievements(Async)"); + } + + // verify the required parameter 'achievementId' is set + if (achievementId == null) { + throw new ApiException("Missing the required parameter 'achievementId' when calling exportAchievements(Async)"); + } - okhttp3.Call localVarCall = destroySessionCall(_callback); + okhttp3.Call localVarCall = exportAchievementsCall(applicationId, campaignId, achievementId, _callback); return localVarCall; } /** - * Destroy session - * Destroys the session. + * Export achievement customer data + * Download a CSV file containing a list of all the customers who have participated in and are currently participating in the given achievement. The CSV file contains the following columns: - `profileIntegrationID`: The integration ID of the customer profile participating in the achievement. - `title`: The display name of the achievement in the Campaign Manager. - `target`: The required number of actions or the transactional milestone to complete the achievement. - `progress`: The current progress of the customer in the achievement. - `status`: The status of the achievement. Can be one of: ['inprogress', 'completed', 'expired']. - `startDate`: The date on which the customer profile started the achievement in RFC3339. - `endDate`: The date on which the achievement ends and resets for the customer profile in RFC3339. - `completionDate`: The date on which the customer profile completed the achievement in RFC3339. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + + + +
Status Code Description Response Headers
204 No Content -
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
*/ - public void destroySession() throws ApiException { - destroySessionWithHttpInfo(); + public String exportAchievements(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { + ApiResponse localVarResp = exportAchievementsWithHttpInfo(applicationId, campaignId, achievementId); + return localVarResp.getData(); } /** - * Destroy session - * Destroys the session. - * @return ApiResponse<Void> + * Export achievement customer data + * Download a CSV file containing a list of all the customers who have participated in and are currently participating in the given achievement. The CSV file contains the following columns: - `profileIntegrationID`: The integration ID of the customer profile participating in the achievement. - `title`: The display name of the achievement in the Campaign Manager. - `target`: The required number of actions or the transactional milestone to complete the achievement. - `progress`: The current progress of the customer in the achievement. - `status`: The status of the achievement. Can be one of: ['inprogress', 'completed', 'expired']. - `startDate`: The date on which the customer profile started the achievement in RFC3339. - `endDate`: The date on which the achievement ends and resets for the customer profile in RFC3339. - `completionDate`: The date on which the customer profile completed the achievement in RFC3339. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + + + +
Status Code Description Response Headers
204 No Content -
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
*/ - public ApiResponse destroySessionWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = destroySessionValidateBeforeCall(null); - return localVarApiClient.execute(localVarCall); + public ApiResponse exportAchievementsWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { + okhttp3.Call localVarCall = exportAchievementsValidateBeforeCall(applicationId, campaignId, achievementId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Destroy session (asynchronously) - * Destroys the session. + * Export achievement customer data (asynchronously) + * Download a CSV file containing a list of all the customers who have participated in and are currently participating in the given achievement. The CSV file contains the following columns: - `profileIntegrationID`: The integration ID of the customer profile participating in the achievement. - `title`: The display name of the achievement in the Campaign Manager. - `target`: The required number of actions or the transactional milestone to complete the achievement. - `progress`: The current progress of the customer in the achievement. - `status`: The status of the achievement. Can be one of: ['inprogress', 'completed', 'expired']. - `startDate`: The date on which the customer profile started the achievement in RFC3339. - `endDate`: The date on which the achievement ends and resets for the customer profile in RFC3339. - `completionDate`: The date on which the customer profile completed the achievement in RFC3339. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - + + + +
Status Code Description Response Headers
204 No Content -
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
*/ - public okhttp3.Call destroySessionAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAchievementsAsync(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = destroySessionValidateBeforeCall(_callback); - localVarApiClient.executeAsync(localVarCall, _callback); + okhttp3.Call localVarCall = exportAchievementsValidateBeforeCall(applicationId, campaignId, achievementId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for exportAccountCollectionItems - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Build call for exportAudiencesMemberships + * @param audienceId The ID of the audience. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3237,16 +4330,17 @@ public okhttp3.Call destroySessionAsync(final ApiCallback _callback) throw +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public okhttp3.Call exportAccountCollectionItemsCall(Integer collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAudiencesMembershipsCall(Integer audienceId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/collections/{collectionId}/export" - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + String localVarPath = "/v1/audiences/{audienceId}/memberships/export" + .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3272,62 +4366,64 @@ public okhttp3.Call exportAccountCollectionItemsCall(Integer collectionId, final } @SuppressWarnings("rawtypes") - private okhttp3.Call exportAccountCollectionItemsValidateBeforeCall(Integer collectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportAudiencesMembershipsValidateBeforeCall(Integer audienceId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'collectionId' is set - if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling exportAccountCollectionItems(Async)"); + // verify the required parameter 'audienceId' is set + if (audienceId == null) { + throw new ApiException("Missing the required parameter 'audienceId' when calling exportAudiencesMemberships(Async)"); } - okhttp3.Call localVarCall = exportAccountCollectionItemsCall(collectionId, _callback); + okhttp3.Call localVarCall = exportAudiencesMembershipsCall(audienceId, _callback); return localVarCall; } /** - * Export account-level collection's items - * Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Export audience members + * Download a CSV file containing the integration IDs of the members of an audience. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The file contains the following column: - `profileintegrationid`: The integration ID of the customer profile. + * @param audienceId The ID of the audience. (required) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public String exportAccountCollectionItems(Integer collectionId) throws ApiException { - ApiResponse localVarResp = exportAccountCollectionItemsWithHttpInfo(collectionId); + public String exportAudiencesMemberships(Integer audienceId) throws ApiException { + ApiResponse localVarResp = exportAudiencesMembershipsWithHttpInfo(audienceId); return localVarResp.getData(); } /** - * Export account-level collection's items - * Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Export audience members + * Download a CSV file containing the integration IDs of the members of an audience. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The file contains the following column: - `profileintegrationid`: The integration ID of the customer profile. + * @param audienceId The ID of the audience. (required) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public ApiResponse exportAccountCollectionItemsWithHttpInfo(Integer collectionId) throws ApiException { - okhttp3.Call localVarCall = exportAccountCollectionItemsValidateBeforeCall(collectionId, null); + public ApiResponse exportAudiencesMembershipsWithHttpInfo(Integer audienceId) throws ApiException { + okhttp3.Call localVarCall = exportAudiencesMembershipsValidateBeforeCall(audienceId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Export account-level collection's items (asynchronously) - * Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Export audience members (asynchronously) + * Download a CSV file containing the integration IDs of the members of an audience. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The file contains the following column: - `profileintegrationid`: The integration ID of the customer profile. + * @param audienceId The ID of the audience. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3335,13 +4431,14 @@ public ApiResponse exportAccountCollectionItemsWithHttpInfo(Integer coll +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public okhttp3.Call exportAccountCollectionItemsAsync(Integer collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAudiencesMembershipsAsync(Integer audienceId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = exportAccountCollectionItemsValidateBeforeCall(collectionId, _callback); + okhttp3.Call localVarCall = exportAudiencesMembershipsValidateBeforeCall(audienceId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4524,7 +5621,7 @@ public okhttp3.Call exportLoyaltyCardBalancesAsync(Integer loyaltyProgramId, Off * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param dateFormat Determines the format of dates in the export document. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -4615,7 +5712,7 @@ private okhttp3.Call exportLoyaltyCardLedgerValidateBeforeCall(Integer loyaltyPr * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param dateFormat Determines the format of dates in the export document. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -4638,7 +5735,7 @@ public String exportLoyaltyCardLedger(Integer loyaltyProgramId, String loyaltyCa * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param dateFormat Determines the format of dates in the export document. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -4662,7 +5759,7 @@ public ApiResponse exportLoyaltyCardLedgerWithHttpInfo(Integer loyaltyPr * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param dateFormat Determines the format of dates in the export document. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -4685,7 +5782,7 @@ public okhttp3.Call exportLoyaltyCardLedgerAsync(Integer loyaltyProgramId, Strin /** * Build call for exportLoyaltyLedger * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param loyaltyProgramId The identifier for the loyalty program. (required) * @param integrationId The identifier of the profile. (required) * @param dateFormat Determines the format of dates in the export document. (optional) @@ -4772,9 +5869,9 @@ private okhttp3.Call exportLoyaltyLedgerValidateBeforeCall(OffsetDateTime rangeS /** * Export customer's transaction logs - * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The type of the loyalty program. - `name`: The name of the loyalty program. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. + * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The type of the loyalty program. - `name`: The name of the loyalty program. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param loyaltyProgramId The identifier for the loyalty program. (required) * @param integrationId The identifier of the profile. (required) * @param dateFormat Determines the format of dates in the export document. (optional) @@ -4793,9 +5890,9 @@ public String exportLoyaltyLedger(OffsetDateTime rangeStart, OffsetDateTime rang /** * Export customer's transaction logs - * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The type of the loyalty program. - `name`: The name of the loyalty program. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. + * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The type of the loyalty program. - `name`: The name of the loyalty program. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param loyaltyProgramId The identifier for the loyalty program. (required) * @param integrationId The identifier of the profile. (required) * @param dateFormat Determines the format of dates in the export document. (optional) @@ -4815,9 +5912,9 @@ public ApiResponse exportLoyaltyLedgerWithHttpInfo(OffsetDateTime rangeS /** * Export customer's transaction logs (asynchronously) - * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The type of the loyalty program. - `name`: The name of the loyalty program. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. + * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The type of the loyalty program. - `name`: The name of the loyalty program. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param loyaltyProgramId The identifier for the loyalty program. (required) * @param integrationId The identifier of the profile. (required) * @param dateFormat Determines the format of dates in the export document. (optional) @@ -5139,11 +6236,11 @@ public okhttp3.Call exportReferralsAsync(Integer applicationId, BigDecimal campa * Build call for getAccessLogsWithoutTotalCount * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback Callback for upload/download progress @@ -5246,11 +6343,11 @@ private okhttp3.Call getAccessLogsWithoutTotalCountValidateBeforeCall(Integer ap * Retrieve the list of API calls sent to the specified Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return InlineResponse20019 @@ -5271,11 +6368,11 @@ public InlineResponse20019 getAccessLogsWithoutTotalCount(Integer applicationId, * Retrieve the list of API calls sent to the specified Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return ApiResponse<InlineResponse20019> @@ -5297,11 +6394,11 @@ public ApiResponse getAccessLogsWithoutTotalCountWithHttpIn * Retrieve the list of API calls sent to the specified Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback The callback to be executed when the API call finishes @@ -5657,6 +6754,145 @@ public okhttp3.Call getAccountCollectionAsync(Integer collectionId, final ApiCal localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for getAchievement + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
+ */ + public okhttp3.Call getAchievementCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling getAchievement(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling getAchievement(Async)"); + } + + // verify the required parameter 'achievementId' is set + if (achievementId == null) { + throw new ApiException("Missing the required parameter 'achievementId' when calling getAchievement(Async)"); + } + + + okhttp3.Call localVarCall = getAchievementCall(applicationId, campaignId, achievementId, _callback); + return localVarCall; + + } + + /** + * Get achievement + * Get the details of a specific achievement. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * @return Achievement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
+ */ + public Achievement getAchievement(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { + ApiResponse localVarResp = getAchievementWithHttpInfo(applicationId, campaignId, achievementId); + return localVarResp.getData(); + } + + /** + * Get achievement + * Get the details of a specific achievement. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * @return ApiResponse<Achievement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
+ */ + public ApiResponse getAchievementWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { + okhttp3.Call localVarCall = getAchievementValidateBeforeCall(applicationId, campaignId, achievementId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get achievement (asynchronously) + * Get the details of a specific achievement. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
+ */ + public okhttp3.Call getAchievementAsync(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAchievementValidateBeforeCall(applicationId, campaignId, achievementId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for getAdditionalCost * @param additionalCostId The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. (required) @@ -5770,7 +7006,7 @@ public okhttp3.Call getAdditionalCostAsync(Integer additionalCostId, final ApiCa } /** * Build call for getAdditionalCosts - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback Callback for upload/download progress @@ -5835,10 +7071,10 @@ private okhttp3.Call getAdditionalCostsValidateBeforeCall(Integer pageSize, Inte /** * List additional costs * Returns all the defined additional costs for the account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @return InlineResponse20034 + * @return InlineResponse20036 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5846,18 +7082,18 @@ private okhttp3.Call getAdditionalCostsValidateBeforeCall(Integer pageSize, Inte
200 OK -
*/ - public InlineResponse20034 getAdditionalCosts(Integer pageSize, Integer skip, String sort) throws ApiException { - ApiResponse localVarResp = getAdditionalCostsWithHttpInfo(pageSize, skip, sort); + public InlineResponse20036 getAdditionalCosts(Integer pageSize, Integer skip, String sort) throws ApiException { + ApiResponse localVarResp = getAdditionalCostsWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } /** * List additional costs * Returns all the defined additional costs for the account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @return ApiResponse<InlineResponse20034> + * @return ApiResponse<InlineResponse20036> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5865,16 +7101,16 @@ public InlineResponse20034 getAdditionalCosts(Integer pageSize, Integer skip, St
200 OK -
*/ - public ApiResponse getAdditionalCostsWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { + public ApiResponse getAdditionalCostsWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getAdditionalCostsValidateBeforeCall(pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List additional costs (asynchronously) * Returns all the defined additional costs for the account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback The callback to be executed when the API call finishes @@ -5886,21 +7122,21 @@ public ApiResponse getAdditionalCostsWithHttpInfo(Integer p 200 OK - */ - public okhttp3.Call getAdditionalCostsAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdditionalCostsAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdditionalCostsValidateBeforeCall(pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getAllAccessLogs - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback Callback for upload/download progress @@ -5976,16 +7212,6 @@ public okhttp3.Call getAllAccessLogsCall(OffsetDateTime rangeStart, OffsetDateTi @SuppressWarnings("rawtypes") private okhttp3.Call getAllAccessLogsValidateBeforeCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rangeStart' is set - if (rangeStart == null) { - throw new ApiException("Missing the required parameter 'rangeStart' when calling getAllAccessLogs(Async)"); - } - - // verify the required parameter 'rangeEnd' is set - if (rangeEnd == null) { - throw new ApiException("Missing the required parameter 'rangeEnd' when calling getAllAccessLogs(Async)"); - } - okhttp3.Call localVarCall = getAllAccessLogsCall(rangeStart, rangeEnd, path, method, status, pageSize, skip, sort, _callback); return localVarCall; @@ -5995,12 +7221,12 @@ private okhttp3.Call getAllAccessLogsValidateBeforeCall(OffsetDateTime rangeStar /** * List access logs * Fetches the access logs for the entire account. Sensitive requests (logins) are _always_ filtered from the logs. - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return InlineResponse20020 @@ -6019,12 +7245,12 @@ public InlineResponse20020 getAllAccessLogs(OffsetDateTime rangeStart, OffsetDat /** * List access logs * Fetches the access logs for the entire account. Sensitive requests (logins) are _always_ filtered from the logs. - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return ApiResponse<InlineResponse20020> @@ -6044,12 +7270,12 @@ public ApiResponse getAllAccessLogsWithHttpInfo(OffsetDateT /** * List access logs (asynchronously) * Fetches the access logs for the entire account. Sensitive requests (logins) are _always_ filtered from the logs. - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback The callback to be executed when the API call finishes @@ -6120,7 +7346,7 @@ private okhttp3.Call getAllRolesValidateBeforeCall(final ApiCallback _callback) /** * List roles * List all roles. - * @return InlineResponse20042 + * @return InlineResponse20044 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6128,15 +7354,15 @@ private okhttp3.Call getAllRolesValidateBeforeCall(final ApiCallback _callback)
200 OK -
*/ - public InlineResponse20042 getAllRoles() throws ApiException { - ApiResponse localVarResp = getAllRolesWithHttpInfo(); + public InlineResponse20044 getAllRoles() throws ApiException { + ApiResponse localVarResp = getAllRolesWithHttpInfo(); return localVarResp.getData(); } /** * List roles * List all roles. - * @return ApiResponse<InlineResponse20042> + * @return ApiResponse<InlineResponse20044> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6144,9 +7370,9 @@ public InlineResponse20042 getAllRoles() throws ApiException {
200 OK -
*/ - public ApiResponse getAllRolesWithHttpInfo() throws ApiException { + public ApiResponse getAllRolesWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getAllRolesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -6162,10 +7388,10 @@ public ApiResponse getAllRolesWithHttpInfo() throws ApiExce 200 OK - */ - public okhttp3.Call getAllRolesAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAllRolesAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllRolesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6516,7 +7742,7 @@ public okhttp3.Call getApplicationCustomerAsync(Integer applicationId, Integer c * Build call for getApplicationCustomerFriends * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -6600,11 +7826,11 @@ private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Integer app * List the friends referred by the specified customer profile in this Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @return InlineResponse20031 + * @return InlineResponse20033 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6612,8 +7838,8 @@ private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Integer app
200 OK -
*/ - public InlineResponse20031 getApplicationCustomerFriends(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { - ApiResponse localVarResp = getApplicationCustomerFriendsWithHttpInfo(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); + public InlineResponse20033 getApplicationCustomerFriends(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { + ApiResponse localVarResp = getApplicationCustomerFriendsWithHttpInfo(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); return localVarResp.getData(); } @@ -6622,11 +7848,11 @@ public InlineResponse20031 getApplicationCustomerFriends(Integer applicationId, * List the friends referred by the specified customer profile in this Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @return ApiResponse<InlineResponse20031> + * @return ApiResponse<InlineResponse20033> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6634,9 +7860,9 @@ public InlineResponse20031 getApplicationCustomerFriends(Integer applicationId,
200 OK -
*/ - public ApiResponse getApplicationCustomerFriendsWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { + public ApiResponse getApplicationCustomerFriendsWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomerFriendsValidateBeforeCall(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -6645,7 +7871,7 @@ public ApiResponse getApplicationCustomerFriendsWithHttpInf * List the friends referred by the specified customer profile in this Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -6658,10 +7884,10 @@ public ApiResponse getApplicationCustomerFriendsWithHttpInf 200 OK - */ - public okhttp3.Call getApplicationCustomerFriendsAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomerFriendsAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomerFriendsValidateBeforeCall(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6669,7 +7895,7 @@ public okhttp3.Call getApplicationCustomerFriendsAsync(Integer applicationId, St * Build call for getApplicationCustomers * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param _callback Callback for upload/download progress @@ -6746,7 +7972,7 @@ private okhttp3.Call getApplicationCustomersValidateBeforeCall(Integer applicati * List all the customers of the specified application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @return InlineResponse20022 @@ -6767,7 +7993,7 @@ public InlineResponse20022 getApplicationCustomers(Integer applicationId, String * List all the customers of the specified application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @return ApiResponse<InlineResponse20022> @@ -6789,7 +8015,7 @@ public ApiResponse getApplicationCustomersWithHttpInfo(Inte * List all the customers of the specified application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param _callback The callback to be executed when the API call finishes @@ -6812,7 +8038,7 @@ public okhttp3.Call getApplicationCustomersAsync(Integer applicationId, String i * Build call for getApplicationCustomersByAttributes * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param _callback Callback for upload/download progress @@ -6890,7 +8116,7 @@ private okhttp3.Call getApplicationCustomersByAttributesValidateBeforeCall(Integ * Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @return InlineResponse20023 @@ -6911,7 +8137,7 @@ public InlineResponse20023 getApplicationCustomersByAttributes(Integer applicati * Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @return ApiResponse<InlineResponse20023> @@ -6933,7 +8159,7 @@ public ApiResponse getApplicationCustomersByAttributesWithH * Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param _callback The callback to be executed when the API call finishes @@ -6955,7 +8181,7 @@ public okhttp3.Call getApplicationCustomersByAttributesAsync(Integer application /** * Build call for getApplicationEventTypes * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback Callback for upload/download progress @@ -7027,7 +8253,7 @@ private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Integer applicat * List Applications event types * Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return InlineResponse20029 @@ -7047,7 +8273,7 @@ public InlineResponse20029 getApplicationEventTypes(Integer applicationId, Integ * List Applications event types * Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return ApiResponse<InlineResponse20029> @@ -7068,7 +8294,7 @@ public ApiResponse getApplicationEventTypesWithHttpInfo(Int * List Applications event types (asynchronously) * Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback The callback to be executed when the API call finishes @@ -7090,7 +8316,7 @@ public okhttp3.Call getApplicationEventTypesAsync(Integer applicationId, Integer /** * Build call for getApplicationEventsWithoutTotalCount * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) @@ -7217,7 +8443,7 @@ private okhttp3.Call getApplicationEventsWithoutTotalCountValidateBeforeCall(Int * List Applications events * Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) @@ -7248,7 +8474,7 @@ public InlineResponse20028 getApplicationEventsWithoutTotalCount(Integer applica * List Applications events * Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) @@ -7280,7 +8506,7 @@ public ApiResponse getApplicationEventsWithoutTotalCountWit * List Applications events (asynchronously) * Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) @@ -7434,7 +8660,7 @@ public okhttp3.Call getApplicationSessionAsync(Integer applicationId, Integer se /** * Build call for getApplicationSessions * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) @@ -7444,6 +8670,7 @@ public okhttp3.Call getApplicationSessionAsync(Integer applicationId, Integer se * @param coupon Filter by sessions with this coupon. Must be exact match. (optional) * @param referral Filter by sessions with this referral. Must be exact match. (optional) * @param integrationId Filter by sessions with this integrationId. Must be exact match. (optional) + * @param storeIntegrationId The integration ID of the store. You choose this ID when you create a store. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7453,7 +8680,7 @@ public okhttp3.Call getApplicationSessionAsync(Integer applicationId, Integer se 200 OK - */ - public okhttp3.Call getApplicationSessionsCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationSessionsCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7502,6 +8729,10 @@ public okhttp3.Call getApplicationSessionsCall(Integer applicationId, Integer pa localVarQueryParams.addAll(localVarApiClient.parameterToPair("integrationId", integrationId)); } + if (storeIntegrationId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("storeIntegrationId", storeIntegrationId)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -7524,7 +8755,7 @@ public okhttp3.Call getApplicationSessionsCall(Integer applicationId, Integer pa } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationSessionsValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationSessionsValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -7532,7 +8763,7 @@ private okhttp3.Call getApplicationSessionsValidateBeforeCall(Integer applicatio } - okhttp3.Call localVarCall = getApplicationSessionsCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, _callback); + okhttp3.Call localVarCall = getApplicationSessionsCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, _callback); return localVarCall; } @@ -7541,7 +8772,7 @@ private okhttp3.Call getApplicationSessionsValidateBeforeCall(Integer applicatio * List Application sessions * List all the sessions of the specified Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) @@ -7551,6 +8782,7 @@ private okhttp3.Call getApplicationSessionsValidateBeforeCall(Integer applicatio * @param coupon Filter by sessions with this coupon. Must be exact match. (optional) * @param referral Filter by sessions with this referral. Must be exact match. (optional) * @param integrationId Filter by sessions with this integrationId. Must be exact match. (optional) + * @param storeIntegrationId The integration ID of the store. You choose this ID when you create a store. (optional) * @return InlineResponse20027 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7559,8 +8791,8 @@ private okhttp3.Call getApplicationSessionsValidateBeforeCall(Integer applicatio 200 OK - */ - public InlineResponse20027 getApplicationSessions(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId) throws ApiException { - ApiResponse localVarResp = getApplicationSessionsWithHttpInfo(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId); + public InlineResponse20027 getApplicationSessions(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException { + ApiResponse localVarResp = getApplicationSessionsWithHttpInfo(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId); return localVarResp.getData(); } @@ -7568,7 +8800,7 @@ public InlineResponse20027 getApplicationSessions(Integer applicationId, Integer * List Application sessions * List all the sessions of the specified Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) @@ -7578,6 +8810,7 @@ public InlineResponse20027 getApplicationSessions(Integer applicationId, Integer * @param coupon Filter by sessions with this coupon. Must be exact match. (optional) * @param referral Filter by sessions with this referral. Must be exact match. (optional) * @param integrationId Filter by sessions with this integrationId. Must be exact match. (optional) + * @param storeIntegrationId The integration ID of the store. You choose this ID when you create a store. (optional) * @return ApiResponse<InlineResponse20027> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7586,8 +8819,8 @@ public InlineResponse20027 getApplicationSessions(Integer applicationId, Integer 200 OK - */ - public ApiResponse getApplicationSessionsWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId) throws ApiException { - okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, null); + public ApiResponse getApplicationSessionsWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException { + okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -7596,7 +8829,7 @@ public ApiResponse getApplicationSessionsWithHttpInfo(Integ * List Application sessions (asynchronously) * List all the sessions of the specified Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) @@ -7606,6 +8839,7 @@ public ApiResponse getApplicationSessionsWithHttpInfo(Integ * @param coupon Filter by sessions with this coupon. Must be exact match. (optional) * @param referral Filter by sessions with this referral. Must be exact match. (optional) * @param integrationId Filter by sessions with this integrationId. Must be exact match. (optional) + * @param storeIntegrationId The integration ID of the store. You choose this ID when you create a store. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7615,16 +8849,16 @@ public ApiResponse getApplicationSessionsWithHttpInfo(Integ 200 OK - */ - public okhttp3.Call getApplicationSessionsAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationSessionsAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, _callback); + okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getApplications - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback Callback for upload/download progress @@ -7689,7 +8923,7 @@ private okhttp3.Call getApplicationsValidateBeforeCall(Integer pageSize, Integer /** * List Applications * List all applications in the current account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return InlineResponse2005 @@ -7708,7 +8942,7 @@ public InlineResponse2005 getApplications(Integer pageSize, Integer skip, String /** * List Applications * List all applications in the current account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return ApiResponse<InlineResponse2005> @@ -7728,7 +8962,7 @@ public ApiResponse getApplicationsWithHttpInfo(Integer pageS /** * List Applications (asynchronously) * List all applications in the current account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback The callback to be executed when the API call finishes @@ -7860,7 +9094,7 @@ public okhttp3.Call getAttributeAsync(Integer attributeId, final ApiCallback @@ -7942,39 +9176,319 @@ private okhttp3.Call getAttributesValidateBeforeCall(Integer pageSize, Integer s 200 OK - */ - public InlineResponse20032 getAttributes(Integer pageSize, Integer skip, String sort, String entity) throws ApiException { - ApiResponse localVarResp = getAttributesWithHttpInfo(pageSize, skip, sort, entity); + public InlineResponse20034 getAttributes(Integer pageSize, Integer skip, String sort, String entity) throws ApiException { + ApiResponse localVarResp = getAttributesWithHttpInfo(pageSize, skip, sort, entity); return localVarResp.getData(); } /** * List custom attributes * Return all the custom attributes for the account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param entity Returned attributes will be filtered by supplied entity. (optional) + * @return ApiResponse<InlineResponse20034> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getAttributesWithHttpInfo(Integer pageSize, Integer skip, String sort, String entity) throws ApiException { + okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List custom attributes (asynchronously) + * Return all the custom attributes for the account. + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param entity Returned attributes will be filtered by supplied entity. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAttributesAsync(Integer pageSize, Integer skip, String sort, String entity, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAudienceMemberships + * @param audienceId The ID of the audience. (required) + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param profileQuery The filter to select a profile. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not found -
+ */ + public okhttp3.Call getAudienceMembershipsCall(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/audiences/{audienceId}/memberships" + .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + + if (skip != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (profileQuery != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("profileQuery", profileQuery)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAudienceMembershipsValidateBeforeCall(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'audienceId' is set + if (audienceId == null) { + throw new ApiException("Missing the required parameter 'audienceId' when calling getAudienceMemberships(Async)"); + } + + + okhttp3.Call localVarCall = getAudienceMembershipsCall(audienceId, pageSize, skip, sort, profileQuery, _callback); + return localVarCall; + + } + + /** + * List audience members + * Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. + * @param audienceId The ID of the audience. (required) + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param profileQuery The filter to select a profile. (optional) + * @return InlineResponse20032 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not found -
+ */ + public InlineResponse20032 getAudienceMemberships(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery) throws ApiException { + ApiResponse localVarResp = getAudienceMembershipsWithHttpInfo(audienceId, pageSize, skip, sort, profileQuery); + return localVarResp.getData(); + } + + /** + * List audience members + * Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. + * @param audienceId The ID of the audience. (required) + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param profileQuery The filter to select a profile. (optional) * @return ApiResponse<InlineResponse20032> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not found -
+ */ + public ApiResponse getAudienceMembershipsWithHttpInfo(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery) throws ApiException { + okhttp3.Call localVarCall = getAudienceMembershipsValidateBeforeCall(audienceId, pageSize, skip, sort, profileQuery, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List audience members (asynchronously) + * Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. + * @param audienceId The ID of the audience. (required) + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param profileQuery The filter to select a profile. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not found -
+ */ + public okhttp3.Call getAudienceMembershipsAsync(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAudienceMembershipsValidateBeforeCall(audienceId, pageSize, skip, sort, profileQuery, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAudiences + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAudiencesCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/audiences"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + + if (skip != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (withTotalResultSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("withTotalResultSize", withTotalResultSize)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAudiencesValidateBeforeCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAudiencesCall(pageSize, skip, sort, withTotalResultSize, _callback); + return localVarCall; + + } + + /** + * List audiences + * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * @return InlineResponse20030 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public InlineResponse20030 getAudiences(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { + ApiResponse localVarResp = getAudiencesWithHttpInfo(pageSize, skip, sort, withTotalResultSize); + return localVarResp.getData(); + } + + /** + * List audiences + * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * @return ApiResponse<InlineResponse20030> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details
Status Code Description Response Headers
200 OK -
*/ - public ApiResponse getAttributesWithHttpInfo(Integer pageSize, Integer skip, String sort, String entity) throws ApiException { - okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getAudiencesWithHttpInfo(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { + okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * List custom attributes (asynchronously) - * Return all the custom attributes for the account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * List audiences (asynchronously) + * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param entity Returned attributes will be filtered by supplied entity. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7984,19 +9498,17 @@ public ApiResponse getAttributesWithHttpInfo(Integer pageSi 200 OK - */ - public okhttp3.Call getAttributesAsync(Integer pageSize, Integer skip, String sort, String entity, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudiencesAsync(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getAudiences - * @param pageSize The number of items in this response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Build call for getAudiencesAnalytics + * @param audienceIds The IDs of one or more audiences, separated by commas, by which to filter results. (required) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8006,28 +9518,20 @@ public okhttp3.Call getAttributesAsync(Integer pageSize, Integer skip, String so 200 OK - */ - public okhttp3.Call getAudiencesCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudiencesAnalyticsCall(String audienceIds, String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/audiences"; + String localVarPath = "/v1/audiences/analytics"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (skip != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); - } - if (sort != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); } - if (withTotalResultSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("withTotalResultSize", withTotalResultSize)); + if (audienceIds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("audienceIds", audienceIds)); } Map localVarHeaderParams = new HashMap(); @@ -8052,22 +9556,25 @@ public okhttp3.Call getAudiencesCall(Integer pageSize, Integer skip, String sort } @SuppressWarnings("rawtypes") - private okhttp3.Call getAudiencesValidateBeforeCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAudiencesAnalyticsValidateBeforeCall(String audienceIds, String sort, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'audienceIds' is set + if (audienceIds == null) { + throw new ApiException("Missing the required parameter 'audienceIds' when calling getAudiencesAnalytics(Async)"); + } - okhttp3.Call localVarCall = getAudiencesCall(pageSize, skip, sort, withTotalResultSize, _callback); + okhttp3.Call localVarCall = getAudiencesAnalyticsCall(audienceIds, sort, _callback); return localVarCall; } /** - * List audiences - * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). - * @param pageSize The number of items in this response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * List audience analytics + * Get a list of audience IDs and their member count. + * @param audienceIds The IDs of one or more audiences, separated by commas, by which to filter results. (required) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @return InlineResponse20030 + * @return InlineResponse20031 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8075,19 +9582,17 @@ private okhttp3.Call getAudiencesValidateBeforeCall(Integer pageSize, Integer sk
200 OK -
*/ - public InlineResponse20030 getAudiences(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { - ApiResponse localVarResp = getAudiencesWithHttpInfo(pageSize, skip, sort, withTotalResultSize); + public InlineResponse20031 getAudiencesAnalytics(String audienceIds, String sort) throws ApiException { + ApiResponse localVarResp = getAudiencesAnalyticsWithHttpInfo(audienceIds, sort); return localVarResp.getData(); } /** - * List audiences - * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). - * @param pageSize The number of items in this response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * List audience analytics + * Get a list of audience IDs and their member count. + * @param audienceIds The IDs of one or more audiences, separated by commas, by which to filter results. (required) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @return ApiResponse<InlineResponse20030> + * @return ApiResponse<InlineResponse20031> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8095,19 +9600,17 @@ public InlineResponse20030 getAudiences(Integer pageSize, Integer skip, String s
200 OK -
*/ - public ApiResponse getAudiencesWithHttpInfo(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { - okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getAudiencesAnalyticsWithHttpInfo(String audienceIds, String sort) throws ApiException { + okhttp3.Call localVarCall = getAudiencesAnalyticsValidateBeforeCall(audienceIds, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * List audiences (asynchronously) - * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). - * @param pageSize The number of items in this response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * List audience analytics (asynchronously) + * Get a list of audience IDs and their member count. + * @param audienceIds The IDs of one or more audiences, separated by commas, by which to filter results. (required) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8117,10 +9620,10 @@ public ApiResponse getAudiencesWithHttpInfo(Integer pageSiz 200 OK - */ - public okhttp3.Call getAudiencesAsync(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudiencesAnalyticsAsync(String audienceIds, String sort, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getAudiencesAnalyticsValidateBeforeCall(audienceIds, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8250,7 +9753,7 @@ public okhttp3.Call getCampaignAsync(Integer applicationId, Integer campaignId, * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param granularity The time interval between the results in the returned time-series. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -8339,7 +9842,7 @@ private okhttp3.Call getCampaignAnalyticsValidateBeforeCall(Integer applicationI * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param granularity The time interval between the results in the returned time-series. (optional) * @return InlineResponse20021 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -8360,7 +9863,7 @@ public InlineResponse20021 getCampaignAnalytics(Integer applicationId, Integer c * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param granularity The time interval between the results in the returned time-series. (optional) * @return ApiResponse<InlineResponse20021> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -8382,7 +9885,7 @@ public ApiResponse getCampaignAnalyticsWithHttpInfo(Integer * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param granularity The time interval between the results in the returned time-series. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -8404,7 +9907,7 @@ public okhttp3.Call getCampaignAnalyticsAsync(Integer applicationId, Integer cam * Build call for getCampaignByAttributes * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. (optional) @@ -8487,7 +9990,7 @@ private okhttp3.Call getCampaignByAttributesValidateBeforeCall(Integer applicati * Get a list of all the campaigns that match a set of attributes. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. (optional) @@ -8509,11 +10012,250 @@ public InlineResponse2006 getCampaignByAttributes(Integer applicationId, Campaig * Get a list of all the campaigns that match a set of attributes. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. (optional) + * @return ApiResponse<InlineResponse2006> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getCampaignByAttributesWithHttpInfo(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState) throws ApiException { + okhttp3.Call localVarCall = getCampaignByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, sort, campaignState, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List campaigns that match the given attributes (asynchronously) + * Get a list of all the campaigns that match a set of attributes. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getCampaignByAttributesAsync(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCampaignByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, sort, campaignState, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCampaignGroup + * @param campaignGroupId The ID of the campaign access group. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getCampaignGroupCall(Integer campaignGroupId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/campaign_groups/{campaignGroupId}" + .replaceAll("\\{" + "campaignGroupId" + "\\}", localVarApiClient.escapeString(campaignGroupId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCampaignGroupValidateBeforeCall(Integer campaignGroupId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'campaignGroupId' is set + if (campaignGroupId == null) { + throw new ApiException("Missing the required parameter 'campaignGroupId' when calling getCampaignGroup(Async)"); + } + + + okhttp3.Call localVarCall = getCampaignGroupCall(campaignGroupId, _callback); + return localVarCall; + + } + + /** + * Get campaign access group + * Get a campaign access group specified by its ID. + * @param campaignGroupId The ID of the campaign access group. (required) + * @return CampaignGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CampaignGroup getCampaignGroup(Integer campaignGroupId) throws ApiException { + ApiResponse localVarResp = getCampaignGroupWithHttpInfo(campaignGroupId); + return localVarResp.getData(); + } + + /** + * Get campaign access group + * Get a campaign access group specified by its ID. + * @param campaignGroupId The ID of the campaign access group. (required) + * @return ApiResponse<CampaignGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getCampaignGroupWithHttpInfo(Integer campaignGroupId) throws ApiException { + okhttp3.Call localVarCall = getCampaignGroupValidateBeforeCall(campaignGroupId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get campaign access group (asynchronously) + * Get a campaign access group specified by its ID. + * @param campaignGroupId The ID of the campaign access group. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getCampaignGroupAsync(Integer campaignGroupId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCampaignGroupValidateBeforeCall(campaignGroupId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCampaignGroups + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getCampaignGroupsCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/campaign_groups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + + if (skip != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCampaignGroupsValidateBeforeCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getCampaignGroupsCall(pageSize, skip, sort, _callback); + return localVarCall; + + } + + /** + * List campaign access groups + * List the campaign access groups in the current account. + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @return InlineResponse20011 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public InlineResponse20011 getCampaignGroups(Integer pageSize, Integer skip, String sort) throws ApiException { + ApiResponse localVarResp = getCampaignGroupsWithHttpInfo(pageSize, skip, sort); + return localVarResp.getData(); + } + + /** + * List campaign access groups + * List the campaign access groups in the current account. + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. (optional) - * @return ApiResponse<InlineResponse2006> + * @return ApiResponse<InlineResponse20011> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8521,21 +10263,18 @@ public InlineResponse2006 getCampaignByAttributes(Integer applicationId, Campaig
200 OK -
*/ - public ApiResponse getCampaignByAttributesWithHttpInfo(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState) throws ApiException { - okhttp3.Call localVarCall = getCampaignByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, sort, campaignState, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getCampaignGroupsWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { + okhttp3.Call localVarCall = getCampaignGroupsValidateBeforeCall(pageSize, skip, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * List campaigns that match the given attributes (asynchronously) - * Get a list of all the campaigns that match a set of attributes. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * List campaign access groups (asynchronously) + * List the campaign access groups in the current account. + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8545,16 +10284,16 @@ public ApiResponse getCampaignByAttributesWithHttpInfo(Integ 200 OK - */ - public okhttp3.Call getCampaignByAttributesAsync(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignGroupsAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCampaignByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, sort, campaignState, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getCampaignGroupsValidateBeforeCall(pageSize, skip, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getCampaignTemplates - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param state Filter results by the state of the campaign template. (optional) @@ -8639,14 +10378,14 @@ private okhttp3.Call getCampaignTemplatesValidateBeforeCall(Integer pageSize, In /** * List campaign templates * Retrieve a list of campaign templates. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param state Filter results by the state of the campaign template. (optional) * @param name Filter results performing case-insensitive matching against the name of the campaign template. (optional) * @param tags Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values. (optional) * @param userId Filter results by user ID. (optional) - * @return InlineResponse20011 + * @return InlineResponse20012 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8654,22 +10393,22 @@ private okhttp3.Call getCampaignTemplatesValidateBeforeCall(Integer pageSize, In
200 OK -
*/ - public InlineResponse20011 getCampaignTemplates(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId) throws ApiException { - ApiResponse localVarResp = getCampaignTemplatesWithHttpInfo(pageSize, skip, sort, state, name, tags, userId); + public InlineResponse20012 getCampaignTemplates(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId) throws ApiException { + ApiResponse localVarResp = getCampaignTemplatesWithHttpInfo(pageSize, skip, sort, state, name, tags, userId); return localVarResp.getData(); } /** * List campaign templates * Retrieve a list of campaign templates. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param state Filter results by the state of the campaign template. (optional) * @param name Filter results performing case-insensitive matching against the name of the campaign template. (optional) * @param tags Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values. (optional) * @param userId Filter results by user ID. (optional) - * @return ApiResponse<InlineResponse20011> + * @return ApiResponse<InlineResponse20012> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8677,16 +10416,16 @@ public InlineResponse20011 getCampaignTemplates(Integer pageSize, Integer skip,
200 OK -
*/ - public ApiResponse getCampaignTemplatesWithHttpInfo(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId) throws ApiException { + public ApiResponse getCampaignTemplatesWithHttpInfo(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId) throws ApiException { okhttp3.Call localVarCall = getCampaignTemplatesValidateBeforeCall(pageSize, skip, sort, state, name, tags, userId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List campaign templates (asynchronously) * Retrieve a list of campaign templates. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param state Filter results by the state of the campaign template. (optional) @@ -8702,17 +10441,17 @@ public ApiResponse getCampaignTemplatesWithHttpInfo(Integer 200 OK - */ - public okhttp3.Call getCampaignTemplatesAsync(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignTemplatesAsync(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignTemplatesValidateBeforeCall(pageSize, skip, sort, state, name, tags, userId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getCampaigns * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. (optional) @@ -8825,7 +10564,7 @@ private okhttp3.Call getCampaignsValidateBeforeCall(Integer applicationId, Integ * List campaigns * List the campaigns of the specified application that match your filter criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. (optional) @@ -8854,7 +10593,7 @@ public InlineResponse2006 getCampaigns(Integer applicationId, Integer pageSize, * List campaigns * List the campaigns of the specified application that match your filter criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. (optional) @@ -8884,7 +10623,7 @@ public ApiResponse getCampaignsWithHttpInfo(Integer applicat * List campaigns (asynchronously) * List the campaigns of the specified application that match your filter criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. - `draft`: Campaigns that are drafts. (optional) @@ -8914,7 +10653,7 @@ public okhttp3.Call getCampaignsAsync(Integer applicationId, Integer pageSize, I } /** * Build call for getChanges - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param applicationId Filter results by Application ID. (optional) @@ -9019,7 +10758,7 @@ private okhttp3.Call getChangesValidateBeforeCall(Integer pageSize, Integer skip /** * Get audit logs for an account * Retrieve the audit logs displayed in **Accounts > Audit logs**. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param applicationId Filter results by Application ID. (optional) @@ -9030,7 +10769,7 @@ private okhttp3.Call getChangesValidateBeforeCall(Integer pageSize, Integer skip * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param managementKeyId Filter results that match the given management key ID. (optional) * @param includeOld When this flag is set to false, the state without the change will not be returned. The default value is true. (optional) - * @return InlineResponse20040 + * @return InlineResponse20042 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9038,15 +10777,15 @@ private okhttp3.Call getChangesValidateBeforeCall(Integer pageSize, Integer skip
200 OK -
*/ - public InlineResponse20040 getChanges(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException { - ApiResponse localVarResp = getChangesWithHttpInfo(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); + public InlineResponse20042 getChanges(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException { + ApiResponse localVarResp = getChangesWithHttpInfo(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); return localVarResp.getData(); } /** * Get audit logs for an account * Retrieve the audit logs displayed in **Accounts > Audit logs**. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param applicationId Filter results by Application ID. (optional) @@ -9057,7 +10796,7 @@ public InlineResponse20040 getChanges(Integer pageSize, Integer skip, String sor * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param managementKeyId Filter results that match the given management key ID. (optional) * @param includeOld When this flag is set to false, the state without the change will not be returned. The default value is true. (optional) - * @return ApiResponse<InlineResponse20040> + * @return ApiResponse<InlineResponse20042> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9065,16 +10804,16 @@ public InlineResponse20040 getChanges(Integer pageSize, Integer skip, String sor
200 OK -
*/ - public ApiResponse getChangesWithHttpInfo(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException { + public ApiResponse getChangesWithHttpInfo(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException { okhttp3.Call localVarCall = getChangesValidateBeforeCall(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get audit logs for an account (asynchronously) * Retrieve the audit logs displayed in **Accounts > Audit logs**. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param applicationId Filter results by Application ID. (optional) @@ -9094,10 +10833,10 @@ public ApiResponse getChangesWithHttpInfo(Integer pageSize, 200 OK - */ - public okhttp3.Call getChangesAsync(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getChangesAsync(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getChangesValidateBeforeCall(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9239,7 +10978,7 @@ public okhttp3.Call getCollectionAsync(Integer applicationId, Integer campaignId /** * Build call for getCollectionItems * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -9307,9 +11046,9 @@ private okhttp3.Call getCollectionItemsValidateBeforeCall(Integer collectionId, * Get collection items * Retrieve items from a given collection. You can retrieve items from both account-level collections and campaign-level collections using this endpoint. * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) - * @return InlineResponse20017 + * @return InlineResponse20018 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9318,8 +11057,8 @@ private okhttp3.Call getCollectionItemsValidateBeforeCall(Integer collectionId,
404 Not found -
*/ - public InlineResponse20017 getCollectionItems(Integer collectionId, Integer pageSize, Integer skip) throws ApiException { - ApiResponse localVarResp = getCollectionItemsWithHttpInfo(collectionId, pageSize, skip); + public InlineResponse20018 getCollectionItems(Integer collectionId, Integer pageSize, Integer skip) throws ApiException { + ApiResponse localVarResp = getCollectionItemsWithHttpInfo(collectionId, pageSize, skip); return localVarResp.getData(); } @@ -9327,9 +11066,9 @@ public InlineResponse20017 getCollectionItems(Integer collectionId, Integer page * Get collection items * Retrieve items from a given collection. You can retrieve items from both account-level collections and campaign-level collections using this endpoint. * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) - * @return ApiResponse<InlineResponse20017> + * @return ApiResponse<InlineResponse20018> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9338,9 +11077,9 @@ public InlineResponse20017 getCollectionItems(Integer collectionId, Integer page
404 Not found -
*/ - public ApiResponse getCollectionItemsWithHttpInfo(Integer collectionId, Integer pageSize, Integer skip) throws ApiException { + public ApiResponse getCollectionItemsWithHttpInfo(Integer collectionId, Integer pageSize, Integer skip) throws ApiException { okhttp3.Call localVarCall = getCollectionItemsValidateBeforeCall(collectionId, pageSize, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -9348,7 +11087,7 @@ public ApiResponse getCollectionItemsWithHttpInfo(Integer c * Get collection items (asynchronously) * Retrieve items from a given collection. You can retrieve items from both account-level collections and campaign-level collections using this endpoint. * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -9360,10 +11099,10 @@ public ApiResponse getCollectionItemsWithHttpInfo(Integer c 404 Not found - */ - public okhttp3.Call getCollectionItemsAsync(Integer collectionId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCollectionItemsAsync(Integer collectionId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCollectionItemsValidateBeforeCall(collectionId, pageSize, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9371,7 +11110,7 @@ public okhttp3.Call getCollectionItemsAsync(Integer collectionId, Integer pageSi * Build call for getCouponsWithoutTotalCount * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -9495,7 +11234,7 @@ private okhttp3.Call getCouponsWithoutTotalCountValidateBeforeCall(Integer appli * List all the coupons matching the specified criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -9525,7 +11264,7 @@ public InlineResponse2009 getCouponsWithoutTotalCount(Integer applicationId, Int * List all the coupons matching the specified criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -9556,7 +11295,7 @@ public ApiResponse getCouponsWithoutTotalCountWithHttpInfo(I * List all the coupons matching the specified criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -9587,10 +11326,10 @@ public okhttp3.Call getCouponsWithoutTotalCountAsync(Integer applicationId, Inte /** * Build call for getCustomerActivityReport * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -9681,10 +11420,10 @@ private okhttp3.Call getCustomerActivityReportValidateBeforeCall(OffsetDateTime * Get customer's activity report * Fetch the summary report of a given customer in the given application, in a time range. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @return CustomerActivityReport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -9703,10 +11442,10 @@ public CustomerActivityReport getCustomerActivityReport(OffsetDateTime rangeStar * Get customer's activity report * Fetch the summary report of a given customer in the given application, in a time range. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<CustomerActivityReport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -9726,10 +11465,10 @@ public ApiResponse getCustomerActivityReportWithHttpInfo * Get customer's activity report (asynchronously) * Fetch the summary report of a given customer in the given application, in a time range. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -9750,9 +11489,9 @@ public okhttp3.Call getCustomerActivityReportAsync(OffsetDateTime rangeStart, Of /** * Build call for getCustomerActivityReportsWithoutTotalCount * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param name Only return reports matching the customer name (optional) @@ -9862,9 +11601,9 @@ private okhttp3.Call getCustomerActivityReportsWithoutTotalCountValidateBeforeCa * Get Activity Reports for Application Customers * Fetch summary reports for all application customers based on a time range. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param name Only return reports matching the customer name (optional) @@ -9888,9 +11627,9 @@ public InlineResponse20026 getCustomerActivityReportsWithoutTotalCount(OffsetDat * Get Activity Reports for Application Customers * Fetch summary reports for all application customers based on a time range. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param name Only return reports matching the customer name (optional) @@ -9915,9 +11654,9 @@ public ApiResponse getCustomerActivityReportsWithoutTotalCo * Get Activity Reports for Application Customers (asynchronously) * Fetch summary reports for all application customers based on a time range. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param name Only return reports matching the customer name (optional) @@ -9944,7 +11683,7 @@ public okhttp3.Call getCustomerActivityReportsWithoutTotalCountAsync(OffsetDateT * Build call for getCustomerAnalytics * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback Callback for upload/download progress @@ -10023,7 +11762,7 @@ private okhttp3.Call getCustomerAnalyticsValidateBeforeCall(Integer applicationI * Fetch analytics for a given customer in the given application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return CustomerAnalytics @@ -10044,7 +11783,7 @@ public CustomerAnalytics getCustomerAnalytics(Integer applicationId, Integer cus * Fetch analytics for a given customer in the given application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return ApiResponse<CustomerAnalytics> @@ -10066,7 +11805,7 @@ public ApiResponse getCustomerAnalyticsWithHttpInfo(Integer a * Fetch analytics for a given customer in the given application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback The callback to be executed when the API call finishes @@ -10196,9 +11935,170 @@ public okhttp3.Call getCustomerProfileAsync(Integer customerId, final ApiCallbac localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for getCustomerProfileAchievementProgress + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param integrationId The identifier of the profile. (required) + * @param pageSize The number of items in the response. (optional, default to 50) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional) + * @param title Filter results by the `title` of an achievement. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ */ + public okhttp3.Call getCustomerProfileAchievementProgressCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/achievement_progress/{integrationId}" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + + if (skip != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); + } + + if (achievementId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("achievementId", achievementId)); + } + + if (title != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("title", title)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCustomerProfileAchievementProgressValidateBeforeCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling getCustomerProfileAchievementProgress(Async)"); + } + + // verify the required parameter 'integrationId' is set + if (integrationId == null) { + throw new ApiException("Missing the required parameter 'integrationId' when calling getCustomerProfileAchievementProgress(Async)"); + } + + + okhttp3.Call localVarCall = getCustomerProfileAchievementProgressCall(applicationId, integrationId, pageSize, skip, achievementId, title, _callback); + return localVarCall; + + } + + /** + * List customer achievements + * For the given customer profile, list all the achievements that match your filter criteria. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param integrationId The identifier of the profile. (required) + * @param pageSize The number of items in the response. (optional, default to 50) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional) + * @param title Filter results by the `title` of an achievement. (optional) + * @return InlineResponse20047 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ */ + public InlineResponse20047 getCustomerProfileAchievementProgress(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title) throws ApiException { + ApiResponse localVarResp = getCustomerProfileAchievementProgressWithHttpInfo(applicationId, integrationId, pageSize, skip, achievementId, title); + return localVarResp.getData(); + } + + /** + * List customer achievements + * For the given customer profile, list all the achievements that match your filter criteria. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param integrationId The identifier of the profile. (required) + * @param pageSize The number of items in the response. (optional, default to 50) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional) + * @param title Filter results by the `title` of an achievement. (optional) + * @return ApiResponse<InlineResponse20047> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ */ + public ApiResponse getCustomerProfileAchievementProgressWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title) throws ApiException { + okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, integrationId, pageSize, skip, achievementId, title, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List customer achievements (asynchronously) + * For the given customer profile, list all the achievements that match your filter criteria. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param integrationId The identifier of the profile. (required) + * @param pageSize The number of items in the response. (optional, default to 50) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional) + * @param title Filter results by the `title` of an achievement. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ */ + public okhttp3.Call getCustomerProfileAchievementProgressAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, integrationId, pageSize, skip, achievementId, title, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for getCustomerProfiles - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or Live customer. (optional, default to false) * @param _callback Callback for upload/download progress @@ -10263,7 +12163,7 @@ private okhttp3.Call getCustomerProfilesValidateBeforeCall(Integer pageSize, Int /** * List customer profiles * List all customer profiles. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or Live customer. (optional, default to false) * @return InlineResponse20025 @@ -10282,7 +12182,7 @@ public InlineResponse20025 getCustomerProfiles(Integer pageSize, Integer skip, B /** * List customer profiles * List all customer profiles. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or Live customer. (optional, default to false) * @return ApiResponse<InlineResponse20025> @@ -10302,7 +12202,7 @@ public ApiResponse getCustomerProfilesWithHttpInfo(Integer /** * List customer profiles (asynchronously) * List all customer profiles. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or Live customer. (optional, default to false) * @param _callback The callback to be executed when the API call finishes @@ -10324,7 +12224,7 @@ public okhttp3.Call getCustomerProfilesAsync(Integer pageSize, Integer skip, Boo /** * Build call for getCustomersByAttributes * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or Live customer. (optional, default to false) * @param _callback Callback for upload/download progress @@ -10395,7 +12295,7 @@ private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileS * List customer profiles matching the given attributes * Get a list of the customer profiles matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or Live customer. (optional, default to false) * @return InlineResponse20024 @@ -10415,7 +12315,7 @@ public InlineResponse20024 getCustomersByAttributes(CustomerProfileSearchQuery b * List customer profiles matching the given attributes * Get a list of the customer profiles matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or Live customer. (optional, default to false) * @return ApiResponse<InlineResponse20024> @@ -10436,7 +12336,7 @@ public ApiResponse getCustomersByAttributesWithHttpInfo(Cus * List customer profiles matching the given attributes (asynchronously) * Get a list of the customer profiles matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or Live customer. (optional, default to false) * @param _callback The callback to be executed when the API call finishes @@ -10459,7 +12359,7 @@ public okhttp3.Call getCustomersByAttributesAsync(CustomerProfileSearchQuery bod * Build call for getEventTypes * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback Callback for upload/download progress @@ -10534,10 +12434,10 @@ private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includ * Fetch all event type definitions for your account. * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @return InlineResponse20038 + * @return InlineResponse20040 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10545,8 +12445,8 @@ private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includ
200 OK -
*/ - public InlineResponse20038 getEventTypes(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException { - ApiResponse localVarResp = getEventTypesWithHttpInfo(name, includeOldVersions, pageSize, skip, sort); + public InlineResponse20040 getEventTypes(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException { + ApiResponse localVarResp = getEventTypesWithHttpInfo(name, includeOldVersions, pageSize, skip, sort); return localVarResp.getData(); } @@ -10555,10 +12455,10 @@ public InlineResponse20038 getEventTypes(String name, Boolean includeOldVersions * Fetch all event type definitions for your account. * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @return ApiResponse<InlineResponse20038> + * @return ApiResponse<InlineResponse20040> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10566,9 +12466,9 @@ public InlineResponse20038 getEventTypes(String name, Boolean includeOldVersions
200 OK -
*/ - public ApiResponse getEventTypesWithHttpInfo(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException { + public ApiResponse getEventTypesWithHttpInfo(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -10577,7 +12477,7 @@ public ApiResponse getEventTypesWithHttpInfo(String name, B * Fetch all event type definitions for your account. * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback The callback to be executed when the API call finishes @@ -10589,16 +12489,16 @@ public ApiResponse getEventTypesWithHttpInfo(String name, B 200 OK - */ - public okhttp3.Call getEventTypesAsync(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getEventTypesAsync(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getExports - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param applicationId Filter results by Application ID. (optional) * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) @@ -10673,12 +12573,12 @@ private okhttp3.Call getExportsValidateBeforeCall(Integer pageSize, Integer skip /** * Get exports * List all past exports - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param applicationId Filter results by Application ID. (optional) * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) * @param entity The name of the entity type that was exported. (optional) - * @return InlineResponse20041 + * @return InlineResponse20043 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10686,20 +12586,20 @@ private okhttp3.Call getExportsValidateBeforeCall(Integer pageSize, Integer skip
200 OK -
*/ - public InlineResponse20041 getExports(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException { - ApiResponse localVarResp = getExportsWithHttpInfo(pageSize, skip, applicationId, campaignId, entity); + public InlineResponse20043 getExports(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException { + ApiResponse localVarResp = getExportsWithHttpInfo(pageSize, skip, applicationId, campaignId, entity); return localVarResp.getData(); } /** * Get exports * List all past exports - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param applicationId Filter results by Application ID. (optional) * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) * @param entity The name of the entity type that was exported. (optional) - * @return ApiResponse<InlineResponse20041> + * @return ApiResponse<InlineResponse20043> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10707,16 +12607,16 @@ public InlineResponse20041 getExports(Integer pageSize, Integer skip, BigDecimal
200 OK -
*/ - public ApiResponse getExportsWithHttpInfo(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException { + public ApiResponse getExportsWithHttpInfo(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException { okhttp3.Call localVarCall = getExportsValidateBeforeCall(pageSize, skip, applicationId, campaignId, entity, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get exports (asynchronously) * List all past exports - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param applicationId Filter results by Application ID. (optional) * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) @@ -10730,10 +12630,10 @@ public ApiResponse getExportsWithHttpInfo(Integer pageSize, 200 OK - */ - public okhttp3.Call getExportsAsync(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getExportsAsync(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getExportsValidateBeforeCall(pageSize, skip, applicationId, campaignId, entity, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -10874,9 +12774,9 @@ public okhttp3.Call getLoyaltyCardAsync(Integer loyaltyProgramId, String loyalty * Build call for getLoyaltyCardTransactionLogs * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param _callback Callback for upload/download progress @@ -10965,12 +12865,12 @@ private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Integer loy * Retrieve the transaction logs for the given [loyalty card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) within the specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned. * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @return InlineResponse20015 + * @return InlineResponse20016 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10980,8 +12880,8 @@ private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Integer loy
404 Not found -
*/ - public InlineResponse20015 getLoyaltyCardTransactionLogs(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId) throws ApiException { - ApiResponse localVarResp = getLoyaltyCardTransactionLogsWithHttpInfo(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); + public InlineResponse20016 getLoyaltyCardTransactionLogs(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId) throws ApiException { + ApiResponse localVarResp = getLoyaltyCardTransactionLogsWithHttpInfo(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); return localVarResp.getData(); } @@ -10990,12 +12890,12 @@ public InlineResponse20015 getLoyaltyCardTransactionLogs(Integer loyaltyProgramI * Retrieve the transaction logs for the given [loyalty card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) within the specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned. * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @return ApiResponse<InlineResponse20015> + * @return ApiResponse<InlineResponse20016> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11005,9 +12905,9 @@ public InlineResponse20015 getLoyaltyCardTransactionLogs(Integer loyaltyProgramI
404 Not found -
*/ - public ApiResponse getLoyaltyCardTransactionLogsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId) throws ApiException { + public ApiResponse getLoyaltyCardTransactionLogsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -11016,9 +12916,9 @@ public ApiResponse getLoyaltyCardTransactionLogsWithHttpInf * Retrieve the transaction logs for the given [loyalty card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) within the specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned. * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param _callback The callback to be executed when the API call finishes @@ -11032,17 +12932,17 @@ public ApiResponse getLoyaltyCardTransactionLogsWithHttpInf 404 Not found - */ - public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getLoyaltyCards * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param identifier Optional query parameter to search cards by identifier. (optional) @@ -11126,12 +13026,12 @@ private okhttp3.Call getLoyaltyCardsValidateBeforeCall(Integer loyaltyProgramId, * List loyalty cards * For the given card-based loyalty program, list the loyalty cards that match your filter criteria. * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param identifier Optional query parameter to search cards by identifier. (optional) * @param profileId Filter by the profile ID. (optional) - * @return InlineResponse20014 + * @return InlineResponse20015 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11141,8 +13041,8 @@ private okhttp3.Call getLoyaltyCardsValidateBeforeCall(Integer loyaltyProgramId,
401 Unauthorized -
*/ - public InlineResponse20014 getLoyaltyCards(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId) throws ApiException { - ApiResponse localVarResp = getLoyaltyCardsWithHttpInfo(loyaltyProgramId, pageSize, skip, sort, identifier, profileId); + public InlineResponse20015 getLoyaltyCards(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId) throws ApiException { + ApiResponse localVarResp = getLoyaltyCardsWithHttpInfo(loyaltyProgramId, pageSize, skip, sort, identifier, profileId); return localVarResp.getData(); } @@ -11150,12 +13050,12 @@ public InlineResponse20014 getLoyaltyCards(Integer loyaltyProgramId, Integer pag * List loyalty cards * For the given card-based loyalty program, list the loyalty cards that match your filter criteria. * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param identifier Optional query parameter to search cards by identifier. (optional) * @param profileId Filter by the profile ID. (optional) - * @return ApiResponse<InlineResponse20014> + * @return ApiResponse<InlineResponse20015> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11165,9 +13065,9 @@ public InlineResponse20014 getLoyaltyCards(Integer loyaltyProgramId, Integer pag
401 Unauthorized -
*/ - public ApiResponse getLoyaltyCardsWithHttpInfo(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId) throws ApiException { + public ApiResponse getLoyaltyCardsWithHttpInfo(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardsValidateBeforeCall(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -11175,7 +13075,7 @@ public ApiResponse getLoyaltyCardsWithHttpInfo(Integer loya * List loyalty cards (asynchronously) * For the given card-based loyalty program, list the loyalty cards that match your filter criteria. * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param identifier Optional query parameter to search cards by identifier. (optional) @@ -11191,10 +13091,10 @@ public ApiResponse getLoyaltyCardsWithHttpInfo(Integer loya 401 Unauthorized - */ - public okhttp3.Call getLoyaltyCardsAsync(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardsAsync(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardsValidateBeforeCall(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -11321,7 +13221,7 @@ public okhttp3.Call getLoyaltyPointsAsync(String loyaltyProgramId, String integr } /** * Build call for getLoyaltyProgram - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -11378,7 +13278,7 @@ private okhttp3.Call getLoyaltyProgramValidateBeforeCall(Integer loyaltyProgramI /** * Get loyalty program * Get the specified [loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview). To list all loyalty programs in your Application, use [List loyalty programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a customer profile is part of, use the [List customer data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory) - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @return LoyaltyProgram * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11395,7 +13295,7 @@ public LoyaltyProgram getLoyaltyProgram(Integer loyaltyProgramId) throws ApiExce /** * Get loyalty program * Get the specified [loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview). To list all loyalty programs in your Application, use [List loyalty programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a customer profile is part of, use the [List customer data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory) - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @return ApiResponse<LoyaltyProgram> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11413,7 +13313,7 @@ public ApiResponse getLoyaltyProgramWithHttpInfo(Integer loyalty /** * Get loyalty program (asynchronously) * Get the specified [loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview). To list all loyalty programs in your Application, use [List loyalty programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a customer profile is part of, use the [List customer data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory) - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -11432,12 +13332,12 @@ public okhttp3.Call getLoyaltyProgramAsync(Integer loyaltyProgramId, final ApiCa } /** * Build call for getLoyaltyProgramTransactions - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -11521,15 +13421,15 @@ private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Integer loy /** * List loyalty program transactions - * Retrieve all loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * Retrieve loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. **Note:** If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) - * @return InlineResponse20013 + * @return InlineResponse20014 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11540,22 +13440,22 @@ private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Integer loy
404 Not found -
*/ - public InlineResponse20013 getLoyaltyProgramTransactions(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { - ApiResponse localVarResp = getLoyaltyProgramTransactionsWithHttpInfo(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); + public InlineResponse20014 getLoyaltyProgramTransactions(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { + ApiResponse localVarResp = getLoyaltyProgramTransactionsWithHttpInfo(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); return localVarResp.getData(); } /** * List loyalty program transactions - * Retrieve all loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * Retrieve loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. **Note:** If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) - * @return ApiResponse<InlineResponse20013> + * @return ApiResponse<InlineResponse20014> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11566,21 +13466,21 @@ public InlineResponse20013 getLoyaltyProgramTransactions(Integer loyaltyProgramI
404 Not found -
*/ - public ApiResponse getLoyaltyProgramTransactionsWithHttpInfo(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { + public ApiResponse getLoyaltyProgramTransactionsWithHttpInfo(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List loyalty program transactions (asynchronously) - * Retrieve all loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * Retrieve loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. **Note:** If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in this response. (optional, default to 50) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -11594,10 +13494,10 @@ public ApiResponse getLoyaltyProgramTransactionsWithHttpInf 404 Not found - */ - public okhttp3.Call getLoyaltyProgramTransactionsAsync(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramTransactionsAsync(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -11653,7 +13553,7 @@ private okhttp3.Call getLoyaltyProgramsValidateBeforeCall(final ApiCallback _cal /** * List loyalty programs * List the loyalty programs of the account. - * @return InlineResponse20012 + * @return InlineResponse20013 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11661,15 +13561,15 @@ private okhttp3.Call getLoyaltyProgramsValidateBeforeCall(final ApiCallback _cal
200 OK -
*/ - public InlineResponse20012 getLoyaltyPrograms() throws ApiException { - ApiResponse localVarResp = getLoyaltyProgramsWithHttpInfo(); + public InlineResponse20013 getLoyaltyPrograms() throws ApiException { + ApiResponse localVarResp = getLoyaltyProgramsWithHttpInfo(); return localVarResp.getData(); } /** * List loyalty programs * List the loyalty programs of the account. - * @return ApiResponse<InlineResponse20012> + * @return ApiResponse<InlineResponse20013> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11677,9 +13577,9 @@ public InlineResponse20012 getLoyaltyPrograms() throws ApiException {
200 OK -
*/ - public ApiResponse getLoyaltyProgramsWithHttpInfo() throws ApiException { + public ApiResponse getLoyaltyProgramsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramsValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -11695,16 +13595,16 @@ public ApiResponse getLoyaltyProgramsWithHttpInfo() throws 200 OK - */ - public okhttp3.Call getLoyaltyProgramsAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramsAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramsValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getLoyaltyStatistics - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -11761,7 +13661,7 @@ private okhttp3.Call getLoyaltyStatisticsValidateBeforeCall(Integer loyaltyProgr /** * Get loyalty program statistics * Retrieve the statistics of the specified loyalty program such as the total active points, pending points, spent points, and expired points. **Important:** The returned data does not include the current day. All statistics are updated daily at 11:59 PM in the loyalty program time zone. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @return LoyaltyDashboardData * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11778,7 +13678,7 @@ public LoyaltyDashboardData getLoyaltyStatistics(Integer loyaltyProgramId) throw /** * Get loyalty program statistics * Retrieve the statistics of the specified loyalty program such as the total active points, pending points, spent points, and expired points. **Important:** The returned data does not include the current day. All statistics are updated daily at 11:59 PM in the loyalty program time zone. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @return ApiResponse<LoyaltyDashboardData> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11796,7 +13696,7 @@ public ApiResponse getLoyaltyStatisticsWithHttpInfo(Intege /** * Get loyalty program statistics (asynchronously) * Retrieve the statistics of the specified loyalty program such as the total active points, pending points, spent points, and expired points. **Important:** The returned data does not include the current day. All statistics are updated daily at 11:59 PM in the loyalty program time zone. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -11817,7 +13717,7 @@ public okhttp3.Call getLoyaltyStatisticsAsync(Integer loyaltyProgramId, final Ap * Build call for getReferralsWithoutTotalCount * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -11926,7 +13826,7 @@ private okhttp3.Call getReferralsWithoutTotalCountValidateBeforeCall(Integer app * List all referrals of the specified campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -11953,7 +13853,7 @@ public InlineResponse20010 getReferralsWithoutTotalCount(Integer applicationId, * List all referrals of the specified campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -11981,7 +13881,7 @@ public ApiResponse getReferralsWithoutTotalCountWithHttpInf * List all referrals of the specified campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -12008,7 +13908,7 @@ public okhttp3.Call getReferralsWithoutTotalCountAsync(Integer applicationId, In } /** * Build call for getRole - * @param roleId The ID of role. (required) + * @param roleId ID of role. **Note**: To find the ID of a role, use the [List roles](https://docs.talon.one/management-api#tag/Roles/operation/getAllRoles) endpoint. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -12065,7 +13965,7 @@ private okhttp3.Call getRoleValidateBeforeCall(Integer roleId, final ApiCallback /** * Get role * Get the details of a specific role. To see all the roles, use [List roles](#operation/getAllRoles). - * @param roleId The ID of role. (required) + * @param roleId ID of role. **Note**: To find the ID of a role, use the [List roles](https://docs.talon.one/management-api#tag/Roles/operation/getAllRoles) endpoint. (required) * @return Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -12082,7 +13982,7 @@ public Role getRole(Integer roleId) throws ApiException { /** * Get role * Get the details of a specific role. To see all the roles, use [List roles](#operation/getAllRoles). - * @param roleId The ID of role. (required) + * @param roleId ID of role. **Note**: To find the ID of a role, use the [List roles](https://docs.talon.one/management-api#tag/Roles/operation/getAllRoles) endpoint. (required) * @return ApiResponse<Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -12100,7 +14000,7 @@ public ApiResponse getRoleWithHttpInfo(Integer roleId) throws ApiException /** * Get role (asynchronously) * Get the details of a specific role. To see all the roles, use [List roles](#operation/getAllRoles). - * @param roleId The ID of role. (required) + * @param roleId ID of role. **Note**: To find the ID of a role, use the [List roles](https://docs.talon.one/management-api#tag/Roles/operation/getAllRoles) endpoint. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -12252,7 +14152,7 @@ public okhttp3.Call getRulesetAsync(Integer applicationId, Integer campaignId, I * Build call for getRulesets * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback Callback for upload/download progress @@ -12331,7 +14231,7 @@ private okhttp3.Call getRulesetsValidateBeforeCall(Integer applicationId, Intege * List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign. **Important:** The response also includes deleted rules. You should only consider the latest revision of the returned rulesets. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return InlineResponse2007 @@ -12352,7 +14252,7 @@ public InlineResponse2007 getRulesets(Integer applicationId, Integer campaignId, * List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign. **Important:** The response also includes deleted rules. You should only consider the latest revision of the returned rulesets. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @return ApiResponse<InlineResponse2007> @@ -12374,7 +14274,7 @@ public ApiResponse getRulesetsWithHttpInfo(Integer applicati * List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign. **Important:** The response also includes deleted rules. You should only consider the latest revision of the returned rulesets. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback The callback to be executed when the API call finishes @@ -12631,7 +14531,7 @@ public okhttp3.Call getUserAsync(Integer userId, final ApiCallback _callba } /** * Build call for getUsers - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback Callback for upload/download progress @@ -12696,10 +14596,10 @@ private okhttp3.Call getUsersValidateBeforeCall(Integer pageSize, Integer skip, /** * List users in account * Retrieve all users in your account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @return InlineResponse20039 + * @return InlineResponse20041 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -12707,18 +14607,18 @@ private okhttp3.Call getUsersValidateBeforeCall(Integer pageSize, Integer skip,
200 OK -
*/ - public InlineResponse20039 getUsers(Integer pageSize, Integer skip, String sort) throws ApiException { - ApiResponse localVarResp = getUsersWithHttpInfo(pageSize, skip, sort); + public InlineResponse20041 getUsers(Integer pageSize, Integer skip, String sort) throws ApiException { + ApiResponse localVarResp = getUsersWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } /** * List users in account * Retrieve all users in your account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @return ApiResponse<InlineResponse20039> + * @return ApiResponse<InlineResponse20041> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -12726,16 +14626,16 @@ public InlineResponse20039 getUsers(Integer pageSize, Integer skip, String sort)
200 OK -
*/ - public ApiResponse getUsersWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { + public ApiResponse getUsersWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getUsersValidateBeforeCall(pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List users in account (asynchronously) * Retrieve all users in your account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param _callback The callback to be executed when the API call finishes @@ -12747,10 +14647,10 @@ public ApiResponse getUsersWithHttpInfo(Integer pageSize, I 200 OK - */ - public okhttp3.Call getUsersAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUsersAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUsersValidateBeforeCall(pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -12867,7 +14767,7 @@ public okhttp3.Call getWebhookAsync(Integer webhookId, final ApiCallback @@ -12979,15 +14879,15 @@ private okhttp3.Call getWebhookActivationLogsValidateBeforeCall(Integer pageSize 200 OK - */ - public InlineResponse20036 getWebhookActivationLogs(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { - ApiResponse localVarResp = getWebhookActivationLogsWithHttpInfo(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter); + public InlineResponse20038 getWebhookActivationLogs(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + ApiResponse localVarResp = getWebhookActivationLogsWithHttpInfo(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter); return localVarResp.getData(); } /** * List webhook activation log entries * Webhook activation log entries are created as soon as an integration request triggers a webhook effect. See the [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param integrationRequestUuid Filter results by integration request UUID. (optional) @@ -12996,7 +14896,7 @@ public InlineResponse20036 getWebhookActivationLogs(Integer pageSize, Integer sk * @param campaignId Filter results by campaign. (optional) * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @return ApiResponse<InlineResponse20036> + * @return ApiResponse<InlineResponse20038> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13004,16 +14904,16 @@ public InlineResponse20036 getWebhookActivationLogs(Integer pageSize, Integer sk
200 OK -
*/ - public ApiResponse getWebhookActivationLogsWithHttpInfo(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + public ApiResponse getWebhookActivationLogsWithHttpInfo(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { okhttp3.Call localVarCall = getWebhookActivationLogsValidateBeforeCall(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List webhook activation log entries (asynchronously) * Webhook activation log entries are created as soon as an integration request triggers a webhook effect. See the [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param integrationRequestUuid Filter results by integration request UUID. (optional) @@ -13031,16 +14931,16 @@ public ApiResponse getWebhookActivationLogsWithHttpInfo(Int 200 OK - */ - public okhttp3.Call getWebhookActivationLogsAsync(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhookActivationLogsAsync(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookActivationLogsValidateBeforeCall(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getWebhookLogs - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param status Filter results by HTTP status codes. (optional) @@ -13140,7 +15040,7 @@ private okhttp3.Call getWebhookLogsValidateBeforeCall(Integer pageSize, Integer /** * List webhook log entries * Retrieve all webhook log entries. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param status Filter results by HTTP status codes. (optional) @@ -13150,7 +15050,7 @@ private okhttp3.Call getWebhookLogsValidateBeforeCall(Integer pageSize, Integer * @param requestUuid Filter results by request UUID. (optional) * @param createdBefore Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) * @param createdAfter Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @return InlineResponse20037 + * @return InlineResponse20039 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13158,15 +15058,15 @@ private okhttp3.Call getWebhookLogsValidateBeforeCall(Integer pageSize, Integer
200 OK -
*/ - public InlineResponse20037 getWebhookLogs(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { - ApiResponse localVarResp = getWebhookLogsWithHttpInfo(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter); + public InlineResponse20039 getWebhookLogs(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + ApiResponse localVarResp = getWebhookLogsWithHttpInfo(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter); return localVarResp.getData(); } /** * List webhook log entries * Retrieve all webhook log entries. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param status Filter results by HTTP status codes. (optional) @@ -13176,7 +15076,7 @@ public InlineResponse20037 getWebhookLogs(Integer pageSize, Integer skip, String * @param requestUuid Filter results by request UUID. (optional) * @param createdBefore Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) * @param createdAfter Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @return ApiResponse<InlineResponse20037> + * @return ApiResponse<InlineResponse20039> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13184,16 +15084,16 @@ public InlineResponse20037 getWebhookLogs(Integer pageSize, Integer skip, String
200 OK -
*/ - public ApiResponse getWebhookLogsWithHttpInfo(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + public ApiResponse getWebhookLogsWithHttpInfo(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { okhttp3.Call localVarCall = getWebhookLogsValidateBeforeCall(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List webhook log entries (asynchronously) * Retrieve all webhook log entries. - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param status Filter results by HTTP status codes. (optional) @@ -13212,10 +15112,10 @@ public ApiResponse getWebhookLogsWithHttpInfo(Integer pageS 200 OK - */ - public okhttp3.Call getWebhookLogsAsync(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhookLogsAsync(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookLogsValidateBeforeCall(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -13223,7 +15123,7 @@ public okhttp3.Call getWebhookLogsAsync(Integer pageSize, Integer skip, String s * Build call for getWebhooks * @param applicationIds Filter by one or more Application IDs, separated by a comma. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param creationType Filter results by creation type. (optional) * @param visibility Filter results by visibility. (optional) @@ -13313,13 +15213,13 @@ private okhttp3.Call getWebhooksValidateBeforeCall(String applicationIds, String * List all webhooks. * @param applicationIds Filter by one or more Application IDs, separated by a comma. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param creationType Filter results by creation type. (optional) * @param visibility Filter results by visibility. (optional) * @param outgoingIntegrationsTypeId Filter results by outgoing integration type ID. (optional) * @param title Filter results performing case-insensitive matching against the webhook title. (optional) - * @return InlineResponse20035 + * @return InlineResponse20037 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13327,8 +15227,8 @@ private okhttp3.Call getWebhooksValidateBeforeCall(String applicationIds, String
200 OK -
*/ - public InlineResponse20035 getWebhooks(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title) throws ApiException { - ApiResponse localVarResp = getWebhooksWithHttpInfo(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); + public InlineResponse20037 getWebhooks(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title) throws ApiException { + ApiResponse localVarResp = getWebhooksWithHttpInfo(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); return localVarResp.getData(); } @@ -13337,13 +15237,13 @@ public InlineResponse20035 getWebhooks(String applicationIds, String sort, Integ * List all webhooks. * @param applicationIds Filter by one or more Application IDs, separated by a comma. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param creationType Filter results by creation type. (optional) * @param visibility Filter results by visibility. (optional) * @param outgoingIntegrationsTypeId Filter results by outgoing integration type ID. (optional) * @param title Filter results performing case-insensitive matching against the webhook title. (optional) - * @return ApiResponse<InlineResponse20035> + * @return ApiResponse<InlineResponse20037> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13351,9 +15251,9 @@ public InlineResponse20035 getWebhooks(String applicationIds, String sort, Integ
200 OK -
*/ - public ApiResponse getWebhooksWithHttpInfo(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title) throws ApiException { + public ApiResponse getWebhooksWithHttpInfo(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title) throws ApiException { okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13362,7 +15262,7 @@ public ApiResponse getWebhooksWithHttpInfo(String applicati * List all webhooks. * @param applicationIds Filter by one or more Application IDs, separated by a comma. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param creationType Filter results by creation type. (optional) * @param visibility Filter results by visibility. (optional) @@ -13377,17 +15277,17 @@ public ApiResponse getWebhooksWithHttpInfo(String applicati 200 OK - */ - public okhttp3.Call getWebhooksAsync(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhooksAsync(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for importAccountCollection * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -13451,7 +15351,7 @@ private okhttp3.Call importAccountCollectionValidateBeforeCall(Integer collectio * Import data into existing account-level collection * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13471,7 +15371,7 @@ public ModelImport importAccountCollection(Integer collectionId, String upFile) * Import data into existing account-level collection * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13492,7 +15392,7 @@ public ApiResponse importAccountCollectionWithHttpInfo(Integer coll * Import data into existing account-level collection (asynchronously) * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -13514,7 +15414,7 @@ public okhttp3.Call importAccountCollectionAsync(Integer collectionId, String up /** * Build call for importAllowedList * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -13579,7 +15479,7 @@ private okhttp3.Call importAllowedListValidateBeforeCall(Integer attributeId, St * Import allowed values for attribute * Upload a CSV file containing a list of [picklist values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) for the specified attribute. The file should be sent as multipart data. The import **replaces** the previous list of allowed values for this attribute, if any. The CSV file **must** only contain the following column: - `item` (required): the values in your allowed list, for example a list of SKU's. An allowed list is limited to 500,000 items. Example: ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 CS-DG-02082021-UP-50G-07 ``` * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13600,7 +15500,7 @@ public ModelImport importAllowedList(Integer attributeId, String upFile) throws * Import allowed values for attribute * Upload a CSV file containing a list of [picklist values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) for the specified attribute. The file should be sent as multipart data. The import **replaces** the previous list of allowed values for this attribute, if any. The CSV file **must** only contain the following column: - `item` (required): the values in your allowed list, for example a list of SKU's. An allowed list is limited to 500,000 items. Example: ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 CS-DG-02082021-UP-50G-07 ``` * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13622,7 +15522,7 @@ public ApiResponse importAllowedListWithHttpInfo(Integer attributeI * Import allowed values for attribute (asynchronously) * Upload a CSV file containing a list of [picklist values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) for the specified attribute. The file should be sent as multipart data. The import **replaces** the previous list of allowed values for this attribute, if any. The CSV file **must** only contain the following column: - `item` (required): the values in your allowed list, for example a list of SKU's. An allowed list is limited to 500,000 items. Example: ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 CS-DG-02082021-UP-50G-07 ``` * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -13642,12 +15542,143 @@ public okhttp3.Call importAllowedListAsync(Integer attributeId, String upFile, f localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for importAudiencesMemberships + * @param audienceId The ID of the audience. (required) + * @param upFile The file containing the data that is being imported. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ */ + public okhttp3.Call importAudiencesMembershipsCall(Integer audienceId, String upFile, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/audiences/{audienceId}/memberships/import" + .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (upFile != null) { + localVarFormParams.put("upFile", upFile); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "multipart/form-data" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call importAudiencesMembershipsValidateBeforeCall(Integer audienceId, String upFile, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'audienceId' is set + if (audienceId == null) { + throw new ApiException("Missing the required parameter 'audienceId' when calling importAudiencesMemberships(Async)"); + } + + + okhttp3.Call localVarCall = importAudiencesMembershipsCall(audienceId, upFile, _callback); + return localVarCall; + + } + + /** + * Import audience members + * Upload a CSV file containing the integration IDs of the members you want to add to an audience. The file should be sent as multipart data and should contain only the following column (required): - `profileintegrationid`: The integration ID of the customer profile. The import **replaces** the previous list of audience members. **Note:** We recommend limiting your file size to 500MB. Example: ```text profileintegrationid charles alexa ``` + * @param audienceId The ID of the audience. (required) + * @param upFile The file containing the data that is being imported. (optional) + * @return ModelImport + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ */ + public ModelImport importAudiencesMemberships(Integer audienceId, String upFile) throws ApiException { + ApiResponse localVarResp = importAudiencesMembershipsWithHttpInfo(audienceId, upFile); + return localVarResp.getData(); + } + + /** + * Import audience members + * Upload a CSV file containing the integration IDs of the members you want to add to an audience. The file should be sent as multipart data and should contain only the following column (required): - `profileintegrationid`: The integration ID of the customer profile. The import **replaces** the previous list of audience members. **Note:** We recommend limiting your file size to 500MB. Example: ```text profileintegrationid charles alexa ``` + * @param audienceId The ID of the audience. (required) + * @param upFile The file containing the data that is being imported. (optional) + * @return ApiResponse<ModelImport> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ */ + public ApiResponse importAudiencesMembershipsWithHttpInfo(Integer audienceId, String upFile) throws ApiException { + okhttp3.Call localVarCall = importAudiencesMembershipsValidateBeforeCall(audienceId, upFile, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Import audience members (asynchronously) + * Upload a CSV file containing the integration IDs of the members you want to add to an audience. The file should be sent as multipart data and should contain only the following column (required): - `profileintegrationid`: The integration ID of the customer profile. The import **replaces** the previous list of audience members. **Note:** We recommend limiting your file size to 500MB. Example: ```text profileintegrationid charles alexa ``` + * @param audienceId The ID of the audience. (required) + * @param upFile The file containing the data that is being imported. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ */ + public okhttp3.Call importAudiencesMembershipsAsync(Integer audienceId, String upFile, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = importAudiencesMembershipsValidateBeforeCall(audienceId, upFile, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for importCollection * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -13724,7 +15755,7 @@ private okhttp3.Call importCollectionValidateBeforeCall(Integer applicationId, I * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13745,7 +15776,7 @@ public ModelImport importCollection(Integer applicationId, Integer campaignId, I * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13767,7 +15798,7 @@ public ApiResponse importCollectionWithHttpInfo(Integer application * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -13789,7 +15820,8 @@ public okhttp3.Call importCollectionAsync(Integer applicationId, Integer campaig * Build call for importCoupons * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -13799,7 +15831,7 @@ public okhttp3.Call importCollectionAsync(Integer applicationId, Integer campaig 200 OK - */ - public okhttp3.Call importCouponsCall(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importCouponsCall(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -13809,6 +15841,10 @@ public okhttp3.Call importCouponsCall(Integer applicationId, Integer campaignId, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (skipDuplicates != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("skipDuplicates", skipDuplicates)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -13835,7 +15871,7 @@ public okhttp3.Call importCouponsCall(Integer applicationId, Integer campaignId, } @SuppressWarnings("rawtypes") - private okhttp3.Call importCouponsValidateBeforeCall(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importCouponsValidateBeforeCall(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -13848,7 +15884,7 @@ private okhttp3.Call importCouponsValidateBeforeCall(Integer applicationId, Inte } - okhttp3.Call localVarCall = importCouponsCall(applicationId, campaignId, upFile, _callback); + okhttp3.Call localVarCall = importCouponsCall(applicationId, campaignId, skipDuplicates, upFile, _callback); return localVarCall; } @@ -13858,7 +15894,8 @@ private okhttp3.Call importCouponsValidateBeforeCall(Integer applicationId, Inte * Upload a CSV file containing the coupons that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `value` (required): The coupon code. - `expirydate`: The end date in RFC3339 of the code redemption period. - `startdate`: The start date in RFC3339 of the code redemption period. - `recipientintegrationid`: The integration ID of the customer who receives the coupon. Only the customer with this integration ID can redeem the corresponding coupon code. Learn about [coupon reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). - `limitval`: The maximum number of redemptions of this code. For unlimited redemptions, use `0`. Defaults to `1` when not provided. - `discountlimit`: The total discount value that the code can give. This is typically used to represent a gift card value. - `attributes`: A JSON object describing _custom_ coupon attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the coupon entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": \"\"10_off\"\"}\",2.4 ``` Once imported, you can find the `batchId` in the Campaign Manager or by using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13867,8 +15904,8 @@ private okhttp3.Call importCouponsValidateBeforeCall(Integer applicationId, Inte 200 OK - */ - public ModelImport importCoupons(Integer applicationId, Integer campaignId, String upFile) throws ApiException { - ApiResponse localVarResp = importCouponsWithHttpInfo(applicationId, campaignId, upFile); + public ModelImport importCoupons(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile) throws ApiException { + ApiResponse localVarResp = importCouponsWithHttpInfo(applicationId, campaignId, skipDuplicates, upFile); return localVarResp.getData(); } @@ -13877,7 +15914,8 @@ public ModelImport importCoupons(Integer applicationId, Integer campaignId, Stri * Upload a CSV file containing the coupons that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `value` (required): The coupon code. - `expirydate`: The end date in RFC3339 of the code redemption period. - `startdate`: The start date in RFC3339 of the code redemption period. - `recipientintegrationid`: The integration ID of the customer who receives the coupon. Only the customer with this integration ID can redeem the corresponding coupon code. Learn about [coupon reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). - `limitval`: The maximum number of redemptions of this code. For unlimited redemptions, use `0`. Defaults to `1` when not provided. - `discountlimit`: The total discount value that the code can give. This is typically used to represent a gift card value. - `attributes`: A JSON object describing _custom_ coupon attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the coupon entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": \"\"10_off\"\"}\",2.4 ``` Once imported, you can find the `batchId` in the Campaign Manager or by using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13886,8 +15924,8 @@ public ModelImport importCoupons(Integer applicationId, Integer campaignId, Stri 200 OK - */ - public ApiResponse importCouponsWithHttpInfo(Integer applicationId, Integer campaignId, String upFile) throws ApiException { - okhttp3.Call localVarCall = importCouponsValidateBeforeCall(applicationId, campaignId, upFile, null); + public ApiResponse importCouponsWithHttpInfo(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile) throws ApiException { + okhttp3.Call localVarCall = importCouponsValidateBeforeCall(applicationId, campaignId, skipDuplicates, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13897,7 +15935,8 @@ public ApiResponse importCouponsWithHttpInfo(Integer applicationId, * Upload a CSV file containing the coupons that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `value` (required): The coupon code. - `expirydate`: The end date in RFC3339 of the code redemption period. - `startdate`: The start date in RFC3339 of the code redemption period. - `recipientintegrationid`: The integration ID of the customer who receives the coupon. Only the customer with this integration ID can redeem the corresponding coupon code. Learn about [coupon reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). - `limitval`: The maximum number of redemptions of this code. For unlimited redemptions, use `0`. Defaults to `1` when not provided. - `discountlimit`: The total discount value that the code can give. This is typically used to represent a gift card value. - `attributes`: A JSON object describing _custom_ coupon attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the coupon entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": \"\"10_off\"\"}\",2.4 ``` Once imported, you can find the `batchId` in the Campaign Manager or by using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -13907,9 +15946,9 @@ public ApiResponse importCouponsWithHttpInfo(Integer applicationId, 200 OK - */ - public okhttp3.Call importCouponsAsync(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importCouponsAsync(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = importCouponsValidateBeforeCall(applicationId, campaignId, upFile, _callback); + okhttp3.Call localVarCall = importCouponsValidateBeforeCall(applicationId, campaignId, skipDuplicates, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -13917,7 +15956,7 @@ public okhttp3.Call importCouponsAsync(Integer applicationId, Integer campaignId /** * Build call for importLoyaltyCards * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -13981,7 +16020,7 @@ private okhttp3.Call importLoyaltyCardsValidateBeforeCall(Integer loyaltyProgram * Import loyalty cards * Upload a CSV file containing the loyalty cards that you want to use in your card-based loyalty program. Send the file as multipart data. It contains the following columns for each card: - `identifier` (required): The alphanumeric identifier of the loyalty card. - `state` (required): The state of the loyalty card. It can be `active` or `inactive`. - `customerprofileids` (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14001,7 +16040,7 @@ public ModelImport importLoyaltyCards(Integer loyaltyProgramId, String upFile) t * Import loyalty cards * Upload a CSV file containing the loyalty cards that you want to use in your card-based loyalty program. Send the file as multipart data. It contains the following columns for each card: - `identifier` (required): The alphanumeric identifier of the loyalty card. - `state` (required): The state of the loyalty card. It can be `active` or `inactive`. - `customerprofileids` (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14022,7 +16061,7 @@ public ApiResponse importLoyaltyCardsWithHttpInfo(Integer loyaltyPr * Import loyalty cards (asynchronously) * Upload a CSV file containing the loyalty cards that you want to use in your card-based loyalty program. Send the file as multipart data. It contains the following columns for each card: - `identifier` (required): The alphanumeric identifier of the loyalty card. - `state` (required): The state of the loyalty card. It can be `active` or `inactive`. - `customerprofileids` (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -14043,8 +16082,8 @@ public okhttp3.Call importLoyaltyCardsAsync(Integer loyaltyProgramId, String upF } /** * Build call for importLoyaltyCustomersTiers - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -14107,9 +16146,9 @@ private okhttp3.Call importLoyaltyCustomersTiersValidateBeforeCall(Integer loyal /** * Import customers into loyalty tiers - * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in a tier, the customer is assigned to match the new information provided in the CSV file. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. **Note:** We recommend not using this endpoint to update the tier of a customer. To update a customer's tier, you can [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their loyalty points. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14128,9 +16167,9 @@ public ModelImport importLoyaltyCustomersTiers(Integer loyaltyProgramId, String /** * Import customers into loyalty tiers - * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in a tier, the customer is assigned to match the new information provided in the CSV file. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. **Note:** We recommend not using this endpoint to update the tier of a customer. To update a customer's tier, you can [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their loyalty points. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14150,9 +16189,9 @@ public ApiResponse importLoyaltyCustomersTiersWithHttpInfo(Integer /** * Import customers into loyalty tiers (asynchronously) - * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in a tier, the customer is assigned to match the new information provided in the CSV file. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. **Note:** We recommend not using this endpoint to update the tier of a customer. To update a customer's tier, you can [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their loyalty points. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -14174,8 +16213,8 @@ public okhttp3.Call importLoyaltyCustomersTiersAsync(Integer loyaltyProgramId, S } /** * Build call for importLoyaltyPoints - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -14235,9 +16274,9 @@ private okhttp3.Call importLoyaltyPointsValidateBeforeCall(Integer loyaltyProgra /** * Import loyalty points - * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the loyalty program type, you can import the points into a given customer profile or into a given _active_ loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14253,9 +16292,9 @@ public ModelImport importLoyaltyPoints(Integer loyaltyProgramId, String upFile) /** * Import loyalty points - * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the loyalty program type, you can import the points into a given customer profile or into a given _active_ loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14272,9 +16311,9 @@ public ApiResponse importLoyaltyPointsWithHttpInfo(Integer loyaltyP /** * Import loyalty points (asynchronously) - * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the loyalty program type, you can import the points into a given customer profile or into a given _active_ loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -14294,7 +16333,7 @@ public okhttp3.Call importLoyaltyPointsAsync(Integer loyaltyProgramId, String up /** * Build call for importPoolGiveaways * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -14356,7 +16395,7 @@ private okhttp3.Call importPoolGiveawaysValidateBeforeCall(Integer poolId, Strin * Import giveaway codes into a giveaway pool * Upload a CSV file containing the giveaway codes that should be created. Send the file as multipart data. The CSV file contains the following columns: - `code` (required): The code of your giveaway, for instance, a gift card redemption code. - `startdate`: The start date in RFC3339 of the code redemption period. - `enddate`: The last date in RFC3339 of the code redemption period. - `attributes`: A JSON object describing _custom_ giveaway attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `provider` associated with the giveaway entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"provider\": \"myPartnerCompany\"}\"`. The `startdate` and `enddate` have nothing to do with the _validity_ of the codes. They are only used by the Rule Engine to award the codes or not. You can use the time zone setting of your choice. The values are converted to UTC internally by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - You can import the same code multiple times. Duplicate codes are treated and distributed to customers as unique codes. **Example:** ```text code,startdate,enddate,attributes GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Aliexpress\"\"}\" ``` * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14374,7 +16413,7 @@ public ModelImport importPoolGiveaways(Integer poolId, String upFile) throws Api * Import giveaway codes into a giveaway pool * Upload a CSV file containing the giveaway codes that should be created. Send the file as multipart data. The CSV file contains the following columns: - `code` (required): The code of your giveaway, for instance, a gift card redemption code. - `startdate`: The start date in RFC3339 of the code redemption period. - `enddate`: The last date in RFC3339 of the code redemption period. - `attributes`: A JSON object describing _custom_ giveaway attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `provider` associated with the giveaway entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"provider\": \"myPartnerCompany\"}\"`. The `startdate` and `enddate` have nothing to do with the _validity_ of the codes. They are only used by the Rule Engine to award the codes or not. You can use the time zone setting of your choice. The values are converted to UTC internally by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - You can import the same code multiple times. Duplicate codes are treated and distributed to customers as unique codes. **Example:** ```text code,startdate,enddate,attributes GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Aliexpress\"\"}\" ``` * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14393,7 +16432,7 @@ public ApiResponse importPoolGiveawaysWithHttpInfo(Integer poolId, * Import giveaway codes into a giveaway pool (asynchronously) * Upload a CSV file containing the giveaway codes that should be created. Send the file as multipart data. The CSV file contains the following columns: - `code` (required): The code of your giveaway, for instance, a gift card redemption code. - `startdate`: The start date in RFC3339 of the code redemption period. - `enddate`: The last date in RFC3339 of the code redemption period. - `attributes`: A JSON object describing _custom_ giveaway attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `provider` associated with the giveaway entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"provider\": \"myPartnerCompany\"}\"`. The `startdate` and `enddate` have nothing to do with the _validity_ of the codes. They are only used by the Rule Engine to award the codes or not. You can use the time zone setting of your choice. The values are converted to UTC internally by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - You can import the same code multiple times. Duplicate codes are treated and distributed to customers as unique codes. **Example:** ```text code,startdate,enddate,attributes GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Aliexpress\"\"}\" ``` * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -14414,7 +16453,7 @@ public okhttp3.Call importPoolGiveawaysAsync(Integer poolId, String upFile, fina * Build call for importReferrals * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -14483,7 +16522,7 @@ private okhttp3.Call importReferralsValidateBeforeCall(Integer applicationId, In * Upload a CSV file containing the referrals that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `code` (required): The referral code. - `advocateprofileintegrationid` (required): The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A JSON object describing _custom_ referral attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the referral entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Important:** When you import a CSV file with referrals, a [customer profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) is **not** automatically created for each `advocateprofileintegrationid` column value. Use the [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint or the [Update multiple customer profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) endpoint to create the customer profiles. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": \"\"10_off\"\"}\" REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": \"\"20_off\"\"}\" ``` * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14502,7 +16541,7 @@ public ModelImport importReferrals(Integer applicationId, Integer campaignId, St * Upload a CSV file containing the referrals that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `code` (required): The referral code. - `advocateprofileintegrationid` (required): The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A JSON object describing _custom_ referral attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the referral entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Important:** When you import a CSV file with referrals, a [customer profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) is **not** automatically created for each `advocateprofileintegrationid` column value. Use the [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint or the [Update multiple customer profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) endpoint to create the customer profiles. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": \"\"10_off\"\"}\" REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": \"\"20_off\"\"}\" ``` * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14518,11 +16557,161 @@ public ApiResponse importReferralsWithHttpInfo(Integer applicationI } /** - * Import referrals (asynchronously) - * Upload a CSV file containing the referrals that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `code` (required): The referral code. - `advocateprofileintegrationid` (required): The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A JSON object describing _custom_ referral attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the referral entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Important:** When you import a CSV file with referrals, a [customer profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) is **not** automatically created for each `advocateprofileintegrationid` column value. Use the [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint or the [Update multiple customer profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) endpoint to create the customer profiles. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": \"\"10_off\"\"}\" REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": \"\"20_off\"\"}\" ``` - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file with the information about the data that should be imported. (optional) + * Import referrals (asynchronously) + * Upload a CSV file containing the referrals that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `code` (required): The referral code. - `advocateprofileintegrationid` (required): The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A JSON object describing _custom_ referral attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the referral entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Important:** When you import a CSV file with referrals, a [customer profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) is **not** automatically created for each `advocateprofileintegrationid` column value. Use the [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint or the [Update multiple customer profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) endpoint to create the customer profiles. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": \"\"10_off\"\"}\" REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": \"\"20_off\"\"}\" ``` + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param upFile The file containing the data that is being imported. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call importReferralsAsync(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = importReferralsValidateBeforeCall(applicationId, campaignId, upFile, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listAccountCollections + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * @param name Filter by collection name. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ */ + public okhttp3.Call listAccountCollectionsCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/collections"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + + if (skip != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (withTotalResultSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("withTotalResultSize", withTotalResultSize)); + } + + if (name != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listAccountCollectionsValidateBeforeCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listAccountCollectionsCall(pageSize, skip, sort, withTotalResultSize, name, _callback); + return localVarCall; + + } + + /** + * List collections in account + * List account-level collections in the account. + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * @param name Filter by collection name. (optional) + * @return InlineResponse20017 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ */ + public InlineResponse20017 listAccountCollections(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + ApiResponse localVarResp = listAccountCollectionsWithHttpInfo(pageSize, skip, sort, withTotalResultSize, name); + return localVarResp.getData(); + } + + /** + * List collections in account + * List account-level collections in the account. + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * @param name Filter by collection name. (optional) + * @return ApiResponse<InlineResponse20017> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ */ + public ApiResponse listAccountCollectionsWithHttpInfo(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, name, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List collections in account (asynchronously) + * List account-level collections in the account. + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * @param name Filter by collection name. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -14530,22 +16719,25 @@ public ApiResponse importReferralsWithHttpInfo(Integer applicationI + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
*/ - public okhttp3.Call importReferralsAsync(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAccountCollectionsAsync(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = importReferralsValidateBeforeCall(applicationId, campaignId, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listAccountCollections - * @param pageSize The number of items in this response. (optional, default to 1000) + * Build call for listAchievements + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) + * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -14553,16 +16745,15 @@ public okhttp3.Call importReferralsAsync(Integer applicationId, Integer campaign - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
*/ - public okhttp3.Call listAccountCollectionsCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAchievementsCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/collections"; + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -14574,16 +16765,8 @@ public okhttp3.Call listAccountCollectionsCall(Integer pageSize, Integer skip, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); } - if (sort != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); - } - - if (withTotalResultSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("withTotalResultSize", withTotalResultSize)); - } - - if (name != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + if (title != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("title", title)); } Map localVarHeaderParams = new HashMap(); @@ -14608,71 +16791,75 @@ public okhttp3.Call listAccountCollectionsCall(Integer pageSize, Integer skip, S } @SuppressWarnings("rawtypes") - private okhttp3.Call listAccountCollectionsValidateBeforeCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listAchievementsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling listAchievements(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling listAchievements(Async)"); + } - okhttp3.Call localVarCall = listAccountCollectionsCall(pageSize, skip, sort, withTotalResultSize, name, _callback); + okhttp3.Call localVarCall = listAchievementsCall(applicationId, campaignId, pageSize, skip, title, _callback); return localVarCall; } /** - * List collections in account - * List account-level collections in the account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * List achievements + * List all the achievements for a specific campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) - * @return InlineResponse20016 + * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) + * @return InlineResponse20046 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
*/ - public InlineResponse20016 listAccountCollections(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - ApiResponse localVarResp = listAccountCollectionsWithHttpInfo(pageSize, skip, sort, withTotalResultSize, name); + public InlineResponse20046 listAchievements(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title) throws ApiException { + ApiResponse localVarResp = listAchievementsWithHttpInfo(applicationId, campaignId, pageSize, skip, title); return localVarResp.getData(); } /** - * List collections in account - * List account-level collections in the account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * List achievements + * List all the achievements for a specific campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) - * @return ApiResponse<InlineResponse20016> + * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) + * @return ApiResponse<InlineResponse20046> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
*/ - public ApiResponse listAccountCollectionsWithHttpInfo(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, name, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listAchievementsWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title) throws ApiException { + okhttp3.Call localVarCall = listAchievementsValidateBeforeCall(applicationId, campaignId, pageSize, skip, title, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * List collections in account (asynchronously) - * List account-level collections in the account. - * @param pageSize The number of items in this response. (optional, default to 1000) + * List achievements (asynchronously) + * List all the achievements for a specific campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) + * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -14680,25 +16867,23 @@ public ApiResponse listAccountCollectionsWithHttpInfo(Integ - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
*/ - public okhttp3.Call listAccountCollectionsAsync(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAchievementsAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, name, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listAchievementsValidateBeforeCall(applicationId, campaignId, pageSize, skip, title, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listCatalogItems * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku The SKU of the item. (optional) + * @param sku Filter results by one or more SKUs. Must be exact match. (optional) + * @param productNames Filter results by one or more product names. Must be exact match. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -14708,7 +16893,7 @@ public okhttp3.Call listAccountCollectionsAsync(Integer pageSize, Integer skip, 200 OK - */ - public okhttp3.Call listCatalogItemsCall(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, String sku, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCatalogItemsCall(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -14730,7 +16915,11 @@ public okhttp3.Call listCatalogItemsCall(Integer catalogId, Integer pageSize, In } if (sku != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sku", sku)); + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "sku", sku)); + } + + if (productNames != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "productNames", productNames)); } Map localVarHeaderParams = new HashMap(); @@ -14755,7 +16944,7 @@ public okhttp3.Call listCatalogItemsCall(Integer catalogId, Integer pageSize, In } @SuppressWarnings("rawtypes") - private okhttp3.Call listCatalogItemsValidateBeforeCall(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, String sku, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCatalogItemsValidateBeforeCall(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { // verify the required parameter 'catalogId' is set if (catalogId == null) { @@ -14763,7 +16952,7 @@ private okhttp3.Call listCatalogItemsValidateBeforeCall(Integer catalogId, Integ } - okhttp3.Call localVarCall = listCatalogItemsCall(catalogId, pageSize, skip, withTotalResultSize, sku, _callback); + okhttp3.Call localVarCall = listCatalogItemsCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, _callback); return localVarCall; } @@ -14772,11 +16961,12 @@ private okhttp3.Call listCatalogItemsValidateBeforeCall(Integer catalogId, Integ * List items in a catalog * Return a paginated list of cart items in the given catalog. * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku The SKU of the item. (optional) - * @return InlineResponse20033 + * @param sku Filter results by one or more SKUs. Must be exact match. (optional) + * @param productNames Filter results by one or more product names. Must be exact match. (optional) + * @return InlineResponse20035 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14784,8 +16974,8 @@ private okhttp3.Call listCatalogItemsValidateBeforeCall(Integer catalogId, Integ
200 OK -
*/ - public InlineResponse20033 listCatalogItems(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, String sku) throws ApiException { - ApiResponse localVarResp = listCatalogItemsWithHttpInfo(catalogId, pageSize, skip, withTotalResultSize, sku); + public InlineResponse20035 listCatalogItems(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames) throws ApiException { + ApiResponse localVarResp = listCatalogItemsWithHttpInfo(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); return localVarResp.getData(); } @@ -14793,11 +16983,12 @@ public InlineResponse20033 listCatalogItems(Integer catalogId, Integer pageSize, * List items in a catalog * Return a paginated list of cart items in the given catalog. * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku The SKU of the item. (optional) - * @return ApiResponse<InlineResponse20033> + * @param sku Filter results by one or more SKUs. Must be exact match. (optional) + * @param productNames Filter results by one or more product names. Must be exact match. (optional) + * @return ApiResponse<InlineResponse20035> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14805,9 +16996,9 @@ public InlineResponse20033 listCatalogItems(Integer catalogId, Integer pageSize,
200 OK -
*/ - public ApiResponse listCatalogItemsWithHttpInfo(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, String sku) throws ApiException { - okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, sku, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listCatalogItemsWithHttpInfo(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames) throws ApiException { + okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14815,10 +17006,11 @@ public ApiResponse listCatalogItemsWithHttpInfo(Integer cat * List items in a catalog (asynchronously) * Return a paginated list of cart items in the given catalog. * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku The SKU of the item. (optional) + * @param sku Filter results by one or more SKUs. Must be exact match. (optional) + * @param productNames Filter results by one or more product names. Must be exact match. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -14828,10 +17020,10 @@ public ApiResponse listCatalogItemsWithHttpInfo(Integer cat 200 OK - */ - public okhttp3.Call listCatalogItemsAsync(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, String sku, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCatalogItemsAsync(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, sku, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -14839,7 +17031,7 @@ public okhttp3.Call listCatalogItemsAsync(Integer catalogId, Integer pageSize, I * Build call for listCollections * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -14929,12 +17121,12 @@ private okhttp3.Call listCollectionsValidateBeforeCall(Integer applicationId, In * List collections in a given campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param name Filter by collection name. (optional) - * @return InlineResponse20018 + * @return InlineResponse20017 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14943,8 +17135,8 @@ private okhttp3.Call listCollectionsValidateBeforeCall(Integer applicationId, In
404 Not found -
*/ - public InlineResponse20018 listCollections(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - ApiResponse localVarResp = listCollectionsWithHttpInfo(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); + public InlineResponse20017 listCollections(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + ApiResponse localVarResp = listCollectionsWithHttpInfo(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); return localVarResp.getData(); } @@ -14953,12 +17145,12 @@ public InlineResponse20018 listCollections(Integer applicationId, Integer campai * List collections in a given campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param name Filter by collection name. (optional) - * @return ApiResponse<InlineResponse20018> + * @return ApiResponse<InlineResponse20017> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14967,9 +17159,9 @@ public InlineResponse20018 listCollections(Integer applicationId, Integer campai
404 Not found -
*/ - public ApiResponse listCollectionsWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + public ApiResponse listCollectionsWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14978,7 +17170,7 @@ public ApiResponse listCollectionsWithHttpInfo(Integer appl * List collections in a given campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -14993,17 +17185,17 @@ public ApiResponse listCollectionsWithHttpInfo(Integer appl 404 Not found - */ - public okhttp3.Call listCollectionsAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCollectionsAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listCollectionsInApplication * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -15086,12 +17278,12 @@ private okhttp3.Call listCollectionsInApplicationValidateBeforeCall(Integer appl * List collections in Application * List campaign-level collections from all campaigns in a given Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param name Filter by collection name. (optional) - * @return InlineResponse20018 + * @return InlineResponse20017 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -15100,8 +17292,8 @@ private okhttp3.Call listCollectionsInApplicationValidateBeforeCall(Integer appl
404 Not found -
*/ - public InlineResponse20018 listCollectionsInApplication(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - ApiResponse localVarResp = listCollectionsInApplicationWithHttpInfo(applicationId, pageSize, skip, sort, withTotalResultSize, name); + public InlineResponse20017 listCollectionsInApplication(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + ApiResponse localVarResp = listCollectionsInApplicationWithHttpInfo(applicationId, pageSize, skip, sort, withTotalResultSize, name); return localVarResp.getData(); } @@ -15109,12 +17301,12 @@ public InlineResponse20018 listCollectionsInApplication(Integer applicationId, I * List collections in Application * List campaign-level collections from all campaigns in a given Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param name Filter by collection name. (optional) - * @return ApiResponse<InlineResponse20018> + * @return ApiResponse<InlineResponse20017> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -15123,9 +17315,9 @@ public InlineResponse20018 listCollectionsInApplication(Integer applicationId, I
404 Not found -
*/ - public ApiResponse listCollectionsInApplicationWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + public ApiResponse listCollectionsInApplicationWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { okhttp3.Call localVarCall = listCollectionsInApplicationValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, name, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -15133,7 +17325,7 @@ public ApiResponse listCollectionsInApplicationWithHttpInfo * List collections in Application (asynchronously) * List campaign-level collections from all campaigns in a given Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -15148,23 +17340,24 @@ public ApiResponse listCollectionsInApplicationWithHttpInfo 404 Not found - */ - public okhttp3.Call listCollectionsInApplicationAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCollectionsInApplicationAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCollectionsInApplicationValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, name, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listStores * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param campaignId Filter results by campaign. (optional) * @param name The name of the store. (optional) * @param integrationId The integration ID of the store. (optional) + * @param query Filter results by `name` or `integrationId`. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -15174,7 +17367,7 @@ public okhttp3.Call listCollectionsInApplicationAsync(Integer applicationId, Int 200 OK - */ - public okhttp3.Call listStoresCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listStoresCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15211,6 +17404,10 @@ public okhttp3.Call listStoresCall(Integer applicationId, Integer pageSize, Inte localVarQueryParams.addAll(localVarApiClient.parameterToPair("integrationId", integrationId)); } + if (query != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -15233,7 +17430,7 @@ public okhttp3.Call listStoresCall(Integer applicationId, Integer pageSize, Inte } @SuppressWarnings("rawtypes") - private okhttp3.Call listStoresValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStoresValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -15241,7 +17438,7 @@ private okhttp3.Call listStoresValidateBeforeCall(Integer applicationId, Integer } - okhttp3.Call localVarCall = listStoresCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, _callback); + okhttp3.Call localVarCall = listStoresCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query, _callback); return localVarCall; } @@ -15250,14 +17447,15 @@ private okhttp3.Call listStoresValidateBeforeCall(Integer applicationId, Integer * List stores * List all stores for a specific Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param campaignId Filter results by campaign. (optional) * @param name The name of the store. (optional) * @param integrationId The integration ID of the store. (optional) - * @return InlineResponse20043 + * @param query Filter results by `name` or `integrationId`. (optional) + * @return InlineResponse20045 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -15265,8 +17463,8 @@ private okhttp3.Call listStoresValidateBeforeCall(Integer applicationId, Integer
200 OK -
*/ - public InlineResponse20043 listStores(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId) throws ApiException { - ApiResponse localVarResp = listStoresWithHttpInfo(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId); + public InlineResponse20045 listStores(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query) throws ApiException { + ApiResponse localVarResp = listStoresWithHttpInfo(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query); return localVarResp.getData(); } @@ -15274,14 +17472,15 @@ public InlineResponse20043 listStores(Integer applicationId, Integer pageSize, I * List stores * List all stores for a specific Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param campaignId Filter results by campaign. (optional) * @param name The name of the store. (optional) * @param integrationId The integration ID of the store. (optional) - * @return ApiResponse<InlineResponse20043> + * @param query Filter results by `name` or `integrationId`. (optional) + * @return ApiResponse<InlineResponse20045> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -15289,9 +17488,9 @@ public InlineResponse20043 listStores(Integer applicationId, Integer pageSize, I
200 OK -
*/ - public ApiResponse listStoresWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId) throws ApiException { - okhttp3.Call localVarCall = listStoresValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listStoresWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query) throws ApiException { + okhttp3.Call localVarCall = listStoresValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -15299,13 +17498,14 @@ public ApiResponse listStoresWithHttpInfo(Integer applicati * List stores (asynchronously) * List all stores for a specific Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param campaignId Filter results by campaign. (optional) * @param name The name of the store. (optional) * @param integrationId The integration ID of the store. (optional) + * @param query Filter results by `name` or `integrationId`. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -15315,10 +17515,10 @@ public ApiResponse listStoresWithHttpInfo(Integer applicati 200 OK - */ - public okhttp3.Call listStoresAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listStoresAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listStoresValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listStoresValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -15505,7 +17705,7 @@ private okhttp3.Call postAddedDeductedPointsNotificationValidateBeforeCall(Integ /** * Create notification about added or deducted loyalty points - * Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). + * Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). * @param loyaltyProgramId Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param body body (required) * @return BaseNotification @@ -15526,7 +17726,7 @@ public BaseNotification postAddedDeductedPointsNotification(Integer loyaltyProgr /** * Create notification about added or deducted loyalty points - * Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). + * Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). * @param loyaltyProgramId Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param body body (required) * @return ApiResponse<BaseNotification> @@ -15548,7 +17748,7 @@ public ApiResponse postAddedDeductedPointsNotificationWithHttp /** * Create notification about added or deducted loyalty points (asynchronously) - * Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). + * Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). * @param loyaltyProgramId Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param body body (required) * @param _callback The callback to be executed when the API call finishes @@ -15769,7 +17969,7 @@ private okhttp3.Call postPendingPointsNotificationValidateBeforeCall(Integer loy /** * Create notification about pending loyalty points - * Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). + * Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). * @param loyaltyProgramId Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param body body (required) * @return BaseNotification @@ -15790,7 +17990,7 @@ public BaseNotification postPendingPointsNotification(Integer loyaltyProgramId, /** * Create notification about pending loyalty points - * Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). + * Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). * @param loyaltyProgramId Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param body body (required) * @return ApiResponse<BaseNotification> @@ -15812,7 +18012,7 @@ public ApiResponse postPendingPointsNotificationWithHttpInfo(I /** * Create notification about pending loyalty points (asynchronously) - * Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). + * Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). * @param loyaltyProgramId Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) * @param body body (required) * @param _callback The callback to be executed when the API call finishes @@ -16086,7 +18286,7 @@ public okhttp3.Call resetPasswordAsync(NewPassword body, final ApiCallback searchCouponsAdvancedApplicationWideWitho * List the coupons whose attributes match the query criteria in all the campaigns of the given Application. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -16311,7 +18511,7 @@ public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountAsync(I * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -16441,7 +18641,7 @@ private okhttp3.Call searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(In * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -16472,7 +18672,7 @@ public InlineResponse2009 searchCouponsAdvancedWithoutTotalCount(Integer applica * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -16504,7 +18704,7 @@ public ApiResponse searchCouponsAdvancedWithoutTotalCountWit * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in this response. (optional, default to 1000) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -16671,8 +18871,142 @@ public okhttp3.Call transferLoyaltyCardAsync(Integer loyaltyProgramId, String lo return localVarCall; } /** - * Build call for updateAccountCollection - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Build call for updateAccountCollection + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
+ */ + public okhttp3.Call updateAccountCollectionCall(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/collections/{collectionId}" + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateAccountCollectionValidateBeforeCall(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'collectionId' is set + if (collectionId == null) { + throw new ApiException("Missing the required parameter 'collectionId' when calling updateAccountCollection(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updateAccountCollection(Async)"); + } + + + okhttp3.Call localVarCall = updateAccountCollectionCall(collectionId, body, _callback); + return localVarCall; + + } + + /** + * Update account-level collection + * Edit the description of a given account-level collection and enable or disable the collection in the specified Applications. + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * @param body body (required) + * @return Collection + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
+ */ + public Collection updateAccountCollection(Integer collectionId, UpdateCollection body) throws ApiException { + ApiResponse localVarResp = updateAccountCollectionWithHttpInfo(collectionId, body); + return localVarResp.getData(); + } + + /** + * Update account-level collection + * Edit the description of a given account-level collection and enable or disable the collection in the specified Applications. + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * @param body body (required) + * @return ApiResponse<Collection> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
+ */ + public ApiResponse updateAccountCollectionWithHttpInfo(Integer collectionId, UpdateCollection body) throws ApiException { + okhttp3.Call localVarCall = updateAccountCollectionValidateBeforeCall(collectionId, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update account-level collection (asynchronously) + * Edit the description of a given account-level collection and enable or disable the collection in the specified Applications. + * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
+ */ + public okhttp3.Call updateAccountCollectionAsync(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateAccountCollectionValidateBeforeCall(collectionId, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateAchievement + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -16683,15 +19017,17 @@ public okhttp3.Call transferLoyaltyCardAsync(Integer loyaltyProgramId, String lo 200 OK - 400 Bad request - 401 Unauthorized - - 409 Conflict. A collection with this name already exists. - + 404 Not found - */ - public okhttp3.Call updateAccountCollectionCall(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAchievementCall(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/collections/{collectionId}" - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -16717,30 +19053,42 @@ public okhttp3.Call updateAccountCollectionCall(Integer collectionId, UpdateColl } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAccountCollectionValidateBeforeCall(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'collectionId' is set - if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling updateAccountCollection(Async)"); + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling updateAchievement(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling updateAchievement(Async)"); + } + + // verify the required parameter 'achievementId' is set + if (achievementId == null) { + throw new ApiException("Missing the required parameter 'achievementId' when calling updateAchievement(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling updateAccountCollection(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling updateAchievement(Async)"); } - okhttp3.Call localVarCall = updateAccountCollectionCall(collectionId, body, _callback); + okhttp3.Call localVarCall = updateAchievementCall(applicationId, campaignId, achievementId, body, _callback); return localVarCall; } /** - * Update account-level collection - * Edit the description of a given account-level collection and enable or disable the collection in the specified Applications. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Update achievement + * Update the details of a specific achievement. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) * @param body body (required) - * @return Collection + * @return Achievement * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -16748,20 +19096,22 @@ private okhttp3.Call updateAccountCollectionValidateBeforeCall(Integer collectio - +
200 OK -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
404 Not found -
*/ - public Collection updateAccountCollection(Integer collectionId, UpdateCollection body) throws ApiException { - ApiResponse localVarResp = updateAccountCollectionWithHttpInfo(collectionId, body); + public Achievement updateAchievement(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body) throws ApiException { + ApiResponse localVarResp = updateAchievementWithHttpInfo(applicationId, campaignId, achievementId, body); return localVarResp.getData(); } /** - * Update account-level collection - * Edit the description of a given account-level collection and enable or disable the collection in the specified Applications. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Update achievement + * Update the details of a specific achievement. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) * @param body body (required) - * @return ApiResponse<Collection> + * @return ApiResponse<Achievement> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -16769,19 +19119,21 @@ public Collection updateAccountCollection(Integer collectionId, UpdateCollection - +
200 OK -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
404 Not found -
*/ - public ApiResponse updateAccountCollectionWithHttpInfo(Integer collectionId, UpdateCollection body) throws ApiException { - okhttp3.Call localVarCall = updateAccountCollectionValidateBeforeCall(collectionId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse updateAchievementWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body) throws ApiException { + okhttp3.Call localVarCall = updateAchievementValidateBeforeCall(applicationId, campaignId, achievementId, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Update account-level collection (asynchronously) - * Edit the description of a given account-level collection and enable or disable the collection in the specified Applications. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Update achievement (asynchronously) + * Update the details of a specific achievement. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -16792,13 +19144,13 @@ public ApiResponse updateAccountCollectionWithHttpInfo(Integer colle 200 OK - 400 Bad request - 401 Unauthorized - - 409 Conflict. A collection with this name already exists. - + 404 Not found - */ - public okhttp3.Call updateAccountCollectionAsync(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAchievementAsync(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAccountCollectionValidateBeforeCall(collectionId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = updateAchievementValidateBeforeCall(applicationId, campaignId, achievementId, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -17864,6 +20216,126 @@ public okhttp3.Call updateReferralAsync(Integer applicationId, Integer campaignI localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for updateRoleV2 + * @param roleId The ID of role. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateRoleV2Call(Integer roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v2/roles/{roleId}" + .replaceAll("\\{" + "roleId" + "\\}", localVarApiClient.escapeString(roleId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateRoleV2ValidateBeforeCall(Integer roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'roleId' is set + if (roleId == null) { + throw new ApiException("Missing the required parameter 'roleId' when calling updateRoleV2(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updateRoleV2(Async)"); + } + + + okhttp3.Call localVarCall = updateRoleV2Call(roleId, body, _callback); + return localVarCall; + + } + + /** + * Update role + * Update a specific role. + * @param roleId The ID of role. (required) + * @param body body (required) + * @return RoleV2 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public RoleV2 updateRoleV2(Integer roleId, RoleV2Base body) throws ApiException { + ApiResponse localVarResp = updateRoleV2WithHttpInfo(roleId, body); + return localVarResp.getData(); + } + + /** + * Update role + * Update a specific role. + * @param roleId The ID of role. (required) + * @param body body (required) + * @return ApiResponse<RoleV2> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateRoleV2WithHttpInfo(Integer roleId, RoleV2Base body) throws ApiException { + okhttp3.Call localVarCall = updateRoleV2ValidateBeforeCall(roleId, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update role (asynchronously) + * Update a specific role. + * @param roleId The ID of role. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateRoleV2Async(Integer roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateRoleV2ValidateBeforeCall(roleId, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for updateStore * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) @@ -18002,4 +20474,124 @@ public okhttp3.Call updateStoreAsync(Integer applicationId, String storeId, NewS localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for updateUser + * @param userId The ID of the user. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateUserCall(Integer userId, UpdateUser body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/users/{userId}" + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateUserValidateBeforeCall(Integer userId, UpdateUser body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'userId' is set + if (userId == null) { + throw new ApiException("Missing the required parameter 'userId' when calling updateUser(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updateUser(Async)"); + } + + + okhttp3.Call localVarCall = updateUserCall(userId, body, _callback); + return localVarCall; + + } + + /** + * Update user + * Update the details of a specific user. + * @param userId The ID of the user. (required) + * @param body body (required) + * @return User + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public User updateUser(Integer userId, UpdateUser body) throws ApiException { + ApiResponse localVarResp = updateUserWithHttpInfo(userId, body); + return localVarResp.getData(); + } + + /** + * Update user + * Update the details of a specific user. + * @param userId The ID of the user. (required) + * @param body body (required) + * @return ApiResponse<User> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateUserWithHttpInfo(Integer userId, UpdateUser body) throws ApiException { + okhttp3.Call localVarCall = updateUserValidateBeforeCall(userId, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update user (asynchronously) + * Update the details of a specific user. + * @param userId The ID of the user. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateUserAsync(Integer userId, UpdateUser body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateUserValidateBeforeCall(userId, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/one/talon/model/AccountDashboardStatistic.java b/src/main/java/one/talon/model/AccountDashboardStatistic.java index 5374661f..84e18859 100644 --- a/src/main/java/one/talon/model/AccountDashboardStatistic.java +++ b/src/main/java/one/talon/model/AccountDashboardStatistic.java @@ -25,7 +25,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AccountDashboardStatisticApiCalls; import one.talon.model.AccountDashboardStatisticCampaigns; import one.talon.model.AccountDashboardStatisticDiscount; import one.talon.model.AccountDashboardStatisticLoyaltyPoints; @@ -53,10 +52,6 @@ public class AccountDashboardStatistic { @SerializedName(SERIALIZED_NAME_REFERRALS) private List referrals = null; - public static final String SERIALIZED_NAME_API_CALLS = "apiCalls"; - @SerializedName(SERIALIZED_NAME_API_CALLS) - private List apiCalls = null; - public static final String SERIALIZED_NAME_CAMPAIGNS = "campaigns"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS) private AccountDashboardStatisticCampaigns campaigns; @@ -186,37 +181,6 @@ public void setReferrals(List referrals) { } - public AccountDashboardStatistic apiCalls(List apiCalls) { - - this.apiCalls = apiCalls; - return this; - } - - public AccountDashboardStatistic addApiCallsItem(AccountDashboardStatisticApiCalls apiCallsItem) { - if (this.apiCalls == null) { - this.apiCalls = new ArrayList(); - } - this.apiCalls.add(apiCallsItem); - return this; - } - - /** - * Aggregated statistic for the number of account API calls. - * @return apiCalls - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Aggregated statistic for the number of account API calls.") - - public List getApiCalls() { - return apiCalls; - } - - - public void setApiCalls(List apiCalls) { - this.apiCalls = apiCalls; - } - - public AccountDashboardStatistic campaigns(AccountDashboardStatisticCampaigns campaigns) { this.campaigns = campaigns; @@ -252,13 +216,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.discounts, accountDashboardStatistic.discounts) && Objects.equals(this.loyaltyPoints, accountDashboardStatistic.loyaltyPoints) && Objects.equals(this.referrals, accountDashboardStatistic.referrals) && - Objects.equals(this.apiCalls, accountDashboardStatistic.apiCalls) && Objects.equals(this.campaigns, accountDashboardStatistic.campaigns); } @Override public int hashCode() { - return Objects.hash(revenue, discounts, loyaltyPoints, referrals, apiCalls, campaigns); + return Objects.hash(revenue, discounts, loyaltyPoints, referrals, campaigns); } @@ -270,7 +233,6 @@ public String toString() { sb.append(" discounts: ").append(toIndentedString(discounts)).append("\n"); sb.append(" loyaltyPoints: ").append(toIndentedString(loyaltyPoints)).append("\n"); sb.append(" referrals: ").append(toIndentedString(referrals)).append("\n"); - sb.append(" apiCalls: ").append(toIndentedString(apiCalls)).append("\n"); sb.append(" campaigns: ").append(toIndentedString(campaigns)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/Achievement.java b/src/main/java/one/talon/model/Achievement.java index 8a281705..2621f80a 100644 --- a/src/main/java/one/talon/model/Achievement.java +++ b/src/main/java/one/talon/model/Achievement.java @@ -65,6 +65,10 @@ public class Achievement { @SerializedName(SERIALIZED_NAME_PERIOD_END_OVERRIDE) private TimePoint periodEndOverride; + public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) + private Integer campaignId; + public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) private Integer userId; @@ -73,6 +77,10 @@ public class Achievement { @SerializedName(SERIALIZED_NAME_CREATED_BY) private String createdBy; + public static final String SERIALIZED_NAME_HAS_PROGRESS = "hasProgress"; + @SerializedName(SERIALIZED_NAME_HAS_PROGRESS) + private Boolean hasProgress; + public Achievement id(Integer id) { @@ -191,10 +199,10 @@ public Achievement target(BigDecimal target) { } /** - * The maximum number of times a specific action must be completed by a customer profile over a defined period of time. + * The required number of actions or the transactional milestone to complete the achievement. * @return target **/ - @ApiModelProperty(example = "50.0", required = true, value = "The maximum number of times a specific action must be completed by a customer profile over a defined period of time.") + @ApiModelProperty(example = "50.0", required = true, value = "The required number of actions or the transactional milestone to complete the achievement.") public BigDecimal getTarget() { return target; @@ -213,10 +221,10 @@ public Achievement period(String period) { } /** - * The relative duration after which the achievement is reset for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. + * The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. * @return period **/ - @ApiModelProperty(example = "1Y", required = true, value = "The relative duration after which the achievement is reset for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. ") + @ApiModelProperty(example = "1Y", required = true, value = "The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. ") public String getPeriod() { return period; @@ -251,6 +259,28 @@ public void setPeriodEndOverride(TimePoint periodEndOverride) { } + public Achievement campaignId(Integer campaignId) { + + this.campaignId = campaignId; + return this; + } + + /** + * ID of the campaign, to which the achievement belongs to + * @return campaignId + **/ + @ApiModelProperty(example = "1", required = true, value = "ID of the campaign, to which the achievement belongs to") + + public Integer getCampaignId() { + return campaignId; + } + + + public void setCampaignId(Integer campaignId) { + this.campaignId = campaignId; + } + + public Achievement userId(Integer userId) { this.userId = userId; @@ -295,6 +325,29 @@ public void setCreatedBy(String createdBy) { } + public Achievement hasProgress(Boolean hasProgress) { + + this.hasProgress = hasProgress; + return this; + } + + /** + * Indicates if a customer has made progress in the achievement. + * @return hasProgress + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Indicates if a customer has made progress in the achievement.") + + public Boolean getHasProgress() { + return hasProgress; + } + + + public void setHasProgress(Boolean hasProgress) { + this.hasProgress = hasProgress; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -312,13 +365,15 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.target, achievement.target) && Objects.equals(this.period, achievement.period) && Objects.equals(this.periodEndOverride, achievement.periodEndOverride) && + Objects.equals(this.campaignId, achievement.campaignId) && Objects.equals(this.userId, achievement.userId) && - Objects.equals(this.createdBy, achievement.createdBy); + Objects.equals(this.createdBy, achievement.createdBy) && + Objects.equals(this.hasProgress, achievement.hasProgress); } @Override public int hashCode() { - return Objects.hash(id, created, name, title, description, target, period, periodEndOverride, userId, createdBy); + return Objects.hash(id, created, name, title, description, target, period, periodEndOverride, campaignId, userId, createdBy, hasProgress); } @@ -334,8 +389,10 @@ public String toString() { sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" period: ").append(toIndentedString(period)).append("\n"); sb.append(" periodEndOverride: ").append(toIndentedString(periodEndOverride)).append("\n"); + sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" hasProgress: ").append(toIndentedString(hasProgress)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/AchievementAdditionalProperties.java b/src/main/java/one/talon/model/AchievementAdditionalProperties.java index 75cbbbca..1708e470 100644 --- a/src/main/java/one/talon/model/AchievementAdditionalProperties.java +++ b/src/main/java/one/talon/model/AchievementAdditionalProperties.java @@ -29,6 +29,10 @@ */ public class AchievementAdditionalProperties { + public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) + private Integer campaignId; + public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) private Integer userId; @@ -37,6 +41,32 @@ public class AchievementAdditionalProperties { @SerializedName(SERIALIZED_NAME_CREATED_BY) private String createdBy; + public static final String SERIALIZED_NAME_HAS_PROGRESS = "hasProgress"; + @SerializedName(SERIALIZED_NAME_HAS_PROGRESS) + private Boolean hasProgress; + + + public AchievementAdditionalProperties campaignId(Integer campaignId) { + + this.campaignId = campaignId; + return this; + } + + /** + * ID of the campaign, to which the achievement belongs to + * @return campaignId + **/ + @ApiModelProperty(example = "1", required = true, value = "ID of the campaign, to which the achievement belongs to") + + public Integer getCampaignId() { + return campaignId; + } + + + public void setCampaignId(Integer campaignId) { + this.campaignId = campaignId; + } + public AchievementAdditionalProperties userId(Integer userId) { @@ -82,6 +112,29 @@ public void setCreatedBy(String createdBy) { } + public AchievementAdditionalProperties hasProgress(Boolean hasProgress) { + + this.hasProgress = hasProgress; + return this; + } + + /** + * Indicates if a customer has made progress in the achievement. + * @return hasProgress + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Indicates if a customer has made progress in the achievement.") + + public Boolean getHasProgress() { + return hasProgress; + } + + + public void setHasProgress(Boolean hasProgress) { + this.hasProgress = hasProgress; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -91,13 +144,15 @@ public boolean equals(java.lang.Object o) { return false; } AchievementAdditionalProperties achievementAdditionalProperties = (AchievementAdditionalProperties) o; - return Objects.equals(this.userId, achievementAdditionalProperties.userId) && - Objects.equals(this.createdBy, achievementAdditionalProperties.createdBy); + return Objects.equals(this.campaignId, achievementAdditionalProperties.campaignId) && + Objects.equals(this.userId, achievementAdditionalProperties.userId) && + Objects.equals(this.createdBy, achievementAdditionalProperties.createdBy) && + Objects.equals(this.hasProgress, achievementAdditionalProperties.hasProgress); } @Override public int hashCode() { - return Objects.hash(userId, createdBy); + return Objects.hash(campaignId, userId, createdBy, hasProgress); } @@ -105,8 +160,10 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AchievementAdditionalProperties {\n"); + sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" hasProgress: ").append(toIndentedString(hasProgress)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/AchievementProgress.java b/src/main/java/one/talon/model/AchievementProgress.java new file mode 100644 index 00000000..97771c7a --- /dev/null +++ b/src/main/java/one/talon/model/AchievementProgress.java @@ -0,0 +1,403 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.threeten.bp.OffsetDateTime; + +/** + * AchievementProgress + */ + +public class AchievementProgress { + public static final String SERIALIZED_NAME_ACHIEVEMENT_ID = "achievementId"; + @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_ID) + private Integer achievementId; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; + + public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) + private Integer campaignId; + + /** + * The status of the achievement. + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + INPROGRESS("inprogress"), + + COMPLETED("completed"), + + EXPIRED("expired"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private StatusEnum status; + + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + private BigDecimal target; + + public static final String SERIALIZED_NAME_PROGRESS = "progress"; + @SerializedName(SERIALIZED_NAME_PROGRESS) + private BigDecimal progress; + + public static final String SERIALIZED_NAME_START_DATE = "startDate"; + @SerializedName(SERIALIZED_NAME_START_DATE) + private OffsetDateTime startDate; + + public static final String SERIALIZED_NAME_COMPLETION_DATE = "completionDate"; + @SerializedName(SERIALIZED_NAME_COMPLETION_DATE) + private OffsetDateTime completionDate; + + public static final String SERIALIZED_NAME_END_DATE = "endDate"; + @SerializedName(SERIALIZED_NAME_END_DATE) + private OffsetDateTime endDate; + + + public AchievementProgress achievementId(Integer achievementId) { + + this.achievementId = achievementId; + return this; + } + + /** + * The internal ID of the achievement. + * @return achievementId + **/ + @ApiModelProperty(example = "3", required = true, value = "The internal ID of the achievement.") + + public Integer getAchievementId() { + return achievementId; + } + + + public void setAchievementId(Integer achievementId) { + this.achievementId = achievementId; + } + + + public AchievementProgress name(String name) { + + this.name = name; + return this; + } + + /** + * The internal name of the achievement used in API requests. + * @return name + **/ + @ApiModelProperty(example = "FreeCoffee10Orders", required = true, value = "The internal name of the achievement used in API requests. ") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public AchievementProgress title(String title) { + + this.title = title; + return this; + } + + /** + * The display name of the achievement in the Campaign Manager. + * @return title + **/ + @ApiModelProperty(example = "50% off on 50th purchase.", required = true, value = "The display name of the achievement in the Campaign Manager.") + + public String getTitle() { + return title; + } + + + public void setTitle(String title) { + this.title = title; + } + + + public AchievementProgress campaignId(Integer campaignId) { + + this.campaignId = campaignId; + return this; + } + + /** + * The ID of the campaign the achievement belongs to. + * @return campaignId + **/ + @ApiModelProperty(example = "3", required = true, value = "The ID of the campaign the achievement belongs to.") + + public Integer getCampaignId() { + return campaignId; + } + + + public void setCampaignId(Integer campaignId) { + this.campaignId = campaignId; + } + + + public AchievementProgress status(StatusEnum status) { + + this.status = status; + return this; + } + + /** + * The status of the achievement. + * @return status + **/ + @ApiModelProperty(example = "completed", required = true, value = "The status of the achievement.") + + public StatusEnum getStatus() { + return status; + } + + + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public AchievementProgress target(BigDecimal target) { + + this.target = target; + return this; + } + + /** + * The required number of actions or the transactional milestone to complete the achievement. + * @return target + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "10.0", value = "The required number of actions or the transactional milestone to complete the achievement.") + + public BigDecimal getTarget() { + return target; + } + + + public void setTarget(BigDecimal target) { + this.target = target; + } + + + public AchievementProgress progress(BigDecimal progress) { + + this.progress = progress; + return this; + } + + /** + * The current progress of the customer in the achievement. + * @return progress + **/ + @ApiModelProperty(example = "10.0", required = true, value = "The current progress of the customer in the achievement.") + + public BigDecimal getProgress() { + return progress; + } + + + public void setProgress(BigDecimal progress) { + this.progress = progress; + } + + + public AchievementProgress startDate(OffsetDateTime startDate) { + + this.startDate = startDate; + return this; + } + + /** + * Timestamp at which the customer started the achievement. + * @return startDate + **/ + @ApiModelProperty(required = true, value = "Timestamp at which the customer started the achievement.") + + public OffsetDateTime getStartDate() { + return startDate; + } + + + public void setStartDate(OffsetDateTime startDate) { + this.startDate = startDate; + } + + + public AchievementProgress completionDate(OffsetDateTime completionDate) { + + this.completionDate = completionDate; + return this; + } + + /** + * Timestamp at which point the customer completed the achievement. + * @return completionDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Timestamp at which point the customer completed the achievement.") + + public OffsetDateTime getCompletionDate() { + return completionDate; + } + + + public void setCompletionDate(OffsetDateTime completionDate) { + this.completionDate = completionDate; + } + + + public AchievementProgress endDate(OffsetDateTime endDate) { + + this.endDate = endDate; + return this; + } + + /** + * Timestamp at which point the achievement ends and resets for the customer. + * @return endDate + **/ + @ApiModelProperty(required = true, value = "Timestamp at which point the achievement ends and resets for the customer.") + + public OffsetDateTime getEndDate() { + return endDate; + } + + + public void setEndDate(OffsetDateTime endDate) { + this.endDate = endDate; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AchievementProgress achievementProgress = (AchievementProgress) o; + return Objects.equals(this.achievementId, achievementProgress.achievementId) && + Objects.equals(this.name, achievementProgress.name) && + Objects.equals(this.title, achievementProgress.title) && + Objects.equals(this.campaignId, achievementProgress.campaignId) && + Objects.equals(this.status, achievementProgress.status) && + Objects.equals(this.target, achievementProgress.target) && + Objects.equals(this.progress, achievementProgress.progress) && + Objects.equals(this.startDate, achievementProgress.startDate) && + Objects.equals(this.completionDate, achievementProgress.completionDate) && + Objects.equals(this.endDate, achievementProgress.endDate); + } + + @Override + public int hashCode() { + return Objects.hash(achievementId, name, title, campaignId, status, target, progress, startDate, completionDate, endDate); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AchievementProgress {\n"); + sb.append(" achievementId: ").append(toIndentedString(achievementId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" target: ").append(toIndentedString(target)).append("\n"); + sb.append(" progress: ").append(toIndentedString(progress)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" completionDate: ").append(toIndentedString(completionDate)).append("\n"); + sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/AddItemCatalogAction.java b/src/main/java/one/talon/model/AddItemCatalogAction.java index 0dcb297c..eb7f315d 100644 --- a/src/main/java/one/talon/model/AddItemCatalogAction.java +++ b/src/main/java/one/talon/model/AddItemCatalogAction.java @@ -28,9 +28,9 @@ import one.talon.custom.NullableAdapterFactory; /** - * The specific properties of the \"ADD\" catalog sync action. + * The specific properties of the \"ADD\" catalog sync action. */ -@ApiModel(description = "The specific properties of the \"ADD\" catalog sync action.") +@ApiModel(description = "The specific properties of the \"ADD\" catalog sync action. ") @JsonAdapter(NullableAdapterFactory.class) public class AddItemCatalogAction { @@ -48,6 +48,10 @@ public class AddItemCatalogAction { @JsonNullable private Object attributes; + public static final String SERIALIZED_NAME_PRODUCT = "product"; + @SerializedName(SERIALIZED_NAME_PRODUCT) + private Product product; + public static final String SERIALIZED_NAME_REPLACE_IF_EXISTS = "replaceIfExists"; @SerializedName(SERIALIZED_NAME_REPLACE_IF_EXISTS) private Boolean replaceIfExists = false; @@ -121,6 +125,29 @@ public void setAttributes(Object attributes) { } + public AddItemCatalogAction product(Product product) { + + this.product = product; + return this; + } + + /** + * Get product + * @return product + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Product getProduct() { + return product; + } + + + public void setProduct(Product product) { + this.product = product; + } + + public AddItemCatalogAction replaceIfExists(Boolean replaceIfExists) { this.replaceIfExists = replaceIfExists; @@ -128,11 +155,11 @@ public AddItemCatalogAction replaceIfExists(Boolean replaceIfExists) { } /** - * Indicates whether to replace the attributes of the item if the same SKU exists. + * Indicates whether to replace the attributes of the item if the same SKU exists. **Note**: When set to `true`: - If you do not provide a new `price` value, the existing `price` value is retained. - If you do not provide a new `product` value, the `product` value is set to `null`. * @return replaceIfExists **/ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "Indicates whether to replace the attributes of the item if the same SKU exists.") + @ApiModelProperty(example = "false", value = "Indicates whether to replace the attributes of the item if the same SKU exists. **Note**: When set to `true`: - If you do not provide a new `price` value, the existing `price` value is retained. - If you do not provide a new `product` value, the `product` value is set to `null`. ") public Boolean getReplaceIfExists() { return replaceIfExists; @@ -156,12 +183,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.sku, addItemCatalogAction.sku) && Objects.equals(this.price, addItemCatalogAction.price) && Objects.equals(this.attributes, addItemCatalogAction.attributes) && + Objects.equals(this.product, addItemCatalogAction.product) && Objects.equals(this.replaceIfExists, addItemCatalogAction.replaceIfExists); } @Override public int hashCode() { - return Objects.hash(sku, price, attributes, replaceIfExists); + return Objects.hash(sku, price, attributes, product, replaceIfExists); } @@ -172,6 +200,7 @@ public String toString() { sb.append(" sku: ").append(toIndentedString(sku)).append("\n"); sb.append(" price: ").append(toIndentedString(price)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" product: ").append(toIndentedString(product)).append("\n"); sb.append(" replaceIfExists: ").append(toIndentedString(replaceIfExists)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/AdditionalCampaignProperties.java b/src/main/java/one/talon/model/AdditionalCampaignProperties.java index 29f85486..6a9f7341 100644 --- a/src/main/java/one/talon/model/AdditionalCampaignProperties.java +++ b/src/main/java/one/talon/model/AdditionalCampaignProperties.java @@ -118,6 +118,61 @@ public class AdditionalCampaignProperties { @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) private Integer templateId; + /** + * A campaign state described exactly as in the Campaign Manager. + */ + @JsonAdapter(FrontendStateEnum.Adapter.class) + public enum FrontendStateEnum { + EXPIRED("expired"), + + SCHEDULED("scheduled"), + + RUNNING("running"), + + DRAFT("draft"); + + private String value; + + FrontendStateEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static FrontendStateEnum fromValue(String value) { + for (FrontendStateEnum b : FrontendStateEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final FrontendStateEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public FrontendStateEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return FrontendStateEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_FRONTEND_STATE = "frontendState"; + @SerializedName(SERIALIZED_NAME_FRONTEND_STATE) + private FrontendStateEnum frontendState; + public AdditionalCampaignProperties budgets(List budgets) { @@ -606,6 +661,28 @@ public void setTemplateId(Integer templateId) { } + public AdditionalCampaignProperties frontendState(FrontendStateEnum frontendState) { + + this.frontendState = frontendState; + return this; + } + + /** + * A campaign state described exactly as in the Campaign Manager. + * @return frontendState + **/ + @ApiModelProperty(example = "running", required = true, value = "A campaign state described exactly as in the Campaign Manager.") + + public FrontendStateEnum getFrontendState() { + return frontendState; + } + + + public void setFrontendState(FrontendStateEnum frontendState) { + this.frontendState = frontendState; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -635,12 +712,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.updated, additionalCampaignProperties.updated) && Objects.equals(this.createdBy, additionalCampaignProperties.createdBy) && Objects.equals(this.updatedBy, additionalCampaignProperties.updatedBy) && - Objects.equals(this.templateId, additionalCampaignProperties.templateId); + Objects.equals(this.templateId, additionalCampaignProperties.templateId) && + Objects.equals(this.frontendState, additionalCampaignProperties.frontendState); } @Override public int hashCode() { - return Objects.hash(budgets, couponRedemptionCount, referralRedemptionCount, discountCount, discountEffectCount, couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, awardedGiveawaysCount, createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, createdBy, updatedBy, templateId); + return Objects.hash(budgets, couponRedemptionCount, referralRedemptionCount, discountCount, discountEffectCount, couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, awardedGiveawaysCount, createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, createdBy, updatedBy, templateId, frontendState); } @@ -669,6 +747,7 @@ public String toString() { sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n"); sb.append(" templateId: ").append(toIndentedString(templateId)).append("\n"); + sb.append(" frontendState: ").append(toIndentedString(frontendState)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/ApplicationAPIKey.java b/src/main/java/one/talon/model/ApplicationAPIKey.java index f9a6db36..f29ff3f4 100644 --- a/src/main/java/one/talon/model/ApplicationAPIKey.java +++ b/src/main/java/one/talon/model/ApplicationAPIKey.java @@ -106,6 +106,59 @@ public PlatformEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PLATFORM) private PlatformEnum platform; + /** + * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + STAGING("staging"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; + @SerializedName(SERIALIZED_NAME_TIME_OFFSET) + private Integer timeOffset; + public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private Integer id; @@ -134,10 +187,10 @@ public ApplicationAPIKey title(String title) { } /** - * Title for API Key. + * Title of the API key. * @return title **/ - @ApiModelProperty(example = "My generated key", required = true, value = "Title for API Key.") + @ApiModelProperty(example = "My generated key", required = true, value = "Title of the API key.") public String getTitle() { return title; @@ -156,10 +209,10 @@ public ApplicationAPIKey expires(OffsetDateTime expires) { } /** - * The date the API key expired. + * The date the API key expires. * @return expires **/ - @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the API key expired.") + @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the API key expires.") public OffsetDateTime getExpires() { return expires; @@ -194,6 +247,52 @@ public void setPlatform(PlatformEnum platform) { } + public ApplicationAPIKey type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "staging", value = "The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. ") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public ApplicationAPIKey timeOffset(Integer timeOffset) { + + this.timeOffset = timeOffset; + return this; + } + + /** + * A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + * @return timeOffset + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "100000", value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") + + public Integer getTimeOffset() { + return timeOffset; + } + + + public void setTimeOffset(Integer timeOffset) { + this.timeOffset = timeOffset; + } + + public ApplicationAPIKey id(Integer id) { this.id = id; @@ -316,6 +415,8 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.title, applicationAPIKey.title) && Objects.equals(this.expires, applicationAPIKey.expires) && Objects.equals(this.platform, applicationAPIKey.platform) && + Objects.equals(this.type, applicationAPIKey.type) && + Objects.equals(this.timeOffset, applicationAPIKey.timeOffset) && Objects.equals(this.id, applicationAPIKey.id) && Objects.equals(this.createdBy, applicationAPIKey.createdBy) && Objects.equals(this.accountID, applicationAPIKey.accountID) && @@ -325,7 +426,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(title, expires, platform, id, createdBy, accountID, applicationID, created); + return Objects.hash(title, expires, platform, type, timeOffset, id, createdBy, accountID, applicationID, created); } @@ -336,6 +437,8 @@ public String toString() { sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" expires: ").append(toIndentedString(expires)).append("\n"); sb.append(" platform: ").append(toIndentedString(platform)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" timeOffset: ").append(toIndentedString(timeOffset)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" accountID: ").append(toIndentedString(accountID)).append("\n"); diff --git a/src/main/java/one/talon/model/ApplicationAnalyticsDataPoint.java b/src/main/java/one/talon/model/ApplicationAnalyticsDataPoint.java new file mode 100644 index 00000000..907bd81a --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationAnalyticsDataPoint.java @@ -0,0 +1,308 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import one.talon.model.ApplicationAnalyticsDataPointAvgItemsPerSession; +import one.talon.model.ApplicationAnalyticsDataPointAvgSessionValue; +import one.talon.model.ApplicationAnalyticsDataPointSessionsCount; +import one.talon.model.ApplicationAnalyticsDataPointTotalRevenue; +import org.threeten.bp.OffsetDateTime; + +/** + * ApplicationAnalyticsDataPoint + */ + +public class ApplicationAnalyticsDataPoint { + public static final String SERIALIZED_NAME_START_TIME = "startTime"; + @SerializedName(SERIALIZED_NAME_START_TIME) + private OffsetDateTime startTime; + + public static final String SERIALIZED_NAME_END_TIME = "endTime"; + @SerializedName(SERIALIZED_NAME_END_TIME) + private OffsetDateTime endTime; + + public static final String SERIALIZED_NAME_TOTAL_REVENUE = "totalRevenue"; + @SerializedName(SERIALIZED_NAME_TOTAL_REVENUE) + private ApplicationAnalyticsDataPointTotalRevenue totalRevenue; + + public static final String SERIALIZED_NAME_SESSIONS_COUNT = "sessionsCount"; + @SerializedName(SERIALIZED_NAME_SESSIONS_COUNT) + private ApplicationAnalyticsDataPointSessionsCount sessionsCount; + + public static final String SERIALIZED_NAME_AVG_ITEMS_PER_SESSION = "avgItemsPerSession"; + @SerializedName(SERIALIZED_NAME_AVG_ITEMS_PER_SESSION) + private ApplicationAnalyticsDataPointAvgItemsPerSession avgItemsPerSession; + + public static final String SERIALIZED_NAME_AVG_SESSION_VALUE = "avgSessionValue"; + @SerializedName(SERIALIZED_NAME_AVG_SESSION_VALUE) + private ApplicationAnalyticsDataPointAvgSessionValue avgSessionValue; + + public static final String SERIALIZED_NAME_TOTAL_DISCOUNTS = "totalDiscounts"; + @SerializedName(SERIALIZED_NAME_TOTAL_DISCOUNTS) + private BigDecimal totalDiscounts; + + public static final String SERIALIZED_NAME_COUPONS_COUNT = "couponsCount"; + @SerializedName(SERIALIZED_NAME_COUPONS_COUNT) + private BigDecimal couponsCount; + + + public ApplicationAnalyticsDataPoint startTime(OffsetDateTime startTime) { + + this.startTime = startTime; + return this; + } + + /** + * The start of the aggregation time frame in UTC. + * @return startTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2024-02-01T00:00Z", value = "The start of the aggregation time frame in UTC.") + + public OffsetDateTime getStartTime() { + return startTime; + } + + + public void setStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + } + + + public ApplicationAnalyticsDataPoint endTime(OffsetDateTime endTime) { + + this.endTime = endTime; + return this; + } + + /** + * The end of the aggregation time frame in UTC. + * @return endTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The end of the aggregation time frame in UTC.") + + public OffsetDateTime getEndTime() { + return endTime; + } + + + public void setEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + } + + + public ApplicationAnalyticsDataPoint totalRevenue(ApplicationAnalyticsDataPointTotalRevenue totalRevenue) { + + this.totalRevenue = totalRevenue; + return this; + } + + /** + * Get totalRevenue + * @return totalRevenue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ApplicationAnalyticsDataPointTotalRevenue getTotalRevenue() { + return totalRevenue; + } + + + public void setTotalRevenue(ApplicationAnalyticsDataPointTotalRevenue totalRevenue) { + this.totalRevenue = totalRevenue; + } + + + public ApplicationAnalyticsDataPoint sessionsCount(ApplicationAnalyticsDataPointSessionsCount sessionsCount) { + + this.sessionsCount = sessionsCount; + return this; + } + + /** + * Get sessionsCount + * @return sessionsCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ApplicationAnalyticsDataPointSessionsCount getSessionsCount() { + return sessionsCount; + } + + + public void setSessionsCount(ApplicationAnalyticsDataPointSessionsCount sessionsCount) { + this.sessionsCount = sessionsCount; + } + + + public ApplicationAnalyticsDataPoint avgItemsPerSession(ApplicationAnalyticsDataPointAvgItemsPerSession avgItemsPerSession) { + + this.avgItemsPerSession = avgItemsPerSession; + return this; + } + + /** + * Get avgItemsPerSession + * @return avgItemsPerSession + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ApplicationAnalyticsDataPointAvgItemsPerSession getAvgItemsPerSession() { + return avgItemsPerSession; + } + + + public void setAvgItemsPerSession(ApplicationAnalyticsDataPointAvgItemsPerSession avgItemsPerSession) { + this.avgItemsPerSession = avgItemsPerSession; + } + + + public ApplicationAnalyticsDataPoint avgSessionValue(ApplicationAnalyticsDataPointAvgSessionValue avgSessionValue) { + + this.avgSessionValue = avgSessionValue; + return this; + } + + /** + * Get avgSessionValue + * @return avgSessionValue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ApplicationAnalyticsDataPointAvgSessionValue getAvgSessionValue() { + return avgSessionValue; + } + + + public void setAvgSessionValue(ApplicationAnalyticsDataPointAvgSessionValue avgSessionValue) { + this.avgSessionValue = avgSessionValue; + } + + + public ApplicationAnalyticsDataPoint totalDiscounts(BigDecimal totalDiscounts) { + + this.totalDiscounts = totalDiscounts; + return this; + } + + /** + * The total value of discounts given for cart items in influenced sessions. + * @return totalDiscounts + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "10.0", value = "The total value of discounts given for cart items in influenced sessions.") + + public BigDecimal getTotalDiscounts() { + return totalDiscounts; + } + + + public void setTotalDiscounts(BigDecimal totalDiscounts) { + this.totalDiscounts = totalDiscounts; + } + + + public ApplicationAnalyticsDataPoint couponsCount(BigDecimal couponsCount) { + + this.couponsCount = couponsCount; + return this; + } + + /** + * The number of times a coupon was successfully redeemed in influenced sessions. + * @return couponsCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "12.0", value = "The number of times a coupon was successfully redeemed in influenced sessions.") + + public BigDecimal getCouponsCount() { + return couponsCount; + } + + + public void setCouponsCount(BigDecimal couponsCount) { + this.couponsCount = couponsCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationAnalyticsDataPoint applicationAnalyticsDataPoint = (ApplicationAnalyticsDataPoint) o; + return Objects.equals(this.startTime, applicationAnalyticsDataPoint.startTime) && + Objects.equals(this.endTime, applicationAnalyticsDataPoint.endTime) && + Objects.equals(this.totalRevenue, applicationAnalyticsDataPoint.totalRevenue) && + Objects.equals(this.sessionsCount, applicationAnalyticsDataPoint.sessionsCount) && + Objects.equals(this.avgItemsPerSession, applicationAnalyticsDataPoint.avgItemsPerSession) && + Objects.equals(this.avgSessionValue, applicationAnalyticsDataPoint.avgSessionValue) && + Objects.equals(this.totalDiscounts, applicationAnalyticsDataPoint.totalDiscounts) && + Objects.equals(this.couponsCount, applicationAnalyticsDataPoint.couponsCount); + } + + @Override + public int hashCode() { + return Objects.hash(startTime, endTime, totalRevenue, sessionsCount, avgItemsPerSession, avgSessionValue, totalDiscounts, couponsCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationAnalyticsDataPoint {\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" totalRevenue: ").append(toIndentedString(totalRevenue)).append("\n"); + sb.append(" sessionsCount: ").append(toIndentedString(sessionsCount)).append("\n"); + sb.append(" avgItemsPerSession: ").append(toIndentedString(avgItemsPerSession)).append("\n"); + sb.append(" avgSessionValue: ").append(toIndentedString(avgSessionValue)).append("\n"); + sb.append(" totalDiscounts: ").append(toIndentedString(totalDiscounts)).append("\n"); + sb.append(" couponsCount: ").append(toIndentedString(couponsCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationAnalyticsDataPointAvgItemsPerSession.java b/src/main/java/one/talon/model/ApplicationAnalyticsDataPointAvgItemsPerSession.java new file mode 100644 index 00000000..d271c558 --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationAnalyticsDataPointAvgItemsPerSession.java @@ -0,0 +1,130 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * The number of items from sessions divided by the number of sessions. The `influenced` value includes only sessions with at least one applied effect. + */ +@ApiModel(description = "The number of items from sessions divided by the number of sessions. The `influenced` value includes only sessions with at least one applied effect.") + +public class ApplicationAnalyticsDataPointAvgItemsPerSession { + public static final String SERIALIZED_NAME_TOTAL = "total"; + @SerializedName(SERIALIZED_NAME_TOTAL) + private BigDecimal total; + + public static final String SERIALIZED_NAME_INFLUENCED = "influenced"; + @SerializedName(SERIALIZED_NAME_INFLUENCED) + private BigDecimal influenced; + + + public ApplicationAnalyticsDataPointAvgItemsPerSession total(BigDecimal total) { + + this.total = total; + return this; + } + + /** + * Get total + * @return total + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1.25", value = "") + + public BigDecimal getTotal() { + return total; + } + + + public void setTotal(BigDecimal total) { + this.total = total; + } + + + public ApplicationAnalyticsDataPointAvgItemsPerSession influenced(BigDecimal influenced) { + + this.influenced = influenced; + return this; + } + + /** + * Get influenced + * @return influenced + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getInfluenced() { + return influenced; + } + + + public void setInfluenced(BigDecimal influenced) { + this.influenced = influenced; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationAnalyticsDataPointAvgItemsPerSession applicationAnalyticsDataPointAvgItemsPerSession = (ApplicationAnalyticsDataPointAvgItemsPerSession) o; + return Objects.equals(this.total, applicationAnalyticsDataPointAvgItemsPerSession.total) && + Objects.equals(this.influenced, applicationAnalyticsDataPointAvgItemsPerSession.influenced); + } + + @Override + public int hashCode() { + return Objects.hash(total, influenced); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationAnalyticsDataPointAvgItemsPerSession {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" influenced: ").append(toIndentedString(influenced)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationAnalyticsDataPointAvgSessionValue.java b/src/main/java/one/talon/model/ApplicationAnalyticsDataPointAvgSessionValue.java new file mode 100644 index 00000000..39e95686 --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationAnalyticsDataPointAvgSessionValue.java @@ -0,0 +1,130 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * The average customer session value, calculated by dividing the revenue value by the number of sessions. The `influenced` value includes only sessions with at least one applied effect. + */ +@ApiModel(description = "The average customer session value, calculated by dividing the revenue value by the number of sessions. The `influenced` value includes only sessions with at least one applied effect.") + +public class ApplicationAnalyticsDataPointAvgSessionValue { + public static final String SERIALIZED_NAME_TOTAL = "total"; + @SerializedName(SERIALIZED_NAME_TOTAL) + private BigDecimal total; + + public static final String SERIALIZED_NAME_INFLUENCED = "influenced"; + @SerializedName(SERIALIZED_NAME_INFLUENCED) + private BigDecimal influenced; + + + public ApplicationAnalyticsDataPointAvgSessionValue total(BigDecimal total) { + + this.total = total; + return this; + } + + /** + * Get total + * @return total + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1.25", value = "") + + public BigDecimal getTotal() { + return total; + } + + + public void setTotal(BigDecimal total) { + this.total = total; + } + + + public ApplicationAnalyticsDataPointAvgSessionValue influenced(BigDecimal influenced) { + + this.influenced = influenced; + return this; + } + + /** + * Get influenced + * @return influenced + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getInfluenced() { + return influenced; + } + + + public void setInfluenced(BigDecimal influenced) { + this.influenced = influenced; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationAnalyticsDataPointAvgSessionValue applicationAnalyticsDataPointAvgSessionValue = (ApplicationAnalyticsDataPointAvgSessionValue) o; + return Objects.equals(this.total, applicationAnalyticsDataPointAvgSessionValue.total) && + Objects.equals(this.influenced, applicationAnalyticsDataPointAvgSessionValue.influenced); + } + + @Override + public int hashCode() { + return Objects.hash(total, influenced); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationAnalyticsDataPointAvgSessionValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" influenced: ").append(toIndentedString(influenced)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationAnalyticsDataPointSessionsCount.java b/src/main/java/one/talon/model/ApplicationAnalyticsDataPointSessionsCount.java new file mode 100644 index 00000000..c1bf1e4d --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationAnalyticsDataPointSessionsCount.java @@ -0,0 +1,130 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * The number of all closed sessions. The `influenced` value includes only sessions with at least one applied effect. + */ +@ApiModel(description = "The number of all closed sessions. The `influenced` value includes only sessions with at least one applied effect.") + +public class ApplicationAnalyticsDataPointSessionsCount { + public static final String SERIALIZED_NAME_TOTAL = "total"; + @SerializedName(SERIALIZED_NAME_TOTAL) + private BigDecimal total; + + public static final String SERIALIZED_NAME_INFLUENCED = "influenced"; + @SerializedName(SERIALIZED_NAME_INFLUENCED) + private BigDecimal influenced; + + + public ApplicationAnalyticsDataPointSessionsCount total(BigDecimal total) { + + this.total = total; + return this; + } + + /** + * Get total + * @return total + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "15.0", value = "") + + public BigDecimal getTotal() { + return total; + } + + + public void setTotal(BigDecimal total) { + this.total = total; + } + + + public ApplicationAnalyticsDataPointSessionsCount influenced(BigDecimal influenced) { + + this.influenced = influenced; + return this; + } + + /** + * Get influenced + * @return influenced + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "5.0", value = "") + + public BigDecimal getInfluenced() { + return influenced; + } + + + public void setInfluenced(BigDecimal influenced) { + this.influenced = influenced; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationAnalyticsDataPointSessionsCount applicationAnalyticsDataPointSessionsCount = (ApplicationAnalyticsDataPointSessionsCount) o; + return Objects.equals(this.total, applicationAnalyticsDataPointSessionsCount.total) && + Objects.equals(this.influenced, applicationAnalyticsDataPointSessionsCount.influenced); + } + + @Override + public int hashCode() { + return Objects.hash(total, influenced); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationAnalyticsDataPointSessionsCount {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" influenced: ").append(toIndentedString(influenced)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationAnalyticsDataPointTotalRevenue.java b/src/main/java/one/talon/model/ApplicationAnalyticsDataPointTotalRevenue.java new file mode 100644 index 00000000..0161d467 --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationAnalyticsDataPointTotalRevenue.java @@ -0,0 +1,130 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * The total, pre-discount value of all items purchased in a customer session. + */ +@ApiModel(description = "The total, pre-discount value of all items purchased in a customer session.") + +public class ApplicationAnalyticsDataPointTotalRevenue { + public static final String SERIALIZED_NAME_TOTAL = "total"; + @SerializedName(SERIALIZED_NAME_TOTAL) + private BigDecimal total; + + public static final String SERIALIZED_NAME_INFLUENCED = "influenced"; + @SerializedName(SERIALIZED_NAME_INFLUENCED) + private BigDecimal influenced; + + + public ApplicationAnalyticsDataPointTotalRevenue total(BigDecimal total) { + + this.total = total; + return this; + } + + /** + * Get total + * @return total + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1.25", value = "") + + public BigDecimal getTotal() { + return total; + } + + + public void setTotal(BigDecimal total) { + this.total = total; + } + + + public ApplicationAnalyticsDataPointTotalRevenue influenced(BigDecimal influenced) { + + this.influenced = influenced; + return this; + } + + /** + * Get influenced + * @return influenced + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getInfluenced() { + return influenced; + } + + + public void setInfluenced(BigDecimal influenced) { + this.influenced = influenced; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationAnalyticsDataPointTotalRevenue applicationAnalyticsDataPointTotalRevenue = (ApplicationAnalyticsDataPointTotalRevenue) o; + return Objects.equals(this.total, applicationAnalyticsDataPointTotalRevenue.total) && + Objects.equals(this.influenced, applicationAnalyticsDataPointTotalRevenue.influenced); + } + + @Override + public int hashCode() { + return Objects.hash(total, influenced); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationAnalyticsDataPointTotalRevenue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" influenced: ").append(toIndentedString(influenced)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationCampaignAnalytics.java b/src/main/java/one/talon/model/ApplicationCampaignAnalytics.java new file mode 100644 index 00000000..abc595d6 --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationCampaignAnalytics.java @@ -0,0 +1,571 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.ApplicationCampaignAnalyticsAvgItemsPerSession; +import one.talon.model.ApplicationCampaignAnalyticsAvgSessionValue; +import one.talon.model.ApplicationCampaignAnalyticsCouponsCount; +import one.talon.model.ApplicationCampaignAnalyticsSessionsCount; +import one.talon.model.ApplicationCampaignAnalyticsTotalDiscounts; +import one.talon.model.ApplicationCampaignAnalyticsTotalRevenue; +import org.threeten.bp.OffsetDateTime; + +/** + * ApplicationCampaignAnalytics + */ + +public class ApplicationCampaignAnalytics { + public static final String SERIALIZED_NAME_START_TIME = "startTime"; + @SerializedName(SERIALIZED_NAME_START_TIME) + private OffsetDateTime startTime; + + public static final String SERIALIZED_NAME_END_TIME = "endTime"; + @SerializedName(SERIALIZED_NAME_END_TIME) + private OffsetDateTime endTime; + + public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) + private Integer campaignId; + + public static final String SERIALIZED_NAME_CAMPAIGN_NAME = "campaignName"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_NAME) + private String campaignName; + + public static final String SERIALIZED_NAME_CAMPAIGN_TAGS = "campaignTags"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_TAGS) + private List campaignTags = null; + + /** + * The state of the campaign. **Note:** A disabled or archived campaign is not evaluated for rules or coupons. + */ + @JsonAdapter(CampaignStateEnum.Adapter.class) + public enum CampaignStateEnum { + ENABLED("enabled"), + + DISABLED("disabled"), + + ARCHIVED("archived"); + + private String value; + + CampaignStateEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CampaignStateEnum fromValue(String value) { + for (CampaignStateEnum b : CampaignStateEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CampaignStateEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CampaignStateEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CampaignStateEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CAMPAIGN_STATE = "campaignState"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_STATE) + private CampaignStateEnum campaignState = CampaignStateEnum.ENABLED; + + public static final String SERIALIZED_NAME_CAMPAIGN_ACTIVE_RULESET_ID = "campaignActiveRulesetId"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_ACTIVE_RULESET_ID) + private Integer campaignActiveRulesetId; + + public static final String SERIALIZED_NAME_CAMPAIGN_START_TIME = "campaignStartTime"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_START_TIME) + private OffsetDateTime campaignStartTime; + + public static final String SERIALIZED_NAME_CAMPAIGN_END_TIME = "campaignEndTime"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_END_TIME) + private OffsetDateTime campaignEndTime; + + public static final String SERIALIZED_NAME_TOTAL_REVENUE = "totalRevenue"; + @SerializedName(SERIALIZED_NAME_TOTAL_REVENUE) + private ApplicationCampaignAnalyticsTotalRevenue totalRevenue; + + public static final String SERIALIZED_NAME_SESSIONS_COUNT = "sessionsCount"; + @SerializedName(SERIALIZED_NAME_SESSIONS_COUNT) + private ApplicationCampaignAnalyticsSessionsCount sessionsCount; + + public static final String SERIALIZED_NAME_AVG_ITEMS_PER_SESSION = "avgItemsPerSession"; + @SerializedName(SERIALIZED_NAME_AVG_ITEMS_PER_SESSION) + private ApplicationCampaignAnalyticsAvgItemsPerSession avgItemsPerSession; + + public static final String SERIALIZED_NAME_AVG_SESSION_VALUE = "avgSessionValue"; + @SerializedName(SERIALIZED_NAME_AVG_SESSION_VALUE) + private ApplicationCampaignAnalyticsAvgSessionValue avgSessionValue; + + public static final String SERIALIZED_NAME_TOTAL_DISCOUNTS = "totalDiscounts"; + @SerializedName(SERIALIZED_NAME_TOTAL_DISCOUNTS) + private ApplicationCampaignAnalyticsTotalDiscounts totalDiscounts; + + public static final String SERIALIZED_NAME_COUPONS_COUNT = "couponsCount"; + @SerializedName(SERIALIZED_NAME_COUPONS_COUNT) + private ApplicationCampaignAnalyticsCouponsCount couponsCount; + + + public ApplicationCampaignAnalytics startTime(OffsetDateTime startTime) { + + this.startTime = startTime; + return this; + } + + /** + * The start of the aggregation time frame in UTC. + * @return startTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2024-02-01T00:00Z", value = "The start of the aggregation time frame in UTC.") + + public OffsetDateTime getStartTime() { + return startTime; + } + + + public void setStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + } + + + public ApplicationCampaignAnalytics endTime(OffsetDateTime endTime) { + + this.endTime = endTime; + return this; + } + + /** + * The end of the aggregation time frame in UTC. + * @return endTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The end of the aggregation time frame in UTC.") + + public OffsetDateTime getEndTime() { + return endTime; + } + + + public void setEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + } + + + public ApplicationCampaignAnalytics campaignId(Integer campaignId) { + + this.campaignId = campaignId; + return this; + } + + /** + * The ID of the campaign. + * @return campaignId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "The ID of the campaign.") + + public Integer getCampaignId() { + return campaignId; + } + + + public void setCampaignId(Integer campaignId) { + this.campaignId = campaignId; + } + + + public ApplicationCampaignAnalytics campaignName(String campaignName) { + + this.campaignName = campaignName; + return this; + } + + /** + * The name of the campaign. + * @return campaignName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Summer promotions", value = "The name of the campaign.") + + public String getCampaignName() { + return campaignName; + } + + + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + + public ApplicationCampaignAnalytics campaignTags(List campaignTags) { + + this.campaignTags = campaignTags; + return this; + } + + public ApplicationCampaignAnalytics addCampaignTagsItem(String campaignTagsItem) { + if (this.campaignTags == null) { + this.campaignTags = new ArrayList(); + } + this.campaignTags.add(campaignTagsItem); + return this; + } + + /** + * A list of tags for the campaign. + * @return campaignTags + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[summer]", value = "A list of tags for the campaign.") + + public List getCampaignTags() { + return campaignTags; + } + + + public void setCampaignTags(List campaignTags) { + this.campaignTags = campaignTags; + } + + + public ApplicationCampaignAnalytics campaignState(CampaignStateEnum campaignState) { + + this.campaignState = campaignState; + return this; + } + + /** + * The state of the campaign. **Note:** A disabled or archived campaign is not evaluated for rules or coupons. + * @return campaignState + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "enabled", value = "The state of the campaign. **Note:** A disabled or archived campaign is not evaluated for rules or coupons. ") + + public CampaignStateEnum getCampaignState() { + return campaignState; + } + + + public void setCampaignState(CampaignStateEnum campaignState) { + this.campaignState = campaignState; + } + + + public ApplicationCampaignAnalytics campaignActiveRulesetId(Integer campaignActiveRulesetId) { + + this.campaignActiveRulesetId = campaignActiveRulesetId; + return this; + } + + /** + * The [ID of the ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. + * @return campaignActiveRulesetId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2", value = "The [ID of the ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") + + public Integer getCampaignActiveRulesetId() { + return campaignActiveRulesetId; + } + + + public void setCampaignActiveRulesetId(Integer campaignActiveRulesetId) { + this.campaignActiveRulesetId = campaignActiveRulesetId; + } + + + public ApplicationCampaignAnalytics campaignStartTime(OffsetDateTime campaignStartTime) { + + this.campaignStartTime = campaignStartTime; + return this; + } + + /** + * Date and time when the campaign becomes active. + * @return campaignStartTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Date and time when the campaign becomes active.") + + public OffsetDateTime getCampaignStartTime() { + return campaignStartTime; + } + + + public void setCampaignStartTime(OffsetDateTime campaignStartTime) { + this.campaignStartTime = campaignStartTime; + } + + + public ApplicationCampaignAnalytics campaignEndTime(OffsetDateTime campaignEndTime) { + + this.campaignEndTime = campaignEndTime; + return this; + } + + /** + * Date and time when the campaign becomes inactive. + * @return campaignEndTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-10-01T02:00Z", value = "Date and time when the campaign becomes inactive.") + + public OffsetDateTime getCampaignEndTime() { + return campaignEndTime; + } + + + public void setCampaignEndTime(OffsetDateTime campaignEndTime) { + this.campaignEndTime = campaignEndTime; + } + + + public ApplicationCampaignAnalytics totalRevenue(ApplicationCampaignAnalyticsTotalRevenue totalRevenue) { + + this.totalRevenue = totalRevenue; + return this; + } + + /** + * Get totalRevenue + * @return totalRevenue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ApplicationCampaignAnalyticsTotalRevenue getTotalRevenue() { + return totalRevenue; + } + + + public void setTotalRevenue(ApplicationCampaignAnalyticsTotalRevenue totalRevenue) { + this.totalRevenue = totalRevenue; + } + + + public ApplicationCampaignAnalytics sessionsCount(ApplicationCampaignAnalyticsSessionsCount sessionsCount) { + + this.sessionsCount = sessionsCount; + return this; + } + + /** + * Get sessionsCount + * @return sessionsCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ApplicationCampaignAnalyticsSessionsCount getSessionsCount() { + return sessionsCount; + } + + + public void setSessionsCount(ApplicationCampaignAnalyticsSessionsCount sessionsCount) { + this.sessionsCount = sessionsCount; + } + + + public ApplicationCampaignAnalytics avgItemsPerSession(ApplicationCampaignAnalyticsAvgItemsPerSession avgItemsPerSession) { + + this.avgItemsPerSession = avgItemsPerSession; + return this; + } + + /** + * Get avgItemsPerSession + * @return avgItemsPerSession + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ApplicationCampaignAnalyticsAvgItemsPerSession getAvgItemsPerSession() { + return avgItemsPerSession; + } + + + public void setAvgItemsPerSession(ApplicationCampaignAnalyticsAvgItemsPerSession avgItemsPerSession) { + this.avgItemsPerSession = avgItemsPerSession; + } + + + public ApplicationCampaignAnalytics avgSessionValue(ApplicationCampaignAnalyticsAvgSessionValue avgSessionValue) { + + this.avgSessionValue = avgSessionValue; + return this; + } + + /** + * Get avgSessionValue + * @return avgSessionValue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ApplicationCampaignAnalyticsAvgSessionValue getAvgSessionValue() { + return avgSessionValue; + } + + + public void setAvgSessionValue(ApplicationCampaignAnalyticsAvgSessionValue avgSessionValue) { + this.avgSessionValue = avgSessionValue; + } + + + public ApplicationCampaignAnalytics totalDiscounts(ApplicationCampaignAnalyticsTotalDiscounts totalDiscounts) { + + this.totalDiscounts = totalDiscounts; + return this; + } + + /** + * Get totalDiscounts + * @return totalDiscounts + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ApplicationCampaignAnalyticsTotalDiscounts getTotalDiscounts() { + return totalDiscounts; + } + + + public void setTotalDiscounts(ApplicationCampaignAnalyticsTotalDiscounts totalDiscounts) { + this.totalDiscounts = totalDiscounts; + } + + + public ApplicationCampaignAnalytics couponsCount(ApplicationCampaignAnalyticsCouponsCount couponsCount) { + + this.couponsCount = couponsCount; + return this; + } + + /** + * Get couponsCount + * @return couponsCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ApplicationCampaignAnalyticsCouponsCount getCouponsCount() { + return couponsCount; + } + + + public void setCouponsCount(ApplicationCampaignAnalyticsCouponsCount couponsCount) { + this.couponsCount = couponsCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationCampaignAnalytics applicationCampaignAnalytics = (ApplicationCampaignAnalytics) o; + return Objects.equals(this.startTime, applicationCampaignAnalytics.startTime) && + Objects.equals(this.endTime, applicationCampaignAnalytics.endTime) && + Objects.equals(this.campaignId, applicationCampaignAnalytics.campaignId) && + Objects.equals(this.campaignName, applicationCampaignAnalytics.campaignName) && + Objects.equals(this.campaignTags, applicationCampaignAnalytics.campaignTags) && + Objects.equals(this.campaignState, applicationCampaignAnalytics.campaignState) && + Objects.equals(this.campaignActiveRulesetId, applicationCampaignAnalytics.campaignActiveRulesetId) && + Objects.equals(this.campaignStartTime, applicationCampaignAnalytics.campaignStartTime) && + Objects.equals(this.campaignEndTime, applicationCampaignAnalytics.campaignEndTime) && + Objects.equals(this.totalRevenue, applicationCampaignAnalytics.totalRevenue) && + Objects.equals(this.sessionsCount, applicationCampaignAnalytics.sessionsCount) && + Objects.equals(this.avgItemsPerSession, applicationCampaignAnalytics.avgItemsPerSession) && + Objects.equals(this.avgSessionValue, applicationCampaignAnalytics.avgSessionValue) && + Objects.equals(this.totalDiscounts, applicationCampaignAnalytics.totalDiscounts) && + Objects.equals(this.couponsCount, applicationCampaignAnalytics.couponsCount); + } + + @Override + public int hashCode() { + return Objects.hash(startTime, endTime, campaignId, campaignName, campaignTags, campaignState, campaignActiveRulesetId, campaignStartTime, campaignEndTime, totalRevenue, sessionsCount, avgItemsPerSession, avgSessionValue, totalDiscounts, couponsCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationCampaignAnalytics {\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); + sb.append(" campaignName: ").append(toIndentedString(campaignName)).append("\n"); + sb.append(" campaignTags: ").append(toIndentedString(campaignTags)).append("\n"); + sb.append(" campaignState: ").append(toIndentedString(campaignState)).append("\n"); + sb.append(" campaignActiveRulesetId: ").append(toIndentedString(campaignActiveRulesetId)).append("\n"); + sb.append(" campaignStartTime: ").append(toIndentedString(campaignStartTime)).append("\n"); + sb.append(" campaignEndTime: ").append(toIndentedString(campaignEndTime)).append("\n"); + sb.append(" totalRevenue: ").append(toIndentedString(totalRevenue)).append("\n"); + sb.append(" sessionsCount: ").append(toIndentedString(sessionsCount)).append("\n"); + sb.append(" avgItemsPerSession: ").append(toIndentedString(avgItemsPerSession)).append("\n"); + sb.append(" avgSessionValue: ").append(toIndentedString(avgSessionValue)).append("\n"); + sb.append(" totalDiscounts: ").append(toIndentedString(totalDiscounts)).append("\n"); + sb.append(" couponsCount: ").append(toIndentedString(couponsCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationCampaignAnalyticsAvgItemsPerSession.java b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsAvgItemsPerSession.java new file mode 100644 index 00000000..5af0af29 --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsAvgItemsPerSession.java @@ -0,0 +1,159 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * The number of items from sessions divided by the number of sessions. The `influenced` value includes only sessions with at least one applied effect. + */ +@ApiModel(description = "The number of items from sessions divided by the number of sessions. The `influenced` value includes only sessions with at least one applied effect.") + +public class ApplicationCampaignAnalyticsAvgItemsPerSession { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private BigDecimal value; + + public static final String SERIALIZED_NAME_UPLIFT = "uplift"; + @SerializedName(SERIALIZED_NAME_UPLIFT) + private BigDecimal uplift; + + public static final String SERIALIZED_NAME_TREND = "trend"; + @SerializedName(SERIALIZED_NAME_TREND) + private BigDecimal trend; + + + public ApplicationCampaignAnalyticsAvgItemsPerSession value(BigDecimal value) { + + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "12.0", value = "") + + public BigDecimal getValue() { + return value; + } + + + public void setValue(BigDecimal value) { + this.value = value; + } + + + public ApplicationCampaignAnalyticsAvgItemsPerSession uplift(BigDecimal uplift) { + + this.uplift = uplift; + return this; + } + + /** + * Get uplift + * @return uplift + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getUplift() { + return uplift; + } + + + public void setUplift(BigDecimal uplift) { + this.uplift = uplift; + } + + + public ApplicationCampaignAnalyticsAvgItemsPerSession trend(BigDecimal trend) { + + this.trend = trend; + return this; + } + + /** + * Get trend + * @return trend + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getTrend() { + return trend; + } + + + public void setTrend(BigDecimal trend) { + this.trend = trend; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationCampaignAnalyticsAvgItemsPerSession applicationCampaignAnalyticsAvgItemsPerSession = (ApplicationCampaignAnalyticsAvgItemsPerSession) o; + return Objects.equals(this.value, applicationCampaignAnalyticsAvgItemsPerSession.value) && + Objects.equals(this.uplift, applicationCampaignAnalyticsAvgItemsPerSession.uplift) && + Objects.equals(this.trend, applicationCampaignAnalyticsAvgItemsPerSession.trend); + } + + @Override + public int hashCode() { + return Objects.hash(value, uplift, trend); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationCampaignAnalyticsAvgItemsPerSession {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" uplift: ").append(toIndentedString(uplift)).append("\n"); + sb.append(" trend: ").append(toIndentedString(trend)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationCampaignAnalyticsAvgSessionValue.java b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsAvgSessionValue.java new file mode 100644 index 00000000..27f80705 --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsAvgSessionValue.java @@ -0,0 +1,159 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * The average customer session value, calculated by dividing the revenue value by the number of sessions. The `influenced` value includes only sessions with at least one applied effect. + */ +@ApiModel(description = "The average customer session value, calculated by dividing the revenue value by the number of sessions. The `influenced` value includes only sessions with at least one applied effect.") + +public class ApplicationCampaignAnalyticsAvgSessionValue { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private BigDecimal value; + + public static final String SERIALIZED_NAME_UPLIFT = "uplift"; + @SerializedName(SERIALIZED_NAME_UPLIFT) + private BigDecimal uplift; + + public static final String SERIALIZED_NAME_TREND = "trend"; + @SerializedName(SERIALIZED_NAME_TREND) + private BigDecimal trend; + + + public ApplicationCampaignAnalyticsAvgSessionValue value(BigDecimal value) { + + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "12.0", value = "") + + public BigDecimal getValue() { + return value; + } + + + public void setValue(BigDecimal value) { + this.value = value; + } + + + public ApplicationCampaignAnalyticsAvgSessionValue uplift(BigDecimal uplift) { + + this.uplift = uplift; + return this; + } + + /** + * Get uplift + * @return uplift + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getUplift() { + return uplift; + } + + + public void setUplift(BigDecimal uplift) { + this.uplift = uplift; + } + + + public ApplicationCampaignAnalyticsAvgSessionValue trend(BigDecimal trend) { + + this.trend = trend; + return this; + } + + /** + * Get trend + * @return trend + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getTrend() { + return trend; + } + + + public void setTrend(BigDecimal trend) { + this.trend = trend; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationCampaignAnalyticsAvgSessionValue applicationCampaignAnalyticsAvgSessionValue = (ApplicationCampaignAnalyticsAvgSessionValue) o; + return Objects.equals(this.value, applicationCampaignAnalyticsAvgSessionValue.value) && + Objects.equals(this.uplift, applicationCampaignAnalyticsAvgSessionValue.uplift) && + Objects.equals(this.trend, applicationCampaignAnalyticsAvgSessionValue.trend); + } + + @Override + public int hashCode() { + return Objects.hash(value, uplift, trend); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationCampaignAnalyticsAvgSessionValue {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" uplift: ").append(toIndentedString(uplift)).append("\n"); + sb.append(" trend: ").append(toIndentedString(trend)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationCampaignAnalyticsCouponsCount.java b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsCouponsCount.java new file mode 100644 index 00000000..3d17787e --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsCouponsCount.java @@ -0,0 +1,130 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * The number of times a coupon was successfully redeemed in influenced sessions. + */ +@ApiModel(description = "The number of times a coupon was successfully redeemed in influenced sessions.") + +public class ApplicationCampaignAnalyticsCouponsCount { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private BigDecimal value; + + public static final String SERIALIZED_NAME_TREND = "trend"; + @SerializedName(SERIALIZED_NAME_TREND) + private BigDecimal trend; + + + public ApplicationCampaignAnalyticsCouponsCount value(BigDecimal value) { + + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "10.0", value = "") + + public BigDecimal getValue() { + return value; + } + + + public void setValue(BigDecimal value) { + this.value = value; + } + + + public ApplicationCampaignAnalyticsCouponsCount trend(BigDecimal trend) { + + this.trend = trend; + return this; + } + + /** + * Get trend + * @return trend + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getTrend() { + return trend; + } + + + public void setTrend(BigDecimal trend) { + this.trend = trend; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationCampaignAnalyticsCouponsCount applicationCampaignAnalyticsCouponsCount = (ApplicationCampaignAnalyticsCouponsCount) o; + return Objects.equals(this.value, applicationCampaignAnalyticsCouponsCount.value) && + Objects.equals(this.trend, applicationCampaignAnalyticsCouponsCount.trend); + } + + @Override + public int hashCode() { + return Objects.hash(value, trend); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationCampaignAnalyticsCouponsCount {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" trend: ").append(toIndentedString(trend)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationCampaignAnalyticsSessionsCount.java b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsSessionsCount.java new file mode 100644 index 00000000..817a0554 --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsSessionsCount.java @@ -0,0 +1,159 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * The number of all closed sessions. The `influenced` value includes only sessions with at least one applied effect. + */ +@ApiModel(description = "The number of all closed sessions. The `influenced` value includes only sessions with at least one applied effect.") + +public class ApplicationCampaignAnalyticsSessionsCount { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private BigDecimal value; + + public static final String SERIALIZED_NAME_INFLUENCE_RATE = "influence_rate"; + @SerializedName(SERIALIZED_NAME_INFLUENCE_RATE) + private BigDecimal influenceRate; + + public static final String SERIALIZED_NAME_TREND = "trend"; + @SerializedName(SERIALIZED_NAME_TREND) + private BigDecimal trend; + + + public ApplicationCampaignAnalyticsSessionsCount value(BigDecimal value) { + + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "12.0", value = "") + + public BigDecimal getValue() { + return value; + } + + + public void setValue(BigDecimal value) { + this.value = value; + } + + + public ApplicationCampaignAnalyticsSessionsCount influenceRate(BigDecimal influenceRate) { + + this.influenceRate = influenceRate; + return this; + } + + /** + * Get influenceRate + * @return influenceRate + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getInfluenceRate() { + return influenceRate; + } + + + public void setInfluenceRate(BigDecimal influenceRate) { + this.influenceRate = influenceRate; + } + + + public ApplicationCampaignAnalyticsSessionsCount trend(BigDecimal trend) { + + this.trend = trend; + return this; + } + + /** + * Get trend + * @return trend + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getTrend() { + return trend; + } + + + public void setTrend(BigDecimal trend) { + this.trend = trend; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationCampaignAnalyticsSessionsCount applicationCampaignAnalyticsSessionsCount = (ApplicationCampaignAnalyticsSessionsCount) o; + return Objects.equals(this.value, applicationCampaignAnalyticsSessionsCount.value) && + Objects.equals(this.influenceRate, applicationCampaignAnalyticsSessionsCount.influenceRate) && + Objects.equals(this.trend, applicationCampaignAnalyticsSessionsCount.trend); + } + + @Override + public int hashCode() { + return Objects.hash(value, influenceRate, trend); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationCampaignAnalyticsSessionsCount {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" influenceRate: ").append(toIndentedString(influenceRate)).append("\n"); + sb.append(" trend: ").append(toIndentedString(trend)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationCampaignAnalyticsTotalDiscounts.java b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsTotalDiscounts.java new file mode 100644 index 00000000..59755bfe --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsTotalDiscounts.java @@ -0,0 +1,130 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * The total value of discounts given for cart items in influenced sessions. + */ +@ApiModel(description = "The total value of discounts given for cart items in influenced sessions.") + +public class ApplicationCampaignAnalyticsTotalDiscounts { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private BigDecimal value; + + public static final String SERIALIZED_NAME_TREND = "trend"; + @SerializedName(SERIALIZED_NAME_TREND) + private BigDecimal trend; + + + public ApplicationCampaignAnalyticsTotalDiscounts value(BigDecimal value) { + + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "10.0", value = "") + + public BigDecimal getValue() { + return value; + } + + + public void setValue(BigDecimal value) { + this.value = value; + } + + + public ApplicationCampaignAnalyticsTotalDiscounts trend(BigDecimal trend) { + + this.trend = trend; + return this; + } + + /** + * Get trend + * @return trend + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getTrend() { + return trend; + } + + + public void setTrend(BigDecimal trend) { + this.trend = trend; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationCampaignAnalyticsTotalDiscounts applicationCampaignAnalyticsTotalDiscounts = (ApplicationCampaignAnalyticsTotalDiscounts) o; + return Objects.equals(this.value, applicationCampaignAnalyticsTotalDiscounts.value) && + Objects.equals(this.trend, applicationCampaignAnalyticsTotalDiscounts.trend); + } + + @Override + public int hashCode() { + return Objects.hash(value, trend); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationCampaignAnalyticsTotalDiscounts {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" trend: ").append(toIndentedString(trend)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationCampaignAnalyticsTotalRevenue.java b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsTotalRevenue.java new file mode 100644 index 00000000..c4c073b2 --- /dev/null +++ b/src/main/java/one/talon/model/ApplicationCampaignAnalyticsTotalRevenue.java @@ -0,0 +1,159 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * The total, pre-discount value of all items purchased in a customer session. + */ +@ApiModel(description = "The total, pre-discount value of all items purchased in a customer session.") + +public class ApplicationCampaignAnalyticsTotalRevenue { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private BigDecimal value; + + public static final String SERIALIZED_NAME_INFLUENCE_RATE = "influence_rate"; + @SerializedName(SERIALIZED_NAME_INFLUENCE_RATE) + private BigDecimal influenceRate; + + public static final String SERIALIZED_NAME_TREND = "trend"; + @SerializedName(SERIALIZED_NAME_TREND) + private BigDecimal trend; + + + public ApplicationCampaignAnalyticsTotalRevenue value(BigDecimal value) { + + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1.25", value = "") + + public BigDecimal getValue() { + return value; + } + + + public void setValue(BigDecimal value) { + this.value = value; + } + + + public ApplicationCampaignAnalyticsTotalRevenue influenceRate(BigDecimal influenceRate) { + + this.influenceRate = influenceRate; + return this; + } + + /** + * Get influenceRate + * @return influenceRate + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getInfluenceRate() { + return influenceRate; + } + + + public void setInfluenceRate(BigDecimal influenceRate) { + this.influenceRate = influenceRate; + } + + + public ApplicationCampaignAnalyticsTotalRevenue trend(BigDecimal trend) { + + this.trend = trend; + return this; + } + + /** + * Get trend + * @return trend + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "3.25", value = "") + + public BigDecimal getTrend() { + return trend; + } + + + public void setTrend(BigDecimal trend) { + this.trend = trend; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationCampaignAnalyticsTotalRevenue applicationCampaignAnalyticsTotalRevenue = (ApplicationCampaignAnalyticsTotalRevenue) o; + return Objects.equals(this.value, applicationCampaignAnalyticsTotalRevenue.value) && + Objects.equals(this.influenceRate, applicationCampaignAnalyticsTotalRevenue.influenceRate) && + Objects.equals(this.trend, applicationCampaignAnalyticsTotalRevenue.trend); + } + + @Override + public int hashCode() { + return Objects.hash(value, influenceRate, trend); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationCampaignAnalyticsTotalRevenue {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" influenceRate: ").append(toIndentedString(influenceRate)).append("\n"); + sb.append(" trend: ").append(toIndentedString(trend)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ApplicationCustomer.java b/src/main/java/one/talon/model/ApplicationCustomer.java index aefcd891..669a4ab2 100644 --- a/src/main/java/one/talon/model/ApplicationCustomer.java +++ b/src/main/java/one/talon/model/ApplicationCustomer.java @@ -330,11 +330,11 @@ public ApplicationCustomer sandbox(Boolean sandbox) { } /** - * Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + * An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). * @return sandbox **/ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). ") + @ApiModelProperty(example = "false", value = "An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). ") public Boolean getSandbox() { return sandbox; diff --git a/src/main/java/one/talon/model/Audience.java b/src/main/java/one/talon/model/Audience.java index 965b747d..f255a0a8 100644 --- a/src/main/java/one/talon/model/Audience.java +++ b/src/main/java/one/talon/model/Audience.java @@ -194,7 +194,7 @@ public Audience description(String description) { * @return description **/ @javax.annotation.Nullable - @ApiModelProperty(example = "Travel audience 18-25", value = "A description of the audience.") + @ApiModelProperty(example = "Travel audience 18-27", value = "A description of the audience.") public String getDescription() { return description; diff --git a/src/main/java/one/talon/model/AudienceAnalytics.java b/src/main/java/one/talon/model/AudienceAnalytics.java index 0f53dce3..14e7af6c 100644 --- a/src/main/java/one/talon/model/AudienceAnalytics.java +++ b/src/main/java/one/talon/model/AudienceAnalytics.java @@ -25,9 +25,9 @@ import java.io.IOException; /** - * The audiences and their members count. + * The audiences and their member count. */ -@ApiModel(description = "The audiences and their members count.") +@ApiModel(description = "The audiences and their member count.") public class AudienceAnalytics { public static final String SERIALIZED_NAME_AUDIENCE_ID = "audienceId"; @@ -69,11 +69,11 @@ public AudienceAnalytics membersCount(Integer membersCount) { } /** - * The count of members under a single audience. + * The member count of the audience. * @return membersCount **/ @javax.annotation.Nullable - @ApiModelProperty(example = "1234", value = "The count of members under a single audience.") + @ApiModelProperty(example = "1234", value = "The member count of the audience.") public Integer getMembersCount() { return membersCount; diff --git a/src/main/java/one/talon/model/AudienceCustomer.java b/src/main/java/one/talon/model/AudienceCustomer.java index 71f2893a..0ae391f9 100644 --- a/src/main/java/one/talon/model/AudienceCustomer.java +++ b/src/main/java/one/talon/model/AudienceCustomer.java @@ -334,11 +334,11 @@ public AudienceCustomer sandbox(Boolean sandbox) { } /** - * Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + * An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). * @return sandbox **/ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). ") + @ApiModelProperty(example = "false", value = "An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). ") public Boolean getSandbox() { return sandbox; diff --git a/src/main/java/one/talon/model/BaseCampaign.java b/src/main/java/one/talon/model/BaseCampaign.java index 5e8e4a81..4d5dfc1b 100644 --- a/src/main/java/one/talon/model/BaseCampaign.java +++ b/src/main/java/one/talon/model/BaseCampaign.java @@ -128,7 +128,9 @@ public enum FeaturesEnum { GIVEAWAYS("giveaways"), - STRIKETHROUGH("strikethrough"); + STRIKETHROUGH("strikethrough"), + + ACHIEVEMENTS("achievements"); private String value; @@ -188,10 +190,6 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) private List campaignGroups = null; - public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; - @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Integer evaluationGroupId; - /** * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. */ @@ -565,29 +563,6 @@ public void setCampaignGroups(List campaignGroups) { } - public BaseCampaign evaluationGroupId(Integer evaluationGroupId) { - - this.evaluationGroupId = evaluationGroupId; - return this; - } - - /** - * The ID of the campaign evaluation group the campaign belongs to. - * @return evaluationGroupId - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - - public Integer getEvaluationGroupId() { - return evaluationGroupId; - } - - - public void setEvaluationGroupId(Integer evaluationGroupId) { - this.evaluationGroupId = evaluationGroupId; - } - - public BaseCampaign type(TypeEnum type) { this.type = type; @@ -664,14 +639,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.referralSettings, baseCampaign.referralSettings) && Objects.equals(this.limits, baseCampaign.limits) && Objects.equals(this.campaignGroups, baseCampaign.campaignGroups) && - Objects.equals(this.evaluationGroupId, baseCampaign.evaluationGroupId) && Objects.equals(this.type, baseCampaign.type) && Objects.equals(this.linkedStoreIds, baseCampaign.linkedStoreIds); } @Override public int hashCode() { - return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, evaluationGroupId, type, linkedStoreIds); + return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, type, linkedStoreIds); } @@ -692,7 +666,6 @@ public String toString() { sb.append(" referralSettings: ").append(toIndentedString(referralSettings)).append("\n"); sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); sb.append(" campaignGroups: ").append(toIndentedString(campaignGroups)).append("\n"); - sb.append(" evaluationGroupId: ").append(toIndentedString(evaluationGroupId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" linkedStoreIds: ").append(toIndentedString(linkedStoreIds)).append("\n"); sb.append("}"); diff --git a/src/main/java/one/talon/model/BaseLoyaltyProgram.java b/src/main/java/one/talon/model/BaseLoyaltyProgram.java index 2fb9b76d..ead51962 100644 --- a/src/main/java/one/talon/model/BaseLoyaltyProgram.java +++ b/src/main/java/one/talon/model/BaseLoyaltyProgram.java @@ -63,6 +63,57 @@ public class BaseLoyaltyProgram { @SerializedName(SERIALIZED_NAME_SANDBOX) private Boolean sandbox; + /** + * 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. + */ + @JsonAdapter(TiersExpirationPolicyEnum.Adapter.class) + public enum TiersExpirationPolicyEnum { + TIER_START_DATE("tier_start_date"), + + PROGRAM_JOIN_DATE("program_join_date"); + + private String value; + + TiersExpirationPolicyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TiersExpirationPolicyEnum fromValue(String value) { + for (TiersExpirationPolicyEnum b : TiersExpirationPolicyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TiersExpirationPolicyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TiersExpirationPolicyEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TIERS_EXPIRATION_POLICY = "tiersExpirationPolicy"; + @SerializedName(SERIALIZED_NAME_TIERS_EXPIRATION_POLICY) + private TiersExpirationPolicyEnum tiersExpirationPolicy; + public static final String SERIALIZED_NAME_TIERS_EXPIRE_IN = "tiersExpireIn"; @SerializedName(SERIALIZED_NAME_TIERS_EXPIRE_IN) private String tiersExpireIn; @@ -118,6 +169,59 @@ public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_TIERS_DOWNGRADE_POLICY) private TiersDowngradePolicyEnum tiersDowngradePolicy; + /** + * 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. + */ + @JsonAdapter(ProgramJoinPolicyEnum.Adapter.class) + public enum ProgramJoinPolicyEnum { + NOT_JOIN("not_join"), + + POINTS_ACTIVATED("points_activated"), + + POINTS_EARNED("points_earned"); + + private String value; + + ProgramJoinPolicyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ProgramJoinPolicyEnum fromValue(String value) { + for (ProgramJoinPolicyEnum b : ProgramJoinPolicyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ProgramJoinPolicyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ProgramJoinPolicyEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PROGRAM_JOIN_POLICY = "programJoinPolicy"; + @SerializedName(SERIALIZED_NAME_PROGRAM_JOIN_POLICY) + private ProgramJoinPolicyEnum programJoinPolicy; + public BaseLoyaltyProgram title(String title) { @@ -312,6 +416,29 @@ public void setSandbox(Boolean sandbox) { } + public BaseLoyaltyProgram tiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { + + this.tiersExpirationPolicy = tiersExpirationPolicy; + return this; + } + + /** + * 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. + * @return tiersExpirationPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "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. ") + + public TiersExpirationPolicyEnum getTiersExpirationPolicy() { + return tiersExpirationPolicy; + } + + + public void setTiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { + this.tiersExpirationPolicy = tiersExpirationPolicy; + } + + public BaseLoyaltyProgram tiersExpireIn(String tiersExpireIn) { this.tiersExpireIn = tiersExpireIn; @@ -319,11 +446,11 @@ public BaseLoyaltyProgram tiersExpireIn(String tiersExpireIn) { } /** - * The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. + * 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. * @return tiersExpireIn **/ @javax.annotation.Nullable - @ApiModelProperty(example = "27W_U", value = "The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. ") + @ApiModelProperty(example = "27W_U", value = "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. ") public String getTiersExpireIn() { return tiersExpireIn; @@ -358,6 +485,29 @@ public void setTiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolic } + public BaseLoyaltyProgram programJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { + + this.programJoinPolicy = programJoinPolicy; + return this; + } + + /** + * 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. + * @return programJoinPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "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. ") + + public ProgramJoinPolicyEnum getProgramJoinPolicy() { + return programJoinPolicy; + } + + + public void setProgramJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { + this.programJoinPolicy = programJoinPolicy; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -375,13 +525,15 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.allowSubledger, baseLoyaltyProgram.allowSubledger) && Objects.equals(this.usersPerCardLimit, baseLoyaltyProgram.usersPerCardLimit) && Objects.equals(this.sandbox, baseLoyaltyProgram.sandbox) && + Objects.equals(this.tiersExpirationPolicy, baseLoyaltyProgram.tiersExpirationPolicy) && Objects.equals(this.tiersExpireIn, baseLoyaltyProgram.tiersExpireIn) && - Objects.equals(this.tiersDowngradePolicy, baseLoyaltyProgram.tiersDowngradePolicy); + Objects.equals(this.tiersDowngradePolicy, baseLoyaltyProgram.tiersDowngradePolicy) && + Objects.equals(this.programJoinPolicy, baseLoyaltyProgram.programJoinPolicy); } @Override public int hashCode() { - return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, tiersExpireIn, tiersDowngradePolicy); + return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, tiersExpirationPolicy, tiersExpireIn, tiersDowngradePolicy, programJoinPolicy); } @@ -397,8 +549,10 @@ public String toString() { sb.append(" allowSubledger: ").append(toIndentedString(allowSubledger)).append("\n"); sb.append(" usersPerCardLimit: ").append(toIndentedString(usersPerCardLimit)).append("\n"); sb.append(" sandbox: ").append(toIndentedString(sandbox)).append("\n"); + sb.append(" tiersExpirationPolicy: ").append(toIndentedString(tiersExpirationPolicy)).append("\n"); sb.append(" tiersExpireIn: ").append(toIndentedString(tiersExpireIn)).append("\n"); sb.append(" tiersDowngradePolicy: ").append(toIndentedString(tiersDowngradePolicy)).append("\n"); + sb.append(" programJoinPolicy: ").append(toIndentedString(programJoinPolicy)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/BaseNotification.java b/src/main/java/one/talon/model/BaseNotification.java index 62bf11d0..b7788315 100644 --- a/src/main/java/one/talon/model/BaseNotification.java +++ b/src/main/java/one/talon/model/BaseNotification.java @@ -58,8 +58,12 @@ public enum TypeEnum { COUPON("coupon"), + EXPIRING_COUPONS("expiring_coupons"), + EXPIRING_POINTS("expiring_points"), + CARD_EXPIRING_POINTS("card_expiring_points"), + PENDING_TO_ACTIVE_POINTS("pending_to_active_points"), STRIKETHROUGH_PRICING("strikethrough_pricing"), diff --git a/src/main/java/one/talon/model/BaseNotificationWebhook.java b/src/main/java/one/talon/model/BaseNotificationWebhook.java index 64d12f9d..a50001aa 100644 --- a/src/main/java/one/talon/model/BaseNotificationWebhook.java +++ b/src/main/java/one/talon/model/BaseNotificationWebhook.java @@ -161,7 +161,7 @@ public BaseNotificationWebhook addHeadersItem(String headersItem) { * List of API HTTP headers for the given webhook-based notification. * @return headers **/ - @ApiModelProperty(example = "content-type: application/json", required = true, value = "List of API HTTP headers for the given webhook-based notification.") + @ApiModelProperty(required = true, value = "List of API HTTP headers for the given webhook-based notification.") public List getHeaders() { return headers; diff --git a/src/main/java/one/talon/model/Campaign.java b/src/main/java/one/talon/model/Campaign.java index fc7c609c..b1842873 100644 --- a/src/main/java/one/talon/model/Campaign.java +++ b/src/main/java/one/talon/model/Campaign.java @@ -147,7 +147,9 @@ public enum FeaturesEnum { GIVEAWAYS("giveaways"), - STRIKETHROUGH("strikethrough"); + STRIKETHROUGH("strikethrough"), + + ACHIEVEMENTS("achievements"); private String value; @@ -207,10 +209,6 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) private List campaignGroups = null; - public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; - @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Integer evaluationGroupId; - /** * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. */ @@ -350,6 +348,61 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) private Integer templateId; + /** + * A campaign state described exactly as in the Campaign Manager. + */ + @JsonAdapter(FrontendStateEnum.Adapter.class) + public enum FrontendStateEnum { + EXPIRED("expired"), + + SCHEDULED("scheduled"), + + RUNNING("running"), + + DRAFT("draft"); + + private String value; + + FrontendStateEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static FrontendStateEnum fromValue(String value) { + for (FrontendStateEnum b : FrontendStateEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final FrontendStateEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public FrontendStateEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return FrontendStateEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_FRONTEND_STATE = "frontendState"; + @SerializedName(SERIALIZED_NAME_FRONTEND_STATE) + private FrontendStateEnum frontendState; + public Campaign id(Integer id) { @@ -755,29 +808,6 @@ public void setCampaignGroups(List campaignGroups) { } - public Campaign evaluationGroupId(Integer evaluationGroupId) { - - this.evaluationGroupId = evaluationGroupId; - return this; - } - - /** - * The ID of the campaign evaluation group the campaign belongs to. - * @return evaluationGroupId - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - - public Integer getEvaluationGroupId() { - return evaluationGroupId; - } - - - public void setEvaluationGroupId(Integer evaluationGroupId) { - this.evaluationGroupId = evaluationGroupId; - } - - public Campaign type(TypeEnum type) { this.type = type; @@ -1318,6 +1348,28 @@ public void setTemplateId(Integer templateId) { } + public Campaign frontendState(FrontendStateEnum frontendState) { + + this.frontendState = frontendState; + return this; + } + + /** + * A campaign state described exactly as in the Campaign Manager. + * @return frontendState + **/ + @ApiModelProperty(example = "running", required = true, value = "A campaign state described exactly as in the Campaign Manager.") + + public FrontendStateEnum getFrontendState() { + return frontendState; + } + + + public void setFrontendState(FrontendStateEnum frontendState) { + this.frontendState = frontendState; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -1344,7 +1396,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.referralSettings, campaign.referralSettings) && Objects.equals(this.limits, campaign.limits) && Objects.equals(this.campaignGroups, campaign.campaignGroups) && - Objects.equals(this.evaluationGroupId, campaign.evaluationGroupId) && Objects.equals(this.type, campaign.type) && Objects.equals(this.linkedStoreIds, campaign.linkedStoreIds) && Objects.equals(this.budgets, campaign.budgets) && @@ -1367,12 +1418,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.updated, campaign.updated) && Objects.equals(this.createdBy, campaign.createdBy) && Objects.equals(this.updatedBy, campaign.updatedBy) && - Objects.equals(this.templateId, campaign.templateId); + Objects.equals(this.templateId, campaign.templateId) && + Objects.equals(this.frontendState, campaign.frontendState); } @Override public int hashCode() { - return Objects.hash(id, created, applicationId, userId, name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, evaluationGroupId, type, linkedStoreIds, budgets, couponRedemptionCount, referralRedemptionCount, discountCount, discountEffectCount, couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, awardedGiveawaysCount, createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, createdBy, updatedBy, templateId); + return Objects.hash(id, created, applicationId, userId, name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, type, linkedStoreIds, budgets, couponRedemptionCount, referralRedemptionCount, discountCount, discountEffectCount, couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, awardedGiveawaysCount, createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, createdBy, updatedBy, templateId, frontendState); } @@ -1397,7 +1449,6 @@ public String toString() { sb.append(" referralSettings: ").append(toIndentedString(referralSettings)).append("\n"); sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); sb.append(" campaignGroups: ").append(toIndentedString(campaignGroups)).append("\n"); - sb.append(" evaluationGroupId: ").append(toIndentedString(evaluationGroupId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" linkedStoreIds: ").append(toIndentedString(linkedStoreIds)).append("\n"); sb.append(" budgets: ").append(toIndentedString(budgets)).append("\n"); @@ -1421,6 +1472,7 @@ public String toString() { sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n"); sb.append(" templateId: ").append(toIndentedString(templateId)).append("\n"); + sb.append(" frontendState: ").append(toIndentedString(frontendState)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/CampaignCreatedNotification.java b/src/main/java/one/talon/model/CampaignCreatedNotification.java index 3724a8f0..a48568ca 100644 --- a/src/main/java/one/talon/model/CampaignCreatedNotification.java +++ b/src/main/java/one/talon/model/CampaignCreatedNotification.java @@ -23,8 +23,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import one.talon.model.Campaign; import one.talon.model.CampaignEvaluationPosition; -import one.talon.model.CampaignStateNotification; import one.talon.model.Ruleset; /** @@ -35,7 +35,7 @@ public class CampaignCreatedNotification { public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; @SerializedName(SERIALIZED_NAME_CAMPAIGN) - private CampaignStateNotification campaign; + private Campaign campaign; public static final String SERIALIZED_NAME_RULESET = "ruleset"; @SerializedName(SERIALIZED_NAME_RULESET) @@ -46,7 +46,7 @@ public class CampaignCreatedNotification { private CampaignEvaluationPosition evaluationPosition; - public CampaignCreatedNotification campaign(CampaignStateNotification campaign) { + public CampaignCreatedNotification campaign(Campaign campaign) { this.campaign = campaign; return this; @@ -58,12 +58,12 @@ public CampaignCreatedNotification campaign(CampaignStateNotification campaign) **/ @ApiModelProperty(required = true, value = "") - public CampaignStateNotification getCampaign() { + public Campaign getCampaign() { return campaign; } - public void setCampaign(CampaignStateNotification campaign) { + public void setCampaign(Campaign campaign) { this.campaign = campaign; } diff --git a/src/main/java/one/talon/model/CampaignDeletedNotification.java b/src/main/java/one/talon/model/CampaignDeletedNotification.java index 5401f702..0d0c75b3 100644 --- a/src/main/java/one/talon/model/CampaignDeletedNotification.java +++ b/src/main/java/one/talon/model/CampaignDeletedNotification.java @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.CampaignStateNotification; +import one.talon.model.Campaign; import org.threeten.bp.OffsetDateTime; /** @@ -34,14 +34,14 @@ public class CampaignDeletedNotification { public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; @SerializedName(SERIALIZED_NAME_CAMPAIGN) - private CampaignStateNotification campaign; + private Campaign campaign; public static final String SERIALIZED_NAME_DELETED_AT = "deletedAt"; @SerializedName(SERIALIZED_NAME_DELETED_AT) private OffsetDateTime deletedAt; - public CampaignDeletedNotification campaign(CampaignStateNotification campaign) { + public CampaignDeletedNotification campaign(Campaign campaign) { this.campaign = campaign; return this; @@ -53,12 +53,12 @@ public CampaignDeletedNotification campaign(CampaignStateNotification campaign) **/ @ApiModelProperty(required = true, value = "") - public CampaignStateNotification getCampaign() { + public Campaign getCampaign() { return campaign; } - public void setCampaign(CampaignStateNotification campaign) { + public void setCampaign(Campaign campaign) { this.campaign = campaign; } diff --git a/src/main/java/one/talon/model/CampaignEditedNotification.java b/src/main/java/one/talon/model/CampaignEditedNotification.java index 1e0e3ebd..fcf51891 100644 --- a/src/main/java/one/talon/model/CampaignEditedNotification.java +++ b/src/main/java/one/talon/model/CampaignEditedNotification.java @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.CampaignStateNotification; +import one.talon.model.Campaign; import one.talon.model.Ruleset; /** @@ -34,18 +34,18 @@ public class CampaignEditedNotification { public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; @SerializedName(SERIALIZED_NAME_CAMPAIGN) - private CampaignStateNotification campaign; + private Campaign campaign; public static final String SERIALIZED_NAME_OLD_CAMPAIGN = "oldCampaign"; @SerializedName(SERIALIZED_NAME_OLD_CAMPAIGN) - private CampaignStateNotification oldCampaign; + private Campaign oldCampaign; public static final String SERIALIZED_NAME_RULESET = "ruleset"; @SerializedName(SERIALIZED_NAME_RULESET) private Ruleset ruleset; - public CampaignEditedNotification campaign(CampaignStateNotification campaign) { + public CampaignEditedNotification campaign(Campaign campaign) { this.campaign = campaign; return this; @@ -57,17 +57,17 @@ public CampaignEditedNotification campaign(CampaignStateNotification campaign) { **/ @ApiModelProperty(required = true, value = "") - public CampaignStateNotification getCampaign() { + public Campaign getCampaign() { return campaign; } - public void setCampaign(CampaignStateNotification campaign) { + public void setCampaign(Campaign campaign) { this.campaign = campaign; } - public CampaignEditedNotification oldCampaign(CampaignStateNotification oldCampaign) { + public CampaignEditedNotification oldCampaign(Campaign oldCampaign) { this.oldCampaign = oldCampaign; return this; @@ -79,12 +79,12 @@ public CampaignEditedNotification oldCampaign(CampaignStateNotification oldCampa **/ @ApiModelProperty(required = true, value = "") - public CampaignStateNotification getOldCampaign() { + public Campaign getOldCampaign() { return oldCampaign; } - public void setOldCampaign(CampaignStateNotification oldCampaign) { + public void setOldCampaign(Campaign oldCampaign) { this.oldCampaign = oldCampaign; } diff --git a/src/main/java/one/talon/model/CampaignGroup.java b/src/main/java/one/talon/model/CampaignGroup.java index b60b741d..f0e30985 100644 --- a/src/main/java/one/talon/model/CampaignGroup.java +++ b/src/main/java/one/talon/model/CampaignGroup.java @@ -161,10 +161,10 @@ public CampaignGroup name(String name) { } /** - * The name of this campaign access group. + * The name of the campaign access group. * @return name **/ - @ApiModelProperty(required = true, value = "The name of this campaign access group.") + @ApiModelProperty(example = "Europe access group", required = true, value = "The name of the campaign access group.") public String getName() { return name; @@ -187,7 +187,7 @@ public CampaignGroup description(String description) { * @return description **/ @javax.annotation.Nullable - @ApiModelProperty(example = "My campaign access group.", value = "A longer description of the campaign access group.") + @ApiModelProperty(example = "A group that gives access to all the campaigns for the Europe market.", value = "A longer description of the campaign access group.") public String getDescription() { return description; diff --git a/src/main/java/one/talon/model/CampaignRulesetChangedNotification.java b/src/main/java/one/talon/model/CampaignRulesetChangedNotification.java index 6370e042..c512a8f7 100644 --- a/src/main/java/one/talon/model/CampaignRulesetChangedNotification.java +++ b/src/main/java/one/talon/model/CampaignRulesetChangedNotification.java @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.CampaignStateNotification; +import one.talon.model.Campaign; import one.talon.model.Ruleset; /** @@ -34,7 +34,7 @@ public class CampaignRulesetChangedNotification { public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; @SerializedName(SERIALIZED_NAME_CAMPAIGN) - private CampaignStateNotification campaign; + private Campaign campaign; public static final String SERIALIZED_NAME_OLD_RULESET = "oldRuleset"; @SerializedName(SERIALIZED_NAME_OLD_RULESET) @@ -45,7 +45,7 @@ public class CampaignRulesetChangedNotification { private Ruleset ruleset; - public CampaignRulesetChangedNotification campaign(CampaignStateNotification campaign) { + public CampaignRulesetChangedNotification campaign(Campaign campaign) { this.campaign = campaign; return this; @@ -57,12 +57,12 @@ public CampaignRulesetChangedNotification campaign(CampaignStateNotification cam **/ @ApiModelProperty(required = true, value = "") - public CampaignStateNotification getCampaign() { + public Campaign getCampaign() { return campaign; } - public void setCampaign(CampaignStateNotification campaign) { + public void setCampaign(Campaign campaign) { this.campaign = campaign; } diff --git a/src/main/java/one/talon/model/CampaignStateChangedNotification.java b/src/main/java/one/talon/model/CampaignStateChangedNotification.java index 1ebea0fe..dc3cd0c7 100644 --- a/src/main/java/one/talon/model/CampaignStateChangedNotification.java +++ b/src/main/java/one/talon/model/CampaignStateChangedNotification.java @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.CampaignForNotification; +import one.talon.model.Campaign; import one.talon.model.Ruleset; /** @@ -34,7 +34,7 @@ public class CampaignStateChangedNotification { public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; @SerializedName(SERIALIZED_NAME_CAMPAIGN) - private CampaignForNotification campaign; + private Campaign campaign; public static final String SERIALIZED_NAME_OLD_STATE = "oldState"; @SerializedName(SERIALIZED_NAME_OLD_STATE) @@ -49,7 +49,7 @@ public class CampaignStateChangedNotification { private Ruleset ruleset; - public CampaignStateChangedNotification campaign(CampaignForNotification campaign) { + public CampaignStateChangedNotification campaign(Campaign campaign) { this.campaign = campaign; return this; @@ -61,12 +61,12 @@ public CampaignStateChangedNotification campaign(CampaignForNotification campaig **/ @ApiModelProperty(required = true, value = "") - public CampaignForNotification getCampaign() { + public Campaign getCampaign() { return campaign; } - public void setCampaign(CampaignForNotification campaign) { + public void setCampaign(Campaign campaign) { this.campaign = campaign; } diff --git a/src/main/java/one/talon/model/CampaignTemplate.java b/src/main/java/one/talon/model/CampaignTemplate.java index 35ccbee5..bef04472 100644 --- a/src/main/java/one/talon/model/CampaignTemplate.java +++ b/src/main/java/one/talon/model/CampaignTemplate.java @@ -147,7 +147,9 @@ public enum FeaturesEnum { GIVEAWAYS("giveaways"), - STRIKETHROUGH("strikethrough"); + STRIKETHROUGH("strikethrough"), + + ACHIEVEMENTS("achievements"); private String value; diff --git a/src/main/java/one/talon/model/CardExpiringPointsNotificationPolicy.java b/src/main/java/one/talon/model/CardExpiringPointsNotificationPolicy.java new file mode 100644 index 00000000..57cd70df --- /dev/null +++ b/src/main/java/one/talon/model/CardExpiringPointsNotificationPolicy.java @@ -0,0 +1,163 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CardExpiringPointsNotificationTrigger; + +/** + * CardExpiringPointsNotificationPolicy + */ + +public class CardExpiringPointsNotificationPolicy { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_TRIGGERS = "triggers"; + @SerializedName(SERIALIZED_NAME_TRIGGERS) + private List triggers = new ArrayList(); + + public static final String SERIALIZED_NAME_BATCHING_ENABLED = "batchingEnabled"; + @SerializedName(SERIALIZED_NAME_BATCHING_ENABLED) + private Boolean batchingEnabled = true; + + + public CardExpiringPointsNotificationPolicy name(String name) { + + this.name = name; + return this; + } + + /** + * Notification name. + * @return name + **/ + @ApiModelProperty(example = "Notification to Google", required = true, value = "Notification name.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public CardExpiringPointsNotificationPolicy triggers(List triggers) { + + this.triggers = triggers; + return this; + } + + public CardExpiringPointsNotificationPolicy addTriggersItem(CardExpiringPointsNotificationTrigger triggersItem) { + this.triggers.add(triggersItem); + return this; + } + + /** + * Get triggers + * @return triggers + **/ + @ApiModelProperty(required = true, value = "") + + public List getTriggers() { + return triggers; + } + + + public void setTriggers(List triggers) { + this.triggers = triggers; + } + + + public CardExpiringPointsNotificationPolicy batchingEnabled(Boolean batchingEnabled) { + + this.batchingEnabled = batchingEnabled; + return this; + } + + /** + * Indicates whether batching is activated. + * @return batchingEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether batching is activated.") + + public Boolean getBatchingEnabled() { + return batchingEnabled; + } + + + public void setBatchingEnabled(Boolean batchingEnabled) { + this.batchingEnabled = batchingEnabled; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CardExpiringPointsNotificationPolicy cardExpiringPointsNotificationPolicy = (CardExpiringPointsNotificationPolicy) o; + return Objects.equals(this.name, cardExpiringPointsNotificationPolicy.name) && + Objects.equals(this.triggers, cardExpiringPointsNotificationPolicy.triggers) && + Objects.equals(this.batchingEnabled, cardExpiringPointsNotificationPolicy.batchingEnabled); + } + + @Override + public int hashCode() { + return Objects.hash(name, triggers, batchingEnabled); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CardExpiringPointsNotificationPolicy {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" triggers: ").append(toIndentedString(triggers)).append("\n"); + sb.append(" batchingEnabled: ").append(toIndentedString(batchingEnabled)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/CardExpiringPointsNotificationTrigger.java b/src/main/java/one/talon/model/CardExpiringPointsNotificationTrigger.java new file mode 100644 index 00000000..edfd1bf6 --- /dev/null +++ b/src/main/java/one/talon/model/CardExpiringPointsNotificationTrigger.java @@ -0,0 +1,174 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * CardExpiringPointsNotificationTrigger + */ + +public class CardExpiringPointsNotificationTrigger { + public static final String SERIALIZED_NAME_AMOUNT = "amount"; + @SerializedName(SERIALIZED_NAME_AMOUNT) + private Integer amount; + + /** + * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + */ + @JsonAdapter(PeriodEnum.Adapter.class) + public enum PeriodEnum { + W("w"), + + D("d"); + + private String value; + + PeriodEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PeriodEnum fromValue(String value) { + for (PeriodEnum b : PeriodEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PeriodEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PeriodEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PeriodEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PERIOD = "period"; + @SerializedName(SERIALIZED_NAME_PERIOD) + private PeriodEnum period; + + + public CardExpiringPointsNotificationTrigger amount(Integer amount) { + + this.amount = amount; + return this; + } + + /** + * The amount of period. + * minimum: 1 + * @return amount + **/ + @ApiModelProperty(required = true, value = "The amount of period.") + + public Integer getAmount() { + return amount; + } + + + public void setAmount(Integer amount) { + this.amount = amount; + } + + + public CardExpiringPointsNotificationTrigger period(PeriodEnum period) { + + this.period = period; + return this; + } + + /** + * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + * @return period + **/ + @ApiModelProperty(required = true, value = "Notification period indicated by a letter; \"w\" means week, \"d\" means day.") + + public PeriodEnum getPeriod() { + return period; + } + + + public void setPeriod(PeriodEnum period) { + this.period = period; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CardExpiringPointsNotificationTrigger cardExpiringPointsNotificationTrigger = (CardExpiringPointsNotificationTrigger) o; + return Objects.equals(this.amount, cardExpiringPointsNotificationTrigger.amount) && + Objects.equals(this.period, cardExpiringPointsNotificationTrigger.period); + } + + @Override + public int hashCode() { + return Objects.hash(amount, period); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CardExpiringPointsNotificationTrigger {\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" period: ").append(toIndentedString(period)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/CartItem.java b/src/main/java/one/talon/model/CartItem.java index f173cedc..b07f4825 100644 --- a/src/main/java/one/talon/model/CartItem.java +++ b/src/main/java/one/talon/model/CartItem.java @@ -65,6 +65,10 @@ public class CartItem { @SerializedName(SERIALIZED_NAME_CATEGORY) private String category; + public static final String SERIALIZED_NAME_PRODUCT = "product"; + @SerializedName(SERIALIZED_NAME_PRODUCT) + private Product product; + public static final String SERIALIZED_NAME_WEIGHT = "weight"; @SerializedName(SERIALIZED_NAME_WEIGHT) private BigDecimal weight; @@ -260,6 +264,29 @@ public void setCategory(String category) { } + public CartItem product(Product product) { + + this.product = product; + return this; + } + + /** + * Get product + * @return product + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Product getProduct() { + return product; + } + + + public void setProduct(Product product) { + this.product = product; + } + + public CartItem weight(BigDecimal weight) { this.weight = weight; @@ -468,6 +495,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.remainingQuantity, cartItem.remainingQuantity) && Objects.equals(this.price, cartItem.price) && Objects.equals(this.category, cartItem.category) && + Objects.equals(this.product, cartItem.product) && Objects.equals(this.weight, cartItem.weight) && Objects.equals(this.height, cartItem.height) && Objects.equals(this.width, cartItem.width) && @@ -480,7 +508,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, sku, quantity, returnedQuantity, remainingQuantity, price, category, weight, height, width, length, position, attributes, additionalCosts, catalogItemID); + return Objects.hash(name, sku, quantity, returnedQuantity, remainingQuantity, price, category, product, weight, height, width, length, position, attributes, additionalCosts, catalogItemID); } @@ -495,6 +523,7 @@ public String toString() { sb.append(" remainingQuantity: ").append(toIndentedString(remainingQuantity)).append("\n"); sb.append(" price: ").append(toIndentedString(price)).append("\n"); sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" product: ").append(toIndentedString(product)).append("\n"); sb.append(" weight: ").append(toIndentedString(weight)).append("\n"); sb.append(" height: ").append(toIndentedString(height)).append("\n"); sb.append(" width: ").append(toIndentedString(width)).append("\n"); diff --git a/src/main/java/one/talon/model/CatalogItem.java b/src/main/java/one/talon/model/CatalogItem.java index 9bcb0edf..b144663a 100644 --- a/src/main/java/one/talon/model/CatalogItem.java +++ b/src/main/java/one/talon/model/CatalogItem.java @@ -27,6 +27,7 @@ import java.util.ArrayList; import java.util.List; import one.talon.model.ItemAttribute; +import one.talon.model.Product; import org.threeten.bp.OffsetDateTime; /** @@ -63,6 +64,10 @@ public class CatalogItem { @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private List attributes = null; + public static final String SERIALIZED_NAME_PRODUCT = "product"; + @SerializedName(SERIALIZED_NAME_PRODUCT) + private Product product; + public CatalogItem id(Integer id) { @@ -229,6 +234,29 @@ public void setAttributes(List attributes) { } + public CatalogItem product(Product product) { + + this.product = product; + return this; + } + + /** + * Get product + * @return product + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Product getProduct() { + return product; + } + + + public void setProduct(Product product) { + this.product = product; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -244,12 +272,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.price, catalogItem.price) && Objects.equals(this.catalogid, catalogItem.catalogid) && Objects.equals(this.version, catalogItem.version) && - Objects.equals(this.attributes, catalogItem.attributes); + Objects.equals(this.attributes, catalogItem.attributes) && + Objects.equals(this.product, catalogItem.product); } @Override public int hashCode() { - return Objects.hash(id, created, sku, price, catalogid, version, attributes); + return Objects.hash(id, created, sku, price, catalogid, version, attributes, product); } @@ -264,6 +293,7 @@ public String toString() { sb.append(" catalogid: ").append(toIndentedString(catalogid)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" product: ").append(toIndentedString(product)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java b/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java index c03f2c09..ac6bcf44 100644 --- a/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java +++ b/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java @@ -26,9 +26,9 @@ import org.threeten.bp.OffsetDateTime; /** - * The properties specific to the \"changeLoyaltyTierLevel\" effect. This is triggered whenever the user's loyalty tier is upgraded or downgraded due to a validated rule that contained an \"add loyalty points\" effect. + * The properties specific to the \"changeLoyaltyTierLevel\" effect. This is triggered whenever the user's loyalty tier is upgraded due to a validated rule that contained an \"addLoyaltyPoints\" effect. */ -@ApiModel(description = "The properties specific to the \"changeLoyaltyTierLevel\" effect. This is triggered whenever the user's loyalty tier is upgraded or downgraded due to a validated rule that contained an \"add loyalty points\" effect. ") +@ApiModel(description = "The properties specific to the \"changeLoyaltyTierLevel\" effect. This is triggered whenever the user's loyalty tier is upgraded due to a validated rule that contained an \"addLoyaltyPoints\" effect. ") public class ChangeLoyaltyTierLevelEffectProps { public static final String SERIALIZED_NAME_RULE_TITLE = "ruleTitle"; @@ -63,10 +63,10 @@ public ChangeLoyaltyTierLevelEffectProps ruleTitle(String ruleTitle) { } /** - * The title of the rule that triggered the tier upgrade or downgrade. + * The title of the rule that triggered the tier upgrade. * @return ruleTitle **/ - @ApiModelProperty(required = true, value = "The title of the rule that triggered the tier upgrade or downgrade.") + @ApiModelProperty(required = true, value = "The title of the rule that triggered the tier upgrade.") public String getRuleTitle() { return ruleTitle; @@ -129,11 +129,11 @@ public ChangeLoyaltyTierLevelEffectProps previousTierName(String previousTierNam } /** - * The name of the tier from which the user was upgraded or downgraded. + * The name of the tier from which the user was upgraded. * @return previousTierName **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the tier from which the user was upgraded or downgraded.") + @ApiModelProperty(value = "The name of the tier from which the user was upgraded.") public String getPreviousTierName() { return previousTierName; @@ -152,10 +152,10 @@ public ChangeLoyaltyTierLevelEffectProps newTierName(String newTierName) { } /** - * The name of the tier to which the user has been upgraded or downgraded. + * The name of the tier to which the user has been upgraded. * @return newTierName **/ - @ApiModelProperty(required = true, value = "The name of the tier to which the user has been upgraded or downgraded.") + @ApiModelProperty(required = true, value = "The name of the tier to which the user has been upgraded.") public String getNewTierName() { return newTierName; diff --git a/src/main/java/one/talon/model/Coupon.java b/src/main/java/one/talon/model/Coupon.java index c4ade673..4fa8219b 100644 --- a/src/main/java/one/talon/model/Coupon.java +++ b/src/main/java/one/talon/model/Coupon.java @@ -117,7 +117,7 @@ public class Coupon { public static final String SERIALIZED_NAME_IS_RESERVATION_MANDATORY = "isReservationMandatory"; @SerializedName(SERIALIZED_NAME_IS_RESERVATION_MANDATORY) - private Boolean isReservationMandatory = true; + private Boolean isReservationMandatory = false; public static final String SERIALIZED_NAME_IMPLICITLY_RESERVED = "implicitlyReserved"; @SerializedName(SERIALIZED_NAME_IMPLICITLY_RESERVED) diff --git a/src/main/java/one/talon/model/CouponsNotificationPolicy.java b/src/main/java/one/talon/model/CouponsNotificationPolicy.java index e5eaa327..9264fed7 100644 --- a/src/main/java/one/talon/model/CouponsNotificationPolicy.java +++ b/src/main/java/one/talon/model/CouponsNotificationPolicy.java @@ -90,6 +90,10 @@ public ScopesEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_SCOPES) private List scopes = new ArrayList(); + public static final String SERIALIZED_NAME_BATCHING_ENABLED = "batchingEnabled"; + @SerializedName(SERIALIZED_NAME_BATCHING_ENABLED) + private Boolean batchingEnabled = true; + public CouponsNotificationPolicy name(String name) { @@ -140,6 +144,29 @@ public void setScopes(List scopes) { } + public CouponsNotificationPolicy batchingEnabled(Boolean batchingEnabled) { + + this.batchingEnabled = batchingEnabled; + return this; + } + + /** + * Indicates whether batching is activated. + * @return batchingEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether batching is activated.") + + public Boolean getBatchingEnabled() { + return batchingEnabled; + } + + + public void setBatchingEnabled(Boolean batchingEnabled) { + this.batchingEnabled = batchingEnabled; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -150,12 +177,13 @@ public boolean equals(java.lang.Object o) { } CouponsNotificationPolicy couponsNotificationPolicy = (CouponsNotificationPolicy) o; return Objects.equals(this.name, couponsNotificationPolicy.name) && - Objects.equals(this.scopes, couponsNotificationPolicy.scopes); + Objects.equals(this.scopes, couponsNotificationPolicy.scopes) && + Objects.equals(this.batchingEnabled, couponsNotificationPolicy.batchingEnabled); } @Override public int hashCode() { - return Objects.hash(name, scopes); + return Objects.hash(name, scopes, batchingEnabled); } @@ -165,6 +193,7 @@ public String toString() { sb.append("class CouponsNotificationPolicy {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n"); + sb.append(" batchingEnabled: ").append(toIndentedString(batchingEnabled)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/CreateAchievement.java b/src/main/java/one/talon/model/CreateAchievement.java index be994367..6f130fa5 100644 --- a/src/main/java/one/talon/model/CreateAchievement.java +++ b/src/main/java/one/talon/model/CreateAchievement.java @@ -129,10 +129,10 @@ public CreateAchievement target(BigDecimal target) { } /** - * The maximum number of times a specific action must be completed by a customer profile over a defined period of time. + * The required number of actions or the transactional milestone to complete the achievement. * @return target **/ - @ApiModelProperty(example = "50.0", required = true, value = "The maximum number of times a specific action must be completed by a customer profile over a defined period of time.") + @ApiModelProperty(example = "50.0", required = true, value = "The required number of actions or the transactional milestone to complete the achievement.") public BigDecimal getTarget() { return target; @@ -151,10 +151,10 @@ public CreateAchievement period(String period) { } /** - * The relative duration after which the achievement is reset for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. + * The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. * @return period **/ - @ApiModelProperty(example = "1Y", required = true, value = "The relative duration after which the achievement is reset for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. ") + @ApiModelProperty(example = "1Y", required = true, value = "The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** 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 also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. ") public String getPeriod() { return period; diff --git a/src/main/java/one/talon/model/CreateApplicationAPIKey.java b/src/main/java/one/talon/model/CreateApplicationAPIKey.java index dd550c2c..f320c5ca 100644 --- a/src/main/java/one/talon/model/CreateApplicationAPIKey.java +++ b/src/main/java/one/talon/model/CreateApplicationAPIKey.java @@ -105,6 +105,59 @@ public PlatformEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PLATFORM) private PlatformEnum platform; + /** + * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + STAGING("staging"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; + @SerializedName(SERIALIZED_NAME_TIME_OFFSET) + private Integer timeOffset; + public CreateApplicationAPIKey title(String title) { @@ -113,10 +166,10 @@ public CreateApplicationAPIKey title(String title) { } /** - * Title for API Key. + * Title of the API key. * @return title **/ - @ApiModelProperty(example = "My generated key", required = true, value = "Title for API Key.") + @ApiModelProperty(example = "My generated key", required = true, value = "Title of the API key.") public String getTitle() { return title; @@ -135,10 +188,10 @@ public CreateApplicationAPIKey expires(OffsetDateTime expires) { } /** - * The date the API key expired. + * The date the API key expires. * @return expires **/ - @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the API key expired.") + @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the API key expires.") public OffsetDateTime getExpires() { return expires; @@ -173,6 +226,52 @@ public void setPlatform(PlatformEnum platform) { } + public CreateApplicationAPIKey type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "staging", value = "The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. ") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public CreateApplicationAPIKey timeOffset(Integer timeOffset) { + + this.timeOffset = timeOffset; + return this; + } + + /** + * A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + * @return timeOffset + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "100000", value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") + + public Integer getTimeOffset() { + return timeOffset; + } + + + public void setTimeOffset(Integer timeOffset) { + this.timeOffset = timeOffset; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -184,12 +283,14 @@ public boolean equals(java.lang.Object o) { CreateApplicationAPIKey createApplicationAPIKey = (CreateApplicationAPIKey) o; return Objects.equals(this.title, createApplicationAPIKey.title) && Objects.equals(this.expires, createApplicationAPIKey.expires) && - Objects.equals(this.platform, createApplicationAPIKey.platform); + Objects.equals(this.platform, createApplicationAPIKey.platform) && + Objects.equals(this.type, createApplicationAPIKey.type) && + Objects.equals(this.timeOffset, createApplicationAPIKey.timeOffset); } @Override public int hashCode() { - return Objects.hash(title, expires, platform); + return Objects.hash(title, expires, platform, type, timeOffset); } @@ -200,6 +301,8 @@ public String toString() { sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" expires: ").append(toIndentedString(expires)).append("\n"); sb.append(" platform: ").append(toIndentedString(platform)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" timeOffset: ").append(toIndentedString(timeOffset)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/CustomerInventory.java b/src/main/java/one/talon/model/CustomerInventory.java index 9a7dac67..1d6dbbe4 100644 --- a/src/main/java/one/talon/model/CustomerInventory.java +++ b/src/main/java/one/talon/model/CustomerInventory.java @@ -25,6 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import one.talon.model.AchievementProgress; import one.talon.model.CustomerProfile; import one.talon.model.Giveaway; import one.talon.model.InventoryCoupon; @@ -56,6 +57,10 @@ public class CustomerInventory { @SerializedName(SERIALIZED_NAME_GIVEAWAYS) private List giveaways = null; + public static final String SERIALIZED_NAME_ACHIEVEMENTS = "achievements"; + @SerializedName(SERIALIZED_NAME_ACHIEVEMENTS) + private List achievements = null; + public CustomerInventory profile(CustomerProfile profile) { @@ -196,6 +201,37 @@ public void setGiveaways(List giveaways) { } + public CustomerInventory achievements(List achievements) { + + this.achievements = achievements; + return this; + } + + public CustomerInventory addAchievementsItem(AchievementProgress achievementsItem) { + if (this.achievements == null) { + this.achievements = new ArrayList(); + } + this.achievements.add(achievementsItem); + return this; + } + + /** + * Get achievements + * @return achievements + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getAchievements() { + return achievements; + } + + + public void setAchievements(List achievements) { + this.achievements = achievements; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -209,12 +245,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.loyalty, customerInventory.loyalty) && Objects.equals(this.referrals, customerInventory.referrals) && Objects.equals(this.coupons, customerInventory.coupons) && - Objects.equals(this.giveaways, customerInventory.giveaways); + Objects.equals(this.giveaways, customerInventory.giveaways) && + Objects.equals(this.achievements, customerInventory.achievements); } @Override public int hashCode() { - return Objects.hash(profile, loyalty, referrals, coupons, giveaways); + return Objects.hash(profile, loyalty, referrals, coupons, giveaways, achievements); } @@ -227,6 +264,7 @@ public String toString() { sb.append(" referrals: ").append(toIndentedString(referrals)).append("\n"); sb.append(" coupons: ").append(toIndentedString(coupons)).append("\n"); sb.append(" giveaways: ").append(toIndentedString(giveaways)).append("\n"); + sb.append(" achievements: ").append(toIndentedString(achievements)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/CustomerProfile.java b/src/main/java/one/talon/model/CustomerProfile.java index 70ac8f31..2c2cffb5 100644 --- a/src/main/java/one/talon/model/CustomerProfile.java +++ b/src/main/java/one/talon/model/CustomerProfile.java @@ -326,11 +326,11 @@ public CustomerProfile sandbox(Boolean sandbox) { } /** - * Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + * An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). * @return sandbox **/ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). ") + @ApiModelProperty(example = "false", value = "An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). ") public Boolean getSandbox() { return sandbox; diff --git a/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java b/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java index f49524a5..07acb137 100644 --- a/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java +++ b/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java @@ -30,7 +30,7 @@ public class CustomerProfileAudienceRequestItem { /** - * Defines the action to perform: - `add`: Adds the customer profile to the audience. - `delete`: Removes the customer profile from the audience. + * Defines the action to perform: - `add`: Adds the customer profile to the audience. If the customer profile does not exist, it will be created. - `delete`: Removes the customer profile from the audience. */ @JsonAdapter(ActionEnum.Adapter.class) public enum ActionEnum { @@ -96,10 +96,10 @@ public CustomerProfileAudienceRequestItem action(ActionEnum action) { } /** - * Defines the action to perform: - `add`: Adds the customer profile to the audience. - `delete`: Removes the customer profile from the audience. + * Defines the action to perform: - `add`: Adds the customer profile to the audience. If the customer profile does not exist, it will be created. - `delete`: Removes the customer profile from the audience. * @return action **/ - @ApiModelProperty(example = "add", required = true, value = "Defines the action to perform: - `add`: Adds the customer profile to the audience. - `delete`: Removes the customer profile from the audience. ") + @ApiModelProperty(example = "add", required = true, value = "Defines the action to perform: - `add`: Adds the customer profile to the audience. If the customer profile does not exist, it will be created. - `delete`: Removes the customer profile from the audience. ") public ActionEnum getAction() { return action; diff --git a/src/main/java/one/talon/model/CustomerSessionV2.java b/src/main/java/one/talon/model/CustomerSessionV2.java index eb44ecd6..ec203200 100644 --- a/src/main/java/one/talon/model/CustomerSessionV2.java +++ b/src/main/java/one/talon/model/CustomerSessionV2.java @@ -403,11 +403,11 @@ public CustomerSessionV2 addLoyaltyCardsItem(String loyaltyCardsItem) { } /** - * Any loyalty cards used. + * Identifier of a loyalty card. * @return loyaltyCards **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[loyalty-card-1]", value = "Any loyalty cards used.") + @ApiModelProperty(example = "[loyalty-card-1]", value = "Identifier of a loyalty card.") public List getLoyaltyCards() { return loyaltyCards; diff --git a/src/main/java/one/talon/model/DeactivateUserRequest.java b/src/main/java/one/talon/model/DeactivateUserRequest.java new file mode 100644 index 00000000..9b7c1397 --- /dev/null +++ b/src/main/java/one/talon/model/DeactivateUserRequest.java @@ -0,0 +1,99 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * + */ +@ApiModel(description = "") + +public class DeactivateUserRequest { + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) + private String email; + + + public DeactivateUserRequest email(String email) { + + this.email = email; + return this; + } + + /** + * The email address associated with the user profile. + * @return email + **/ + @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with the user profile.") + + public String getEmail() { + return email; + } + + + public void setEmail(String email) { + this.email = email; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeactivateUserRequest deactivateUserRequest = (DeactivateUserRequest) o; + return Objects.equals(this.email, deactivateUserRequest.email); + } + + @Override + public int hashCode() { + return Objects.hash(email); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeactivateUserRequest {\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/DeleteUserRequest.java b/src/main/java/one/talon/model/DeleteUserRequest.java new file mode 100644 index 00000000..33cbfd96 --- /dev/null +++ b/src/main/java/one/talon/model/DeleteUserRequest.java @@ -0,0 +1,99 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * + */ +@ApiModel(description = "") + +public class DeleteUserRequest { + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) + private String email; + + + public DeleteUserRequest email(String email) { + + this.email = email; + return this; + } + + /** + * The email address associated with the user profile. + * @return email + **/ + @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with the user profile.") + + public String getEmail() { + return email; + } + + + public void setEmail(String email) { + this.email = email; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteUserRequest deleteUserRequest = (DeleteUserRequest) o; + return Objects.equals(this.email, deleteUserRequest.email); + } + + @Override + public int hashCode() { + return Objects.hash(email); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteUserRequest {\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/EmailEntity.java b/src/main/java/one/talon/model/EmailEntity.java index 64835e1f..67664e9e 100644 --- a/src/main/java/one/talon/model/EmailEntity.java +++ b/src/main/java/one/talon/model/EmailEntity.java @@ -41,10 +41,10 @@ public EmailEntity email(String email) { } /** - * The email address associated with your account. + * The email address associated with the user profile. * @return email **/ - @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with your account.") + @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with the user profile.") public String getEmail() { return email; diff --git a/src/main/java/one/talon/model/Environment.java b/src/main/java/one/talon/model/Environment.java index c5113160..5fe5705c 100644 --- a/src/main/java/one/talon/model/Environment.java +++ b/src/main/java/one/talon/model/Environment.java @@ -26,6 +26,7 @@ import java.util.ArrayList; import java.util.List; import one.talon.model.AccountAdditionalCost; +import one.talon.model.Achievement; import one.talon.model.Attribute; import one.talon.model.Audience; import one.talon.model.Collection; @@ -78,6 +79,10 @@ public class Environment { @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAMS) private List loyaltyPrograms = null; + public static final String SERIALIZED_NAME_ACHIEVEMENTS = "achievements"; + @SerializedName(SERIALIZED_NAME_ACHIEVEMENTS) + private List achievements = null; + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private List attributes = null; @@ -326,6 +331,37 @@ public void setLoyaltyPrograms(List loyaltyPrograms) { } + public Environment achievements(List achievements) { + + this.achievements = achievements; + return this; + } + + public Environment addAchievementsItem(Achievement achievementsItem) { + if (this.achievements == null) { + this.achievements = new ArrayList(); + } + this.achievements.add(achievementsItem); + return this; + } + + /** + * The achievements, linked to the campaigns, belonging to the application. + * @return achievements + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The achievements, linked to the campaigns, belonging to the application.") + + public List getAchievements() { + return achievements; + } + + + public void setAchievements(List achievements) { + this.achievements = achievements; + } + + public Environment attributes(List attributes) { this.attributes = attributes; @@ -468,6 +504,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.variables, environment.variables) && Objects.equals(this.giveawaysPools, environment.giveawaysPools) && Objects.equals(this.loyaltyPrograms, environment.loyaltyPrograms) && + Objects.equals(this.achievements, environment.achievements) && Objects.equals(this.attributes, environment.attributes) && Objects.equals(this.additionalCosts, environment.additionalCosts) && Objects.equals(this.audiences, environment.audiences) && @@ -476,7 +513,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, applicationId, slots, functions, templates, variables, giveawaysPools, loyaltyPrograms, attributes, additionalCosts, audiences, collections); + return Objects.hash(id, created, applicationId, slots, functions, templates, variables, giveawaysPools, loyaltyPrograms, achievements, attributes, additionalCosts, audiences, collections); } @@ -493,6 +530,7 @@ public String toString() { sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); sb.append(" giveawaysPools: ").append(toIndentedString(giveawaysPools)).append("\n"); sb.append(" loyaltyPrograms: ").append(toIndentedString(loyaltyPrograms)).append("\n"); + sb.append(" achievements: ").append(toIndentedString(achievements)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" additionalCosts: ").append(toIndentedString(additionalCosts)).append("\n"); sb.append(" audiences: ").append(toIndentedString(audiences)).append("\n"); diff --git a/src/main/java/one/talon/model/ExpiringCouponsNotificationPolicy.java b/src/main/java/one/talon/model/ExpiringCouponsNotificationPolicy.java new file mode 100644 index 00000000..962ebc35 --- /dev/null +++ b/src/main/java/one/talon/model/ExpiringCouponsNotificationPolicy.java @@ -0,0 +1,163 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.ExpiringCouponsNotificationTrigger; + +/** + * ExpiringCouponsNotificationPolicy + */ + +public class ExpiringCouponsNotificationPolicy { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_TRIGGERS = "triggers"; + @SerializedName(SERIALIZED_NAME_TRIGGERS) + private List triggers = new ArrayList(); + + public static final String SERIALIZED_NAME_BATCHING_ENABLED = "batchingEnabled"; + @SerializedName(SERIALIZED_NAME_BATCHING_ENABLED) + private Boolean batchingEnabled = true; + + + public ExpiringCouponsNotificationPolicy name(String name) { + + this.name = name; + return this; + } + + /** + * Notification name. + * @return name + **/ + @ApiModelProperty(example = "Notification to Google", required = true, value = "Notification name.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public ExpiringCouponsNotificationPolicy triggers(List triggers) { + + this.triggers = triggers; + return this; + } + + public ExpiringCouponsNotificationPolicy addTriggersItem(ExpiringCouponsNotificationTrigger triggersItem) { + this.triggers.add(triggersItem); + return this; + } + + /** + * Get triggers + * @return triggers + **/ + @ApiModelProperty(required = true, value = "") + + public List getTriggers() { + return triggers; + } + + + public void setTriggers(List triggers) { + this.triggers = triggers; + } + + + public ExpiringCouponsNotificationPolicy batchingEnabled(Boolean batchingEnabled) { + + this.batchingEnabled = batchingEnabled; + return this; + } + + /** + * Indicates whether batching is activated. + * @return batchingEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether batching is activated.") + + public Boolean getBatchingEnabled() { + return batchingEnabled; + } + + + public void setBatchingEnabled(Boolean batchingEnabled) { + this.batchingEnabled = batchingEnabled; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExpiringCouponsNotificationPolicy expiringCouponsNotificationPolicy = (ExpiringCouponsNotificationPolicy) o; + return Objects.equals(this.name, expiringCouponsNotificationPolicy.name) && + Objects.equals(this.triggers, expiringCouponsNotificationPolicy.triggers) && + Objects.equals(this.batchingEnabled, expiringCouponsNotificationPolicy.batchingEnabled); + } + + @Override + public int hashCode() { + return Objects.hash(name, triggers, batchingEnabled); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExpiringCouponsNotificationPolicy {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" triggers: ").append(toIndentedString(triggers)).append("\n"); + sb.append(" batchingEnabled: ").append(toIndentedString(batchingEnabled)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ExpiringCouponsNotificationTrigger.java b/src/main/java/one/talon/model/ExpiringCouponsNotificationTrigger.java new file mode 100644 index 00000000..71c0651c --- /dev/null +++ b/src/main/java/one/talon/model/ExpiringCouponsNotificationTrigger.java @@ -0,0 +1,174 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ExpiringCouponsNotificationTrigger + */ + +public class ExpiringCouponsNotificationTrigger { + public static final String SERIALIZED_NAME_AMOUNT = "amount"; + @SerializedName(SERIALIZED_NAME_AMOUNT) + private Integer amount; + + /** + * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + */ + @JsonAdapter(PeriodEnum.Adapter.class) + public enum PeriodEnum { + W("w"), + + D("d"); + + private String value; + + PeriodEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PeriodEnum fromValue(String value) { + for (PeriodEnum b : PeriodEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PeriodEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PeriodEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PeriodEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PERIOD = "period"; + @SerializedName(SERIALIZED_NAME_PERIOD) + private PeriodEnum period; + + + public ExpiringCouponsNotificationTrigger amount(Integer amount) { + + this.amount = amount; + return this; + } + + /** + * The amount of period. + * minimum: 0 + * @return amount + **/ + @ApiModelProperty(required = true, value = "The amount of period.") + + public Integer getAmount() { + return amount; + } + + + public void setAmount(Integer amount) { + this.amount = amount; + } + + + public ExpiringCouponsNotificationTrigger period(PeriodEnum period) { + + this.period = period; + return this; + } + + /** + * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + * @return period + **/ + @ApiModelProperty(required = true, value = "Notification period indicated by a letter; \"w\" means week, \"d\" means day.") + + public PeriodEnum getPeriod() { + return period; + } + + + public void setPeriod(PeriodEnum period) { + this.period = period; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExpiringCouponsNotificationTrigger expiringCouponsNotificationTrigger = (ExpiringCouponsNotificationTrigger) o; + return Objects.equals(this.amount, expiringCouponsNotificationTrigger.amount) && + Objects.equals(this.period, expiringCouponsNotificationTrigger.period); + } + + @Override + public int hashCode() { + return Objects.hash(amount, period); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExpiringCouponsNotificationTrigger {\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" period: ").append(toIndentedString(period)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/FuncArgDef.java b/src/main/java/one/talon/model/FuncArgDef.java index 45353f2a..a499ef4b 100644 --- a/src/main/java/one/talon/model/FuncArgDef.java +++ b/src/main/java/one/talon/model/FuncArgDef.java @@ -123,7 +123,8 @@ public FuncArgDef description(String description) { * A campaigner-friendly description of the argument, this will also be shown in the rule editor. * @return description **/ - @ApiModelProperty(required = true, value = "A campaigner-friendly description of the argument, this will also be shown in the rule editor.") + @javax.annotation.Nullable + @ApiModelProperty(value = "A campaigner-friendly description of the argument, this will also be shown in the rule editor.") public String getDescription() { return description; diff --git a/src/main/java/one/talon/model/GetIntegrationCouponRequest.java b/src/main/java/one/talon/model/GetIntegrationCouponRequest.java new file mode 100644 index 00000000..d8e6e76b --- /dev/null +++ b/src/main/java/one/talon/model/GetIntegrationCouponRequest.java @@ -0,0 +1,135 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * GetIntegrationCouponRequest + */ + +public class GetIntegrationCouponRequest { + public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) + private List campaignIds = new ArrayList(); + + public static final String SERIALIZED_NAME_LIMIT = "limit"; + @SerializedName(SERIALIZED_NAME_LIMIT) + private Integer limit; + + + public GetIntegrationCouponRequest campaignIds(List campaignIds) { + + this.campaignIds = campaignIds; + return this; + } + + public GetIntegrationCouponRequest addCampaignIdsItem(Integer campaignIdsItem) { + this.campaignIds.add(campaignIdsItem); + return this; + } + + /** + * A list of IDs of the campaigns to get coupons from. + * @return campaignIds + **/ + @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "A list of IDs of the campaigns to get coupons from.") + + public List getCampaignIds() { + return campaignIds; + } + + + public void setCampaignIds(List campaignIds) { + this.campaignIds = campaignIds; + } + + + public GetIntegrationCouponRequest limit(Integer limit) { + + this.limit = limit; + return this; + } + + /** + * The maximum number of coupons included in the response. + * minimum: 1 + * maximum: 1000 + * @return limit + **/ + @ApiModelProperty(required = true, value = "The maximum number of coupons included in the response.") + + public Integer getLimit() { + return limit; + } + + + public void setLimit(Integer limit) { + this.limit = limit; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetIntegrationCouponRequest getIntegrationCouponRequest = (GetIntegrationCouponRequest) o; + return Objects.equals(this.campaignIds, getIntegrationCouponRequest.campaignIds) && + Objects.equals(this.limit, getIntegrationCouponRequest.limit); + } + + @Override + public int hashCode() { + return Objects.hash(campaignIds, limit); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetIntegrationCouponRequest {\n"); + sb.append(" campaignIds: ").append(toIndentedString(campaignIds)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/IncreaseAchievementProgressEffectProps.java b/src/main/java/one/talon/model/IncreaseAchievementProgressEffectProps.java new file mode 100644 index 00000000..31a9d1fa --- /dev/null +++ b/src/main/java/one/talon/model/IncreaseAchievementProgressEffectProps.java @@ -0,0 +1,269 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * The properties specific to the \"increaseAchievementProgress\" effect. This gets triggered whenever a validated rule contained an \"increase customer progress\" effect. + */ +@ApiModel(description = "The properties specific to the \"increaseAchievementProgress\" effect. This gets triggered whenever a validated rule contained an \"increase customer progress\" effect.") + +public class IncreaseAchievementProgressEffectProps { + public static final String SERIALIZED_NAME_ACHIEVEMENT_ID = "achievementId"; + @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_ID) + private Integer achievementId; + + public static final String SERIALIZED_NAME_ACHIEVEMENT_NAME = "achievementName"; + @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_NAME) + private String achievementName; + + public static final String SERIALIZED_NAME_PROGRESS_TRACKER_ID = "progressTrackerId"; + @SerializedName(SERIALIZED_NAME_PROGRESS_TRACKER_ID) + private Integer progressTrackerId; + + public static final String SERIALIZED_NAME_DELTA = "delta"; + @SerializedName(SERIALIZED_NAME_DELTA) + private BigDecimal delta; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private BigDecimal value; + + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + private BigDecimal target; + + public static final String SERIALIZED_NAME_IS_JUST_COMPLETED = "isJustCompleted"; + @SerializedName(SERIALIZED_NAME_IS_JUST_COMPLETED) + private Boolean isJustCompleted; + + + public IncreaseAchievementProgressEffectProps achievementId(Integer achievementId) { + + this.achievementId = achievementId; + return this; + } + + /** + * The internal ID of the achievement. + * @return achievementId + **/ + @ApiModelProperty(example = "10", required = true, value = "The internal ID of the achievement.") + + public Integer getAchievementId() { + return achievementId; + } + + + public void setAchievementId(Integer achievementId) { + this.achievementId = achievementId; + } + + + public IncreaseAchievementProgressEffectProps achievementName(String achievementName) { + + this.achievementName = achievementName; + return this; + } + + /** + * The name of the achievement. + * @return achievementName + **/ + @ApiModelProperty(example = "FreeCoffee10Orders", required = true, value = "The name of the achievement.") + + public String getAchievementName() { + return achievementName; + } + + + public void setAchievementName(String achievementName) { + this.achievementName = achievementName; + } + + + public IncreaseAchievementProgressEffectProps progressTrackerId(Integer progressTrackerId) { + + this.progressTrackerId = progressTrackerId; + return this; + } + + /** + * The internal ID of the achievement progress tracker. + * @return progressTrackerId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The internal ID of the achievement progress tracker.") + + public Integer getProgressTrackerId() { + return progressTrackerId; + } + + + public void setProgressTrackerId(Integer progressTrackerId) { + this.progressTrackerId = progressTrackerId; + } + + + public IncreaseAchievementProgressEffectProps delta(BigDecimal delta) { + + this.delta = delta; + return this; + } + + /** + * The value by which the customer's current progress in the achievement is increased. + * @return delta + **/ + @ApiModelProperty(required = true, value = "The value by which the customer's current progress in the achievement is increased.") + + public BigDecimal getDelta() { + return delta; + } + + + public void setDelta(BigDecimal delta) { + this.delta = delta; + } + + + public IncreaseAchievementProgressEffectProps value(BigDecimal value) { + + this.value = value; + return this; + } + + /** + * The current progress of the customer in the achievement. + * @return value + **/ + @ApiModelProperty(required = true, value = "The current progress of the customer in the achievement.") + + public BigDecimal getValue() { + return value; + } + + + public void setValue(BigDecimal value) { + this.value = value; + } + + + public IncreaseAchievementProgressEffectProps target(BigDecimal target) { + + this.target = target; + return this; + } + + /** + * The required number of actions or the transactional milestone to complete the achievement. + * @return target + **/ + @ApiModelProperty(required = true, value = "The required number of actions or the transactional milestone to complete the achievement.") + + public BigDecimal getTarget() { + return target; + } + + + public void setTarget(BigDecimal target) { + this.target = target; + } + + + public IncreaseAchievementProgressEffectProps isJustCompleted(Boolean isJustCompleted) { + + this.isJustCompleted = isJustCompleted; + return this; + } + + /** + * Indicates if the customer has completed the achievement in the current session. + * @return isJustCompleted + **/ + @ApiModelProperty(required = true, value = "Indicates if the customer has completed the achievement in the current session.") + + public Boolean getIsJustCompleted() { + return isJustCompleted; + } + + + public void setIsJustCompleted(Boolean isJustCompleted) { + this.isJustCompleted = isJustCompleted; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IncreaseAchievementProgressEffectProps increaseAchievementProgressEffectProps = (IncreaseAchievementProgressEffectProps) o; + return Objects.equals(this.achievementId, increaseAchievementProgressEffectProps.achievementId) && + Objects.equals(this.achievementName, increaseAchievementProgressEffectProps.achievementName) && + Objects.equals(this.progressTrackerId, increaseAchievementProgressEffectProps.progressTrackerId) && + Objects.equals(this.delta, increaseAchievementProgressEffectProps.delta) && + Objects.equals(this.value, increaseAchievementProgressEffectProps.value) && + Objects.equals(this.target, increaseAchievementProgressEffectProps.target) && + Objects.equals(this.isJustCompleted, increaseAchievementProgressEffectProps.isJustCompleted); + } + + @Override + public int hashCode() { + return Objects.hash(achievementId, achievementName, progressTrackerId, delta, value, target, isJustCompleted); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IncreaseAchievementProgressEffectProps {\n"); + sb.append(" achievementId: ").append(toIndentedString(achievementId)).append("\n"); + sb.append(" achievementName: ").append(toIndentedString(achievementName)).append("\n"); + sb.append(" progressTrackerId: ").append(toIndentedString(progressTrackerId)).append("\n"); + sb.append(" delta: ").append(toIndentedString(delta)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" target: ").append(toIndentedString(target)).append("\n"); + sb.append(" isJustCompleted: ").append(toIndentedString(isJustCompleted)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/InlineResponse20011.java b/src/main/java/one/talon/model/InlineResponse20011.java index c770f148..7cf78142 100644 --- a/src/main/java/one/talon/model/InlineResponse20011.java +++ b/src/main/java/one/talon/model/InlineResponse20011.java @@ -25,51 +25,51 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CampaignTemplate; +import one.talon.model.CampaignGroup; /** * InlineResponse20011 */ public class InlineResponse20011 { - public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; - @SerializedName(SERIALIZED_NAME_HAS_MORE) - private Boolean hasMore; + public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; + @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); - public InlineResponse20011 hasMore(Boolean hasMore) { + public InlineResponse20011 totalResultSize(Integer totalResultSize) { - this.hasMore = hasMore; + this.totalResultSize = totalResultSize; return this; } /** - * Get hasMore - * @return hasMore + * Get totalResultSize + * @return totalResultSize **/ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty(example = "1", required = true, value = "") - public Boolean getHasMore() { - return hasMore; + public Integer getTotalResultSize() { + return totalResultSize; } - public void setHasMore(Boolean hasMore) { - this.hasMore = hasMore; + public void setTotalResultSize(Integer totalResultSize) { + this.totalResultSize = totalResultSize; } - public InlineResponse20011 data(List data) { + public InlineResponse20011 data(List data) { this.data = data; return this; } - public InlineResponse20011 addDataItem(CampaignTemplate dataItem) { + public InlineResponse20011 addDataItem(CampaignGroup dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20011 addDataItem(CampaignTemplate dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -99,13 +99,13 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20011 inlineResponse20011 = (InlineResponse20011) o; - return Objects.equals(this.hasMore, inlineResponse20011.hasMore) && + return Objects.equals(this.totalResultSize, inlineResponse20011.totalResultSize) && Objects.equals(this.data, inlineResponse20011.data); } @Override public int hashCode() { - return Objects.hash(hasMore, data); + return Objects.hash(totalResultSize, data); } @@ -113,7 +113,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20011 {\n"); - sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20012.java b/src/main/java/one/talon/model/InlineResponse20012.java index c077b4d1..72bb13a5 100644 --- a/src/main/java/one/talon/model/InlineResponse20012.java +++ b/src/main/java/one/talon/model/InlineResponse20012.java @@ -25,51 +25,51 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.LoyaltyProgram; +import one.talon.model.CampaignTemplate; /** * InlineResponse20012 */ public class InlineResponse20012 { - public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; - @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; + @SerializedName(SERIALIZED_NAME_HAS_MORE) + private Boolean hasMore; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); - public InlineResponse20012 totalResultSize(Integer totalResultSize) { + public InlineResponse20012 hasMore(Boolean hasMore) { - this.totalResultSize = totalResultSize; + this.hasMore = hasMore; return this; } /** - * Get totalResultSize - * @return totalResultSize + * Get hasMore + * @return hasMore **/ - @ApiModelProperty(example = "1", required = true, value = "") + @ApiModelProperty(example = "true", required = true, value = "") - public Integer getTotalResultSize() { - return totalResultSize; + public Boolean getHasMore() { + return hasMore; } - public void setTotalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; } - public InlineResponse20012 data(List data) { + public InlineResponse20012 data(List data) { this.data = data; return this; } - public InlineResponse20012 addDataItem(LoyaltyProgram dataItem) { + public InlineResponse20012 addDataItem(CampaignTemplate dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20012 addDataItem(LoyaltyProgram dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -99,13 +99,13 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20012 inlineResponse20012 = (InlineResponse20012) o; - return Objects.equals(this.totalResultSize, inlineResponse20012.totalResultSize) && + return Objects.equals(this.hasMore, inlineResponse20012.hasMore) && Objects.equals(this.data, inlineResponse20012.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data); + return Objects.hash(hasMore, data); } @@ -113,7 +113,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20012 {\n"); - sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20013.java b/src/main/java/one/talon/model/InlineResponse20013.java index 99366be7..ab001448 100644 --- a/src/main/java/one/talon/model/InlineResponse20013.java +++ b/src/main/java/one/talon/model/InlineResponse20013.java @@ -25,51 +25,51 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.LoyaltyProgramTransaction; +import one.talon.model.LoyaltyProgram; /** * InlineResponse20013 */ public class InlineResponse20013 { - public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; - @SerializedName(SERIALIZED_NAME_HAS_MORE) - private Boolean hasMore; + public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; + @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); - public InlineResponse20013 hasMore(Boolean hasMore) { + public InlineResponse20013 totalResultSize(Integer totalResultSize) { - this.hasMore = hasMore; + this.totalResultSize = totalResultSize; return this; } /** - * Get hasMore - * @return hasMore + * Get totalResultSize + * @return totalResultSize **/ - @ApiModelProperty(example = "true", required = true, value = "") + @ApiModelProperty(example = "1", required = true, value = "") - public Boolean getHasMore() { - return hasMore; + public Integer getTotalResultSize() { + return totalResultSize; } - public void setHasMore(Boolean hasMore) { - this.hasMore = hasMore; + public void setTotalResultSize(Integer totalResultSize) { + this.totalResultSize = totalResultSize; } - public InlineResponse20013 data(List data) { + public InlineResponse20013 data(List data) { this.data = data; return this; } - public InlineResponse20013 addDataItem(LoyaltyProgramTransaction dataItem) { + public InlineResponse20013 addDataItem(LoyaltyProgram dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20013 addDataItem(LoyaltyProgramTransaction dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -99,13 +99,13 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20013 inlineResponse20013 = (InlineResponse20013) o; - return Objects.equals(this.hasMore, inlineResponse20013.hasMore) && + return Objects.equals(this.totalResultSize, inlineResponse20013.totalResultSize) && Objects.equals(this.data, inlineResponse20013.data); } @Override public int hashCode() { - return Objects.hash(hasMore, data); + return Objects.hash(totalResultSize, data); } @@ -113,7 +113,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20013 {\n"); - sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20014.java b/src/main/java/one/talon/model/InlineResponse20014.java index 2891b648..018f270d 100644 --- a/src/main/java/one/talon/model/InlineResponse20014.java +++ b/src/main/java/one/talon/model/InlineResponse20014.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.LoyaltyCard; +import one.talon.model.LoyaltyProgramTransaction; /** * InlineResponse20014 @@ -38,7 +38,7 @@ public class InlineResponse20014 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20014 hasMore(Boolean hasMore) { @@ -63,13 +63,13 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20014 data(List data) { + public InlineResponse20014 data(List data) { this.data = data; return this; } - public InlineResponse20014 addDataItem(LoyaltyCard dataItem) { + public InlineResponse20014 addDataItem(LoyaltyProgramTransaction dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20014 addDataItem(LoyaltyCard dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } diff --git a/src/main/java/one/talon/model/InlineResponse20015.java b/src/main/java/one/talon/model/InlineResponse20015.java index 5bfd65b4..1c108cb0 100644 --- a/src/main/java/one/talon/model/InlineResponse20015.java +++ b/src/main/java/one/talon/model/InlineResponse20015.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CardLedgerTransactionLogEntry; +import one.talon.model.LoyaltyCard; /** * InlineResponse20015 @@ -38,7 +38,7 @@ public class InlineResponse20015 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20015 hasMore(Boolean hasMore) { @@ -48,10 +48,10 @@ public InlineResponse20015 hasMore(Boolean hasMore) { } /** - * true means there is more data in the source collection to request.. + * Get hasMore * @return hasMore **/ - @ApiModelProperty(example = "true", required = true, value = "true means there is more data in the source collection to request..") + @ApiModelProperty(example = "true", required = true, value = "") public Boolean getHasMore() { return hasMore; @@ -63,29 +63,29 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20015 data(List data) { + public InlineResponse20015 data(List data) { this.data = data; return this; } - public InlineResponse20015 addDataItem(CardLedgerTransactionLogEntry dataItem) { + public InlineResponse20015 addDataItem(LoyaltyCard dataItem) { this.data.add(dataItem); return this; } /** - * List of loyalty card transaction logs. + * Get data * @return data **/ - @ApiModelProperty(required = true, value = "List of loyalty card transaction logs.") + @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } diff --git a/src/main/java/one/talon/model/InlineResponse20016.java b/src/main/java/one/talon/model/InlineResponse20016.java index e235c226..b0218b5f 100644 --- a/src/main/java/one/talon/model/InlineResponse20016.java +++ b/src/main/java/one/talon/model/InlineResponse20016.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CollectionWithoutPayload; +import one.talon.model.CardLedgerTransactionLogEntry; /** * InlineResponse20016 @@ -36,13 +36,9 @@ public class InlineResponse20016 { @SerializedName(SERIALIZED_NAME_HAS_MORE) private Boolean hasMore; - public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; - @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20016 hasMore(Boolean hasMore) { @@ -52,11 +48,10 @@ public InlineResponse20016 hasMore(Boolean hasMore) { } /** - * Get hasMore + * true means there is more data in the source collection to request.. * @return hasMore **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(example = "true", required = true, value = "true means there is more data in the source collection to request..") public Boolean getHasMore() { return hasMore; @@ -68,52 +63,29 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20016 totalResultSize(Integer totalResultSize) { - - this.totalResultSize = totalResultSize; - return this; - } - - /** - * Get totalResultSize - * @return totalResultSize - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") - - public Integer getTotalResultSize() { - return totalResultSize; - } - - - public void setTotalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; - } - - - public InlineResponse20016 data(List data) { + public InlineResponse20016 data(List data) { this.data = data; return this; } - public InlineResponse20016 addDataItem(CollectionWithoutPayload dataItem) { + public InlineResponse20016 addDataItem(CardLedgerTransactionLogEntry dataItem) { this.data.add(dataItem); return this; } /** - * Get data + * List of loyalty card transaction logs. * @return data **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "List of loyalty card transaction logs.") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -128,13 +100,12 @@ public boolean equals(java.lang.Object o) { } InlineResponse20016 inlineResponse20016 = (InlineResponse20016) o; return Objects.equals(this.hasMore, inlineResponse20016.hasMore) && - Objects.equals(this.totalResultSize, inlineResponse20016.totalResultSize) && Objects.equals(this.data, inlineResponse20016.data); } @Override public int hashCode() { - return Objects.hash(hasMore, totalResultSize, data); + return Objects.hash(hasMore, data); } @@ -143,7 +114,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20016 {\n"); sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); - sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20017.java b/src/main/java/one/talon/model/InlineResponse20017.java index 786be131..bdfa1705 100644 --- a/src/main/java/one/talon/model/InlineResponse20017.java +++ b/src/main/java/one/talon/model/InlineResponse20017.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CollectionItem; +import one.talon.model.CollectionWithoutPayload; /** * InlineResponse20017 @@ -36,9 +36,13 @@ public class InlineResponse20017 { @SerializedName(SERIALIZED_NAME_HAS_MORE) private Boolean hasMore; + public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; + @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) + private Integer totalResultSize; + public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20017 hasMore(Boolean hasMore) { @@ -51,7 +55,8 @@ public InlineResponse20017 hasMore(Boolean hasMore) { * Get hasMore * @return hasMore **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public Boolean getHasMore() { return hasMore; @@ -63,13 +68,36 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20017 data(List data) { + public InlineResponse20017 totalResultSize(Integer totalResultSize) { + + this.totalResultSize = totalResultSize; + return this; + } + + /** + * Get totalResultSize + * @return totalResultSize + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") + + public Integer getTotalResultSize() { + return totalResultSize; + } + + + public void setTotalResultSize(Integer totalResultSize) { + this.totalResultSize = totalResultSize; + } + + + public InlineResponse20017 data(List data) { this.data = data; return this; } - public InlineResponse20017 addDataItem(CollectionItem dataItem) { + public InlineResponse20017 addDataItem(CollectionWithoutPayload dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +108,12 @@ public InlineResponse20017 addDataItem(CollectionItem dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -100,12 +128,13 @@ public boolean equals(java.lang.Object o) { } InlineResponse20017 inlineResponse20017 = (InlineResponse20017) o; return Objects.equals(this.hasMore, inlineResponse20017.hasMore) && + Objects.equals(this.totalResultSize, inlineResponse20017.totalResultSize) && Objects.equals(this.data, inlineResponse20017.data); } @Override public int hashCode() { - return Objects.hash(hasMore, data); + return Objects.hash(hasMore, totalResultSize, data); } @@ -114,6 +143,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20017 {\n"); sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20018.java b/src/main/java/one/talon/model/InlineResponse20018.java index 2ea27391..9c8f1247 100644 --- a/src/main/java/one/talon/model/InlineResponse20018.java +++ b/src/main/java/one/talon/model/InlineResponse20018.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Collection; +import one.talon.model.CollectionItem; /** * InlineResponse20018 @@ -36,13 +36,9 @@ public class InlineResponse20018 { @SerializedName(SERIALIZED_NAME_HAS_MORE) private Boolean hasMore; - public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; - @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20018 hasMore(Boolean hasMore) { @@ -55,8 +51,7 @@ public InlineResponse20018 hasMore(Boolean hasMore) { * Get hasMore * @return hasMore **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "") public Boolean getHasMore() { return hasMore; @@ -68,36 +63,13 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20018 totalResultSize(Integer totalResultSize) { - - this.totalResultSize = totalResultSize; - return this; - } - - /** - * Get totalResultSize - * @return totalResultSize - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") - - public Integer getTotalResultSize() { - return totalResultSize; - } - - - public void setTotalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; - } - - - public InlineResponse20018 data(List data) { + public InlineResponse20018 data(List data) { this.data = data; return this; } - public InlineResponse20018 addDataItem(Collection dataItem) { + public InlineResponse20018 addDataItem(CollectionItem dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +80,12 @@ public InlineResponse20018 addDataItem(Collection dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -128,13 +100,12 @@ public boolean equals(java.lang.Object o) { } InlineResponse20018 inlineResponse20018 = (InlineResponse20018) o; return Objects.equals(this.hasMore, inlineResponse20018.hasMore) && - Objects.equals(this.totalResultSize, inlineResponse20018.totalResultSize) && Objects.equals(this.data, inlineResponse20018.data); } @Override public int hashCode() { - return Objects.hash(hasMore, totalResultSize, data); + return Objects.hash(hasMore, data); } @@ -143,7 +114,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20018 {\n"); sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); - sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20031.java b/src/main/java/one/talon/model/InlineResponse20031.java index 73fff109..7a615905 100644 --- a/src/main/java/one/talon/model/InlineResponse20031.java +++ b/src/main/java/one/talon/model/InlineResponse20031.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.ApplicationReferee; +import one.talon.model.AudienceAnalytics; /** * InlineResponse20031 @@ -36,13 +36,9 @@ public class InlineResponse20031 { @SerializedName(SERIALIZED_NAME_HAS_MORE) private Boolean hasMore; - public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; - @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20031 hasMore(Boolean hasMore) { @@ -68,36 +64,13 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20031 totalResultSize(Integer totalResultSize) { - - this.totalResultSize = totalResultSize; - return this; - } - - /** - * Get totalResultSize - * @return totalResultSize - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") - - public Integer getTotalResultSize() { - return totalResultSize; - } - - - public void setTotalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; - } - - - public InlineResponse20031 data(List data) { + public InlineResponse20031 data(List data) { this.data = data; return this; } - public InlineResponse20031 addDataItem(ApplicationReferee dataItem) { + public InlineResponse20031 addDataItem(AudienceAnalytics dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +81,12 @@ public InlineResponse20031 addDataItem(ApplicationReferee dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -128,13 +101,12 @@ public boolean equals(java.lang.Object o) { } InlineResponse20031 inlineResponse20031 = (InlineResponse20031) o; return Objects.equals(this.hasMore, inlineResponse20031.hasMore) && - Objects.equals(this.totalResultSize, inlineResponse20031.totalResultSize) && Objects.equals(this.data, inlineResponse20031.data); } @Override public int hashCode() { - return Objects.hash(hasMore, totalResultSize, data); + return Objects.hash(hasMore, data); } @@ -143,7 +115,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20031 {\n"); sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); - sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20032.java b/src/main/java/one/talon/model/InlineResponse20032.java index 46dbcae1..06d674ab 100644 --- a/src/main/java/one/talon/model/InlineResponse20032.java +++ b/src/main/java/one/talon/model/InlineResponse20032.java @@ -25,51 +25,52 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Attribute; +import one.talon.model.CustomerProfile; /** * InlineResponse20032 */ public class InlineResponse20032 { - public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; - @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; + @SerializedName(SERIALIZED_NAME_HAS_MORE) + private Boolean hasMore; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); - public InlineResponse20032 totalResultSize(Integer totalResultSize) { + public InlineResponse20032 hasMore(Boolean hasMore) { - this.totalResultSize = totalResultSize; + this.hasMore = hasMore; return this; } /** - * Get totalResultSize - * @return totalResultSize + * Get hasMore + * @return hasMore **/ - @ApiModelProperty(example = "1", required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public Integer getTotalResultSize() { - return totalResultSize; + public Boolean getHasMore() { + return hasMore; } - public void setTotalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; } - public InlineResponse20032 data(List data) { + public InlineResponse20032 data(List data) { this.data = data; return this; } - public InlineResponse20032 addDataItem(Attribute dataItem) { + public InlineResponse20032 addDataItem(CustomerProfile dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +81,12 @@ public InlineResponse20032 addDataItem(Attribute dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -99,13 +100,13 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20032 inlineResponse20032 = (InlineResponse20032) o; - return Objects.equals(this.totalResultSize, inlineResponse20032.totalResultSize) && + return Objects.equals(this.hasMore, inlineResponse20032.hasMore) && Objects.equals(this.data, inlineResponse20032.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data); + return Objects.hash(hasMore, data); } @@ -113,7 +114,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20032 {\n"); - sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20033.java b/src/main/java/one/talon/model/InlineResponse20033.java index b7357895..d4123d74 100644 --- a/src/main/java/one/talon/model/InlineResponse20033.java +++ b/src/main/java/one/talon/model/InlineResponse20033.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CatalogItem; +import one.talon.model.ApplicationReferee; /** * InlineResponse20033 @@ -42,7 +42,7 @@ public class InlineResponse20033 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20033 hasMore(Boolean hasMore) { @@ -91,13 +91,13 @@ public void setTotalResultSize(Integer totalResultSize) { } - public InlineResponse20033 data(List data) { + public InlineResponse20033 data(List data) { this.data = data; return this; } - public InlineResponse20033 addDataItem(CatalogItem dataItem) { + public InlineResponse20033 addDataItem(ApplicationReferee dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +108,12 @@ public InlineResponse20033 addDataItem(CatalogItem dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } diff --git a/src/main/java/one/talon/model/InlineResponse20034.java b/src/main/java/one/talon/model/InlineResponse20034.java index 76d0aa0e..9a392def 100644 --- a/src/main/java/one/talon/model/InlineResponse20034.java +++ b/src/main/java/one/talon/model/InlineResponse20034.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AccountAdditionalCost; +import one.talon.model.Attribute; /** * InlineResponse20034 @@ -38,7 +38,7 @@ public class InlineResponse20034 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20034 totalResultSize(Integer totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Integer totalResultSize) { } - public InlineResponse20034 data(List data) { + public InlineResponse20034 data(List data) { this.data = data; return this; } - public InlineResponse20034 addDataItem(AccountAdditionalCost dataItem) { + public InlineResponse20034 addDataItem(Attribute dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20034 addDataItem(AccountAdditionalCost dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } diff --git a/src/main/java/one/talon/model/InlineResponse20035.java b/src/main/java/one/talon/model/InlineResponse20035.java index 3ca56a4d..72d45307 100644 --- a/src/main/java/one/talon/model/InlineResponse20035.java +++ b/src/main/java/one/talon/model/InlineResponse20035.java @@ -25,20 +25,47 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.WebhookWithOutgoingIntegrationDetails; +import one.talon.model.CatalogItem; /** * InlineResponse20035 */ public class InlineResponse20035 { + public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; + @SerializedName(SERIALIZED_NAME_HAS_MORE) + private Boolean hasMore; + public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); + + + public InlineResponse20035 hasMore(Boolean hasMore) { + + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getHasMore() { + return hasMore; + } + + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } public InlineResponse20035 totalResultSize(Integer totalResultSize) { @@ -51,7 +78,8 @@ public InlineResponse20035 totalResultSize(Integer totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @ApiModelProperty(example = "1", required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") public Integer getTotalResultSize() { return totalResultSize; @@ -63,13 +91,13 @@ public void setTotalResultSize(Integer totalResultSize) { } - public InlineResponse20035 data(List data) { + public InlineResponse20035 data(List data) { this.data = data; return this; } - public InlineResponse20035 addDataItem(WebhookWithOutgoingIntegrationDetails dataItem) { + public InlineResponse20035 addDataItem(CatalogItem dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +108,12 @@ public InlineResponse20035 addDataItem(WebhookWithOutgoingIntegrationDetails dat **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -99,13 +127,14 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20035 inlineResponse20035 = (InlineResponse20035) o; - return Objects.equals(this.totalResultSize, inlineResponse20035.totalResultSize) && + return Objects.equals(this.hasMore, inlineResponse20035.hasMore) && + Objects.equals(this.totalResultSize, inlineResponse20035.totalResultSize) && Objects.equals(this.data, inlineResponse20035.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data); + return Objects.hash(hasMore, totalResultSize, data); } @@ -113,6 +142,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20035 {\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); diff --git a/src/main/java/one/talon/model/InlineResponse20036.java b/src/main/java/one/talon/model/InlineResponse20036.java index 1c1d7e0e..6d34ee81 100644 --- a/src/main/java/one/talon/model/InlineResponse20036.java +++ b/src/main/java/one/talon/model/InlineResponse20036.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.WebhookActivationLogEntry; +import one.talon.model.AccountAdditionalCost; /** * InlineResponse20036 @@ -38,7 +38,7 @@ public class InlineResponse20036 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20036 totalResultSize(Integer totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Integer totalResultSize) { } - public InlineResponse20036 data(List data) { + public InlineResponse20036 data(List data) { this.data = data; return this; } - public InlineResponse20036 addDataItem(WebhookActivationLogEntry dataItem) { + public InlineResponse20036 addDataItem(AccountAdditionalCost dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20036 addDataItem(WebhookActivationLogEntry dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } diff --git a/src/main/java/one/talon/model/InlineResponse20037.java b/src/main/java/one/talon/model/InlineResponse20037.java index 51aee022..5003387b 100644 --- a/src/main/java/one/talon/model/InlineResponse20037.java +++ b/src/main/java/one/talon/model/InlineResponse20037.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.WebhookLogEntry; +import one.talon.model.WebhookWithOutgoingIntegrationDetails; /** * InlineResponse20037 @@ -38,7 +38,7 @@ public class InlineResponse20037 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20037 totalResultSize(Integer totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Integer totalResultSize) { } - public InlineResponse20037 data(List data) { + public InlineResponse20037 data(List data) { this.data = data; return this; } - public InlineResponse20037 addDataItem(WebhookLogEntry dataItem) { + public InlineResponse20037 addDataItem(WebhookWithOutgoingIntegrationDetails dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20037 addDataItem(WebhookLogEntry dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } diff --git a/src/main/java/one/talon/model/InlineResponse20038.java b/src/main/java/one/talon/model/InlineResponse20038.java index 9a8ac1a2..2d62d490 100644 --- a/src/main/java/one/talon/model/InlineResponse20038.java +++ b/src/main/java/one/talon/model/InlineResponse20038.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.EventType; +import one.talon.model.WebhookActivationLogEntry; /** * InlineResponse20038 @@ -38,7 +38,7 @@ public class InlineResponse20038 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20038 totalResultSize(Integer totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Integer totalResultSize) { } - public InlineResponse20038 data(List data) { + public InlineResponse20038 data(List data) { this.data = data; return this; } - public InlineResponse20038 addDataItem(EventType dataItem) { + public InlineResponse20038 addDataItem(WebhookActivationLogEntry dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20038 addDataItem(EventType dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } diff --git a/src/main/java/one/talon/model/InlineResponse20039.java b/src/main/java/one/talon/model/InlineResponse20039.java index 6095d3ee..1644db27 100644 --- a/src/main/java/one/talon/model/InlineResponse20039.java +++ b/src/main/java/one/talon/model/InlineResponse20039.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.User; +import one.talon.model.WebhookLogEntry; /** * InlineResponse20039 @@ -38,7 +38,7 @@ public class InlineResponse20039 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20039 totalResultSize(Integer totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Integer totalResultSize) { } - public InlineResponse20039 data(List data) { + public InlineResponse20039 data(List data) { this.data = data; return this; } - public InlineResponse20039 addDataItem(User dataItem) { + public InlineResponse20039 addDataItem(WebhookLogEntry dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20039 addDataItem(User dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } diff --git a/src/main/java/one/talon/model/InlineResponse20040.java b/src/main/java/one/talon/model/InlineResponse20040.java index ca9b7cb6..2cf23410 100644 --- a/src/main/java/one/talon/model/InlineResponse20040.java +++ b/src/main/java/one/talon/model/InlineResponse20040.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Change; +import one.talon.model.EventType; /** * InlineResponse20040 @@ -36,13 +36,9 @@ public class InlineResponse20040 { @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) private Integer totalResultSize; - public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; - @SerializedName(SERIALIZED_NAME_HAS_MORE) - private Boolean hasMore; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20040 totalResultSize(Integer totalResultSize) { @@ -55,8 +51,7 @@ public InlineResponse20040 totalResultSize(Integer totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") + @ApiModelProperty(example = "1", required = true, value = "") public Integer getTotalResultSize() { return totalResultSize; @@ -68,36 +63,13 @@ public void setTotalResultSize(Integer totalResultSize) { } - public InlineResponse20040 hasMore(Boolean hasMore) { - - this.hasMore = hasMore; - return this; - } - - /** - * Get hasMore - * @return hasMore - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getHasMore() { - return hasMore; - } - - - public void setHasMore(Boolean hasMore) { - this.hasMore = hasMore; - } - - - public InlineResponse20040 data(List data) { + public InlineResponse20040 data(List data) { this.data = data; return this; } - public InlineResponse20040 addDataItem(Change dataItem) { + public InlineResponse20040 addDataItem(EventType dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +80,12 @@ public InlineResponse20040 addDataItem(Change dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -128,13 +100,12 @@ public boolean equals(java.lang.Object o) { } InlineResponse20040 inlineResponse20040 = (InlineResponse20040) o; return Objects.equals(this.totalResultSize, inlineResponse20040.totalResultSize) && - Objects.equals(this.hasMore, inlineResponse20040.hasMore) && Objects.equals(this.data, inlineResponse20040.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, hasMore, data); + return Objects.hash(totalResultSize, data); } @@ -143,7 +114,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20040 {\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); - sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20041.java b/src/main/java/one/talon/model/InlineResponse20041.java index ad3e2fe1..d157330a 100644 --- a/src/main/java/one/talon/model/InlineResponse20041.java +++ b/src/main/java/one/talon/model/InlineResponse20041.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Export; +import one.talon.model.User; /** * InlineResponse20041 @@ -38,7 +38,7 @@ public class InlineResponse20041 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20041 totalResultSize(Integer totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Integer totalResultSize) { } - public InlineResponse20041 data(List data) { + public InlineResponse20041 data(List data) { this.data = data; return this; } - public InlineResponse20041 addDataItem(Export dataItem) { + public InlineResponse20041 addDataItem(User dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20041 addDataItem(Export dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } diff --git a/src/main/java/one/talon/model/InlineResponse20042.java b/src/main/java/one/talon/model/InlineResponse20042.java index e5b98916..1ccd6058 100644 --- a/src/main/java/one/talon/model/InlineResponse20042.java +++ b/src/main/java/one/talon/model/InlineResponse20042.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Role; +import one.talon.model.Change; /** * InlineResponse20042 @@ -36,9 +36,13 @@ public class InlineResponse20042 { @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) private Integer totalResultSize; + public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; + @SerializedName(SERIALIZED_NAME_HAS_MORE) + private Boolean hasMore; + public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20042 totalResultSize(Integer totalResultSize) { @@ -51,7 +55,8 @@ public InlineResponse20042 totalResultSize(Integer totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @ApiModelProperty(example = "1", required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") public Integer getTotalResultSize() { return totalResultSize; @@ -63,13 +68,36 @@ public void setTotalResultSize(Integer totalResultSize) { } - public InlineResponse20042 data(List data) { + public InlineResponse20042 hasMore(Boolean hasMore) { + + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getHasMore() { + return hasMore; + } + + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + + public InlineResponse20042 data(List data) { this.data = data; return this; } - public InlineResponse20042 addDataItem(Role dataItem) { + public InlineResponse20042 addDataItem(Change dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +108,12 @@ public InlineResponse20042 addDataItem(Role dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -100,12 +128,13 @@ public boolean equals(java.lang.Object o) { } InlineResponse20042 inlineResponse20042 = (InlineResponse20042) o; return Objects.equals(this.totalResultSize, inlineResponse20042.totalResultSize) && + Objects.equals(this.hasMore, inlineResponse20042.hasMore) && Objects.equals(this.data, inlineResponse20042.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data); + return Objects.hash(totalResultSize, hasMore, data); } @@ -114,6 +143,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20042 {\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20043.java b/src/main/java/one/talon/model/InlineResponse20043.java index d37fa72b..c50fb9be 100644 --- a/src/main/java/one/talon/model/InlineResponse20043.java +++ b/src/main/java/one/talon/model/InlineResponse20043.java @@ -25,47 +25,20 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Store; +import one.talon.model.Export; /** * InlineResponse20043 */ public class InlineResponse20043 { - public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; - @SerializedName(SERIALIZED_NAME_HAS_MORE) - private Boolean hasMore; - public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); - - - public InlineResponse20043 hasMore(Boolean hasMore) { - - this.hasMore = hasMore; - return this; - } - - /** - * Get hasMore - * @return hasMore - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getHasMore() { - return hasMore; - } - - - public void setHasMore(Boolean hasMore) { - this.hasMore = hasMore; - } + private List data = new ArrayList(); public InlineResponse20043 totalResultSize(Integer totalResultSize) { @@ -78,8 +51,7 @@ public InlineResponse20043 totalResultSize(Integer totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") + @ApiModelProperty(example = "1", required = true, value = "") public Integer getTotalResultSize() { return totalResultSize; @@ -91,13 +63,13 @@ public void setTotalResultSize(Integer totalResultSize) { } - public InlineResponse20043 data(List data) { + public InlineResponse20043 data(List data) { this.data = data; return this; } - public InlineResponse20043 addDataItem(Store dataItem) { + public InlineResponse20043 addDataItem(Export dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +80,12 @@ public InlineResponse20043 addDataItem(Store dataItem) { **/ @ApiModelProperty(required = true, value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -127,14 +99,13 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20043 inlineResponse20043 = (InlineResponse20043) o; - return Objects.equals(this.hasMore, inlineResponse20043.hasMore) && - Objects.equals(this.totalResultSize, inlineResponse20043.totalResultSize) && + return Objects.equals(this.totalResultSize, inlineResponse20043.totalResultSize) && Objects.equals(this.data, inlineResponse20043.data); } @Override public int hashCode() { - return Objects.hash(hasMore, totalResultSize, data); + return Objects.hash(totalResultSize, data); } @@ -142,7 +113,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20043 {\n"); - sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); diff --git a/src/main/java/one/talon/model/InlineResponse20044.java b/src/main/java/one/talon/model/InlineResponse20044.java new file mode 100644 index 00000000..ccce9e9f --- /dev/null +++ b/src/main/java/one/talon/model/InlineResponse20044.java @@ -0,0 +1,134 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.Role; + +/** + * InlineResponse20044 + */ + +public class InlineResponse20044 { + public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; + @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) + private Integer totalResultSize; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList(); + + + public InlineResponse20044 totalResultSize(Integer totalResultSize) { + + this.totalResultSize = totalResultSize; + return this; + } + + /** + * Get totalResultSize + * @return totalResultSize + **/ + @ApiModelProperty(example = "1", required = true, value = "") + + public Integer getTotalResultSize() { + return totalResultSize; + } + + + public void setTotalResultSize(Integer totalResultSize) { + this.totalResultSize = totalResultSize; + } + + + public InlineResponse20044 data(List data) { + + this.data = data; + return this; + } + + public InlineResponse20044 addDataItem(Role dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(required = true, value = "") + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineResponse20044 inlineResponse20044 = (InlineResponse20044) o; + return Objects.equals(this.totalResultSize, inlineResponse20044.totalResultSize) && + Objects.equals(this.data, inlineResponse20044.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalResultSize, data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineResponse20044 {\n"); + sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/InlineResponse20045.java b/src/main/java/one/talon/model/InlineResponse20045.java new file mode 100644 index 00000000..0cbd2dff --- /dev/null +++ b/src/main/java/one/talon/model/InlineResponse20045.java @@ -0,0 +1,164 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.Store; + +/** + * InlineResponse20045 + */ + +public class InlineResponse20045 { + public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; + @SerializedName(SERIALIZED_NAME_HAS_MORE) + private Boolean hasMore; + + public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; + @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) + private Integer totalResultSize; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList(); + + + public InlineResponse20045 hasMore(Boolean hasMore) { + + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getHasMore() { + return hasMore; + } + + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + + public InlineResponse20045 totalResultSize(Integer totalResultSize) { + + this.totalResultSize = totalResultSize; + return this; + } + + /** + * Get totalResultSize + * @return totalResultSize + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") + + public Integer getTotalResultSize() { + return totalResultSize; + } + + + public void setTotalResultSize(Integer totalResultSize) { + this.totalResultSize = totalResultSize; + } + + + public InlineResponse20045 data(List data) { + + this.data = data; + return this; + } + + public InlineResponse20045 addDataItem(Store dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(required = true, value = "") + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineResponse20045 inlineResponse20045 = (InlineResponse20045) o; + return Objects.equals(this.hasMore, inlineResponse20045.hasMore) && + Objects.equals(this.totalResultSize, inlineResponse20045.totalResultSize) && + Objects.equals(this.data, inlineResponse20045.data); + } + + @Override + public int hashCode() { + return Objects.hash(hasMore, totalResultSize, data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineResponse20045 {\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/InlineResponse20046.java b/src/main/java/one/talon/model/InlineResponse20046.java new file mode 100644 index 00000000..107ca3da --- /dev/null +++ b/src/main/java/one/talon/model/InlineResponse20046.java @@ -0,0 +1,135 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.Achievement; + +/** + * InlineResponse20046 + */ + +public class InlineResponse20046 { + public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; + @SerializedName(SERIALIZED_NAME_HAS_MORE) + private Boolean hasMore; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList(); + + + public InlineResponse20046 hasMore(Boolean hasMore) { + + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getHasMore() { + return hasMore; + } + + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + + public InlineResponse20046 data(List data) { + + this.data = data; + return this; + } + + public InlineResponse20046 addDataItem(Achievement dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(required = true, value = "") + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineResponse20046 inlineResponse20046 = (InlineResponse20046) o; + return Objects.equals(this.hasMore, inlineResponse20046.hasMore) && + Objects.equals(this.data, inlineResponse20046.data); + } + + @Override + public int hashCode() { + return Objects.hash(hasMore, data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineResponse20046 {\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/InlineResponse20047.java b/src/main/java/one/talon/model/InlineResponse20047.java new file mode 100644 index 00000000..c5a9a487 --- /dev/null +++ b/src/main/java/one/talon/model/InlineResponse20047.java @@ -0,0 +1,134 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.AchievementProgress; + +/** + * InlineResponse20047 + */ + +public class InlineResponse20047 { + public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; + @SerializedName(SERIALIZED_NAME_HAS_MORE) + private Boolean hasMore; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList(); + + + public InlineResponse20047 hasMore(Boolean hasMore) { + + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + **/ + @ApiModelProperty(example = "true", required = true, value = "") + + public Boolean getHasMore() { + return hasMore; + } + + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + + public InlineResponse20047 data(List data) { + + this.data = data; + return this; + } + + public InlineResponse20047 addDataItem(AchievementProgress dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(required = true, value = "") + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineResponse20047 inlineResponse20047 = (InlineResponse20047) o; + return Objects.equals(this.hasMore, inlineResponse20047.hasMore) && + Objects.equals(this.data, inlineResponse20047.data); + } + + @Override + public int hashCode() { + return Objects.hash(hasMore, data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineResponse20047 {\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/IntegrationCoupon.java b/src/main/java/one/talon/model/IntegrationCoupon.java index 87fa38c0..f49e07fa 100644 --- a/src/main/java/one/talon/model/IntegrationCoupon.java +++ b/src/main/java/one/talon/model/IntegrationCoupon.java @@ -117,7 +117,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_IS_RESERVATION_MANDATORY = "isReservationMandatory"; @SerializedName(SERIALIZED_NAME_IS_RESERVATION_MANDATORY) - private Boolean isReservationMandatory = true; + private Boolean isReservationMandatory = false; public static final String SERIALIZED_NAME_IMPLICITLY_RESERVED = "implicitlyReserved"; @SerializedName(SERIALIZED_NAME_IMPLICITLY_RESERVED) diff --git a/src/main/java/one/talon/model/InventoryCoupon.java b/src/main/java/one/talon/model/InventoryCoupon.java index 10110729..fc6ac892 100644 --- a/src/main/java/one/talon/model/InventoryCoupon.java +++ b/src/main/java/one/talon/model/InventoryCoupon.java @@ -117,7 +117,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_IS_RESERVATION_MANDATORY = "isReservationMandatory"; @SerializedName(SERIALIZED_NAME_IS_RESERVATION_MANDATORY) - private Boolean isReservationMandatory = true; + private Boolean isReservationMandatory = false; public static final String SERIALIZED_NAME_IMPLICITLY_RESERVED = "implicitlyReserved"; @SerializedName(SERIALIZED_NAME_IMPLICITLY_RESERVED) diff --git a/src/main/java/one/talon/model/LoginParams.java b/src/main/java/one/talon/model/LoginParams.java index 315bef40..3f785f6f 100644 --- a/src/main/java/one/talon/model/LoginParams.java +++ b/src/main/java/one/talon/model/LoginParams.java @@ -46,10 +46,10 @@ public LoginParams email(String email) { } /** - * The email address associated with your account. + * The email address associated with the user profile. * @return email **/ - @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with your account.") + @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with the user profile.") public String getEmail() { return email; diff --git a/src/main/java/one/talon/model/LoyaltyLedgerTransactions.java b/src/main/java/one/talon/model/LoyaltyLedgerTransactions.java index 88e11798..3bd29df2 100644 --- a/src/main/java/one/talon/model/LoyaltyLedgerTransactions.java +++ b/src/main/java/one/talon/model/LoyaltyLedgerTransactions.java @@ -49,11 +49,11 @@ public LoyaltyLedgerTransactions hasMore(Boolean hasMore) { } /** - * true means there is more data in the source collection to request. + * If `true`, it means that there is more data to request in the source collection. * @return hasMore **/ @javax.annotation.Nullable - @ApiModelProperty(example = "true", value = "true means there is more data in the source collection to request.") + @ApiModelProperty(example = "true", value = "If `true`, it means that there is more data to request in the source collection.") public Boolean getHasMore() { return hasMore; diff --git a/src/main/java/one/talon/model/LoyaltyProgram.java b/src/main/java/one/talon/model/LoyaltyProgram.java index 2e62fd0a..270c0aef 100644 --- a/src/main/java/one/talon/model/LoyaltyProgram.java +++ b/src/main/java/one/talon/model/LoyaltyProgram.java @@ -74,6 +74,57 @@ public class LoyaltyProgram { @SerializedName(SERIALIZED_NAME_SANDBOX) private Boolean sandbox; + /** + * 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. + */ + @JsonAdapter(TiersExpirationPolicyEnum.Adapter.class) + public enum TiersExpirationPolicyEnum { + TIER_START_DATE("tier_start_date"), + + PROGRAM_JOIN_DATE("program_join_date"); + + private String value; + + TiersExpirationPolicyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TiersExpirationPolicyEnum fromValue(String value) { + for (TiersExpirationPolicyEnum b : TiersExpirationPolicyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TiersExpirationPolicyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TiersExpirationPolicyEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TIERS_EXPIRATION_POLICY = "tiersExpirationPolicy"; + @SerializedName(SERIALIZED_NAME_TIERS_EXPIRATION_POLICY) + private TiersExpirationPolicyEnum tiersExpirationPolicy; + public static final String SERIALIZED_NAME_TIERS_EXPIRE_IN = "tiersExpireIn"; @SerializedName(SERIALIZED_NAME_TIERS_EXPIRE_IN) private String tiersExpireIn; @@ -129,6 +180,59 @@ public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_TIERS_DOWNGRADE_POLICY) private TiersDowngradePolicyEnum tiersDowngradePolicy; + /** + * 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. + */ + @JsonAdapter(ProgramJoinPolicyEnum.Adapter.class) + public enum ProgramJoinPolicyEnum { + NOT_JOIN("not_join"), + + POINTS_ACTIVATED("points_activated"), + + POINTS_EARNED("points_earned"); + + private String value; + + ProgramJoinPolicyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ProgramJoinPolicyEnum fromValue(String value) { + for (ProgramJoinPolicyEnum b : ProgramJoinPolicyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ProgramJoinPolicyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ProgramJoinPolicyEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PROGRAM_JOIN_POLICY = "programJoinPolicy"; + @SerializedName(SERIALIZED_NAME_PROGRAM_JOIN_POLICY) + private ProgramJoinPolicyEnum programJoinPolicy; + public static final String SERIALIZED_NAME_ACCOUNT_I_D = "accountID"; @SerializedName(SERIALIZED_NAME_ACCOUNT_I_D) private Integer accountID; @@ -153,6 +257,10 @@ public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_CAN_UPDATE_TIERS) private Boolean canUpdateTiers = false; + public static final String SERIALIZED_NAME_CAN_UPDATE_JOIN_POLICY = "canUpdateJoinPolicy"; + @SerializedName(SERIALIZED_NAME_CAN_UPDATE_JOIN_POLICY) + private Boolean canUpdateJoinPolicy; + public static final String SERIALIZED_NAME_CAN_UPGRADE_TO_ADVANCED_TIERS = "canUpgradeToAdvancedTiers"; @SerializedName(SERIALIZED_NAME_CAN_UPGRADE_TO_ADVANCED_TIERS) private Boolean canUpgradeToAdvancedTiers = false; @@ -385,6 +493,29 @@ public void setSandbox(Boolean sandbox) { } + public LoyaltyProgram tiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { + + this.tiersExpirationPolicy = tiersExpirationPolicy; + return this; + } + + /** + * 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. + * @return tiersExpirationPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "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. ") + + public TiersExpirationPolicyEnum getTiersExpirationPolicy() { + return tiersExpirationPolicy; + } + + + public void setTiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { + this.tiersExpirationPolicy = tiersExpirationPolicy; + } + + public LoyaltyProgram tiersExpireIn(String tiersExpireIn) { this.tiersExpireIn = tiersExpireIn; @@ -392,11 +523,11 @@ public LoyaltyProgram tiersExpireIn(String tiersExpireIn) { } /** - * The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. + * 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. * @return tiersExpireIn **/ @javax.annotation.Nullable - @ApiModelProperty(example = "27W_U", value = "The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. ") + @ApiModelProperty(example = "27W_U", value = "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. ") public String getTiersExpireIn() { return tiersExpireIn; @@ -431,6 +562,29 @@ public void setTiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolic } + public LoyaltyProgram programJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { + + this.programJoinPolicy = programJoinPolicy; + return this; + } + + /** + * 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. + * @return programJoinPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "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. ") + + public ProgramJoinPolicyEnum getProgramJoinPolicy() { + return programJoinPolicy; + } + + + public void setProgramJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { + this.programJoinPolicy = programJoinPolicy; + } + + public LoyaltyProgram accountID(Integer accountID) { this.accountID = accountID; @@ -573,6 +727,29 @@ public void setCanUpdateTiers(Boolean canUpdateTiers) { } + public LoyaltyProgram canUpdateJoinPolicy(Boolean canUpdateJoinPolicy) { + + this.canUpdateJoinPolicy = canUpdateJoinPolicy; + return this; + } + + /** + * Indicates whether the program join policy can be updated. The join policy can be updated when this value is set to `true`. + * @return canUpdateJoinPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the program join policy can be updated. The join policy can be updated when this value is set to `true`. ") + + public Boolean getCanUpdateJoinPolicy() { + return canUpdateJoinPolicy; + } + + + public void setCanUpdateJoinPolicy(Boolean canUpdateJoinPolicy) { + this.canUpdateJoinPolicy = canUpdateJoinPolicy; + } + + public LoyaltyProgram canUpgradeToAdvancedTiers(Boolean canUpgradeToAdvancedTiers) { this.canUpgradeToAdvancedTiers = canUpgradeToAdvancedTiers; @@ -615,20 +792,23 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.allowSubledger, loyaltyProgram.allowSubledger) && Objects.equals(this.usersPerCardLimit, loyaltyProgram.usersPerCardLimit) && Objects.equals(this.sandbox, loyaltyProgram.sandbox) && + Objects.equals(this.tiersExpirationPolicy, loyaltyProgram.tiersExpirationPolicy) && Objects.equals(this.tiersExpireIn, loyaltyProgram.tiersExpireIn) && Objects.equals(this.tiersDowngradePolicy, loyaltyProgram.tiersDowngradePolicy) && + Objects.equals(this.programJoinPolicy, loyaltyProgram.programJoinPolicy) && Objects.equals(this.accountID, loyaltyProgram.accountID) && Objects.equals(this.name, loyaltyProgram.name) && Objects.equals(this.tiers, loyaltyProgram.tiers) && Objects.equals(this.timezone, loyaltyProgram.timezone) && Objects.equals(this.cardBased, loyaltyProgram.cardBased) && Objects.equals(this.canUpdateTiers, loyaltyProgram.canUpdateTiers) && + Objects.equals(this.canUpdateJoinPolicy, loyaltyProgram.canUpdateJoinPolicy) && Objects.equals(this.canUpgradeToAdvancedTiers, loyaltyProgram.canUpgradeToAdvancedTiers); } @Override public int hashCode() { - return Objects.hash(id, created, title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, tiersExpireIn, tiersDowngradePolicy, accountID, name, tiers, timezone, cardBased, canUpdateTiers, canUpgradeToAdvancedTiers); + return Objects.hash(id, created, title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, tiersExpirationPolicy, tiersExpireIn, tiersDowngradePolicy, programJoinPolicy, accountID, name, tiers, timezone, cardBased, canUpdateTiers, canUpdateJoinPolicy, canUpgradeToAdvancedTiers); } @@ -646,14 +826,17 @@ public String toString() { sb.append(" allowSubledger: ").append(toIndentedString(allowSubledger)).append("\n"); sb.append(" usersPerCardLimit: ").append(toIndentedString(usersPerCardLimit)).append("\n"); sb.append(" sandbox: ").append(toIndentedString(sandbox)).append("\n"); + sb.append(" tiersExpirationPolicy: ").append(toIndentedString(tiersExpirationPolicy)).append("\n"); sb.append(" tiersExpireIn: ").append(toIndentedString(tiersExpireIn)).append("\n"); sb.append(" tiersDowngradePolicy: ").append(toIndentedString(tiersDowngradePolicy)).append("\n"); + sb.append(" programJoinPolicy: ").append(toIndentedString(programJoinPolicy)).append("\n"); sb.append(" accountID: ").append(toIndentedString(accountID)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" tiers: ").append(toIndentedString(tiers)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); sb.append(" cardBased: ").append(toIndentedString(cardBased)).append("\n"); sb.append(" canUpdateTiers: ").append(toIndentedString(canUpdateTiers)).append("\n"); + sb.append(" canUpdateJoinPolicy: ").append(toIndentedString(canUpdateJoinPolicy)).append("\n"); sb.append(" canUpgradeToAdvancedTiers: ").append(toIndentedString(canUpgradeToAdvancedTiers)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/LoyaltyProgramLedgers.java b/src/main/java/one/talon/model/LoyaltyProgramLedgers.java index 1e22cc1d..484ebdf0 100644 --- a/src/main/java/one/talon/model/LoyaltyProgramLedgers.java +++ b/src/main/java/one/talon/model/LoyaltyProgramLedgers.java @@ -27,6 +27,7 @@ import java.util.List; import java.util.Map; import one.talon.model.LedgerInfo; +import org.threeten.bp.OffsetDateTime; /** * Customer-specific information about loyalty points. @@ -46,6 +47,10 @@ public class LoyaltyProgramLedgers { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public static final String SERIALIZED_NAME_JOIN_DATE = "joinDate"; + @SerializedName(SERIALIZED_NAME_JOIN_DATE) + private OffsetDateTime joinDate; + public static final String SERIALIZED_NAME_LEDGER = "ledger"; @SerializedName(SERIALIZED_NAME_LEDGER) private LedgerInfo ledger; @@ -121,6 +126,29 @@ public void setName(String name) { } + public LoyaltyProgramLedgers joinDate(OffsetDateTime joinDate) { + + this.joinDate = joinDate; + return this; + } + + /** + * The date on which the customer joined the loyalty program in RFC3339. **Note**: This is in the loyalty program's time zone. + * @return joinDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The date on which the customer joined the loyalty program in RFC3339. **Note**: This is in the loyalty program's time zone. ") + + public OffsetDateTime getJoinDate() { + return joinDate; + } + + + public void setJoinDate(OffsetDateTime joinDate) { + this.joinDate = joinDate; + } + + public LoyaltyProgramLedgers ledger(LedgerInfo ledger) { this.ledger = ledger; @@ -186,13 +214,14 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.id, loyaltyProgramLedgers.id) && Objects.equals(this.title, loyaltyProgramLedgers.title) && Objects.equals(this.name, loyaltyProgramLedgers.name) && + Objects.equals(this.joinDate, loyaltyProgramLedgers.joinDate) && Objects.equals(this.ledger, loyaltyProgramLedgers.ledger) && Objects.equals(this.subLedgers, loyaltyProgramLedgers.subLedgers); } @Override public int hashCode() { - return Objects.hash(id, title, name, ledger, subLedgers); + return Objects.hash(id, title, name, joinDate, ledger, subLedgers); } @@ -203,6 +232,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" joinDate: ").append(toIndentedString(joinDate)).append("\n"); sb.append(" ledger: ").append(toIndentedString(ledger)).append("\n"); sb.append(" subLedgers: ").append(toIndentedString(subLedgers)).append("\n"); sb.append("}"); diff --git a/src/main/java/one/talon/model/LoyaltyProgramTransaction.java b/src/main/java/one/talon/model/LoyaltyProgramTransaction.java index c957d28c..538acf62 100644 --- a/src/main/java/one/talon/model/LoyaltyProgramTransaction.java +++ b/src/main/java/one/talon/model/LoyaltyProgramTransaction.java @@ -39,6 +39,10 @@ public class LoyaltyProgramTransaction { @SerializedName(SERIALIZED_NAME_PROGRAM_ID) private Integer programId; + public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) + private Integer campaignId; + public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; @@ -191,6 +195,29 @@ public void setProgramId(Integer programId) { } + public LoyaltyProgramTransaction campaignId(Integer campaignId) { + + this.campaignId = campaignId; + return this; + } + + /** + * ID of the campaign. + * @return campaignId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "324", value = "ID of the campaign.") + + public Integer getCampaignId() { + return campaignId; + } + + + public void setCampaignId(Integer campaignId) { + this.campaignId = campaignId; + } + + public LoyaltyProgramTransaction created(OffsetDateTime created) { this.created = created; @@ -540,6 +567,7 @@ public boolean equals(java.lang.Object o) { LoyaltyProgramTransaction loyaltyProgramTransaction = (LoyaltyProgramTransaction) o; return Objects.equals(this.id, loyaltyProgramTransaction.id) && Objects.equals(this.programId, loyaltyProgramTransaction.programId) && + Objects.equals(this.campaignId, loyaltyProgramTransaction.campaignId) && Objects.equals(this.created, loyaltyProgramTransaction.created) && Objects.equals(this.type, loyaltyProgramTransaction.type) && Objects.equals(this.amount, loyaltyProgramTransaction.amount) && @@ -559,7 +587,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, programId, created, type, amount, name, startDate, expiryDate, customerProfileId, cardIdentifier, subledgerId, customerSessionId, importId, userId, userEmail, rulesetId, ruleName); + return Objects.hash(id, programId, campaignId, created, type, amount, name, startDate, expiryDate, customerProfileId, cardIdentifier, subledgerId, customerSessionId, importId, userId, userEmail, rulesetId, ruleName); } @@ -569,6 +597,7 @@ public String toString() { sb.append("class LoyaltyProgramTransaction {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" programId: ").append(toIndentedString(programId)).append("\n"); + sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); diff --git a/src/main/java/one/talon/model/MessageLogEntries.java b/src/main/java/one/talon/model/MessageLogEntries.java new file mode 100644 index 00000000..54f9438c --- /dev/null +++ b/src/main/java/one/talon/model/MessageLogEntries.java @@ -0,0 +1,135 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.MessageLogEntry; + +/** + * MessageLogEntries + */ + +public class MessageLogEntries { + public static final String SERIALIZED_NAME_NEXT_CURSOR = "nextCursor"; + @SerializedName(SERIALIZED_NAME_NEXT_CURSOR) + private byte[] nextCursor; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList(); + + + public MessageLogEntries nextCursor(byte[] nextCursor) { + + this.nextCursor = nextCursor; + return this; + } + + /** + * The next value in the database. **Note:** If this value is not present, it means that there are no more values in the database for this combination of request parameters. + * @return nextCursor + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "SmJlNERRMHdyNWFsTmRDZDVYU0c=", value = "The next value in the database. **Note:** If this value is not present, it means that there are no more values in the database for this combination of request parameters. ") + + public byte[] getNextCursor() { + return nextCursor; + } + + + public void setNextCursor(byte[] nextCursor) { + this.nextCursor = nextCursor; + } + + + public MessageLogEntries data(List data) { + + this.data = data; + return this; + } + + public MessageLogEntries addDataItem(MessageLogEntry dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * List of message logs. + * @return data + **/ + @ApiModelProperty(required = true, value = "List of message logs.") + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessageLogEntries messageLogEntries = (MessageLogEntries) o; + return Arrays.equals(this.nextCursor, messageLogEntries.nextCursor) && + Objects.equals(this.data, messageLogEntries.data); + } + + @Override + public int hashCode() { + return Objects.hash(Arrays.hashCode(nextCursor), data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessageLogEntries {\n"); + sb.append(" nextCursor: ").append(toIndentedString(nextCursor)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/MessageLogEntry.java b/src/main/java/one/talon/model/MessageLogEntry.java new file mode 100644 index 00000000..ac5e8f0c --- /dev/null +++ b/src/main/java/one/talon/model/MessageLogEntry.java @@ -0,0 +1,470 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import one.talon.model.MessageLogRequest; +import one.talon.model.MessageLogResponse; +import org.threeten.bp.OffsetDateTime; + +/** + * Message Log. + */ +@ApiModel(description = "Message Log.") + +public class MessageLogEntry { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_SERVICE = "service"; + @SerializedName(SERIALIZED_NAME_SERVICE) + private String service; + + public static final String SERIALIZED_NAME_CHANGE_TYPE = "changeType"; + @SerializedName(SERIALIZED_NAME_CHANGE_TYPE) + private String changeType; + + public static final String SERIALIZED_NAME_NOTIFICATION_ID = "notificationId"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_ID) + private Integer notificationId; + + public static final String SERIALIZED_NAME_NOTIFICATION_NAME = "notificationName"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_NAME) + private String notificationName; + + public static final String SERIALIZED_NAME_REQUEST = "request"; + @SerializedName(SERIALIZED_NAME_REQUEST) + private MessageLogRequest request; + + public static final String SERIALIZED_NAME_RESPONSE = "response"; + @SerializedName(SERIALIZED_NAME_RESPONSE) + private MessageLogResponse response; + + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + /** + * The entity type the log is related to. + */ + @JsonAdapter(EntityTypeEnum.Adapter.class) + public enum EntityTypeEnum { + APPLICATION("application"), + + LOYALTY_PROGRAM("loyalty_program"), + + WEBHOOK("webhook"); + + private String value; + + EntityTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EntityTypeEnum fromValue(String value) { + for (EntityTypeEnum b : EntityTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EntityTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EntityTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EntityTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ENTITY_TYPE = "entityType"; + @SerializedName(SERIALIZED_NAME_ENTITY_TYPE) + private EntityTypeEnum entityType; + + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; + + public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; + @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + private Integer applicationId; + + public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_ID = "loyaltyProgramId"; + @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_ID) + private Integer loyaltyProgramId; + + + public MessageLogEntry id(String id) { + + this.id = id; + return this; + } + + /** + * Unique identifier of the message. + * @return id + **/ + @ApiModelProperty(example = "123e4567-e89b-12d3-a456-426614174000", required = true, value = "Unique identifier of the message.") + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public MessageLogEntry service(String service) { + + this.service = service; + return this; + } + + /** + * Name of the service that generated the log entry. + * @return service + **/ + @ApiModelProperty(example = "NotificationService", required = true, value = "Name of the service that generated the log entry.") + + public String getService() { + return service; + } + + + public void setService(String service) { + this.service = service; + } + + + public MessageLogEntry changeType(String changeType) { + + this.changeType = changeType; + return this; + } + + /** + * Type of change that triggered the notification. + * @return changeType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Update", value = "Type of change that triggered the notification.") + + public String getChangeType() { + return changeType; + } + + + public void setChangeType(String changeType) { + this.changeType = changeType; + } + + + public MessageLogEntry notificationId(Integer notificationId) { + + this.notificationId = notificationId; + return this; + } + + /** + * ID of the notification. + * @return notificationId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "101", value = "ID of the notification.") + + public Integer getNotificationId() { + return notificationId; + } + + + public void setNotificationId(Integer notificationId) { + this.notificationId = notificationId; + } + + + public MessageLogEntry notificationName(String notificationName) { + + this.notificationName = notificationName; + return this; + } + + /** + * The name of the notification. + * @return notificationName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "My campaign notification", value = "The name of the notification.") + + public String getNotificationName() { + return notificationName; + } + + + public void setNotificationName(String notificationName) { + this.notificationName = notificationName; + } + + + public MessageLogEntry request(MessageLogRequest request) { + + this.request = request; + return this; + } + + /** + * Get request + * @return request + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public MessageLogRequest getRequest() { + return request; + } + + + public void setRequest(MessageLogRequest request) { + this.request = request; + } + + + public MessageLogEntry response(MessageLogResponse response) { + + this.response = response; + return this; + } + + /** + * Get response + * @return response + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public MessageLogResponse getResponse() { + return response; + } + + + public void setResponse(MessageLogResponse response) { + this.response = response; + } + + + public MessageLogEntry createdAt(OffsetDateTime createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Timestamp when the log entry was created. + * @return createdAt + **/ + @ApiModelProperty(example = "2021-07-20T22:00Z", required = true, value = "Timestamp when the log entry was created.") + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public MessageLogEntry entityType(EntityTypeEnum entityType) { + + this.entityType = entityType; + return this; + } + + /** + * The entity type the log is related to. + * @return entityType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "loyalty_program", value = "The entity type the log is related to. ") + + public EntityTypeEnum getEntityType() { + return entityType; + } + + + public void setEntityType(EntityTypeEnum entityType) { + this.entityType = entityType; + } + + + public MessageLogEntry url(String url) { + + this.url = url; + return this; + } + + /** + * The target URL of the request. + * @return url + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "www.my-company.com/my-endpoint-name", value = "The target URL of the request.") + + public String getUrl() { + return url; + } + + + public void setUrl(String url) { + this.url = url; + } + + + public MessageLogEntry applicationId(Integer applicationId) { + + this.applicationId = applicationId; + return this; + } + + /** + * Identifier of the Application. + * minimum: 1 + * @return applicationId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "5", value = "Identifier of the Application.") + + public Integer getApplicationId() { + return applicationId; + } + + + public void setApplicationId(Integer applicationId) { + this.applicationId = applicationId; + } + + + public MessageLogEntry loyaltyProgramId(Integer loyaltyProgramId) { + + this.loyaltyProgramId = loyaltyProgramId; + return this; + } + + /** + * Identifier of the loyalty program. + * minimum: 1 + * @return loyaltyProgramId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2", value = "Identifier of the loyalty program.") + + public Integer getLoyaltyProgramId() { + return loyaltyProgramId; + } + + + public void setLoyaltyProgramId(Integer loyaltyProgramId) { + this.loyaltyProgramId = loyaltyProgramId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessageLogEntry messageLogEntry = (MessageLogEntry) o; + return Objects.equals(this.id, messageLogEntry.id) && + Objects.equals(this.service, messageLogEntry.service) && + Objects.equals(this.changeType, messageLogEntry.changeType) && + Objects.equals(this.notificationId, messageLogEntry.notificationId) && + Objects.equals(this.notificationName, messageLogEntry.notificationName) && + Objects.equals(this.request, messageLogEntry.request) && + Objects.equals(this.response, messageLogEntry.response) && + Objects.equals(this.createdAt, messageLogEntry.createdAt) && + Objects.equals(this.entityType, messageLogEntry.entityType) && + Objects.equals(this.url, messageLogEntry.url) && + Objects.equals(this.applicationId, messageLogEntry.applicationId) && + Objects.equals(this.loyaltyProgramId, messageLogEntry.loyaltyProgramId); + } + + @Override + public int hashCode() { + return Objects.hash(id, service, changeType, notificationId, notificationName, request, response, createdAt, entityType, url, applicationId, loyaltyProgramId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessageLogEntry {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" changeType: ").append(toIndentedString(changeType)).append("\n"); + sb.append(" notificationId: ").append(toIndentedString(notificationId)).append("\n"); + sb.append(" notificationName: ").append(toIndentedString(notificationName)).append("\n"); + sb.append(" request: ").append(toIndentedString(request)).append("\n"); + sb.append(" response: ").append(toIndentedString(response)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); + sb.append(" loyaltyProgramId: ").append(toIndentedString(loyaltyProgramId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/MessageLogRequest.java b/src/main/java/one/talon/model/MessageLogRequest.java new file mode 100644 index 00000000..d358ccd5 --- /dev/null +++ b/src/main/java/one/talon/model/MessageLogRequest.java @@ -0,0 +1,128 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Details of the request. + */ +@ApiModel(description = "Details of the request.") + +public class MessageLogRequest { + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_REQUEST = "request"; + @SerializedName(SERIALIZED_NAME_REQUEST) + private byte[] request; + + + public MessageLogRequest createdAt(OffsetDateTime createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Timestamp when the request was made. + * @return createdAt + **/ + @ApiModelProperty(example = "2021-07-20T21:59Z", required = true, value = "Timestamp when the request was made.") + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public MessageLogRequest request(byte[] request) { + + this.request = request; + return this; + } + + /** + * Raw request data. + * @return request + **/ + @ApiModelProperty(example = "SGVsbG8sIHdvcmxkIQ==", required = true, value = "Raw request data.") + + public byte[] getRequest() { + return request; + } + + + public void setRequest(byte[] request) { + this.request = request; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessageLogRequest messageLogRequest = (MessageLogRequest) o; + return Objects.equals(this.createdAt, messageLogRequest.createdAt) && + Arrays.equals(this.request, messageLogRequest.request); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, Arrays.hashCode(request)); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessageLogRequest {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" request: ").append(toIndentedString(request)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/MessageLogResponse.java b/src/main/java/one/talon/model/MessageLogResponse.java new file mode 100644 index 00000000..e3fa0e1d --- /dev/null +++ b/src/main/java/one/talon/model/MessageLogResponse.java @@ -0,0 +1,156 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * Details of the response. + */ +@ApiModel(description = "Details of the response.") + +public class MessageLogResponse { + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_RESPONSE = "response"; + @SerializedName(SERIALIZED_NAME_RESPONSE) + private byte[] response; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private Integer status; + + + public MessageLogResponse createdAt(OffsetDateTime createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Timestamp when the response was received. + * @return createdAt + **/ + @ApiModelProperty(example = "2021-07-20T22:00:50Z", required = true, value = "Timestamp when the response was received.") + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public MessageLogResponse response(byte[] response) { + + this.response = response; + return this; + } + + /** + * Raw response data. + * @return response + **/ + @ApiModelProperty(example = "UmVzcG9uc2UgY29udGVudA==", required = true, value = "Raw response data.") + + public byte[] getResponse() { + return response; + } + + + public void setResponse(byte[] response) { + this.response = response; + } + + + public MessageLogResponse status(Integer status) { + + this.status = status; + return this; + } + + /** + * HTTP status code of the response. + * @return status + **/ + @ApiModelProperty(example = "200", required = true, value = "HTTP status code of the response.") + + public Integer getStatus() { + return status; + } + + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessageLogResponse messageLogResponse = (MessageLogResponse) o; + return Objects.equals(this.createdAt, messageLogResponse.createdAt) && + Arrays.equals(this.response, messageLogResponse.response) && + Objects.equals(this.status, messageLogResponse.status); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, Arrays.hashCode(response), status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessageLogResponse {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" response: ").append(toIndentedString(response)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/NewAccountSignUp.java b/src/main/java/one/talon/model/NewAccountSignUp.java index 673e7093..e0b92400 100644 --- a/src/main/java/one/talon/model/NewAccountSignUp.java +++ b/src/main/java/one/talon/model/NewAccountSignUp.java @@ -50,10 +50,10 @@ public NewAccountSignUp email(String email) { } /** - * The email address associated with your account. + * The email address associated with the user profile. * @return email **/ - @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with your account.") + @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with the user profile.") public String getEmail() { return email; diff --git a/src/main/java/one/talon/model/NewApplicationAPIKey.java b/src/main/java/one/talon/model/NewApplicationAPIKey.java index 73c907f4..4c543eba 100644 --- a/src/main/java/one/talon/model/NewApplicationAPIKey.java +++ b/src/main/java/one/talon/model/NewApplicationAPIKey.java @@ -106,6 +106,59 @@ public PlatformEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PLATFORM) private PlatformEnum platform; + /** + * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + STAGING("staging"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; + @SerializedName(SERIALIZED_NAME_TIME_OFFSET) + private Integer timeOffset; + public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private Integer id; @@ -138,10 +191,10 @@ public NewApplicationAPIKey title(String title) { } /** - * Title for API Key. + * Title of the API key. * @return title **/ - @ApiModelProperty(example = "My generated key", required = true, value = "Title for API Key.") + @ApiModelProperty(example = "My generated key", required = true, value = "Title of the API key.") public String getTitle() { return title; @@ -160,10 +213,10 @@ public NewApplicationAPIKey expires(OffsetDateTime expires) { } /** - * The date the API key expired. + * The date the API key expires. * @return expires **/ - @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the API key expired.") + @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the API key expires.") public OffsetDateTime getExpires() { return expires; @@ -198,6 +251,52 @@ public void setPlatform(PlatformEnum platform) { } + public NewApplicationAPIKey type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "staging", value = "The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. ") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public NewApplicationAPIKey timeOffset(Integer timeOffset) { + + this.timeOffset = timeOffset; + return this; + } + + /** + * A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + * @return timeOffset + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "100000", value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") + + public Integer getTimeOffset() { + return timeOffset; + } + + + public void setTimeOffset(Integer timeOffset) { + this.timeOffset = timeOffset; + } + + public NewApplicationAPIKey id(Integer id) { this.id = id; @@ -342,6 +441,8 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.title, newApplicationAPIKey.title) && Objects.equals(this.expires, newApplicationAPIKey.expires) && Objects.equals(this.platform, newApplicationAPIKey.platform) && + Objects.equals(this.type, newApplicationAPIKey.type) && + Objects.equals(this.timeOffset, newApplicationAPIKey.timeOffset) && Objects.equals(this.id, newApplicationAPIKey.id) && Objects.equals(this.createdBy, newApplicationAPIKey.createdBy) && Objects.equals(this.accountID, newApplicationAPIKey.accountID) && @@ -352,7 +453,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(title, expires, platform, id, createdBy, accountID, applicationID, created, key); + return Objects.hash(title, expires, platform, type, timeOffset, id, createdBy, accountID, applicationID, created, key); } @@ -363,6 +464,8 @@ public String toString() { sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" expires: ").append(toIndentedString(expires)).append("\n"); sb.append(" platform: ").append(toIndentedString(platform)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" timeOffset: ").append(toIndentedString(timeOffset)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" accountID: ").append(toIndentedString(accountID)).append("\n"); diff --git a/src/main/java/one/talon/model/NewAudience.java b/src/main/java/one/talon/model/NewAudience.java index fd9e184c..5aaa227a 100644 --- a/src/main/java/one/talon/model/NewAudience.java +++ b/src/main/java/one/talon/model/NewAudience.java @@ -116,7 +116,7 @@ public NewAudience description(String description) { * @return description **/ @javax.annotation.Nullable - @ApiModelProperty(example = "Travel audience 18-25", value = "A description of the audience.") + @ApiModelProperty(example = "Travel audience 18-27", value = "A description of the audience.") public String getDescription() { return description; diff --git a/src/main/java/one/talon/model/NewCampaign.java b/src/main/java/one/talon/model/NewCampaign.java index 56cb06e1..6be6c800 100644 --- a/src/main/java/one/talon/model/NewCampaign.java +++ b/src/main/java/one/talon/model/NewCampaign.java @@ -129,7 +129,9 @@ public enum FeaturesEnum { GIVEAWAYS("giveaways"), - STRIKETHROUGH("strikethrough"); + STRIKETHROUGH("strikethrough"), + + ACHIEVEMENTS("achievements"); private String value; @@ -189,10 +191,6 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) private List campaignGroups = null; - public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; - @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Integer evaluationGroupId; - /** * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. */ @@ -248,6 +246,10 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) private List linkedStoreIds = null; + public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; + @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) + private Integer evaluationGroupId; + public NewCampaign name(String name) { @@ -566,29 +568,6 @@ public void setCampaignGroups(List campaignGroups) { } - public NewCampaign evaluationGroupId(Integer evaluationGroupId) { - - this.evaluationGroupId = evaluationGroupId; - return this; - } - - /** - * The ID of the campaign evaluation group the campaign belongs to. - * @return evaluationGroupId - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - - public Integer getEvaluationGroupId() { - return evaluationGroupId; - } - - - public void setEvaluationGroupId(Integer evaluationGroupId) { - this.evaluationGroupId = evaluationGroupId; - } - - public NewCampaign type(TypeEnum type) { this.type = type; @@ -643,6 +622,29 @@ public void setLinkedStoreIds(List linkedStoreIds) { } + public NewCampaign evaluationGroupId(Integer evaluationGroupId) { + + this.evaluationGroupId = evaluationGroupId; + return this; + } + + /** + * The ID of the campaign evaluation group the campaign belongs to. + * @return evaluationGroupId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") + + public Integer getEvaluationGroupId() { + return evaluationGroupId; + } + + + public void setEvaluationGroupId(Integer evaluationGroupId) { + this.evaluationGroupId = evaluationGroupId; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -665,14 +667,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.referralSettings, newCampaign.referralSettings) && Objects.equals(this.limits, newCampaign.limits) && Objects.equals(this.campaignGroups, newCampaign.campaignGroups) && - Objects.equals(this.evaluationGroupId, newCampaign.evaluationGroupId) && Objects.equals(this.type, newCampaign.type) && - Objects.equals(this.linkedStoreIds, newCampaign.linkedStoreIds); + Objects.equals(this.linkedStoreIds, newCampaign.linkedStoreIds) && + Objects.equals(this.evaluationGroupId, newCampaign.evaluationGroupId); } @Override public int hashCode() { - return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, evaluationGroupId, type, linkedStoreIds); + return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, type, linkedStoreIds, evaluationGroupId); } @@ -693,9 +695,9 @@ public String toString() { sb.append(" referralSettings: ").append(toIndentedString(referralSettings)).append("\n"); sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); sb.append(" campaignGroups: ").append(toIndentedString(campaignGroups)).append("\n"); - sb.append(" evaluationGroupId: ").append(toIndentedString(evaluationGroupId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" linkedStoreIds: ").append(toIndentedString(linkedStoreIds)).append("\n"); + sb.append(" evaluationGroupId: ").append(toIndentedString(evaluationGroupId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/NewCampaignGroup.java b/src/main/java/one/talon/model/NewCampaignGroup.java index fe5caa21..b9a90979 100644 --- a/src/main/java/one/talon/model/NewCampaignGroup.java +++ b/src/main/java/one/talon/model/NewCampaignGroup.java @@ -55,10 +55,10 @@ public NewCampaignGroup name(String name) { } /** - * The name of this campaign access group. + * The name of the campaign access group. * @return name **/ - @ApiModelProperty(required = true, value = "The name of this campaign access group.") + @ApiModelProperty(example = "Europe access group", required = true, value = "The name of the campaign access group.") public String getName() { return name; @@ -81,7 +81,7 @@ public NewCampaignGroup description(String description) { * @return description **/ @javax.annotation.Nullable - @ApiModelProperty(example = "My campaign access group.", value = "A longer description of the campaign access group.") + @ApiModelProperty(example = "A group that gives access to all the campaigns for the Europe market.", value = "A longer description of the campaign access group.") public String getDescription() { return description; diff --git a/src/main/java/one/talon/model/NewCampaignTemplate.java b/src/main/java/one/talon/model/NewCampaignTemplate.java index 956f51d9..2276a918 100644 --- a/src/main/java/one/talon/model/NewCampaignTemplate.java +++ b/src/main/java/one/talon/model/NewCampaignTemplate.java @@ -125,7 +125,9 @@ public enum FeaturesEnum { GIVEAWAYS("giveaways"), - STRIKETHROUGH("strikethrough"); + STRIKETHROUGH("strikethrough"), + + ACHIEVEMENTS("achievements"); private String value; diff --git a/src/main/java/one/talon/model/NewCoupons.java b/src/main/java/one/talon/model/NewCoupons.java index 31ae7c94..dac7d74d 100644 --- a/src/main/java/one/talon/model/NewCoupons.java +++ b/src/main/java/one/talon/model/NewCoupons.java @@ -85,7 +85,7 @@ public class NewCoupons { public static final String SERIALIZED_NAME_IS_RESERVATION_MANDATORY = "isReservationMandatory"; @SerializedName(SERIALIZED_NAME_IS_RESERVATION_MANDATORY) - private Boolean isReservationMandatory = true; + private Boolean isReservationMandatory = false; public static final String SERIALIZED_NAME_IMPLICITLY_RESERVED = "implicitlyReserved"; @SerializedName(SERIALIZED_NAME_IMPLICITLY_RESERVED) diff --git a/src/main/java/one/talon/model/NewCustomerSessionV2.java b/src/main/java/one/talon/model/NewCustomerSessionV2.java index c170fed6..2d17df10 100644 --- a/src/main/java/one/talon/model/NewCustomerSessionV2.java +++ b/src/main/java/one/talon/model/NewCustomerSessionV2.java @@ -283,11 +283,11 @@ public NewCustomerSessionV2 addLoyaltyCardsItem(String loyaltyCardsItem) { } /** - * Any loyalty cards used. + * Identifier of a loyalty card. * @return loyaltyCards **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[loyalty-card-1]", value = "Any loyalty cards used.") + @ApiModelProperty(example = "[loyalty-card-1]", value = "Identifier of a loyalty card.") public List getLoyaltyCards() { return loyaltyCards; diff --git a/src/main/java/one/talon/model/NewInternalAudience.java b/src/main/java/one/talon/model/NewInternalAudience.java index dca2cad7..f438ea2f 100644 --- a/src/main/java/one/talon/model/NewInternalAudience.java +++ b/src/main/java/one/talon/model/NewInternalAudience.java @@ -98,7 +98,7 @@ public NewInternalAudience description(String description) { * @return description **/ @javax.annotation.Nullable - @ApiModelProperty(example = "Travel audience 18-25", value = "A description of the audience.") + @ApiModelProperty(example = "Travel audience 18-27", value = "A description of the audience.") public String getDescription() { return description; diff --git a/src/main/java/one/talon/model/NewInvitation.java b/src/main/java/one/talon/model/NewInvitation.java index 30143094..51bfe0ef 100644 --- a/src/main/java/one/talon/model/NewInvitation.java +++ b/src/main/java/one/talon/model/NewInvitation.java @@ -40,10 +40,6 @@ public class NewInvitation { @SerializedName(SERIALIZED_NAME_EMAIL) private String email; - public static final String SERIALIZED_NAME_ACL = "acl"; - @SerializedName(SERIALIZED_NAME_ACL) - private String acl; - public static final String SERIALIZED_NAME_IS_ADMIN = "isAdmin"; @SerializedName(SERIALIZED_NAME_IS_ADMIN) private Boolean isAdmin; @@ -52,6 +48,10 @@ public class NewInvitation { @SerializedName(SERIALIZED_NAME_ROLES) private List roles = null; + public static final String SERIALIZED_NAME_ACL = "acl"; + @SerializedName(SERIALIZED_NAME_ACL) + private String acl; + public NewInvitation name(String name) { @@ -60,11 +60,11 @@ public NewInvitation name(String name) { } /** - * Name of the user being invited. + * Name of the user. * @return name **/ @javax.annotation.Nullable - @ApiModelProperty(example = "John Doe", value = "Name of the user being invited.") + @ApiModelProperty(example = "John Doe", value = "Name of the user.") public String getName() { return name; @@ -83,10 +83,10 @@ public NewInvitation email(String email) { } /** - * Get email + * Email address of the user. * @return email **/ - @ApiModelProperty(example = "john.doe@example.com", required = true, value = "") + @ApiModelProperty(example = "john.doe@example.com", required = true, value = "Email address of the user.") public String getEmail() { return email; @@ -98,29 +98,6 @@ public void setEmail(String email) { } - public NewInvitation acl(String acl) { - - this.acl = acl; - return this; - } - - /** - * The `Access Control List` json defining the role of the user. This represents the access control on the user level. Use one of the following: - normal user: `{\"Role\": 0}` - admin: `{\"Role\": 127}` - * @return acl - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{\"Role\":0}", value = "The `Access Control List` json defining the role of the user. This represents the access control on the user level. Use one of the following: - normal user: `{\"Role\": 0}` - admin: `{\"Role\": 127}` ") - - public String getAcl() { - return acl; - } - - - public void setAcl(String acl) { - this.acl = acl; - } - - public NewInvitation isAdmin(Boolean isAdmin) { this.isAdmin = isAdmin; @@ -128,11 +105,11 @@ public NewInvitation isAdmin(Boolean isAdmin) { } /** - * An indication of whether the user has admin permissions. We recommend using this flag over using the `acl` with value `{\"Role\": 127}`. + * Indicates whether the user is an `admin`. * @return isAdmin **/ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "An indication of whether the user has admin permissions. We recommend using this flag over using the `acl` with value `{\"Role\": 127}`. ") + @ApiModelProperty(example = "false", value = "Indicates whether the user is an `admin`.") public Boolean getIsAdmin() { return isAdmin; @@ -159,11 +136,11 @@ public NewInvitation addRolesItem(Integer rolesItem) { } /** - * An array of role IDs to assign to the new user. + * A list of the IDs of the roles assigned to the user. * @return roles **/ @javax.annotation.Nullable - @ApiModelProperty(value = "An array of role IDs to assign to the new user.") + @ApiModelProperty(value = "A list of the IDs of the roles assigned to the user.") public List getRoles() { return roles; @@ -175,6 +152,29 @@ public void setRoles(List roles) { } + public NewInvitation acl(String acl) { + + this.acl = acl; + return this; + } + + /** + * Indicates the access level of the user. + * @return acl + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Indicates the access level of the user.") + + public String getAcl() { + return acl; + } + + + public void setAcl(String acl) { + this.acl = acl; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -186,14 +186,14 @@ public boolean equals(java.lang.Object o) { NewInvitation newInvitation = (NewInvitation) o; return Objects.equals(this.name, newInvitation.name) && Objects.equals(this.email, newInvitation.email) && - Objects.equals(this.acl, newInvitation.acl) && Objects.equals(this.isAdmin, newInvitation.isAdmin) && - Objects.equals(this.roles, newInvitation.roles); + Objects.equals(this.roles, newInvitation.roles) && + Objects.equals(this.acl, newInvitation.acl); } @Override public int hashCode() { - return Objects.hash(name, email, acl, isAdmin, roles); + return Objects.hash(name, email, isAdmin, roles, acl); } @@ -203,9 +203,9 @@ public String toString() { sb.append("class NewInvitation {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); - sb.append(" acl: ").append(toIndentedString(acl)).append("\n"); sb.append(" isAdmin: ").append(toIndentedString(isAdmin)).append("\n"); sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); + sb.append(" acl: ").append(toIndentedString(acl)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/NewInviteEmail.java b/src/main/java/one/talon/model/NewInviteEmail.java index 70c1cd4c..c9301112 100644 --- a/src/main/java/one/talon/model/NewInviteEmail.java +++ b/src/main/java/one/talon/model/NewInviteEmail.java @@ -45,10 +45,10 @@ public NewInviteEmail email(String email) { } /** - * Get email + * Email address of the user. * @return email **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(example = "john.doe@example.com", required = true, value = "Email address of the user.") public String getEmail() { return email; @@ -67,10 +67,10 @@ public NewInviteEmail token(String token) { } /** - * Get token + * Invitation token of the user. * @return token **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(example = "Gy9b8w1irmQtEPo5RmbMmSPheL5h4", required = true, value = "Invitation token of the user.") public String getToken() { return token; diff --git a/src/main/java/one/talon/model/NewLoyaltyProgram.java b/src/main/java/one/talon/model/NewLoyaltyProgram.java index 9a4be5f5..2fbf4fe2 100644 --- a/src/main/java/one/talon/model/NewLoyaltyProgram.java +++ b/src/main/java/one/talon/model/NewLoyaltyProgram.java @@ -65,6 +65,57 @@ public class NewLoyaltyProgram { @SerializedName(SERIALIZED_NAME_SANDBOX) private Boolean sandbox; + /** + * 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. + */ + @JsonAdapter(TiersExpirationPolicyEnum.Adapter.class) + public enum TiersExpirationPolicyEnum { + TIER_START_DATE("tier_start_date"), + + PROGRAM_JOIN_DATE("program_join_date"); + + private String value; + + TiersExpirationPolicyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TiersExpirationPolicyEnum fromValue(String value) { + for (TiersExpirationPolicyEnum b : TiersExpirationPolicyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TiersExpirationPolicyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TiersExpirationPolicyEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TIERS_EXPIRATION_POLICY = "tiersExpirationPolicy"; + @SerializedName(SERIALIZED_NAME_TIERS_EXPIRATION_POLICY) + private TiersExpirationPolicyEnum tiersExpirationPolicy; + public static final String SERIALIZED_NAME_TIERS_EXPIRE_IN = "tiersExpireIn"; @SerializedName(SERIALIZED_NAME_TIERS_EXPIRE_IN) private String tiersExpireIn; @@ -120,6 +171,59 @@ public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_TIERS_DOWNGRADE_POLICY) private TiersDowngradePolicyEnum tiersDowngradePolicy; + /** + * 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. + */ + @JsonAdapter(ProgramJoinPolicyEnum.Adapter.class) + public enum ProgramJoinPolicyEnum { + NOT_JOIN("not_join"), + + POINTS_ACTIVATED("points_activated"), + + POINTS_EARNED("points_earned"); + + private String value; + + ProgramJoinPolicyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ProgramJoinPolicyEnum fromValue(String value) { + for (ProgramJoinPolicyEnum b : ProgramJoinPolicyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ProgramJoinPolicyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ProgramJoinPolicyEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PROGRAM_JOIN_POLICY = "programJoinPolicy"; + @SerializedName(SERIALIZED_NAME_PROGRAM_JOIN_POLICY) + private ProgramJoinPolicyEnum programJoinPolicy; + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; @@ -325,6 +429,29 @@ public void setSandbox(Boolean sandbox) { } + public NewLoyaltyProgram tiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { + + this.tiersExpirationPolicy = tiersExpirationPolicy; + return this; + } + + /** + * 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. + * @return tiersExpirationPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "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. ") + + public TiersExpirationPolicyEnum getTiersExpirationPolicy() { + return tiersExpirationPolicy; + } + + + public void setTiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { + this.tiersExpirationPolicy = tiersExpirationPolicy; + } + + public NewLoyaltyProgram tiersExpireIn(String tiersExpireIn) { this.tiersExpireIn = tiersExpireIn; @@ -332,11 +459,11 @@ public NewLoyaltyProgram tiersExpireIn(String tiersExpireIn) { } /** - * The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. + * 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. * @return tiersExpireIn **/ @javax.annotation.Nullable - @ApiModelProperty(example = "27W_U", value = "The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. ") + @ApiModelProperty(example = "27W_U", value = "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. ") public String getTiersExpireIn() { return tiersExpireIn; @@ -371,6 +498,29 @@ public void setTiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolic } + public NewLoyaltyProgram programJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { + + this.programJoinPolicy = programJoinPolicy; + return this; + } + + /** + * 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. + * @return programJoinPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "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. ") + + public ProgramJoinPolicyEnum getProgramJoinPolicy() { + return programJoinPolicy; + } + + + public void setProgramJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { + this.programJoinPolicy = programJoinPolicy; + } + + public NewLoyaltyProgram name(String name) { this.name = name; @@ -485,8 +635,10 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.allowSubledger, newLoyaltyProgram.allowSubledger) && Objects.equals(this.usersPerCardLimit, newLoyaltyProgram.usersPerCardLimit) && Objects.equals(this.sandbox, newLoyaltyProgram.sandbox) && + Objects.equals(this.tiersExpirationPolicy, newLoyaltyProgram.tiersExpirationPolicy) && Objects.equals(this.tiersExpireIn, newLoyaltyProgram.tiersExpireIn) && Objects.equals(this.tiersDowngradePolicy, newLoyaltyProgram.tiersDowngradePolicy) && + Objects.equals(this.programJoinPolicy, newLoyaltyProgram.programJoinPolicy) && Objects.equals(this.name, newLoyaltyProgram.name) && Objects.equals(this.tiers, newLoyaltyProgram.tiers) && Objects.equals(this.timezone, newLoyaltyProgram.timezone) && @@ -495,7 +647,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, tiersExpireIn, tiersDowngradePolicy, name, tiers, timezone, cardBased); + return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, tiersExpirationPolicy, tiersExpireIn, tiersDowngradePolicy, programJoinPolicy, name, tiers, timezone, cardBased); } @@ -511,8 +663,10 @@ public String toString() { sb.append(" allowSubledger: ").append(toIndentedString(allowSubledger)).append("\n"); sb.append(" usersPerCardLimit: ").append(toIndentedString(usersPerCardLimit)).append("\n"); sb.append(" sandbox: ").append(toIndentedString(sandbox)).append("\n"); + sb.append(" tiersExpirationPolicy: ").append(toIndentedString(tiersExpirationPolicy)).append("\n"); sb.append(" tiersExpireIn: ").append(toIndentedString(tiersExpireIn)).append("\n"); sb.append(" tiersDowngradePolicy: ").append(toIndentedString(tiersDowngradePolicy)).append("\n"); + sb.append(" programJoinPolicy: ").append(toIndentedString(programJoinPolicy)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" tiers: ").append(toIndentedString(tiers)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); diff --git a/src/main/java/one/talon/model/NewNotificationTest.java b/src/main/java/one/talon/model/NewNotificationTest.java index 9ee48fb4..7407d820 100644 --- a/src/main/java/one/talon/model/NewNotificationTest.java +++ b/src/main/java/one/talon/model/NewNotificationTest.java @@ -23,8 +23,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; /** * NewNotificationTest @@ -42,6 +43,8 @@ public enum TypeEnum { COUPON("coupon"), + EXPIRING_COUPONS("expiring_coupons"), + EXPIRING_POINTS("expiring_points"), PENDING_TO_ACTIVE_POINTS("pending_to_active_points"), @@ -52,7 +55,9 @@ public enum TypeEnum { TIER_UPGRADE("tier_upgrade"), - TIER_WILL_DOWNGRADE("tier_will_downgrade"); + TIER_WILL_DOWNGRADE("tier_will_downgrade"), + + CARD_EXPIRING_POINTS("card_expiring_points"); private String value; @@ -98,11 +103,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_QUERY_PARAMS = "queryParams"; @SerializedName(SERIALIZED_NAME_QUERY_PARAMS) - private List queryParams = null; + private Map queryParams = null; public static final String SERIALIZED_NAME_HEADERS = "headers"; @SerializedName(SERIALIZED_NAME_HEADERS) - private List headers = null; + private Map headers = null; /** * API method for this notification. @@ -192,17 +197,17 @@ public void setType(TypeEnum type) { } - public NewNotificationTest queryParams(List queryParams) { + public NewNotificationTest queryParams(Map queryParams) { this.queryParams = queryParams; return this; } - public NewNotificationTest addQueryParamsItem(String queryParamsItem) { + public NewNotificationTest putQueryParamsItem(String key, String queryParamsItem) { if (this.queryParams == null) { - this.queryParams = new ArrayList(); + this.queryParams = new HashMap(); } - this.queryParams.add(queryParamsItem); + this.queryParams.put(key, queryParamsItem); return this; } @@ -211,29 +216,29 @@ public NewNotificationTest addQueryParamsItem(String queryParamsItem) { * @return queryParams **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[param1: value1]", value = "Array of query parameters.") + @ApiModelProperty(example = "{\"param1\":\"value1\",\"param2\":\"value2\"}", value = "Array of query parameters.") - public List getQueryParams() { + public Map getQueryParams() { return queryParams; } - public void setQueryParams(List queryParams) { + public void setQueryParams(Map queryParams) { this.queryParams = queryParams; } - public NewNotificationTest headers(List headers) { + public NewNotificationTest headers(Map headers) { this.headers = headers; return this; } - public NewNotificationTest addHeadersItem(String headersItem) { + public NewNotificationTest putHeadersItem(String key, String headersItem) { if (this.headers == null) { - this.headers = new ArrayList(); + this.headers = new HashMap(); } - this.headers.add(headersItem); + this.headers.put(key, headersItem); return this; } @@ -242,14 +247,14 @@ public NewNotificationTest addHeadersItem(String headersItem) { * @return headers **/ @javax.annotation.Nullable - @ApiModelProperty(example = "content-type: application/json", value = "List of API HTTP headers for the given webhook-based notification.") + @ApiModelProperty(example = "{\"content-type\":\"application/json\"}", value = "List of API HTTP headers for the given webhook-based notification.") - public List getHeaders() { + public Map getHeaders() { return headers; } - public void setHeaders(List headers) { + public void setHeaders(Map headers) { this.headers = headers; } diff --git a/src/main/java/one/talon/model/NewNotificationWebhook.java b/src/main/java/one/talon/model/NewNotificationWebhook.java index 780b710d..5a8de3f2 100644 --- a/src/main/java/one/talon/model/NewNotificationWebhook.java +++ b/src/main/java/one/talon/model/NewNotificationWebhook.java @@ -81,7 +81,7 @@ public NewNotificationWebhook addHeadersItem(String headersItem) { * List of API HTTP headers for the given webhook-based notification. * @return headers **/ - @ApiModelProperty(example = "content-type: application/json", required = true, value = "List of API HTTP headers for the given webhook-based notification.") + @ApiModelProperty(required = true, value = "List of API HTTP headers for the given webhook-based notification.") public List getHeaders() { return headers; diff --git a/src/main/java/one/talon/model/NewRoleV2.java b/src/main/java/one/talon/model/NewRoleV2.java index 12dcd7e1..04925a67 100644 --- a/src/main/java/one/talon/model/NewRoleV2.java +++ b/src/main/java/one/talon/model/NewRoleV2.java @@ -132,11 +132,11 @@ public NewRoleV2 addMembersItem(Integer membersItem) { } /** - * A list of user identifiers the role is assigned to. + * A list of user IDs the role is assigned to. * @return members **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[10, 12]", value = "A list of user identifiers the role is assigned to.") + @ApiModelProperty(example = "[10, 12]", value = "A list of user IDs the role is assigned to.") public List getMembers() { return members; diff --git a/src/main/java/one/talon/model/NewStore.java b/src/main/java/one/talon/model/NewStore.java index c8035510..45d69fb3 100644 --- a/src/main/java/one/talon/model/NewStore.java +++ b/src/main/java/one/talon/model/NewStore.java @@ -121,10 +121,10 @@ public NewStore integrationId(String integrationId) { } /** - * The integration ID of the store. You choose this ID when you create a store. + * The integration ID of the store. You choose this ID when you create a store. **Note**: You cannot edit the `integrationId` after the store has been created. * @return integrationId **/ - @ApiModelProperty(example = "STORE-001", required = true, value = "The integration ID of the store. You choose this ID when you create a store.") + @ApiModelProperty(example = "STORE-001", required = true, value = "The integration ID of the store. You choose this ID when you create a store. **Note**: You cannot edit the `integrationId` after the store has been created. ") public String getIntegrationId() { return integrationId; diff --git a/src/main/java/one/talon/model/NewUser.java b/src/main/java/one/talon/model/NewUser.java index cb7f544f..19395edc 100644 --- a/src/main/java/one/talon/model/NewUser.java +++ b/src/main/java/one/talon/model/NewUser.java @@ -54,10 +54,10 @@ public NewUser email(String email) { } /** - * The email address associated with your account. + * The email address associated with the user profile. * @return email **/ - @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with your account.") + @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with the user profile.") public String getEmail() { return email; diff --git a/src/main/java/one/talon/model/NotificationListItem.java b/src/main/java/one/talon/model/NotificationListItem.java new file mode 100644 index 00000000..22381dae --- /dev/null +++ b/src/main/java/one/talon/model/NotificationListItem.java @@ -0,0 +1,182 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * NotificationListItem + */ + +public class NotificationListItem { + public static final String SERIALIZED_NAME_NOTIFICATION_ID = "notificationId"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_ID) + private Integer notificationId; + + public static final String SERIALIZED_NAME_NOTIFICATION_NAME = "notificationName"; + @SerializedName(SERIALIZED_NAME_NOTIFICATION_NAME) + private String notificationName; + + public static final String SERIALIZED_NAME_ENTITY_ID = "entityId"; + @SerializedName(SERIALIZED_NAME_ENTITY_ID) + private Integer entityId; + + public static final String SERIALIZED_NAME_ENABLED = "enabled"; + @SerializedName(SERIALIZED_NAME_ENABLED) + private Boolean enabled; + + + public NotificationListItem notificationId(Integer notificationId) { + + this.notificationId = notificationId; + return this; + } + + /** + * The ID of the notification. + * @return notificationId + **/ + @ApiModelProperty(example = "1", required = true, value = "The ID of the notification.") + + public Integer getNotificationId() { + return notificationId; + } + + + public void setNotificationId(Integer notificationId) { + this.notificationId = notificationId; + } + + + public NotificationListItem notificationName(String notificationName) { + + this.notificationName = notificationName; + return this; + } + + /** + * The name of the notification. + * @return notificationName + **/ + @ApiModelProperty(example = "My campaign notification", required = true, value = "The name of the notification.") + + public String getNotificationName() { + return notificationName; + } + + + public void setNotificationName(String notificationName) { + this.notificationName = notificationName; + } + + + public NotificationListItem entityId(Integer entityId) { + + this.entityId = entityId; + return this; + } + + /** + * The ID of the entity to which this notification belongs. For example, in case of a loyalty notification, this value is the ID of the loyalty program. + * @return entityId + **/ + @ApiModelProperty(example = "1", required = true, value = "The ID of the entity to which this notification belongs. For example, in case of a loyalty notification, this value is the ID of the loyalty program. ") + + public Integer getEntityId() { + return entityId; + } + + + public void setEntityId(Integer entityId) { + this.entityId = entityId; + } + + + public NotificationListItem enabled(Boolean enabled) { + + this.enabled = enabled; + return this; + } + + /** + * Indicates whether the notification is activated. + * @return enabled + **/ + @ApiModelProperty(example = "true", required = true, value = "Indicates whether the notification is activated.") + + public Boolean getEnabled() { + return enabled; + } + + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NotificationListItem notificationListItem = (NotificationListItem) o; + return Objects.equals(this.notificationId, notificationListItem.notificationId) && + Objects.equals(this.notificationName, notificationListItem.notificationName) && + Objects.equals(this.entityId, notificationListItem.entityId) && + Objects.equals(this.enabled, notificationListItem.enabled); + } + + @Override + public int hashCode() { + return Objects.hash(notificationId, notificationName, entityId, enabled); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NotificationListItem {\n"); + sb.append(" notificationId: ").append(toIndentedString(notificationId)).append("\n"); + sb.append(" notificationName: ").append(toIndentedString(notificationName)).append("\n"); + sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/NotificationTest.java b/src/main/java/one/talon/model/NotificationTest.java index c9245049..cfd1dc25 100644 --- a/src/main/java/one/talon/model/NotificationTest.java +++ b/src/main/java/one/talon/model/NotificationTest.java @@ -35,7 +35,7 @@ public class NotificationTest { public static final String SERIALIZED_NAME_HTTP_STATUS = "httpStatus"; @SerializedName(SERIALIZED_NAME_HTTP_STATUS) - private String httpStatus; + private Integer httpStatus; public NotificationTest httpResponse(String httpResponse) { @@ -60,24 +60,24 @@ public void setHttpResponse(String httpResponse) { } - public NotificationTest httpStatus(String httpStatus) { + public NotificationTest httpStatus(Integer httpStatus) { this.httpStatus = httpStatus; return this; } /** - * The returned http status code and status message. + * The returned http status code. * @return httpStatus **/ - @ApiModelProperty(example = "200 OK", required = true, value = "The returned http status code and status message.") + @ApiModelProperty(example = "200", required = true, value = "The returned http status code.") - public String getHttpStatus() { + public Integer getHttpStatus() { return httpStatus; } - public void setHttpStatus(String httpStatus) { + public void setHttpStatus(Integer httpStatus) { this.httpStatus = httpStatus; } diff --git a/src/main/java/one/talon/model/PatchItemCatalogAction.java b/src/main/java/one/talon/model/PatchItemCatalogAction.java index 5207fc94..7b5a1970 100644 --- a/src/main/java/one/talon/model/PatchItemCatalogAction.java +++ b/src/main/java/one/talon/model/PatchItemCatalogAction.java @@ -48,6 +48,10 @@ public class PatchItemCatalogAction { @JsonNullable private Object attributes; + public static final String SERIALIZED_NAME_PRODUCT = "product"; + @SerializedName(SERIALIZED_NAME_PRODUCT) + private Product product; + public static final String SERIALIZED_NAME_CREATE_IF_NOT_EXISTS = "createIfNotExists"; @SerializedName(SERIALIZED_NAME_CREATE_IF_NOT_EXISTS) private Boolean createIfNotExists = false; @@ -121,6 +125,29 @@ public void setAttributes(Object attributes) { } + public PatchItemCatalogAction product(Product product) { + + this.product = product; + return this; + } + + /** + * Get product + * @return product + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Product getProduct() { + return product; + } + + + public void setProduct(Product product) { + this.product = product; + } + + public PatchItemCatalogAction createIfNotExists(Boolean createIfNotExists) { this.createIfNotExists = createIfNotExists; @@ -156,12 +183,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.sku, patchItemCatalogAction.sku) && Objects.equals(this.price, patchItemCatalogAction.price) && Objects.equals(this.attributes, patchItemCatalogAction.attributes) && + Objects.equals(this.product, patchItemCatalogAction.product) && Objects.equals(this.createIfNotExists, patchItemCatalogAction.createIfNotExists); } @Override public int hashCode() { - return Objects.hash(sku, price, attributes, createIfNotExists); + return Objects.hash(sku, price, attributes, product, createIfNotExists); } @@ -172,6 +200,7 @@ public String toString() { sb.append(" sku: ").append(toIndentedString(sku)).append("\n"); sb.append(" price: ").append(toIndentedString(price)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" product: ").append(toIndentedString(product)).append("\n"); sb.append(" createIfNotExists: ").append(toIndentedString(createIfNotExists)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java b/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java index 9ba6beee..dc0a1370 100644 --- a/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java +++ b/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java @@ -33,6 +33,10 @@ public class PendingPointsNotificationPolicy { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public static final String SERIALIZED_NAME_BATCHING_ENABLED = "batchingEnabled"; + @SerializedName(SERIALIZED_NAME_BATCHING_ENABLED) + private Boolean batchingEnabled = true; + public PendingPointsNotificationPolicy name(String name) { @@ -56,6 +60,29 @@ public void setName(String name) { } + public PendingPointsNotificationPolicy batchingEnabled(Boolean batchingEnabled) { + + this.batchingEnabled = batchingEnabled; + return this; + } + + /** + * Indicates whether batching is activated. + * @return batchingEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Indicates whether batching is activated.") + + public Boolean getBatchingEnabled() { + return batchingEnabled; + } + + + public void setBatchingEnabled(Boolean batchingEnabled) { + this.batchingEnabled = batchingEnabled; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +92,13 @@ public boolean equals(java.lang.Object o) { return false; } PendingPointsNotificationPolicy pendingPointsNotificationPolicy = (PendingPointsNotificationPolicy) o; - return Objects.equals(this.name, pendingPointsNotificationPolicy.name); + return Objects.equals(this.name, pendingPointsNotificationPolicy.name) && + Objects.equals(this.batchingEnabled, pendingPointsNotificationPolicy.batchingEnabled); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, batchingEnabled); } @@ -79,6 +107,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PendingPointsNotificationPolicy {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" batchingEnabled: ").append(toIndentedString(batchingEnabled)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/Product.java b/src/main/java/one/talon/model/Product.java new file mode 100644 index 00000000..6639959e --- /dev/null +++ b/src/main/java/one/talon/model/Product.java @@ -0,0 +1,99 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * The specific properties of the product this item belongs to, if available. + */ +@ApiModel(description = "The specific properties of the product this item belongs to, if available.") + +public class Product { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public Product name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the product. + * @return name + **/ + @ApiModelProperty(example = "sample_product", required = true, value = "The name of the product.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Product product = (Product) o; + return Objects.equals(this.name, product.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Product {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/RoleV2.java b/src/main/java/one/talon/model/RoleV2.java index 97d65153..5facc0cc 100644 --- a/src/main/java/one/talon/model/RoleV2.java +++ b/src/main/java/one/talon/model/RoleV2.java @@ -239,11 +239,11 @@ public RoleV2 addMembersItem(Integer membersItem) { } /** - * A list of user identifiers the role is assigned to. + * A list of user IDs the role is assigned to. * @return members **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[10, 12]", value = "A list of user identifiers the role is assigned to.") + @ApiModelProperty(example = "[10, 12]", value = "A list of user IDs the role is assigned to.") public List getMembers() { return members; diff --git a/src/main/java/one/talon/model/RoleV2Base.java b/src/main/java/one/talon/model/RoleV2Base.java index 7fa72f91..bc573fed 100644 --- a/src/main/java/one/talon/model/RoleV2Base.java +++ b/src/main/java/one/talon/model/RoleV2Base.java @@ -133,11 +133,11 @@ public RoleV2Base addMembersItem(Integer membersItem) { } /** - * A list of user identifiers the role is assigned to. + * A list of user IDs the role is assigned to. * @return members **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[10, 12]", value = "A list of user identifiers the role is assigned to.") + @ApiModelProperty(example = "[10, 12]", value = "A list of user IDs the role is assigned to.") public List getMembers() { return members; diff --git a/src/main/java/one/talon/model/RoleV2Permissions.java b/src/main/java/one/talon/model/RoleV2Permissions.java index b13cf2e8..6bb14a9d 100644 --- a/src/main/java/one/talon/model/RoleV2Permissions.java +++ b/src/main/java/one/talon/model/RoleV2Permissions.java @@ -57,11 +57,11 @@ public RoleV2Permissions addPermissionSetsItem(RoleV2PermissionSet permissionSet } /** - * List of grouped logical operations to use as a reference in the roles section. Each group of logical operations has a name. + * List of grouped logical operations referenced by roles. * @return permissionSets **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[{name=Application permission set, logicalOperations=[getApplicationOperations, editApplicationOperations]}, {name=Campaign manager permission set, logicalOperations=[getCampaignOperations, createCampaignOperations, updateCampaignOperations]}, {name=Campaign read-only permission set, logicalOperations=[getCampaignOperations]}, {name=Loyalty program read-only permission set, logicalOperations=[getLoyaltyProgramOperations]}, {name=Campaign access group manager permission set, logicalOperations=[getCampaignAccessGroupOperations, updateCampaignAccessGroupOperations, deleteCampaignAccessGroupOperations]}]", value = "List of grouped logical operations to use as a reference in the roles section. Each group of logical operations has a name.") + @ApiModelProperty(example = "[{name=Application permission set, logicalOperations=[getApplicationOperations, editApplicationOperations]}, {name=Campaign manager permission set, logicalOperations=[getCampaignOperations, createCampaignOperations, updateCampaignOperations]}, {name=Campaign read-only permission set, logicalOperations=[getCampaignOperations]}, {name=Loyalty program read-only permission set, logicalOperations=[getLoyaltyProgramOperations]}, {name=Campaign access group manager permission set, logicalOperations=[getCampaignAccessGroupOperations, updateCampaignAccessGroupOperations, deleteCampaignAccessGroupOperations]}]", value = "List of grouped logical operations referenced by roles.") public List getPermissionSets() { return permissionSets; diff --git a/src/main/java/one/talon/model/SamlConnectionInternal.java b/src/main/java/one/talon/model/SamlConnectionInternal.java new file mode 100644 index 00000000..e9158d9b --- /dev/null +++ b/src/main/java/one/talon/model/SamlConnectionInternal.java @@ -0,0 +1,126 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * SamlConnectionInternal + */ + +public class SamlConnectionInternal { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_METADATA_DOCUMENT = "metadataDocument"; + @SerializedName(SERIALIZED_NAME_METADATA_DOCUMENT) + private String metadataDocument; + + + public SamlConnectionInternal name(String name) { + + this.name = name; + return this; + } + + /** + * ID of the SAML service. + * @return name + **/ + @ApiModelProperty(required = true, value = "ID of the SAML service.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public SamlConnectionInternal metadataDocument(String metadataDocument) { + + this.metadataDocument = metadataDocument; + return this; + } + + /** + * Identity Provider metadata XML document. + * @return metadataDocument + **/ + @ApiModelProperty(required = true, value = "Identity Provider metadata XML document.") + + public String getMetadataDocument() { + return metadataDocument; + } + + + public void setMetadataDocument(String metadataDocument) { + this.metadataDocument = metadataDocument; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SamlConnectionInternal samlConnectionInternal = (SamlConnectionInternal) o; + return Objects.equals(this.name, samlConnectionInternal.name) && + Objects.equals(this.metadataDocument, samlConnectionInternal.metadataDocument); + } + + @Override + public int hashCode() { + return Objects.hash(name, metadataDocument); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SamlConnectionInternal {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" metadataDocument: ").append(toIndentedString(metadataDocument)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/SamlLoginEndpoint.java b/src/main/java/one/talon/model/SamlLoginEndpoint.java index 4784aead..1d28ae0b 100644 --- a/src/main/java/one/talon/model/SamlLoginEndpoint.java +++ b/src/main/java/one/talon/model/SamlLoginEndpoint.java @@ -93,10 +93,10 @@ public SamlLoginEndpoint loginURL(String loginURL) { } /** - * Single Sign-On URL. + * The single sign-on URL. * @return loginURL **/ - @ApiModelProperty(required = true, value = "Single Sign-On URL.") + @ApiModelProperty(required = true, value = "The single sign-on URL.") public String getLoginURL() { return loginURL; diff --git a/src/main/java/one/talon/model/Store.java b/src/main/java/one/talon/model/Store.java index 2b6664ad..124dabb3 100644 --- a/src/main/java/one/talon/model/Store.java +++ b/src/main/java/one/talon/model/Store.java @@ -188,10 +188,10 @@ public Store integrationId(String integrationId) { } /** - * The integration ID of the store. You choose this ID when you create a store. + * The integration ID of the store. You choose this ID when you create a store. **Note**: You cannot edit the `integrationId` after the store has been created. * @return integrationId **/ - @ApiModelProperty(example = "STORE-001", required = true, value = "The integration ID of the store. You choose this ID when you create a store.") + @ApiModelProperty(example = "STORE-001", required = true, value = "The integration ID of the store. You choose this ID when you create a store. **Note**: You cannot edit the `integrationId` after the store has been created. ") public String getIntegrationId() { return integrationId; diff --git a/src/main/java/one/talon/model/TalangAttribute.java b/src/main/java/one/talon/model/TalangAttribute.java index 995984bc..db689a32 100644 --- a/src/main/java/one/talon/model/TalangAttribute.java +++ b/src/main/java/one/talon/model/TalangAttribute.java @@ -71,7 +71,9 @@ public enum EntityEnum { SESSION("Session"), - STORE("Store"); + STORE("Store"), + + ACHIEVEMENTS("Achievements"); private String value; diff --git a/src/main/java/one/talon/model/TemplateArgDef.java b/src/main/java/one/talon/model/TemplateArgDef.java index 0df8cee9..2d06b38b 100644 --- a/src/main/java/one/talon/model/TemplateArgDef.java +++ b/src/main/java/one/talon/model/TemplateArgDef.java @@ -140,7 +140,8 @@ public TemplateArgDef description(String description) { * A campaigner-friendly description of the argument, this will also be shown in the rule editor. * @return description **/ - @ApiModelProperty(required = true, value = "A campaigner-friendly description of the argument, this will also be shown in the rule editor.") + @javax.annotation.Nullable + @ApiModelProperty(value = "A campaigner-friendly description of the argument, this will also be shown in the rule editor.") public String getDescription() { return description; diff --git a/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java b/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java index a7958c90..87d07110 100644 --- a/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java +++ b/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java @@ -33,6 +33,10 @@ public class TierDowngradeNotificationPolicy { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public static final String SERIALIZED_NAME_BATCHING_ENABLED = "batchingEnabled"; + @SerializedName(SERIALIZED_NAME_BATCHING_ENABLED) + private Boolean batchingEnabled = true; + public TierDowngradeNotificationPolicy name(String name) { @@ -56,6 +60,29 @@ public void setName(String name) { } + public TierDowngradeNotificationPolicy batchingEnabled(Boolean batchingEnabled) { + + this.batchingEnabled = batchingEnabled; + return this; + } + + /** + * Indicates whether batching is activated. + * @return batchingEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Indicates whether batching is activated.") + + public Boolean getBatchingEnabled() { + return batchingEnabled; + } + + + public void setBatchingEnabled(Boolean batchingEnabled) { + this.batchingEnabled = batchingEnabled; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +92,13 @@ public boolean equals(java.lang.Object o) { return false; } TierDowngradeNotificationPolicy tierDowngradeNotificationPolicy = (TierDowngradeNotificationPolicy) o; - return Objects.equals(this.name, tierDowngradeNotificationPolicy.name); + return Objects.equals(this.name, tierDowngradeNotificationPolicy.name) && + Objects.equals(this.batchingEnabled, tierDowngradeNotificationPolicy.batchingEnabled); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, batchingEnabled); } @@ -79,6 +107,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TierDowngradeNotificationPolicy {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" batchingEnabled: ").append(toIndentedString(batchingEnabled)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java b/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java index 0aec16c0..4206102e 100644 --- a/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java +++ b/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java @@ -33,6 +33,10 @@ public class TierUpgradeNotificationPolicy { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public static final String SERIALIZED_NAME_BATCHING_ENABLED = "batchingEnabled"; + @SerializedName(SERIALIZED_NAME_BATCHING_ENABLED) + private Boolean batchingEnabled = true; + public TierUpgradeNotificationPolicy name(String name) { @@ -56,6 +60,29 @@ public void setName(String name) { } + public TierUpgradeNotificationPolicy batchingEnabled(Boolean batchingEnabled) { + + this.batchingEnabled = batchingEnabled; + return this; + } + + /** + * Indicates whether batching is activated. + * @return batchingEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Indicates whether batching is activated.") + + public Boolean getBatchingEnabled() { + return batchingEnabled; + } + + + public void setBatchingEnabled(Boolean batchingEnabled) { + this.batchingEnabled = batchingEnabled; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +92,13 @@ public boolean equals(java.lang.Object o) { return false; } TierUpgradeNotificationPolicy tierUpgradeNotificationPolicy = (TierUpgradeNotificationPolicy) o; - return Objects.equals(this.name, tierUpgradeNotificationPolicy.name); + return Objects.equals(this.name, tierUpgradeNotificationPolicy.name) && + Objects.equals(this.batchingEnabled, tierUpgradeNotificationPolicy.batchingEnabled); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, batchingEnabled); } @@ -79,6 +107,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TierUpgradeNotificationPolicy {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" batchingEnabled: ").append(toIndentedString(batchingEnabled)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java b/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java index 66dfdb63..80da0dfe 100644 --- a/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java +++ b/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java @@ -36,6 +36,10 @@ public class TierWillDowngradeNotificationPolicy { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public static final String SERIALIZED_NAME_BATCHING_ENABLED = "batchingEnabled"; + @SerializedName(SERIALIZED_NAME_BATCHING_ENABLED) + private Boolean batchingEnabled = true; + public static final String SERIALIZED_NAME_TRIGGERS = "triggers"; @SerializedName(SERIALIZED_NAME_TRIGGERS) private List triggers = new ArrayList(); @@ -63,6 +67,29 @@ public void setName(String name) { } + public TierWillDowngradeNotificationPolicy batchingEnabled(Boolean batchingEnabled) { + + this.batchingEnabled = batchingEnabled; + return this; + } + + /** + * Indicates whether batching is activated. + * @return batchingEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Indicates whether batching is activated.") + + public Boolean getBatchingEnabled() { + return batchingEnabled; + } + + + public void setBatchingEnabled(Boolean batchingEnabled) { + this.batchingEnabled = batchingEnabled; + } + + public TierWillDowngradeNotificationPolicy triggers(List triggers) { this.triggers = triggers; @@ -100,12 +127,13 @@ public boolean equals(java.lang.Object o) { } TierWillDowngradeNotificationPolicy tierWillDowngradeNotificationPolicy = (TierWillDowngradeNotificationPolicy) o; return Objects.equals(this.name, tierWillDowngradeNotificationPolicy.name) && + Objects.equals(this.batchingEnabled, tierWillDowngradeNotificationPolicy.batchingEnabled) && Objects.equals(this.triggers, tierWillDowngradeNotificationPolicy.triggers); } @Override public int hashCode() { - return Objects.hash(name, triggers); + return Objects.hash(name, batchingEnabled, triggers); } @@ -114,6 +142,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TierWillDowngradeNotificationPolicy {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" batchingEnabled: ").append(toIndentedString(batchingEnabled)).append("\n"); sb.append(" triggers: ").append(toIndentedString(triggers)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/TimePoint.java b/src/main/java/one/talon/model/TimePoint.java index f2f6e777..8507c325 100644 --- a/src/main/java/one/talon/model/TimePoint.java +++ b/src/main/java/one/talon/model/TimePoint.java @@ -25,9 +25,9 @@ import java.io.IOException; /** - * The absolute duration after which the achievement is reset for a particular customer profile. + * The absolute duration after which the achievement ends and resets for a particular customer profile. **Note**: The duration follows the time zone of the Application this achievement belongs to. */ -@ApiModel(description = "The absolute duration after which the achievement is reset for a particular customer profile.") +@ApiModel(description = "The absolute duration after which the achievement ends and resets for a particular customer profile. **Note**: The duration follows the time zone of the Application this achievement belongs to. ") public class TimePoint { public static final String SERIALIZED_NAME_MONTH = "month"; @@ -62,13 +62,13 @@ public TimePoint month(Integer month) { } /** - * The achievement is reset in this month. **Note**: Only applicable if the period is set to `Y`. + * The achievement ends and resets in this month. **Note**: Only applicable if the period is set to `Y`. * minimum: 1 * maximum: 12 * @return month **/ @javax.annotation.Nullable - @ApiModelProperty(example = "11", value = "The achievement is reset in this month. **Note**: Only applicable if the period is set to `Y`. ") + @ApiModelProperty(example = "11", value = "The achievement ends and resets in this month. **Note**: Only applicable if the period is set to `Y`. ") public Integer getMonth() { return month; @@ -87,13 +87,13 @@ public TimePoint dayOfMonth(Integer dayOfMonth) { } /** - * The achievement is reset on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. + * The achievement ends and resets on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. * minimum: 1 - * maximum: 28 + * maximum: 31 * @return dayOfMonth **/ @javax.annotation.Nullable - @ApiModelProperty(example = "23", value = "The achievement is reset on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. ") + @ApiModelProperty(example = "23", value = "The achievement ends and resets on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. ") public Integer getDayOfMonth() { return dayOfMonth; @@ -112,13 +112,13 @@ public TimePoint dayOfWeek(Integer dayOfWeek) { } /** - * The achievement is reset on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. + * The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. * minimum: 1 * maximum: 7 * @return dayOfWeek **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The achievement is reset on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. ") + @ApiModelProperty(value = "The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. ") public Integer getDayOfWeek() { return dayOfWeek; @@ -137,10 +137,10 @@ public TimePoint hour(Integer hour) { } /** - * The achievement is reset at this hour. + * The achievement ends and resets at this hour. * @return hour **/ - @ApiModelProperty(example = "23", required = true, value = "The achievement is reset at this hour.") + @ApiModelProperty(example = "23", required = true, value = "The achievement ends and resets at this hour.") public Integer getHour() { return hour; @@ -159,10 +159,10 @@ public TimePoint minute(Integer minute) { } /** - * The achievement is reset at this minute. + * The achievement ends and resets at this minute. * @return minute **/ - @ApiModelProperty(example = "59", required = true, value = "The achievement is reset at this minute.") + @ApiModelProperty(example = "59", required = true, value = "The achievement ends and resets at this minute.") public Integer getMinute() { return minute; @@ -181,10 +181,10 @@ public TimePoint second(Integer second) { } /** - * The achievement is reset at this second. + * The achievement ends and resets at this second. * @return second **/ - @ApiModelProperty(example = "59", required = true, value = "The achievement is reset at this second.") + @ApiModelProperty(example = "59", required = true, value = "The achievement ends and resets at this second.") public Integer getSecond() { return second; diff --git a/src/main/java/one/talon/model/UpdateAchievement.java b/src/main/java/one/talon/model/UpdateAchievement.java index f0b6242d..5d89e7f7 100644 --- a/src/main/java/one/talon/model/UpdateAchievement.java +++ b/src/main/java/one/talon/model/UpdateAchievement.java @@ -23,12 +23,18 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.math.BigDecimal; +import one.talon.model.TimePoint; /** * UpdateAchievement */ public class UpdateAchievement { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) private String title; @@ -37,6 +43,41 @@ public class UpdateAchievement { @SerializedName(SERIALIZED_NAME_DESCRIPTION) private String description; + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + private BigDecimal target; + + public static final String SERIALIZED_NAME_PERIOD = "period"; + @SerializedName(SERIALIZED_NAME_PERIOD) + private String period; + + public static final String SERIALIZED_NAME_PERIOD_END_OVERRIDE = "periodEndOverride"; + @SerializedName(SERIALIZED_NAME_PERIOD_END_OVERRIDE) + private TimePoint periodEndOverride; + + + public UpdateAchievement name(String name) { + + this.name = name; + return this; + } + + /** + * The internal name of the achievement used in API requests. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Order50Discount", value = "The internal name of the achievement used in API requests. ") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + public UpdateAchievement title(String title) { @@ -84,6 +125,75 @@ public void setDescription(String description) { } + public UpdateAchievement target(BigDecimal target) { + + this.target = target; + return this; + } + + /** + * The required number of actions or the transactional milestone to complete the achievement. + * @return target + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "50.0", value = "The required number of actions or the transactional milestone to complete the achievement.") + + public BigDecimal getTarget() { + return target; + } + + + public void setTarget(BigDecimal target) { + this.target = target; + } + + + public UpdateAchievement period(String period) { + + this.period = period; + return this; + } + + /** + * The relative duration after which the achievement ends and resets for a particular customer profile. + * @return period + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1Y", value = "The relative duration after which the achievement ends and resets for a particular customer profile. ") + + public String getPeriod() { + return period; + } + + + public void setPeriod(String period) { + this.period = period; + } + + + public UpdateAchievement periodEndOverride(TimePoint periodEndOverride) { + + this.periodEndOverride = periodEndOverride; + return this; + } + + /** + * Get periodEndOverride + * @return periodEndOverride + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public TimePoint getPeriodEndOverride() { + return periodEndOverride; + } + + + public void setPeriodEndOverride(TimePoint periodEndOverride) { + this.periodEndOverride = periodEndOverride; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -93,13 +203,17 @@ public boolean equals(java.lang.Object o) { return false; } UpdateAchievement updateAchievement = (UpdateAchievement) o; - return Objects.equals(this.title, updateAchievement.title) && - Objects.equals(this.description, updateAchievement.description); + return Objects.equals(this.name, updateAchievement.name) && + Objects.equals(this.title, updateAchievement.title) && + Objects.equals(this.description, updateAchievement.description) && + Objects.equals(this.target, updateAchievement.target) && + Objects.equals(this.period, updateAchievement.period) && + Objects.equals(this.periodEndOverride, updateAchievement.periodEndOverride); } @Override public int hashCode() { - return Objects.hash(title, description); + return Objects.hash(name, title, description, target, period, periodEndOverride); } @@ -107,8 +221,12 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateAchievement {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" target: ").append(toIndentedString(target)).append("\n"); + sb.append(" period: ").append(toIndentedString(period)).append("\n"); + sb.append(" periodEndOverride: ").append(toIndentedString(periodEndOverride)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/UpdateApplicationAPIKey.java b/src/main/java/one/talon/model/UpdateApplicationAPIKey.java new file mode 100644 index 00000000..2e95e699 --- /dev/null +++ b/src/main/java/one/talon/model/UpdateApplicationAPIKey.java @@ -0,0 +1,98 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * UpdateApplicationAPIKey + */ + +public class UpdateApplicationAPIKey { + public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; + @SerializedName(SERIALIZED_NAME_TIME_OFFSET) + private Integer timeOffset; + + + public UpdateApplicationAPIKey timeOffset(Integer timeOffset) { + + this.timeOffset = timeOffset; + return this; + } + + /** + * A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + * @return timeOffset + **/ + @ApiModelProperty(example = "100000", required = true, value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") + + public Integer getTimeOffset() { + return timeOffset; + } + + + public void setTimeOffset(Integer timeOffset) { + this.timeOffset = timeOffset; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateApplicationAPIKey updateApplicationAPIKey = (UpdateApplicationAPIKey) o; + return Objects.equals(this.timeOffset, updateApplicationAPIKey.timeOffset); + } + + @Override + public int hashCode() { + return Objects.hash(timeOffset); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateApplicationAPIKey {\n"); + sb.append(" timeOffset: ").append(toIndentedString(timeOffset)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/UpdateCampaign.java b/src/main/java/one/talon/model/UpdateCampaign.java index 8f27766f..066133c0 100644 --- a/src/main/java/one/talon/model/UpdateCampaign.java +++ b/src/main/java/one/talon/model/UpdateCampaign.java @@ -128,7 +128,9 @@ public enum FeaturesEnum { GIVEAWAYS("giveaways"), - STRIKETHROUGH("strikethrough"); + STRIKETHROUGH("strikethrough"), + + ACHIEVEMENTS("achievements"); private String value; diff --git a/src/main/java/one/talon/model/UpdateCampaignGroup.java b/src/main/java/one/talon/model/UpdateCampaignGroup.java index f2b3105f..8c308a8d 100644 --- a/src/main/java/one/talon/model/UpdateCampaignGroup.java +++ b/src/main/java/one/talon/model/UpdateCampaignGroup.java @@ -56,10 +56,10 @@ public UpdateCampaignGroup name(String name) { } /** - * The name of this campaign access group. + * The name of the campaign access group. * @return name **/ - @ApiModelProperty(required = true, value = "The name of this campaign access group.") + @ApiModelProperty(example = "Europe access group", required = true, value = "The name of the campaign access group.") public String getName() { return name; @@ -82,7 +82,7 @@ public UpdateCampaignGroup description(String description) { * @return description **/ @javax.annotation.Nullable - @ApiModelProperty(example = "My campaign access group.", value = "A longer description of the campaign access group.") + @ApiModelProperty(example = "A group that gives access to all the campaigns for the Europe market.", value = "A longer description of the campaign access group.") public String getDescription() { return description; diff --git a/src/main/java/one/talon/model/UpdateCampaignTemplate.java b/src/main/java/one/talon/model/UpdateCampaignTemplate.java index a91d6c42..e54e5856 100644 --- a/src/main/java/one/talon/model/UpdateCampaignTemplate.java +++ b/src/main/java/one/talon/model/UpdateCampaignTemplate.java @@ -129,7 +129,9 @@ public enum FeaturesEnum { GIVEAWAYS("giveaways"), - STRIKETHROUGH("strikethrough"); + STRIKETHROUGH("strikethrough"), + + ACHIEVEMENTS("achievements"); private String value; diff --git a/src/main/java/one/talon/model/UpdateCoupon.java b/src/main/java/one/talon/model/UpdateCoupon.java index b80b6ba3..db64b10a 100644 --- a/src/main/java/one/talon/model/UpdateCoupon.java +++ b/src/main/java/one/talon/model/UpdateCoupon.java @@ -69,7 +69,7 @@ public class UpdateCoupon { public static final String SERIALIZED_NAME_IS_RESERVATION_MANDATORY = "isReservationMandatory"; @SerializedName(SERIALIZED_NAME_IS_RESERVATION_MANDATORY) - private Boolean isReservationMandatory = true; + private Boolean isReservationMandatory = false; public static final String SERIALIZED_NAME_IMPLICITLY_RESERVED = "implicitlyReserved"; @SerializedName(SERIALIZED_NAME_IMPLICITLY_RESERVED) diff --git a/src/main/java/one/talon/model/UpdateLoyaltyProgram.java b/src/main/java/one/talon/model/UpdateLoyaltyProgram.java index 8996bcd3..b14fecd6 100644 --- a/src/main/java/one/talon/model/UpdateLoyaltyProgram.java +++ b/src/main/java/one/talon/model/UpdateLoyaltyProgram.java @@ -65,6 +65,57 @@ public class UpdateLoyaltyProgram { @SerializedName(SERIALIZED_NAME_SANDBOX) private Boolean sandbox; + /** + * 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. + */ + @JsonAdapter(TiersExpirationPolicyEnum.Adapter.class) + public enum TiersExpirationPolicyEnum { + TIER_START_DATE("tier_start_date"), + + PROGRAM_JOIN_DATE("program_join_date"); + + private String value; + + TiersExpirationPolicyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TiersExpirationPolicyEnum fromValue(String value) { + for (TiersExpirationPolicyEnum b : TiersExpirationPolicyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TiersExpirationPolicyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TiersExpirationPolicyEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TIERS_EXPIRATION_POLICY = "tiersExpirationPolicy"; + @SerializedName(SERIALIZED_NAME_TIERS_EXPIRATION_POLICY) + private TiersExpirationPolicyEnum tiersExpirationPolicy; + public static final String SERIALIZED_NAME_TIERS_EXPIRE_IN = "tiersExpireIn"; @SerializedName(SERIALIZED_NAME_TIERS_EXPIRE_IN) private String tiersExpireIn; @@ -120,6 +171,59 @@ public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_TIERS_DOWNGRADE_POLICY) private TiersDowngradePolicyEnum tiersDowngradePolicy; + /** + * 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. + */ + @JsonAdapter(ProgramJoinPolicyEnum.Adapter.class) + public enum ProgramJoinPolicyEnum { + NOT_JOIN("not_join"), + + POINTS_ACTIVATED("points_activated"), + + POINTS_EARNED("points_earned"); + + private String value; + + ProgramJoinPolicyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ProgramJoinPolicyEnum fromValue(String value) { + for (ProgramJoinPolicyEnum b : ProgramJoinPolicyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ProgramJoinPolicyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ProgramJoinPolicyEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PROGRAM_JOIN_POLICY = "programJoinPolicy"; + @SerializedName(SERIALIZED_NAME_PROGRAM_JOIN_POLICY) + private ProgramJoinPolicyEnum programJoinPolicy; + public static final String SERIALIZED_NAME_TIERS = "tiers"; @SerializedName(SERIALIZED_NAME_TIERS) private List tiers = null; @@ -318,6 +422,29 @@ public void setSandbox(Boolean sandbox) { } + public UpdateLoyaltyProgram tiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { + + this.tiersExpirationPolicy = tiersExpirationPolicy; + return this; + } + + /** + * 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. + * @return tiersExpirationPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "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. ") + + public TiersExpirationPolicyEnum getTiersExpirationPolicy() { + return tiersExpirationPolicy; + } + + + public void setTiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { + this.tiersExpirationPolicy = tiersExpirationPolicy; + } + + public UpdateLoyaltyProgram tiersExpireIn(String tiersExpireIn) { this.tiersExpireIn = tiersExpireIn; @@ -325,11 +452,11 @@ public UpdateLoyaltyProgram tiersExpireIn(String tiersExpireIn) { } /** - * The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. + * 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. * @return tiersExpireIn **/ @javax.annotation.Nullable - @ApiModelProperty(example = "27W_U", value = "The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. 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. ") + @ApiModelProperty(example = "27W_U", value = "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. ") public String getTiersExpireIn() { return tiersExpireIn; @@ -364,6 +491,29 @@ public void setTiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolic } + public UpdateLoyaltyProgram programJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { + + this.programJoinPolicy = programJoinPolicy; + return this; + } + + /** + * 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. + * @return programJoinPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "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. ") + + public ProgramJoinPolicyEnum getProgramJoinPolicy() { + return programJoinPolicy; + } + + + public void setProgramJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { + this.programJoinPolicy = programJoinPolicy; + } + + public UpdateLoyaltyProgram tiers(List tiers) { this.tiers = tiers; @@ -412,14 +562,16 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.allowSubledger, updateLoyaltyProgram.allowSubledger) && Objects.equals(this.usersPerCardLimit, updateLoyaltyProgram.usersPerCardLimit) && Objects.equals(this.sandbox, updateLoyaltyProgram.sandbox) && + Objects.equals(this.tiersExpirationPolicy, updateLoyaltyProgram.tiersExpirationPolicy) && Objects.equals(this.tiersExpireIn, updateLoyaltyProgram.tiersExpireIn) && Objects.equals(this.tiersDowngradePolicy, updateLoyaltyProgram.tiersDowngradePolicy) && + Objects.equals(this.programJoinPolicy, updateLoyaltyProgram.programJoinPolicy) && Objects.equals(this.tiers, updateLoyaltyProgram.tiers); } @Override public int hashCode() { - return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, tiersExpireIn, tiersDowngradePolicy, tiers); + return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, tiersExpirationPolicy, tiersExpireIn, tiersDowngradePolicy, programJoinPolicy, tiers); } @@ -435,8 +587,10 @@ public String toString() { sb.append(" allowSubledger: ").append(toIndentedString(allowSubledger)).append("\n"); sb.append(" usersPerCardLimit: ").append(toIndentedString(usersPerCardLimit)).append("\n"); sb.append(" sandbox: ").append(toIndentedString(sandbox)).append("\n"); + sb.append(" tiersExpirationPolicy: ").append(toIndentedString(tiersExpirationPolicy)).append("\n"); sb.append(" tiersExpireIn: ").append(toIndentedString(tiersExpireIn)).append("\n"); sb.append(" tiersDowngradePolicy: ").append(toIndentedString(tiersDowngradePolicy)).append("\n"); + sb.append(" programJoinPolicy: ").append(toIndentedString(programJoinPolicy)).append("\n"); sb.append(" tiers: ").append(toIndentedString(tiers)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/UpdateUser.java b/src/main/java/one/talon/model/UpdateUser.java index a3a7c4ca..588fd6ad 100644 --- a/src/main/java/one/talon/model/UpdateUser.java +++ b/src/main/java/one/talon/model/UpdateUser.java @@ -35,12 +35,8 @@ public class UpdateUser { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public static final String SERIALIZED_NAME_POLICY = "policy"; - @SerializedName(SERIALIZED_NAME_POLICY) - private String policy; - /** - * New state (\"deactivated\" or \"active\") for the user. Only usable by admins for the user. + * The state of the user. - `deactivated`: The user has been deactivated. - `active`: The user is active. **Note**: Only `admin` users can update the state of another user. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { @@ -90,6 +86,14 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_STATE) private StateEnum state; + public static final String SERIALIZED_NAME_IS_ADMIN = "isAdmin"; + @SerializedName(SERIALIZED_NAME_IS_ADMIN) + private Boolean isAdmin; + + public static final String SERIALIZED_NAME_POLICY = "policy"; + @SerializedName(SERIALIZED_NAME_POLICY) + private String policy; + public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) private List roles = null; @@ -98,10 +102,6 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_APPLICATION_NOTIFICATION_SUBSCRIPTIONS) private Object applicationNotificationSubscriptions; - public static final String SERIALIZED_NAME_IS_ADMIN = "isAdmin"; - @SerializedName(SERIALIZED_NAME_IS_ADMIN) - private Boolean isAdmin; - public UpdateUser name(String name) { @@ -110,11 +110,11 @@ public UpdateUser name(String name) { } /** - * The user name. + * Name of the user. * @return name **/ @javax.annotation.Nullable - @ApiModelProperty(example = "John Doe", value = "The user name.") + @ApiModelProperty(example = "John Doe", value = "Name of the user.") public String getName() { return name; @@ -126,49 +126,72 @@ public void setName(String name) { } - public UpdateUser policy(String policy) { + public UpdateUser state(StateEnum state) { - this.policy = policy; + this.state = state; return this; } /** - * The `Access Control List` json defining the role of the user. This represents the access control on the user level. - * @return policy + * The state of the user. - `deactivated`: The user has been deactivated. - `active`: The user is active. **Note**: Only `admin` users can update the state of another user. + * @return state **/ @javax.annotation.Nullable - @ApiModelProperty(example = "", value = "The `Access Control List` json defining the role of the user. This represents the access control on the user level.") + @ApiModelProperty(example = "deactivated", value = "The state of the user. - `deactivated`: The user has been deactivated. - `active`: The user is active. **Note**: Only `admin` users can update the state of another user. ") - public String getPolicy() { - return policy; + public StateEnum getState() { + return state; } - public void setPolicy(String policy) { - this.policy = policy; + public void setState(StateEnum state) { + this.state = state; } - public UpdateUser state(StateEnum state) { + public UpdateUser isAdmin(Boolean isAdmin) { - this.state = state; + this.isAdmin = isAdmin; return this; } /** - * New state (\"deactivated\" or \"active\") for the user. Only usable by admins for the user. - * @return state + * Indicates whether the user is an `admin`. + * @return isAdmin **/ @javax.annotation.Nullable - @ApiModelProperty(example = "deactivated", value = "New state (\"deactivated\" or \"active\") for the user. Only usable by admins for the user.") + @ApiModelProperty(example = "false", value = "Indicates whether the user is an `admin`.") - public StateEnum getState() { - return state; + public Boolean getIsAdmin() { + return isAdmin; } - public void setState(StateEnum state) { - this.state = state; + public void setIsAdmin(Boolean isAdmin) { + this.isAdmin = isAdmin; + } + + + public UpdateUser policy(String policy) { + + this.policy = policy; + return this; + } + + /** + * Indicates the access level of the user. + * @return policy + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "", value = "Indicates the access level of the user.") + + public String getPolicy() { + return policy; + } + + + public void setPolicy(String policy) { + this.policy = policy; } @@ -187,11 +210,11 @@ public UpdateUser addRolesItem(Integer rolesItem) { } /** - * List of roles to assign to the user. + * A list of the IDs of the roles assigned to the user. **Note**: Use the [List roles](https://docs.talon.one/management-api#tag/Roles/operation/getAllRoles) endpoint to find the ID of a role. * @return roles **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[1, 3]", value = "List of roles to assign to the user.") + @ApiModelProperty(example = "[1, 3]", value = "A list of the IDs of the roles assigned to the user. **Note**: Use the [List roles](https://docs.talon.one/management-api#tag/Roles/operation/getAllRoles) endpoint to find the ID of a role. ") public List getRoles() { return roles; @@ -210,11 +233,11 @@ public UpdateUser applicationNotificationSubscriptions(Object applicationNotific } /** - * Get applicationNotificationSubscriptions + * Application notifications that the user is subscribed to. * @return applicationNotificationSubscriptions **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Application notifications that the user is subscribed to.") public Object getApplicationNotificationSubscriptions() { return applicationNotificationSubscriptions; @@ -226,29 +249,6 @@ public void setApplicationNotificationSubscriptions(Object applicationNotificati } - public UpdateUser isAdmin(Boolean isAdmin) { - - this.isAdmin = isAdmin; - return this; - } - - /** - * An indication of whether the user has admin permissions. - * @return isAdmin - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "An indication of whether the user has admin permissions.") - - public Boolean getIsAdmin() { - return isAdmin; - } - - - public void setIsAdmin(Boolean isAdmin) { - this.isAdmin = isAdmin; - } - - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -259,16 +259,16 @@ public boolean equals(java.lang.Object o) { } UpdateUser updateUser = (UpdateUser) o; return Objects.equals(this.name, updateUser.name) && - Objects.equals(this.policy, updateUser.policy) && Objects.equals(this.state, updateUser.state) && + Objects.equals(this.isAdmin, updateUser.isAdmin) && + Objects.equals(this.policy, updateUser.policy) && Objects.equals(this.roles, updateUser.roles) && - Objects.equals(this.applicationNotificationSubscriptions, updateUser.applicationNotificationSubscriptions) && - Objects.equals(this.isAdmin, updateUser.isAdmin); + Objects.equals(this.applicationNotificationSubscriptions, updateUser.applicationNotificationSubscriptions); } @Override public int hashCode() { - return Objects.hash(name, policy, state, roles, applicationNotificationSubscriptions, isAdmin); + return Objects.hash(name, state, isAdmin, policy, roles, applicationNotificationSubscriptions); } @@ -277,11 +277,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateUser {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" isAdmin: ").append(toIndentedString(isAdmin)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); sb.append(" applicationNotificationSubscriptions: ").append(toIndentedString(applicationNotificationSubscriptions)).append("\n"); - sb.append(" isAdmin: ").append(toIndentedString(isAdmin)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/User.java b/src/main/java/one/talon/model/User.java index ca85755e..d5933a43 100644 --- a/src/main/java/one/talon/model/User.java +++ b/src/main/java/one/talon/model/User.java @@ -53,12 +53,12 @@ public class User { @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) private Integer accountId; - public static final String SERIALIZED_NAME_INVITE_TOKEN = "inviteToken"; - @SerializedName(SERIALIZED_NAME_INVITE_TOKEN) - private String inviteToken; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; /** - * Current user state. + * State of the user. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { @@ -110,33 +110,29 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_STATE) private StateEnum state; - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; + public static final String SERIALIZED_NAME_INVITE_TOKEN = "inviteToken"; + @SerializedName(SERIALIZED_NAME_INVITE_TOKEN) + private String inviteToken; + + public static final String SERIALIZED_NAME_IS_ADMIN = "isAdmin"; + @SerializedName(SERIALIZED_NAME_IS_ADMIN) + private Boolean isAdmin; public static final String SERIALIZED_NAME_POLICY = "policy"; @SerializedName(SERIALIZED_NAME_POLICY) private Object policy; - public static final String SERIALIZED_NAME_LATEST_FEED_TIMESTAMP = "latestFeedTimestamp"; - @SerializedName(SERIALIZED_NAME_LATEST_FEED_TIMESTAMP) - private OffsetDateTime latestFeedTimestamp; - public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) private List roles = null; - public static final String SERIALIZED_NAME_APPLICATION_NOTIFICATION_SUBSCRIPTIONS = "applicationNotificationSubscriptions"; - @SerializedName(SERIALIZED_NAME_APPLICATION_NOTIFICATION_SUBSCRIPTIONS) - private Object applicationNotificationSubscriptions; - public static final String SERIALIZED_NAME_AUTH_METHOD = "authMethod"; @SerializedName(SERIALIZED_NAME_AUTH_METHOD) private String authMethod; - public static final String SERIALIZED_NAME_IS_ADMIN = "isAdmin"; - @SerializedName(SERIALIZED_NAME_IS_ADMIN) - private Boolean isAdmin; + public static final String SERIALIZED_NAME_APPLICATION_NOTIFICATION_SUBSCRIPTIONS = "applicationNotificationSubscriptions"; + @SerializedName(SERIALIZED_NAME_APPLICATION_NOTIFICATION_SUBSCRIPTIONS) + private Object applicationNotificationSubscriptions; public static final String SERIALIZED_NAME_LAST_SIGNED_IN = "lastSignedIn"; @SerializedName(SERIALIZED_NAME_LAST_SIGNED_IN) @@ -146,6 +142,10 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_LAST_ACCESSED) private OffsetDateTime lastAccessed; + public static final String SERIALIZED_NAME_LATEST_FEED_TIMESTAMP = "latestFeedTimestamp"; + @SerializedName(SERIALIZED_NAME_LATEST_FEED_TIMESTAMP) + private OffsetDateTime latestFeedTimestamp; + public User id(Integer id) { @@ -220,10 +220,10 @@ public User email(String email) { } /** - * The email address associated with your account. + * The email address associated with the user profile. * @return email **/ - @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with your account.") + @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with the user profile.") public String getEmail() { return email; @@ -257,25 +257,25 @@ public void setAccountId(Integer accountId) { } - public User inviteToken(String inviteToken) { + public User name(String name) { - this.inviteToken = inviteToken; + this.name = name; return this; } /** - * Invite token, empty if the user as already accepted their invite. - * @return inviteToken + * Name of the user. + * @return name **/ - @ApiModelProperty(example = "Gy9b8w1irmQtEPo5RmbMmSPheL5h4", required = true, value = "Invite token, empty if the user as already accepted their invite.") + @ApiModelProperty(example = "John Doe", required = true, value = "Name of the user.") - public String getInviteToken() { - return inviteToken; + public String getName() { + return name; } - public void setInviteToken(String inviteToken) { - this.inviteToken = inviteToken; + public void setName(String name) { + this.name = name; } @@ -286,10 +286,10 @@ public User state(StateEnum state) { } /** - * Current user state. + * State of the user. * @return state **/ - @ApiModelProperty(example = "invited", required = true, value = "Current user state.") + @ApiModelProperty(example = "invited", required = true, value = "State of the user.") public StateEnum getState() { return state; @@ -301,70 +301,70 @@ public void setState(StateEnum state) { } - public User name(String name) { + public User inviteToken(String inviteToken) { - this.name = name; + this.inviteToken = inviteToken; return this; } /** - * Full name - * @return name + * Invitation token of the user. **Note**: If the user has already accepted their invitation, this is `null`. + * @return inviteToken **/ - @ApiModelProperty(example = "John Doe", required = true, value = "Full name") + @ApiModelProperty(example = "Gy9b8w1irmQtEPo5RmbMmSPheL5h4", required = true, value = "Invitation token of the user. **Note**: If the user has already accepted their invitation, this is `null`. ") - public String getName() { - return name; + public String getInviteToken() { + return inviteToken; } - public void setName(String name) { - this.name = name; + public void setInviteToken(String inviteToken) { + this.inviteToken = inviteToken; } - public User policy(Object policy) { + public User isAdmin(Boolean isAdmin) { - this.policy = policy; + this.isAdmin = isAdmin; return this; } /** - * User ACL Policy - * @return policy + * Indicates whether the user is an `admin`. + * @return isAdmin **/ - @ApiModelProperty(example = "{\"Role\":127}", required = true, value = "User ACL Policy") + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Indicates whether the user is an `admin`.") - public Object getPolicy() { - return policy; + public Boolean getIsAdmin() { + return isAdmin; } - public void setPolicy(Object policy) { - this.policy = policy; + public void setIsAdmin(Boolean isAdmin) { + this.isAdmin = isAdmin; } - public User latestFeedTimestamp(OffsetDateTime latestFeedTimestamp) { + public User policy(Object policy) { - this.latestFeedTimestamp = latestFeedTimestamp; + this.policy = policy; return this; } /** - * Latest timestamp the user has been notified for feed. - * @return latestFeedTimestamp + * Access level of the user. + * @return policy **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "2020-06-01T00:00Z", value = "Latest timestamp the user has been notified for feed.") + @ApiModelProperty(example = "{\"Role\":127}", required = true, value = "Access level of the user.") - public OffsetDateTime getLatestFeedTimestamp() { - return latestFeedTimestamp; + public Object getPolicy() { + return policy; } - public void setLatestFeedTimestamp(OffsetDateTime latestFeedTimestamp) { - this.latestFeedTimestamp = latestFeedTimestamp; + public void setPolicy(Object policy) { + this.policy = policy; } @@ -383,11 +383,11 @@ public User addRolesItem(Integer rolesItem) { } /** - * Contains a list of all roles the user is a member of. + * A list of the IDs of the roles assigned to the user. * @return roles **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[71]", value = "Contains a list of all roles the user is a member of.") + @ApiModelProperty(example = "[71]", value = "A list of the IDs of the roles assigned to the user.") public List getRoles() { return roles; @@ -399,29 +399,6 @@ public void setRoles(List roles) { } - public User applicationNotificationSubscriptions(Object applicationNotificationSubscriptions) { - - this.applicationNotificationSubscriptions = applicationNotificationSubscriptions; - return this; - } - - /** - * Get applicationNotificationSubscriptions - * @return applicationNotificationSubscriptions - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Object getApplicationNotificationSubscriptions() { - return applicationNotificationSubscriptions; - } - - - public void setApplicationNotificationSubscriptions(Object applicationNotificationSubscriptions) { - this.applicationNotificationSubscriptions = applicationNotificationSubscriptions; - } - - public User authMethod(String authMethod) { this.authMethod = authMethod; @@ -429,11 +406,11 @@ public User authMethod(String authMethod) { } /** - * The Authentication method for this user. + * Authentication method for this user. * @return authMethod **/ @javax.annotation.Nullable - @ApiModelProperty(example = "basic_auth", value = "The Authentication method for this user.") + @ApiModelProperty(example = "basic_auth", value = "Authentication method for this user.") public String getAuthMethod() { return authMethod; @@ -445,26 +422,26 @@ public void setAuthMethod(String authMethod) { } - public User isAdmin(Boolean isAdmin) { + public User applicationNotificationSubscriptions(Object applicationNotificationSubscriptions) { - this.isAdmin = isAdmin; + this.applicationNotificationSubscriptions = applicationNotificationSubscriptions; return this; } /** - * An indication of whether the user has admin permissions. - * @return isAdmin + * Application notifications that the user is subscribed to. + * @return applicationNotificationSubscriptions **/ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "An indication of whether the user has admin permissions.") + @ApiModelProperty(value = "Application notifications that the user is subscribed to.") - public Boolean getIsAdmin() { - return isAdmin; + public Object getApplicationNotificationSubscriptions() { + return applicationNotificationSubscriptions; } - public void setIsAdmin(Boolean isAdmin) { - this.isAdmin = isAdmin; + public void setApplicationNotificationSubscriptions(Object applicationNotificationSubscriptions) { + this.applicationNotificationSubscriptions = applicationNotificationSubscriptions; } @@ -475,11 +452,11 @@ public User lastSignedIn(OffsetDateTime lastSignedIn) { } /** - * Date and time when the user last signed in to Talon.One. + * Timestamp when the user last signed in to Talon.One. * @return lastSignedIn **/ @javax.annotation.Nullable - @ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "Date and time when the user last signed in to Talon.One.") + @ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "Timestamp when the user last signed in to Talon.One.") public OffsetDateTime getLastSignedIn() { return lastSignedIn; @@ -498,11 +475,11 @@ public User lastAccessed(OffsetDateTime lastAccessed) { } /** - * Date and time of the user's last activity after signing in to Talon.One. + * Timestamp of the user's last activity after signing in to Talon.One. * @return lastAccessed **/ @javax.annotation.Nullable - @ApiModelProperty(example = "2021-09-12T10:14:42Z", value = "Date and time of the user's last activity after signing in to Talon.One.") + @ApiModelProperty(example = "2021-09-12T10:14:42Z", value = "Timestamp of the user's last activity after signing in to Talon.One.") public OffsetDateTime getLastAccessed() { return lastAccessed; @@ -514,6 +491,29 @@ public void setLastAccessed(OffsetDateTime lastAccessed) { } + public User latestFeedTimestamp(OffsetDateTime latestFeedTimestamp) { + + this.latestFeedTimestamp = latestFeedTimestamp; + return this; + } + + /** + * Timestamp when the user was notified for feed. + * @return latestFeedTimestamp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2020-06-01T00:00Z", value = "Timestamp when the user was notified for feed.") + + public OffsetDateTime getLatestFeedTimestamp() { + return latestFeedTimestamp; + } + + + public void setLatestFeedTimestamp(OffsetDateTime latestFeedTimestamp) { + this.latestFeedTimestamp = latestFeedTimestamp; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -528,22 +528,22 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.modified, user.modified) && Objects.equals(this.email, user.email) && Objects.equals(this.accountId, user.accountId) && - Objects.equals(this.inviteToken, user.inviteToken) && - Objects.equals(this.state, user.state) && Objects.equals(this.name, user.name) && + Objects.equals(this.state, user.state) && + Objects.equals(this.inviteToken, user.inviteToken) && + Objects.equals(this.isAdmin, user.isAdmin) && Objects.equals(this.policy, user.policy) && - Objects.equals(this.latestFeedTimestamp, user.latestFeedTimestamp) && Objects.equals(this.roles, user.roles) && - Objects.equals(this.applicationNotificationSubscriptions, user.applicationNotificationSubscriptions) && Objects.equals(this.authMethod, user.authMethod) && - Objects.equals(this.isAdmin, user.isAdmin) && + Objects.equals(this.applicationNotificationSubscriptions, user.applicationNotificationSubscriptions) && Objects.equals(this.lastSignedIn, user.lastSignedIn) && - Objects.equals(this.lastAccessed, user.lastAccessed); + Objects.equals(this.lastAccessed, user.lastAccessed) && + Objects.equals(this.latestFeedTimestamp, user.latestFeedTimestamp); } @Override public int hashCode() { - return Objects.hash(id, created, modified, email, accountId, inviteToken, state, name, policy, latestFeedTimestamp, roles, applicationNotificationSubscriptions, authMethod, isAdmin, lastSignedIn, lastAccessed); + return Objects.hash(id, created, modified, email, accountId, name, state, inviteToken, isAdmin, policy, roles, authMethod, applicationNotificationSubscriptions, lastSignedIn, lastAccessed, latestFeedTimestamp); } @@ -556,17 +556,17 @@ public String toString() { sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" inviteToken: ").append(toIndentedString(inviteToken)).append("\n"); - sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" inviteToken: ").append(toIndentedString(inviteToken)).append("\n"); + sb.append(" isAdmin: ").append(toIndentedString(isAdmin)).append("\n"); sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); - sb.append(" latestFeedTimestamp: ").append(toIndentedString(latestFeedTimestamp)).append("\n"); sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); - sb.append(" applicationNotificationSubscriptions: ").append(toIndentedString(applicationNotificationSubscriptions)).append("\n"); sb.append(" authMethod: ").append(toIndentedString(authMethod)).append("\n"); - sb.append(" isAdmin: ").append(toIndentedString(isAdmin)).append("\n"); + sb.append(" applicationNotificationSubscriptions: ").append(toIndentedString(applicationNotificationSubscriptions)).append("\n"); sb.append(" lastSignedIn: ").append(toIndentedString(lastSignedIn)).append("\n"); sb.append(" lastAccessed: ").append(toIndentedString(lastAccessed)).append("\n"); + sb.append(" latestFeedTimestamp: ").append(toIndentedString(latestFeedTimestamp)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/test/java/one/talon/api/IntegrationApiTest.java b/src/test/java/one/talon/api/IntegrationApiTest.java index 8a0eeeed..dea0023f 100644 --- a/src/test/java/one/talon/api/IntegrationApiTest.java +++ b/src/test/java/one/talon/api/IntegrationApiTest.java @@ -213,7 +213,8 @@ public void getCustomerInventoryTest() throws ApiException { Boolean coupons = null; Boolean loyalty = null; Boolean giveaways = null; - CustomerInventory response = api.getCustomerInventory(integrationId, profile, referrals, coupons, loyalty, giveaways); + Boolean achievements = null; + CustomerInventory response = api.getCustomerInventory(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements); // TODO: test validations } @@ -429,7 +430,7 @@ public void returnCartItemsTest() throws ApiException { /** * Sync cart item catalog * - * Perform one or more of the following sync actions on this cart item catalog, up to 1000 actions: - Add an item to the catalog. - Edit the attributes of an item in the catalog. - Edit the attributes of more than one item in the catalog. - Remove an item from the catalog. - Remove more than one item from the catalog. **Note:** For more information, see [our documentation on managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs#displaying-the-details-and-content-of-a-catalog) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoe\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100 }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\" }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of several items at once</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing several items from the catalog at once</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> + * Perform one or more of the following actions for a given cart item catalog: - Adding an item to the catalog. - Adding several items to the catalog. - Editing the attributes of an item in the catalog. - Editing the attributes of several items in the catalog. - Removing an item from the catalog. - Removing several items from the catalog. You can add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique `SKU`. **Important**: Syncing items with duplicate `SKU` values in a single request returns an error message with a `400` status code. For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Adding several items to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241027\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" }, { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\", \"product\": { \"name\": \"sneakers\" } }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Editing the attributes of several items in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing several items from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> * * @throws ApiException * if the Api call fails @@ -498,7 +499,7 @@ public void updateAudienceV2Test() throws ApiException { /** * Update multiple customer profiles' audiences * - * Update the specified customer profiles with the specified audiences. Use this endpoint when customers join or leave audiences. The limit of customer profiles per request is 1000. **Note:** You can also add customer profiles to or remove them from an audience using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. + * Add customer profiles to or remove them from an audience. The endpoint supports 1000 audience actions (`add` or `remove`) per request. **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. * * @throws ApiException * if the Api call fails @@ -560,7 +561,8 @@ public void updateCustomerSessionV2Test() throws ApiException { String customerSessionId = null; IntegrationRequest body = null; Boolean dry = null; - IntegrationStateV2 response = api.updateCustomerSessionV2(customerSessionId, body, dry); + OffsetDateTime now = null; + IntegrationStateV2 response = api.updateCustomerSessionV2(customerSessionId, body, dry, now); // TODO: test validations } diff --git a/src/test/java/one/talon/api/ManagementApiTest.java b/src/test/java/one/talon/api/ManagementApiTest.java index 8408caca..4fe2afcf 100644 --- a/src/test/java/one/talon/api/ManagementApiTest.java +++ b/src/test/java/one/talon/api/ManagementApiTest.java @@ -17,6 +17,7 @@ import one.talon.model.Account; import one.talon.model.AccountAdditionalCost; import one.talon.model.AccountAnalytics; +import one.talon.model.Achievement; import one.talon.model.AddLoyaltyPoints; import one.talon.model.Application; import one.talon.model.ApplicationApiHealth; @@ -28,16 +29,20 @@ import java.math.BigDecimal; import one.talon.model.Campaign; import one.talon.model.CampaignCopy; +import one.talon.model.CampaignGroup; import one.talon.model.CampaignSearch; import one.talon.model.Collection; import one.talon.model.Coupon; +import one.talon.model.CreateAchievement; import one.talon.model.CreateTemplateCampaign; import one.talon.model.CreateTemplateCampaignResponse; import one.talon.model.CustomerActivityReport; import one.talon.model.CustomerAnalytics; import one.talon.model.CustomerProfile; import one.talon.model.CustomerProfileSearchQuery; +import one.talon.model.DeactivateUserRequest; import one.talon.model.DeductLoyaltyPoints; +import one.talon.model.DeleteUserRequest; import one.talon.model.ErrorResponse; import one.talon.model.ErrorResponseWithStatus; import one.talon.model.InlineResponse20010; @@ -74,6 +79,10 @@ import one.talon.model.InlineResponse20041; import one.talon.model.InlineResponse20042; import one.talon.model.InlineResponse20043; +import one.talon.model.InlineResponse20044; +import one.talon.model.InlineResponse20045; +import one.talon.model.InlineResponse20046; +import one.talon.model.InlineResponse20047; import one.talon.model.InlineResponse2005; import one.talon.model.InlineResponse2006; import one.talon.model.InlineResponse2007; @@ -93,6 +102,8 @@ import one.talon.model.NewCouponCreationJob; import one.talon.model.NewCoupons; import one.talon.model.NewCouponsForMultipleRecipients; +import one.talon.model.NewInvitation; +import one.talon.model.NewInviteEmail; import one.talon.model.NewPassword; import one.talon.model.NewPasswordEmail; import one.talon.model.NewStore; @@ -100,10 +111,13 @@ import org.threeten.bp.OffsetDateTime; import one.talon.model.Referral; import one.talon.model.Role; +import one.talon.model.RoleV2; +import one.talon.model.RoleV2Base; import one.talon.model.Ruleset; import one.talon.model.Session; import one.talon.model.Store; import one.talon.model.TransferLoyaltyCard; +import one.talon.model.UpdateAchievement; import one.talon.model.UpdateCampaign; import one.talon.model.UpdateCampaignCollection; import one.talon.model.UpdateCollection; @@ -111,6 +125,7 @@ import one.talon.model.UpdateCouponBatch; import one.talon.model.UpdateLoyaltyCard; import one.talon.model.UpdateReferral; +import one.talon.model.UpdateUser; import one.talon.model.User; import one.talon.model.Webhook; import org.junit.Test; @@ -200,6 +215,24 @@ public void createAccountCollectionTest() throws ApiException { // TODO: test validations } + /** + * Create achievement + * + * Create a new achievement in a specific campaign. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createAchievementTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + CreateAchievement body = null; + Achievement response = api.createAchievement(applicationId, campaignId, body); + + // TODO: test validations + } + /** * Create additional cost * @@ -323,6 +356,38 @@ public void createCouponsForMultipleRecipientsTest() throws ApiException { // TODO: test validations } + /** + * Resend invitation email + * + * Resend an email invitation to an existing user. **Note:** The invitation token is valid for 24 hours after the email has been sent. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createInviteEmailTest() throws ApiException { + NewInviteEmail body = null; + NewInviteEmail response = api.createInviteEmail(body); + + // TODO: test validations + } + + /** + * Invite user + * + * Create a new user in the account and send an invitation to their email address. **Note**: The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the [Resend invitation email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) endpoint. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createInviteV2Test() throws ApiException { + NewInvitation body = null; + User response = api.createInviteV2(body); + + // TODO: test validations + } + /** * Request a password reset * @@ -372,6 +437,22 @@ public void createStoreTest() throws ApiException { // TODO: test validations } + /** + * Deactivate user by email address + * + * Deactivate a specific user by their email address. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deactivateUserByEmailTest() throws ApiException { + DeactivateUserRequest body = null; + api.deactivateUserByEmail(body); + + // TODO: test validations + } + /** * Deduct points from card * @@ -406,6 +487,24 @@ public void deleteAccountCollectionTest() throws ApiException { // TODO: test validations } + /** + * Delete achievement + * + * Delete the specified achievement. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteAchievementTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + Integer achievementId = null; + api.deleteAchievement(applicationId, campaignId, achievementId); + + // TODO: test validations + } + /** * Delete campaign * @@ -541,6 +640,38 @@ public void deleteStoreTest() throws ApiException { // TODO: test validations } + /** + * Delete user + * + * Delete a specific user. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteUserTest() throws ApiException { + Integer userId = null; + api.deleteUser(userId); + + // TODO: test validations + } + + /** + * Delete user by email address + * + * Delete a specific user by their email address. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteUserByEmailTest() throws ApiException { + DeleteUserRequest body = null; + api.deleteUserByEmail(body); + + // TODO: test validations + } + /** * Destroy session * @@ -572,6 +703,40 @@ public void exportAccountCollectionItemsTest() throws ApiException { // TODO: test validations } + /** + * Export achievement customer data + * + * Download a CSV file containing a list of all the customers who have participated in and are currently participating in the given achievement. The CSV file contains the following columns: - `profileIntegrationID`: The integration ID of the customer profile participating in the achievement. - `title`: The display name of the achievement in the Campaign Manager. - `target`: The required number of actions or the transactional milestone to complete the achievement. - `progress`: The current progress of the customer in the achievement. - `status`: The status of the achievement. Can be one of: ['inprogress', 'completed', 'expired']. - `startDate`: The date on which the customer profile started the achievement in RFC3339. - `endDate`: The date on which the achievement ends and resets for the customer profile in RFC3339. - `completionDate`: The date on which the customer profile completed the achievement in RFC3339. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void exportAchievementsTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + Integer achievementId = null; + String response = api.exportAchievements(applicationId, campaignId, achievementId); + + // TODO: test validations + } + + /** + * Export audience members + * + * Download a CSV file containing the integration IDs of the members of an audience. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The file contains the following column: - `profileintegrationid`: The integration ID of the customer profile. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void exportAudiencesMembershipsTest() throws ApiException { + Integer audienceId = null; + String response = api.exportAudiencesMemberships(audienceId); + + // TODO: test validations + } + /** * Export campaign-level collection's items * @@ -753,7 +918,7 @@ public void exportLoyaltyCardLedgerTest() throws ApiException { /** * Export customer's transaction logs * - * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The type of the loyalty program. - `name`: The name of the loyalty program. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. + * Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The type of the loyalty program. - `name`: The name of the loyalty program. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign. * * @throws ApiException * if the Api call fails @@ -883,6 +1048,24 @@ public void getAccountCollectionTest() throws ApiException { // TODO: test validations } + /** + * Get achievement + * + * Get the details of a specific achievement. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAchievementTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + Integer achievementId = null; + Achievement response = api.getAchievement(applicationId, campaignId, achievementId); + + // TODO: test validations + } + /** * Get additional cost * @@ -912,7 +1095,7 @@ public void getAdditionalCostsTest() throws ApiException { Integer pageSize = null; Integer skip = null; String sort = null; - InlineResponse20034 response = api.getAdditionalCosts(pageSize, skip, sort); + InlineResponse20036 response = api.getAdditionalCosts(pageSize, skip, sort); // TODO: test validations } @@ -950,7 +1133,7 @@ public void getAllAccessLogsTest() throws ApiException { */ @Test public void getAllRolesTest() throws ApiException { - InlineResponse20042 response = api.getAllRoles(); + InlineResponse20044 response = api.getAllRoles(); // TODO: test validations } @@ -1020,7 +1203,7 @@ public void getApplicationCustomerFriendsTest() throws ApiException { Integer skip = null; String sort = null; Boolean withTotalResultSize = null; - InlineResponse20031 response = api.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); + InlineResponse20033 response = api.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); // TODO: test validations } @@ -1152,7 +1335,8 @@ public void getApplicationSessionsTest() throws ApiException { String coupon = null; String referral = null; String integrationId = null; - InlineResponse20027 response = api.getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId); + String storeIntegrationId = null; + InlineResponse20027 response = api.getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId); // TODO: test validations } @@ -1205,7 +1389,27 @@ public void getAttributesTest() throws ApiException { Integer skip = null; String sort = null; String entity = null; - InlineResponse20032 response = api.getAttributes(pageSize, skip, sort, entity); + InlineResponse20034 response = api.getAttributes(pageSize, skip, sort, entity); + + // TODO: test validations + } + + /** + * List audience members + * + * Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAudienceMembershipsTest() throws ApiException { + Integer audienceId = null; + Integer pageSize = null; + Integer skip = null; + String sort = null; + String profileQuery = null; + InlineResponse20032 response = api.getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery); // TODO: test validations } @@ -1229,6 +1433,23 @@ public void getAudiencesTest() throws ApiException { // TODO: test validations } + /** + * List audience analytics + * + * Get a list of audience IDs and their member count. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAudiencesAnalyticsTest() throws ApiException { + String audienceIds = null; + String sort = null; + InlineResponse20031 response = api.getAudiencesAnalytics(audienceIds, sort); + + // TODO: test validations + } + /** * Get campaign * @@ -1287,6 +1508,40 @@ public void getCampaignByAttributesTest() throws ApiException { // TODO: test validations } + /** + * Get campaign access group + * + * Get a campaign access group specified by its ID. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCampaignGroupTest() throws ApiException { + Integer campaignGroupId = null; + CampaignGroup response = api.getCampaignGroup(campaignGroupId); + + // TODO: test validations + } + + /** + * List campaign access groups + * + * List the campaign access groups in the current account. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCampaignGroupsTest() throws ApiException { + Integer pageSize = null; + Integer skip = null; + String sort = null; + InlineResponse20011 response = api.getCampaignGroups(pageSize, skip, sort); + + // TODO: test validations + } + /** * List campaign templates * @@ -1304,7 +1559,7 @@ public void getCampaignTemplatesTest() throws ApiException { String name = null; String tags = null; Integer userId = null; - InlineResponse20011 response = api.getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId); + InlineResponse20012 response = api.getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId); // TODO: test validations } @@ -1357,7 +1612,7 @@ public void getChangesTest() throws ApiException { Boolean withTotalResultSize = null; Integer managementKeyId = null; Boolean includeOld = null; - InlineResponse20040 response = api.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); + InlineResponse20042 response = api.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); // TODO: test validations } @@ -1393,7 +1648,7 @@ public void getCollectionItemsTest() throws ApiException { Integer collectionId = null; Integer pageSize = null; Integer skip = null; - InlineResponse20017 response = api.getCollectionItems(collectionId, pageSize, skip); + InlineResponse20018 response = api.getCollectionItems(collectionId, pageSize, skip); // TODO: test validations } @@ -1509,6 +1764,27 @@ public void getCustomerProfileTest() throws ApiException { // TODO: test validations } + /** + * List customer achievements + * + * For the given customer profile, list all the achievements that match your filter criteria. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCustomerProfileAchievementProgressTest() throws ApiException { + Integer applicationId = null; + String integrationId = null; + Integer pageSize = null; + Integer skip = null; + Integer achievementId = null; + String title = null; + InlineResponse20047 response = api.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); + + // TODO: test validations + } + /** * List customer profiles * @@ -1561,7 +1837,7 @@ public void getEventTypesTest() throws ApiException { Integer pageSize = null; Integer skip = null; String sort = null; - InlineResponse20038 response = api.getEventTypes(name, includeOldVersions, pageSize, skip, sort); + InlineResponse20040 response = api.getEventTypes(name, includeOldVersions, pageSize, skip, sort); // TODO: test validations } @@ -1581,7 +1857,7 @@ public void getExportsTest() throws ApiException { BigDecimal applicationId = null; Integer campaignId = null; String entity = null; - InlineResponse20041 response = api.getExports(pageSize, skip, applicationId, campaignId, entity); + InlineResponse20043 response = api.getExports(pageSize, skip, applicationId, campaignId, entity); // TODO: test validations } @@ -1620,7 +1896,7 @@ public void getLoyaltyCardTransactionLogsTest() throws ApiException { Integer pageSize = null; Integer skip = null; String subledgerId = null; - InlineResponse20015 response = api.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); + InlineResponse20016 response = api.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); // TODO: test validations } @@ -1641,7 +1917,7 @@ public void getLoyaltyCardsTest() throws ApiException { String sort = null; String identifier = null; Integer profileId = null; - InlineResponse20014 response = api.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId); + InlineResponse20015 response = api.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId); // TODO: test validations } @@ -1682,7 +1958,7 @@ public void getLoyaltyProgramTest() throws ApiException { /** * List loyalty program transactions * - * Retrieve all loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * Retrieve loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. **Note:** If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). * * @throws ApiException * if the Api call fails @@ -1696,7 +1972,7 @@ public void getLoyaltyProgramTransactionsTest() throws ApiException { OffsetDateTime endDate = null; Integer pageSize = null; Integer skip = null; - InlineResponse20013 response = api.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); + InlineResponse20014 response = api.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); // TODO: test validations } @@ -1711,7 +1987,7 @@ public void getLoyaltyProgramTransactionsTest() throws ApiException { */ @Test public void getLoyaltyProgramsTest() throws ApiException { - InlineResponse20012 response = api.getLoyaltyPrograms(); + InlineResponse20013 response = api.getLoyaltyPrograms(); // TODO: test validations } @@ -1858,7 +2134,7 @@ public void getUsersTest() throws ApiException { Integer pageSize = null; Integer skip = null; String sort = null; - InlineResponse20039 response = api.getUsers(pageSize, skip, sort); + InlineResponse20041 response = api.getUsers(pageSize, skip, sort); // TODO: test validations } @@ -1898,7 +2174,7 @@ public void getWebhookActivationLogsTest() throws ApiException { BigDecimal campaignId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; - InlineResponse20036 response = api.getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter); + InlineResponse20038 response = api.getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter); // TODO: test validations } @@ -1923,7 +2199,7 @@ public void getWebhookLogsTest() throws ApiException { String requestUuid = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; - InlineResponse20037 response = api.getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter); + InlineResponse20039 response = api.getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter); // TODO: test validations } @@ -1946,7 +2222,7 @@ public void getWebhooksTest() throws ApiException { String visibility = null; Integer outgoingIntegrationsTypeId = null; String title = null; - InlineResponse20035 response = api.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); + InlineResponse20037 response = api.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); // TODO: test validations } @@ -1985,6 +2261,23 @@ public void importAllowedListTest() throws ApiException { // TODO: test validations } + /** + * Import audience members + * + * Upload a CSV file containing the integration IDs of the members you want to add to an audience. The file should be sent as multipart data and should contain only the following column (required): - `profileintegrationid`: The integration ID of the customer profile. The import **replaces** the previous list of audience members. **Note:** We recommend limiting your file size to 500MB. Example: ```text profileintegrationid charles alexa ``` + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void importAudiencesMembershipsTest() throws ApiException { + Integer audienceId = null; + String upFile = null; + ModelImport response = api.importAudiencesMemberships(audienceId, upFile); + + // TODO: test validations + } + /** * Import data into existing campaign-level collection * @@ -2016,8 +2309,9 @@ public void importCollectionTest() throws ApiException { public void importCouponsTest() throws ApiException { Integer applicationId = null; Integer campaignId = null; + Boolean skipDuplicates = null; String upFile = null; - ModelImport response = api.importCoupons(applicationId, campaignId, upFile); + ModelImport response = api.importCoupons(applicationId, campaignId, skipDuplicates, upFile); // TODO: test validations } @@ -2042,7 +2336,7 @@ public void importLoyaltyCardsTest() throws ApiException { /** * Import customers into loyalty tiers * - * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in a tier, the customer is assigned to match the new information provided in the CSV file. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` + * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. **Note:** We recommend not using this endpoint to update the tier of a customer. To update a customer's tier, you can [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their loyalty points. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` * * @throws ApiException * if the Api call fails @@ -2059,7 +2353,7 @@ public void importLoyaltyCustomersTiersTest() throws ApiException { /** * Import loyalty points * - * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the loyalty program type, you can import the points into a given customer profile or into a given _active_ loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` + * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` * * @throws ApiException * if the Api call fails @@ -2123,7 +2417,27 @@ public void listAccountCollectionsTest() throws ApiException { String sort = null; Boolean withTotalResultSize = null; String name = null; - InlineResponse20016 response = api.listAccountCollections(pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20017 response = api.listAccountCollections(pageSize, skip, sort, withTotalResultSize, name); + + // TODO: test validations + } + + /** + * List achievements + * + * List all the achievements for a specific campaign. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listAchievementsTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + Integer pageSize = null; + Integer skip = null; + String title = null; + InlineResponse20046 response = api.listAchievements(applicationId, campaignId, pageSize, skip, title); // TODO: test validations } @@ -2142,8 +2456,9 @@ public void listCatalogItemsTest() throws ApiException { Integer pageSize = null; Integer skip = null; Boolean withTotalResultSize = null; - String sku = null; - InlineResponse20033 response = api.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku); + List sku = null; + List productNames = null; + InlineResponse20035 response = api.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); // TODO: test validations } @@ -2165,7 +2480,7 @@ public void listCollectionsTest() throws ApiException { String sort = null; Boolean withTotalResultSize = null; String name = null; - InlineResponse20018 response = api.listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20017 response = api.listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); // TODO: test validations } @@ -2186,7 +2501,7 @@ public void listCollectionsInApplicationTest() throws ApiException { String sort = null; Boolean withTotalResultSize = null; String name = null; - InlineResponse20018 response = api.listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20017 response = api.listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name); // TODO: test validations } @@ -2209,7 +2524,8 @@ public void listStoresTest() throws ApiException { BigDecimal campaignId = null; String name = null; String integrationId = null; - InlineResponse20043 response = api.listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId); + String query = null; + InlineResponse20045 response = api.listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query); // TODO: test validations } @@ -2234,7 +2550,7 @@ public void notificationActivationTest() throws ApiException { /** * Create notification about added or deducted loyalty points * - * Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). + * Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). * * @throws ApiException * if the Api call fails @@ -2268,7 +2584,7 @@ public void postCatalogsStrikethroughNotificationTest() throws ApiException { /** * Create notification about pending loyalty points * - * Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-loyalty-notifications). + * Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications). * * @throws ApiException * if the Api call fails @@ -2411,6 +2727,25 @@ public void updateAccountCollectionTest() throws ApiException { // TODO: test validations } + /** + * Update achievement + * + * Update the details of a specific achievement. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateAchievementTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + Integer achievementId = null; + UpdateAchievement body = null; + Achievement response = api.updateAchievement(applicationId, campaignId, achievementId, body); + + // TODO: test validations + } + /** * Update additional cost * @@ -2556,6 +2891,23 @@ public void updateReferralTest() throws ApiException { // TODO: test validations } + /** + * Update role + * + * Update a specific role. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateRoleV2Test() throws ApiException { + Integer roleId = null; + RoleV2Base body = null; + RoleV2 response = api.updateRoleV2(roleId, body); + + // TODO: test validations + } + /** * Update store * @@ -2574,4 +2926,21 @@ public void updateStoreTest() throws ApiException { // TODO: test validations } + /** + * Update user + * + * Update the details of a specific user. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateUserTest() throws ApiException { + Integer userId = null; + UpdateUser body = null; + User response = api.updateUser(userId, body); + + // TODO: test validations + } + } diff --git a/src/test/java/one/talon/model/AccountDashboardStatisticTest.java b/src/test/java/one/talon/model/AccountDashboardStatisticTest.java index 661d62b7..f25b2227 100644 --- a/src/test/java/one/talon/model/AccountDashboardStatisticTest.java +++ b/src/test/java/one/talon/model/AccountDashboardStatisticTest.java @@ -23,7 +23,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AccountDashboardStatisticApiCalls; import one.talon.model.AccountDashboardStatisticCampaigns; import one.talon.model.AccountDashboardStatisticDiscount; import one.talon.model.AccountDashboardStatisticLoyaltyPoints; @@ -80,14 +79,6 @@ public void referralsTest() { // TODO: test referrals } - /** - * Test the property 'apiCalls' - */ - @Test - public void apiCallsTest() { - // TODO: test apiCalls - } - /** * Test the property 'campaigns' */ diff --git a/src/test/java/one/talon/model/AchievementAdditionalPropertiesTest.java b/src/test/java/one/talon/model/AchievementAdditionalPropertiesTest.java index ebd9cbab..0f54852b 100644 --- a/src/test/java/one/talon/model/AchievementAdditionalPropertiesTest.java +++ b/src/test/java/one/talon/model/AchievementAdditionalPropertiesTest.java @@ -40,6 +40,14 @@ public void testAchievementAdditionalProperties() { // TODO: test AchievementAdditionalProperties } + /** + * Test the property 'campaignId' + */ + @Test + public void campaignIdTest() { + // TODO: test campaignId + } + /** * Test the property 'userId' */ @@ -56,4 +64,12 @@ public void createdByTest() { // TODO: test createdBy } + /** + * Test the property 'hasProgress' + */ + @Test + public void hasProgressTest() { + // TODO: test hasProgress + } + } diff --git a/src/test/java/one/talon/model/AchievementProgressTest.java b/src/test/java/one/talon/model/AchievementProgressTest.java new file mode 100644 index 00000000..4f168160 --- /dev/null +++ b/src/test/java/one/talon/model/AchievementProgressTest.java @@ -0,0 +1,125 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AchievementProgress + */ +public class AchievementProgressTest { + private final AchievementProgress model = new AchievementProgress(); + + /** + * Model tests for AchievementProgress + */ + @Test + public void testAchievementProgress() { + // TODO: test AchievementProgress + } + + /** + * Test the property 'achievementId' + */ + @Test + public void achievementIdTest() { + // TODO: test achievementId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'campaignId' + */ + @Test + public void campaignIdTest() { + // TODO: test campaignId + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } + + /** + * Test the property 'progress' + */ + @Test + public void progressTest() { + // TODO: test progress + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'completionDate' + */ + @Test + public void completionDateTest() { + // TODO: test completionDate + } + + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } + +} diff --git a/src/test/java/one/talon/model/AchievementTest.java b/src/test/java/one/talon/model/AchievementTest.java index d36d6b0f..6bd5adc0 100644 --- a/src/test/java/one/talon/model/AchievementTest.java +++ b/src/test/java/one/talon/model/AchievementTest.java @@ -107,6 +107,14 @@ public void periodEndOverrideTest() { // TODO: test periodEndOverride } + /** + * Test the property 'campaignId' + */ + @Test + public void campaignIdTest() { + // TODO: test campaignId + } + /** * Test the property 'userId' */ @@ -123,4 +131,12 @@ public void createdByTest() { // TODO: test createdBy } + /** + * Test the property 'hasProgress' + */ + @Test + public void hasProgressTest() { + // TODO: test hasProgress + } + } diff --git a/src/test/java/one/talon/model/AddItemCatalogActionTest.java b/src/test/java/one/talon/model/AddItemCatalogActionTest.java index 3601594f..aae4fdd1 100644 --- a/src/test/java/one/talon/model/AddItemCatalogActionTest.java +++ b/src/test/java/one/talon/model/AddItemCatalogActionTest.java @@ -22,6 +22,7 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import one.talon.model.Product; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -65,6 +66,14 @@ public void attributesTest() { // TODO: test attributes } + /** + * Test the property 'product' + */ + @Test + public void productTest() { + // TODO: test product + } + /** * Test the property 'replaceIfExists' */ diff --git a/src/test/java/one/talon/model/AdditionalCampaignPropertiesTest.java b/src/test/java/one/talon/model/AdditionalCampaignPropertiesTest.java index e50e8d70..982ef00c 100644 --- a/src/test/java/one/talon/model/AdditionalCampaignPropertiesTest.java +++ b/src/test/java/one/talon/model/AdditionalCampaignPropertiesTest.java @@ -213,4 +213,12 @@ public void templateIdTest() { // TODO: test templateId } + /** + * Test the property 'frontendState' + */ + @Test + public void frontendStateTest() { + // TODO: test frontendState + } + } diff --git a/src/test/java/one/talon/model/ApplicationAPIKeyTest.java b/src/test/java/one/talon/model/ApplicationAPIKeyTest.java index f06d564f..ba5ac385 100644 --- a/src/test/java/one/talon/model/ApplicationAPIKeyTest.java +++ b/src/test/java/one/talon/model/ApplicationAPIKeyTest.java @@ -65,6 +65,22 @@ public void platformTest() { // TODO: test platform } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'timeOffset' + */ + @Test + public void timeOffsetTest() { + // TODO: test timeOffset + } + /** * Test the property 'id' */ diff --git a/src/test/java/one/talon/model/ApplicationAnalyticsDataPointAvgItemsPerSessionTest.java b/src/test/java/one/talon/model/ApplicationAnalyticsDataPointAvgItemsPerSessionTest.java new file mode 100644 index 00000000..eaa47217 --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationAnalyticsDataPointAvgItemsPerSessionTest.java @@ -0,0 +1,60 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationAnalyticsDataPointAvgItemsPerSession + */ +public class ApplicationAnalyticsDataPointAvgItemsPerSessionTest { + private final ApplicationAnalyticsDataPointAvgItemsPerSession model = new ApplicationAnalyticsDataPointAvgItemsPerSession(); + + /** + * Model tests for ApplicationAnalyticsDataPointAvgItemsPerSession + */ + @Test + public void testApplicationAnalyticsDataPointAvgItemsPerSession() { + // TODO: test ApplicationAnalyticsDataPointAvgItemsPerSession + } + + /** + * Test the property 'total' + */ + @Test + public void totalTest() { + // TODO: test total + } + + /** + * Test the property 'influenced' + */ + @Test + public void influencedTest() { + // TODO: test influenced + } + +} diff --git a/src/test/java/one/talon/model/ApplicationAnalyticsDataPointAvgSessionValueTest.java b/src/test/java/one/talon/model/ApplicationAnalyticsDataPointAvgSessionValueTest.java new file mode 100644 index 00000000..97815df5 --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationAnalyticsDataPointAvgSessionValueTest.java @@ -0,0 +1,60 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationAnalyticsDataPointAvgSessionValue + */ +public class ApplicationAnalyticsDataPointAvgSessionValueTest { + private final ApplicationAnalyticsDataPointAvgSessionValue model = new ApplicationAnalyticsDataPointAvgSessionValue(); + + /** + * Model tests for ApplicationAnalyticsDataPointAvgSessionValue + */ + @Test + public void testApplicationAnalyticsDataPointAvgSessionValue() { + // TODO: test ApplicationAnalyticsDataPointAvgSessionValue + } + + /** + * Test the property 'total' + */ + @Test + public void totalTest() { + // TODO: test total + } + + /** + * Test the property 'influenced' + */ + @Test + public void influencedTest() { + // TODO: test influenced + } + +} diff --git a/src/test/java/one/talon/model/ApplicationAnalyticsDataPointSessionsCountTest.java b/src/test/java/one/talon/model/ApplicationAnalyticsDataPointSessionsCountTest.java new file mode 100644 index 00000000..72f699ae --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationAnalyticsDataPointSessionsCountTest.java @@ -0,0 +1,60 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationAnalyticsDataPointSessionsCount + */ +public class ApplicationAnalyticsDataPointSessionsCountTest { + private final ApplicationAnalyticsDataPointSessionsCount model = new ApplicationAnalyticsDataPointSessionsCount(); + + /** + * Model tests for ApplicationAnalyticsDataPointSessionsCount + */ + @Test + public void testApplicationAnalyticsDataPointSessionsCount() { + // TODO: test ApplicationAnalyticsDataPointSessionsCount + } + + /** + * Test the property 'total' + */ + @Test + public void totalTest() { + // TODO: test total + } + + /** + * Test the property 'influenced' + */ + @Test + public void influencedTest() { + // TODO: test influenced + } + +} diff --git a/src/test/java/one/talon/model/ApplicationAnalyticsDataPointTest.java b/src/test/java/one/talon/model/ApplicationAnalyticsDataPointTest.java new file mode 100644 index 00000000..5c85e7c9 --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationAnalyticsDataPointTest.java @@ -0,0 +1,113 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import one.talon.model.ApplicationAnalyticsDataPointAvgItemsPerSession; +import one.talon.model.ApplicationAnalyticsDataPointAvgSessionValue; +import one.talon.model.ApplicationAnalyticsDataPointSessionsCount; +import one.talon.model.ApplicationAnalyticsDataPointTotalRevenue; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationAnalyticsDataPoint + */ +public class ApplicationAnalyticsDataPointTest { + private final ApplicationAnalyticsDataPoint model = new ApplicationAnalyticsDataPoint(); + + /** + * Model tests for ApplicationAnalyticsDataPoint + */ + @Test + public void testApplicationAnalyticsDataPoint() { + // TODO: test ApplicationAnalyticsDataPoint + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'totalRevenue' + */ + @Test + public void totalRevenueTest() { + // TODO: test totalRevenue + } + + /** + * Test the property 'sessionsCount' + */ + @Test + public void sessionsCountTest() { + // TODO: test sessionsCount + } + + /** + * Test the property 'avgItemsPerSession' + */ + @Test + public void avgItemsPerSessionTest() { + // TODO: test avgItemsPerSession + } + + /** + * Test the property 'avgSessionValue' + */ + @Test + public void avgSessionValueTest() { + // TODO: test avgSessionValue + } + + /** + * Test the property 'totalDiscounts' + */ + @Test + public void totalDiscountsTest() { + // TODO: test totalDiscounts + } + + /** + * Test the property 'couponsCount' + */ + @Test + public void couponsCountTest() { + // TODO: test couponsCount + } + +} diff --git a/src/test/java/one/talon/model/ApplicationAnalyticsDataPointTotalRevenueTest.java b/src/test/java/one/talon/model/ApplicationAnalyticsDataPointTotalRevenueTest.java new file mode 100644 index 00000000..1ee67fd7 --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationAnalyticsDataPointTotalRevenueTest.java @@ -0,0 +1,60 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationAnalyticsDataPointTotalRevenue + */ +public class ApplicationAnalyticsDataPointTotalRevenueTest { + private final ApplicationAnalyticsDataPointTotalRevenue model = new ApplicationAnalyticsDataPointTotalRevenue(); + + /** + * Model tests for ApplicationAnalyticsDataPointTotalRevenue + */ + @Test + public void testApplicationAnalyticsDataPointTotalRevenue() { + // TODO: test ApplicationAnalyticsDataPointTotalRevenue + } + + /** + * Test the property 'total' + */ + @Test + public void totalTest() { + // TODO: test total + } + + /** + * Test the property 'influenced' + */ + @Test + public void influencedTest() { + // TODO: test influenced + } + +} diff --git a/src/test/java/one/talon/model/ApplicationCampaignAnalyticsAvgItemsPerSessionTest.java b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsAvgItemsPerSessionTest.java new file mode 100644 index 00000000..004800fe --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsAvgItemsPerSessionTest.java @@ -0,0 +1,68 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationCampaignAnalyticsAvgItemsPerSession + */ +public class ApplicationCampaignAnalyticsAvgItemsPerSessionTest { + private final ApplicationCampaignAnalyticsAvgItemsPerSession model = new ApplicationCampaignAnalyticsAvgItemsPerSession(); + + /** + * Model tests for ApplicationCampaignAnalyticsAvgItemsPerSession + */ + @Test + public void testApplicationCampaignAnalyticsAvgItemsPerSession() { + // TODO: test ApplicationCampaignAnalyticsAvgItemsPerSession + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'uplift' + */ + @Test + public void upliftTest() { + // TODO: test uplift + } + + /** + * Test the property 'trend' + */ + @Test + public void trendTest() { + // TODO: test trend + } + +} diff --git a/src/test/java/one/talon/model/ApplicationCampaignAnalyticsAvgSessionValueTest.java b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsAvgSessionValueTest.java new file mode 100644 index 00000000..f6867ee7 --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsAvgSessionValueTest.java @@ -0,0 +1,68 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationCampaignAnalyticsAvgSessionValue + */ +public class ApplicationCampaignAnalyticsAvgSessionValueTest { + private final ApplicationCampaignAnalyticsAvgSessionValue model = new ApplicationCampaignAnalyticsAvgSessionValue(); + + /** + * Model tests for ApplicationCampaignAnalyticsAvgSessionValue + */ + @Test + public void testApplicationCampaignAnalyticsAvgSessionValue() { + // TODO: test ApplicationCampaignAnalyticsAvgSessionValue + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'uplift' + */ + @Test + public void upliftTest() { + // TODO: test uplift + } + + /** + * Test the property 'trend' + */ + @Test + public void trendTest() { + // TODO: test trend + } + +} diff --git a/src/test/java/one/talon/model/ApplicationCampaignAnalyticsCouponsCountTest.java b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsCouponsCountTest.java new file mode 100644 index 00000000..7d9500cd --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsCouponsCountTest.java @@ -0,0 +1,60 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationCampaignAnalyticsCouponsCount + */ +public class ApplicationCampaignAnalyticsCouponsCountTest { + private final ApplicationCampaignAnalyticsCouponsCount model = new ApplicationCampaignAnalyticsCouponsCount(); + + /** + * Model tests for ApplicationCampaignAnalyticsCouponsCount + */ + @Test + public void testApplicationCampaignAnalyticsCouponsCount() { + // TODO: test ApplicationCampaignAnalyticsCouponsCount + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'trend' + */ + @Test + public void trendTest() { + // TODO: test trend + } + +} diff --git a/src/test/java/one/talon/model/ApplicationCampaignAnalyticsSessionsCountTest.java b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsSessionsCountTest.java new file mode 100644 index 00000000..0ff91bbd --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsSessionsCountTest.java @@ -0,0 +1,68 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationCampaignAnalyticsSessionsCount + */ +public class ApplicationCampaignAnalyticsSessionsCountTest { + private final ApplicationCampaignAnalyticsSessionsCount model = new ApplicationCampaignAnalyticsSessionsCount(); + + /** + * Model tests for ApplicationCampaignAnalyticsSessionsCount + */ + @Test + public void testApplicationCampaignAnalyticsSessionsCount() { + // TODO: test ApplicationCampaignAnalyticsSessionsCount + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'influenceRate' + */ + @Test + public void influenceRateTest() { + // TODO: test influenceRate + } + + /** + * Test the property 'trend' + */ + @Test + public void trendTest() { + // TODO: test trend + } + +} diff --git a/src/test/java/one/talon/model/ApplicationCampaignAnalyticsTest.java b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsTest.java new file mode 100644 index 00000000..d2b896c7 --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsTest.java @@ -0,0 +1,172 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.ApplicationCampaignAnalyticsAvgItemsPerSession; +import one.talon.model.ApplicationCampaignAnalyticsAvgSessionValue; +import one.talon.model.ApplicationCampaignAnalyticsCouponsCount; +import one.talon.model.ApplicationCampaignAnalyticsSessionsCount; +import one.talon.model.ApplicationCampaignAnalyticsTotalDiscounts; +import one.talon.model.ApplicationCampaignAnalyticsTotalRevenue; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationCampaignAnalytics + */ +public class ApplicationCampaignAnalyticsTest { + private final ApplicationCampaignAnalytics model = new ApplicationCampaignAnalytics(); + + /** + * Model tests for ApplicationCampaignAnalytics + */ + @Test + public void testApplicationCampaignAnalytics() { + // TODO: test ApplicationCampaignAnalytics + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'campaignId' + */ + @Test + public void campaignIdTest() { + // TODO: test campaignId + } + + /** + * Test the property 'campaignName' + */ + @Test + public void campaignNameTest() { + // TODO: test campaignName + } + + /** + * Test the property 'campaignTags' + */ + @Test + public void campaignTagsTest() { + // TODO: test campaignTags + } + + /** + * Test the property 'campaignState' + */ + @Test + public void campaignStateTest() { + // TODO: test campaignState + } + + /** + * Test the property 'campaignActiveRulesetId' + */ + @Test + public void campaignActiveRulesetIdTest() { + // TODO: test campaignActiveRulesetId + } + + /** + * Test the property 'campaignStartTime' + */ + @Test + public void campaignStartTimeTest() { + // TODO: test campaignStartTime + } + + /** + * Test the property 'campaignEndTime' + */ + @Test + public void campaignEndTimeTest() { + // TODO: test campaignEndTime + } + + /** + * Test the property 'totalRevenue' + */ + @Test + public void totalRevenueTest() { + // TODO: test totalRevenue + } + + /** + * Test the property 'sessionsCount' + */ + @Test + public void sessionsCountTest() { + // TODO: test sessionsCount + } + + /** + * Test the property 'avgItemsPerSession' + */ + @Test + public void avgItemsPerSessionTest() { + // TODO: test avgItemsPerSession + } + + /** + * Test the property 'avgSessionValue' + */ + @Test + public void avgSessionValueTest() { + // TODO: test avgSessionValue + } + + /** + * Test the property 'totalDiscounts' + */ + @Test + public void totalDiscountsTest() { + // TODO: test totalDiscounts + } + + /** + * Test the property 'couponsCount' + */ + @Test + public void couponsCountTest() { + // TODO: test couponsCount + } + +} diff --git a/src/test/java/one/talon/model/ApplicationCampaignAnalyticsTotalDiscountsTest.java b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsTotalDiscountsTest.java new file mode 100644 index 00000000..78898a6d --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsTotalDiscountsTest.java @@ -0,0 +1,60 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationCampaignAnalyticsTotalDiscounts + */ +public class ApplicationCampaignAnalyticsTotalDiscountsTest { + private final ApplicationCampaignAnalyticsTotalDiscounts model = new ApplicationCampaignAnalyticsTotalDiscounts(); + + /** + * Model tests for ApplicationCampaignAnalyticsTotalDiscounts + */ + @Test + public void testApplicationCampaignAnalyticsTotalDiscounts() { + // TODO: test ApplicationCampaignAnalyticsTotalDiscounts + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'trend' + */ + @Test + public void trendTest() { + // TODO: test trend + } + +} diff --git a/src/test/java/one/talon/model/ApplicationCampaignAnalyticsTotalRevenueTest.java b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsTotalRevenueTest.java new file mode 100644 index 00000000..2869e962 --- /dev/null +++ b/src/test/java/one/talon/model/ApplicationCampaignAnalyticsTotalRevenueTest.java @@ -0,0 +1,68 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApplicationCampaignAnalyticsTotalRevenue + */ +public class ApplicationCampaignAnalyticsTotalRevenueTest { + private final ApplicationCampaignAnalyticsTotalRevenue model = new ApplicationCampaignAnalyticsTotalRevenue(); + + /** + * Model tests for ApplicationCampaignAnalyticsTotalRevenue + */ + @Test + public void testApplicationCampaignAnalyticsTotalRevenue() { + // TODO: test ApplicationCampaignAnalyticsTotalRevenue + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'influenceRate' + */ + @Test + public void influenceRateTest() { + // TODO: test influenceRate + } + + /** + * Test the property 'trend' + */ + @Test + public void trendTest() { + // TODO: test trend + } + +} diff --git a/src/test/java/one/talon/model/BaseCampaignTest.java b/src/test/java/one/talon/model/BaseCampaignTest.java index 421ce2d3..73316b73 100644 --- a/src/test/java/one/talon/model/BaseCampaignTest.java +++ b/src/test/java/one/talon/model/BaseCampaignTest.java @@ -149,14 +149,6 @@ public void campaignGroupsTest() { // TODO: test campaignGroups } - /** - * Test the property 'evaluationGroupId' - */ - @Test - public void evaluationGroupIdTest() { - // TODO: test evaluationGroupId - } - /** * Test the property 'type' */ diff --git a/src/test/java/one/talon/model/BaseLoyaltyProgramTest.java b/src/test/java/one/talon/model/BaseLoyaltyProgramTest.java index d10df383..ec267629 100644 --- a/src/test/java/one/talon/model/BaseLoyaltyProgramTest.java +++ b/src/test/java/one/talon/model/BaseLoyaltyProgramTest.java @@ -106,6 +106,14 @@ public void sandboxTest() { // TODO: test sandbox } + /** + * Test the property 'tiersExpirationPolicy' + */ + @Test + public void tiersExpirationPolicyTest() { + // TODO: test tiersExpirationPolicy + } + /** * Test the property 'tiersExpireIn' */ @@ -122,4 +130,12 @@ public void tiersDowngradePolicyTest() { // TODO: test tiersDowngradePolicy } + /** + * Test the property 'programJoinPolicy' + */ + @Test + public void programJoinPolicyTest() { + // TODO: test programJoinPolicy + } + } diff --git a/src/test/java/one/talon/model/CampaignCreatedNotificationTest.java b/src/test/java/one/talon/model/CampaignCreatedNotificationTest.java index 10666716..553b7753 100644 --- a/src/test/java/one/talon/model/CampaignCreatedNotificationTest.java +++ b/src/test/java/one/talon/model/CampaignCreatedNotificationTest.java @@ -21,8 +21,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import one.talon.model.Campaign; import one.talon.model.CampaignEvaluationPosition; -import one.talon.model.CampaignStateNotification; import one.talon.model.Ruleset; import org.junit.Assert; import org.junit.Ignore; diff --git a/src/test/java/one/talon/model/CampaignDeletedNotificationTest.java b/src/test/java/one/talon/model/CampaignDeletedNotificationTest.java index a56f58ff..507ded71 100644 --- a/src/test/java/one/talon/model/CampaignDeletedNotificationTest.java +++ b/src/test/java/one/talon/model/CampaignDeletedNotificationTest.java @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.CampaignStateNotification; +import one.talon.model.Campaign; import org.threeten.bp.OffsetDateTime; import org.junit.Assert; import org.junit.Ignore; diff --git a/src/test/java/one/talon/model/CampaignEditedNotificationTest.java b/src/test/java/one/talon/model/CampaignEditedNotificationTest.java index 256896a0..17d24057 100644 --- a/src/test/java/one/talon/model/CampaignEditedNotificationTest.java +++ b/src/test/java/one/talon/model/CampaignEditedNotificationTest.java @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.CampaignStateNotification; +import one.talon.model.Campaign; import one.talon.model.Ruleset; import org.junit.Assert; import org.junit.Ignore; diff --git a/src/test/java/one/talon/model/CampaignRulesetChangedNotificationTest.java b/src/test/java/one/talon/model/CampaignRulesetChangedNotificationTest.java index 0037f4c9..29cb7773 100644 --- a/src/test/java/one/talon/model/CampaignRulesetChangedNotificationTest.java +++ b/src/test/java/one/talon/model/CampaignRulesetChangedNotificationTest.java @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.CampaignStateNotification; +import one.talon.model.Campaign; import one.talon.model.Ruleset; import org.junit.Assert; import org.junit.Ignore; diff --git a/src/test/java/one/talon/model/CampaignStateChangedNotificationTest.java b/src/test/java/one/talon/model/CampaignStateChangedNotificationTest.java index 720edbde..b16716b6 100644 --- a/src/test/java/one/talon/model/CampaignStateChangedNotificationTest.java +++ b/src/test/java/one/talon/model/CampaignStateChangedNotificationTest.java @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import one.talon.model.CampaignForNotification; +import one.talon.model.Campaign; import one.talon.model.Ruleset; import org.junit.Assert; import org.junit.Ignore; diff --git a/src/test/java/one/talon/model/CampaignTest.java b/src/test/java/one/talon/model/CampaignTest.java index 2f512b03..8188805f 100644 --- a/src/test/java/one/talon/model/CampaignTest.java +++ b/src/test/java/one/talon/model/CampaignTest.java @@ -183,14 +183,6 @@ public void campaignGroupsTest() { // TODO: test campaignGroups } - /** - * Test the property 'evaluationGroupId' - */ - @Test - public void evaluationGroupIdTest() { - // TODO: test evaluationGroupId - } - /** * Test the property 'type' */ @@ -375,4 +367,12 @@ public void templateIdTest() { // TODO: test templateId } + /** + * Test the property 'frontendState' + */ + @Test + public void frontendStateTest() { + // TODO: test frontendState + } + } diff --git a/src/test/java/one/talon/model/CardExpiringPointsNotificationPolicyTest.java b/src/test/java/one/talon/model/CardExpiringPointsNotificationPolicyTest.java new file mode 100644 index 00000000..7d372c8e --- /dev/null +++ b/src/test/java/one/talon/model/CardExpiringPointsNotificationPolicyTest.java @@ -0,0 +1,70 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.CardExpiringPointsNotificationTrigger; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CardExpiringPointsNotificationPolicy + */ +public class CardExpiringPointsNotificationPolicyTest { + private final CardExpiringPointsNotificationPolicy model = new CardExpiringPointsNotificationPolicy(); + + /** + * Model tests for CardExpiringPointsNotificationPolicy + */ + @Test + public void testCardExpiringPointsNotificationPolicy() { + // TODO: test CardExpiringPointsNotificationPolicy + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'triggers' + */ + @Test + public void triggersTest() { + // TODO: test triggers + } + + /** + * Test the property 'batchingEnabled' + */ + @Test + public void batchingEnabledTest() { + // TODO: test batchingEnabled + } + +} diff --git a/src/test/java/one/talon/model/CardExpiringPointsNotificationTriggerTest.java b/src/test/java/one/talon/model/CardExpiringPointsNotificationTriggerTest.java new file mode 100644 index 00000000..2ff15b51 --- /dev/null +++ b/src/test/java/one/talon/model/CardExpiringPointsNotificationTriggerTest.java @@ -0,0 +1,59 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CardExpiringPointsNotificationTrigger + */ +public class CardExpiringPointsNotificationTriggerTest { + private final CardExpiringPointsNotificationTrigger model = new CardExpiringPointsNotificationTrigger(); + + /** + * Model tests for CardExpiringPointsNotificationTrigger + */ + @Test + public void testCardExpiringPointsNotificationTrigger() { + // TODO: test CardExpiringPointsNotificationTrigger + } + + /** + * Test the property 'amount' + */ + @Test + public void amountTest() { + // TODO: test amount + } + + /** + * Test the property 'period' + */ + @Test + public void periodTest() { + // TODO: test period + } + +} diff --git a/src/test/java/one/talon/model/CartItemTest.java b/src/test/java/one/talon/model/CartItemTest.java index cd0fb6a4..af16139f 100644 --- a/src/test/java/one/talon/model/CartItemTest.java +++ b/src/test/java/one/talon/model/CartItemTest.java @@ -26,6 +26,7 @@ import java.util.List; import java.util.Map; import one.talon.model.AdditionalCost; +import one.talon.model.Product; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -101,6 +102,14 @@ public void categoryTest() { // TODO: test category } + /** + * Test the property 'product' + */ + @Test + public void productTest() { + // TODO: test product + } + /** * Test the property 'weight' */ diff --git a/src/test/java/one/talon/model/CatalogItemTest.java b/src/test/java/one/talon/model/CatalogItemTest.java index f5d3a813..c5f39ec1 100644 --- a/src/test/java/one/talon/model/CatalogItemTest.java +++ b/src/test/java/one/talon/model/CatalogItemTest.java @@ -25,6 +25,7 @@ import java.util.ArrayList; import java.util.List; import one.talon.model.ItemAttribute; +import one.talon.model.Product; import org.threeten.bp.OffsetDateTime; import org.junit.Assert; import org.junit.Ignore; @@ -101,4 +102,12 @@ public void attributesTest() { // TODO: test attributes } + /** + * Test the property 'product' + */ + @Test + public void productTest() { + // TODO: test product + } + } diff --git a/src/test/java/one/talon/model/CouponsNotificationPolicyTest.java b/src/test/java/one/talon/model/CouponsNotificationPolicyTest.java index 1155d7d7..91587051 100644 --- a/src/test/java/one/talon/model/CouponsNotificationPolicyTest.java +++ b/src/test/java/one/talon/model/CouponsNotificationPolicyTest.java @@ -58,4 +58,12 @@ public void scopesTest() { // TODO: test scopes } + /** + * Test the property 'batchingEnabled' + */ + @Test + public void batchingEnabledTest() { + // TODO: test batchingEnabled + } + } diff --git a/src/test/java/one/talon/model/CreateApplicationAPIKeyTest.java b/src/test/java/one/talon/model/CreateApplicationAPIKeyTest.java index ecca801b..6d6c13df 100644 --- a/src/test/java/one/talon/model/CreateApplicationAPIKeyTest.java +++ b/src/test/java/one/talon/model/CreateApplicationAPIKeyTest.java @@ -65,4 +65,20 @@ public void platformTest() { // TODO: test platform } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'timeOffset' + */ + @Test + public void timeOffsetTest() { + // TODO: test timeOffset + } + } diff --git a/src/test/java/one/talon/model/CustomerInventoryTest.java b/src/test/java/one/talon/model/CustomerInventoryTest.java index bb127121..0e8b3c0a 100644 --- a/src/test/java/one/talon/model/CustomerInventoryTest.java +++ b/src/test/java/one/talon/model/CustomerInventoryTest.java @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import one.talon.model.AchievementProgress; import one.talon.model.CustomerProfile; import one.talon.model.Giveaway; import one.talon.model.InventoryCoupon; @@ -87,4 +88,12 @@ public void giveawaysTest() { // TODO: test giveaways } + /** + * Test the property 'achievements' + */ + @Test + public void achievementsTest() { + // TODO: test achievements + } + } diff --git a/src/test/java/one/talon/model/DeactivateUserRequestTest.java b/src/test/java/one/talon/model/DeactivateUserRequestTest.java new file mode 100644 index 00000000..3a3b0bf6 --- /dev/null +++ b/src/test/java/one/talon/model/DeactivateUserRequestTest.java @@ -0,0 +1,51 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for DeactivateUserRequest + */ +public class DeactivateUserRequestTest { + private final DeactivateUserRequest model = new DeactivateUserRequest(); + + /** + * Model tests for DeactivateUserRequest + */ + @Test + public void testDeactivateUserRequest() { + // TODO: test DeactivateUserRequest + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + +} diff --git a/src/test/java/one/talon/model/DeleteUserRequestTest.java b/src/test/java/one/talon/model/DeleteUserRequestTest.java new file mode 100644 index 00000000..799bdf5a --- /dev/null +++ b/src/test/java/one/talon/model/DeleteUserRequestTest.java @@ -0,0 +1,51 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for DeleteUserRequest + */ +public class DeleteUserRequestTest { + private final DeleteUserRequest model = new DeleteUserRequest(); + + /** + * Model tests for DeleteUserRequest + */ + @Test + public void testDeleteUserRequest() { + // TODO: test DeleteUserRequest + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + +} diff --git a/src/test/java/one/talon/model/EnvironmentTest.java b/src/test/java/one/talon/model/EnvironmentTest.java index 31d04870..cbdf3f7e 100644 --- a/src/test/java/one/talon/model/EnvironmentTest.java +++ b/src/test/java/one/talon/model/EnvironmentTest.java @@ -24,6 +24,7 @@ import java.util.ArrayList; import java.util.List; import one.talon.model.AccountAdditionalCost; +import one.talon.model.Achievement; import one.talon.model.Attribute; import one.talon.model.Audience; import one.talon.model.Collection; @@ -124,6 +125,14 @@ public void loyaltyProgramsTest() { // TODO: test loyaltyPrograms } + /** + * Test the property 'achievements' + */ + @Test + public void achievementsTest() { + // TODO: test achievements + } + /** * Test the property 'attributes' */ diff --git a/src/test/java/one/talon/model/ExpiringCouponsNotificationPolicyTest.java b/src/test/java/one/talon/model/ExpiringCouponsNotificationPolicyTest.java new file mode 100644 index 00000000..1cbdee96 --- /dev/null +++ b/src/test/java/one/talon/model/ExpiringCouponsNotificationPolicyTest.java @@ -0,0 +1,70 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.ExpiringCouponsNotificationTrigger; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExpiringCouponsNotificationPolicy + */ +public class ExpiringCouponsNotificationPolicyTest { + private final ExpiringCouponsNotificationPolicy model = new ExpiringCouponsNotificationPolicy(); + + /** + * Model tests for ExpiringCouponsNotificationPolicy + */ + @Test + public void testExpiringCouponsNotificationPolicy() { + // TODO: test ExpiringCouponsNotificationPolicy + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'triggers' + */ + @Test + public void triggersTest() { + // TODO: test triggers + } + + /** + * Test the property 'batchingEnabled' + */ + @Test + public void batchingEnabledTest() { + // TODO: test batchingEnabled + } + +} diff --git a/src/test/java/one/talon/model/ExpiringCouponsNotificationTriggerTest.java b/src/test/java/one/talon/model/ExpiringCouponsNotificationTriggerTest.java new file mode 100644 index 00000000..5b8d652c --- /dev/null +++ b/src/test/java/one/talon/model/ExpiringCouponsNotificationTriggerTest.java @@ -0,0 +1,59 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExpiringCouponsNotificationTrigger + */ +public class ExpiringCouponsNotificationTriggerTest { + private final ExpiringCouponsNotificationTrigger model = new ExpiringCouponsNotificationTrigger(); + + /** + * Model tests for ExpiringCouponsNotificationTrigger + */ + @Test + public void testExpiringCouponsNotificationTrigger() { + // TODO: test ExpiringCouponsNotificationTrigger + } + + /** + * Test the property 'amount' + */ + @Test + public void amountTest() { + // TODO: test amount + } + + /** + * Test the property 'period' + */ + @Test + public void periodTest() { + // TODO: test period + } + +} diff --git a/src/test/java/one/talon/model/GetIntegrationCouponRequestTest.java b/src/test/java/one/talon/model/GetIntegrationCouponRequestTest.java new file mode 100644 index 00000000..2fd62389 --- /dev/null +++ b/src/test/java/one/talon/model/GetIntegrationCouponRequestTest.java @@ -0,0 +1,61 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for GetIntegrationCouponRequest + */ +public class GetIntegrationCouponRequestTest { + private final GetIntegrationCouponRequest model = new GetIntegrationCouponRequest(); + + /** + * Model tests for GetIntegrationCouponRequest + */ + @Test + public void testGetIntegrationCouponRequest() { + // TODO: test GetIntegrationCouponRequest + } + + /** + * Test the property 'campaignIds' + */ + @Test + public void campaignIdsTest() { + // TODO: test campaignIds + } + + /** + * Test the property 'limit' + */ + @Test + public void limitTest() { + // TODO: test limit + } + +} diff --git a/src/test/java/one/talon/model/IncreaseAchievementProgressEffectPropsTest.java b/src/test/java/one/talon/model/IncreaseAchievementProgressEffectPropsTest.java new file mode 100644 index 00000000..567f51bd --- /dev/null +++ b/src/test/java/one/talon/model/IncreaseAchievementProgressEffectPropsTest.java @@ -0,0 +1,100 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for IncreaseAchievementProgressEffectProps + */ +public class IncreaseAchievementProgressEffectPropsTest { + private final IncreaseAchievementProgressEffectProps model = new IncreaseAchievementProgressEffectProps(); + + /** + * Model tests for IncreaseAchievementProgressEffectProps + */ + @Test + public void testIncreaseAchievementProgressEffectProps() { + // TODO: test IncreaseAchievementProgressEffectProps + } + + /** + * Test the property 'achievementId' + */ + @Test + public void achievementIdTest() { + // TODO: test achievementId + } + + /** + * Test the property 'achievementName' + */ + @Test + public void achievementNameTest() { + // TODO: test achievementName + } + + /** + * Test the property 'progressTrackerId' + */ + @Test + public void progressTrackerIdTest() { + // TODO: test progressTrackerId + } + + /** + * Test the property 'delta' + */ + @Test + public void deltaTest() { + // TODO: test delta + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } + + /** + * Test the property 'isJustCompleted' + */ + @Test + public void isJustCompletedTest() { + // TODO: test isJustCompleted + } + +} diff --git a/src/test/java/one/talon/model/InlineResponse20011Test.java b/src/test/java/one/talon/model/InlineResponse20011Test.java index 66a4fde6..67f247a3 100644 --- a/src/test/java/one/talon/model/InlineResponse20011Test.java +++ b/src/test/java/one/talon/model/InlineResponse20011Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CampaignTemplate; +import one.talon.model.CampaignGroup; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -44,11 +44,11 @@ public void testInlineResponse20011() { } /** - * Test the property 'hasMore' + * Test the property 'totalResultSize' */ @Test - public void hasMoreTest() { - // TODO: test hasMore + public void totalResultSizeTest() { + // TODO: test totalResultSize } /** diff --git a/src/test/java/one/talon/model/InlineResponse20012Test.java b/src/test/java/one/talon/model/InlineResponse20012Test.java index fbc2f983..8152004c 100644 --- a/src/test/java/one/talon/model/InlineResponse20012Test.java +++ b/src/test/java/one/talon/model/InlineResponse20012Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.LoyaltyProgram; +import one.talon.model.CampaignTemplate; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -44,11 +44,11 @@ public void testInlineResponse20012() { } /** - * Test the property 'totalResultSize' + * Test the property 'hasMore' */ @Test - public void totalResultSizeTest() { - // TODO: test totalResultSize + public void hasMoreTest() { + // TODO: test hasMore } /** diff --git a/src/test/java/one/talon/model/InlineResponse20013Test.java b/src/test/java/one/talon/model/InlineResponse20013Test.java index c0983fc9..28949344 100644 --- a/src/test/java/one/talon/model/InlineResponse20013Test.java +++ b/src/test/java/one/talon/model/InlineResponse20013Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.LoyaltyProgramTransaction; +import one.talon.model.LoyaltyProgram; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -44,11 +44,11 @@ public void testInlineResponse20013() { } /** - * Test the property 'hasMore' + * Test the property 'totalResultSize' */ @Test - public void hasMoreTest() { - // TODO: test hasMore + public void totalResultSizeTest() { + // TODO: test totalResultSize } /** diff --git a/src/test/java/one/talon/model/InlineResponse20014Test.java b/src/test/java/one/talon/model/InlineResponse20014Test.java index ffea3464..f077786b 100644 --- a/src/test/java/one/talon/model/InlineResponse20014Test.java +++ b/src/test/java/one/talon/model/InlineResponse20014Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.LoyaltyCard; +import one.talon.model.LoyaltyProgramTransaction; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20015Test.java b/src/test/java/one/talon/model/InlineResponse20015Test.java index 036f8289..1204f869 100644 --- a/src/test/java/one/talon/model/InlineResponse20015Test.java +++ b/src/test/java/one/talon/model/InlineResponse20015Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CardLedgerTransactionLogEntry; +import one.talon.model.LoyaltyCard; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20016Test.java b/src/test/java/one/talon/model/InlineResponse20016Test.java index 096502e9..6cf5b28e 100644 --- a/src/test/java/one/talon/model/InlineResponse20016Test.java +++ b/src/test/java/one/talon/model/InlineResponse20016Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CollectionWithoutPayload; +import one.talon.model.CardLedgerTransactionLogEntry; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -51,14 +51,6 @@ public void hasMoreTest() { // TODO: test hasMore } - /** - * Test the property 'totalResultSize' - */ - @Test - public void totalResultSizeTest() { - // TODO: test totalResultSize - } - /** * Test the property 'data' */ diff --git a/src/test/java/one/talon/model/InlineResponse20017Test.java b/src/test/java/one/talon/model/InlineResponse20017Test.java index a553b744..6ccfe25e 100644 --- a/src/test/java/one/talon/model/InlineResponse20017Test.java +++ b/src/test/java/one/talon/model/InlineResponse20017Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CollectionItem; +import one.talon.model.CollectionWithoutPayload; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -51,6 +51,14 @@ public void hasMoreTest() { // TODO: test hasMore } + /** + * Test the property 'totalResultSize' + */ + @Test + public void totalResultSizeTest() { + // TODO: test totalResultSize + } + /** * Test the property 'data' */ diff --git a/src/test/java/one/talon/model/InlineResponse20018Test.java b/src/test/java/one/talon/model/InlineResponse20018Test.java index 83b2a7a1..05fe6cff 100644 --- a/src/test/java/one/talon/model/InlineResponse20018Test.java +++ b/src/test/java/one/talon/model/InlineResponse20018Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Collection; +import one.talon.model.CollectionItem; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -51,14 +51,6 @@ public void hasMoreTest() { // TODO: test hasMore } - /** - * Test the property 'totalResultSize' - */ - @Test - public void totalResultSizeTest() { - // TODO: test totalResultSize - } - /** * Test the property 'data' */ diff --git a/src/test/java/one/talon/model/InlineResponse20031Test.java b/src/test/java/one/talon/model/InlineResponse20031Test.java index cba73617..fe3185e1 100644 --- a/src/test/java/one/talon/model/InlineResponse20031Test.java +++ b/src/test/java/one/talon/model/InlineResponse20031Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.ApplicationReferee; +import one.talon.model.AudienceAnalytics; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -51,14 +51,6 @@ public void hasMoreTest() { // TODO: test hasMore } - /** - * Test the property 'totalResultSize' - */ - @Test - public void totalResultSizeTest() { - // TODO: test totalResultSize - } - /** * Test the property 'data' */ diff --git a/src/test/java/one/talon/model/InlineResponse20032Test.java b/src/test/java/one/talon/model/InlineResponse20032Test.java index 7e0d37c1..a0118fc1 100644 --- a/src/test/java/one/talon/model/InlineResponse20032Test.java +++ b/src/test/java/one/talon/model/InlineResponse20032Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Attribute; +import one.talon.model.CustomerProfile; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -44,11 +44,11 @@ public void testInlineResponse20032() { } /** - * Test the property 'totalResultSize' + * Test the property 'hasMore' */ @Test - public void totalResultSizeTest() { - // TODO: test totalResultSize + public void hasMoreTest() { + // TODO: test hasMore } /** diff --git a/src/test/java/one/talon/model/InlineResponse20033Test.java b/src/test/java/one/talon/model/InlineResponse20033Test.java index 4b92553f..149eddee 100644 --- a/src/test/java/one/talon/model/InlineResponse20033Test.java +++ b/src/test/java/one/talon/model/InlineResponse20033Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CatalogItem; +import one.talon.model.ApplicationReferee; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20034Test.java b/src/test/java/one/talon/model/InlineResponse20034Test.java index 847bb84f..d33e6c79 100644 --- a/src/test/java/one/talon/model/InlineResponse20034Test.java +++ b/src/test/java/one/talon/model/InlineResponse20034Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AccountAdditionalCost; +import one.talon.model.Attribute; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20035Test.java b/src/test/java/one/talon/model/InlineResponse20035Test.java index 2839a72a..80523553 100644 --- a/src/test/java/one/talon/model/InlineResponse20035Test.java +++ b/src/test/java/one/talon/model/InlineResponse20035Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.WebhookWithOutgoingIntegrationDetails; +import one.talon.model.CatalogItem; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,6 +43,14 @@ public void testInlineResponse20035() { // TODO: test InlineResponse20035 } + /** + * Test the property 'hasMore' + */ + @Test + public void hasMoreTest() { + // TODO: test hasMore + } + /** * Test the property 'totalResultSize' */ diff --git a/src/test/java/one/talon/model/InlineResponse20036Test.java b/src/test/java/one/talon/model/InlineResponse20036Test.java index 49c4bdc6..4f1e11b3 100644 --- a/src/test/java/one/talon/model/InlineResponse20036Test.java +++ b/src/test/java/one/talon/model/InlineResponse20036Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.WebhookActivationLogEntry; +import one.talon.model.AccountAdditionalCost; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20037Test.java b/src/test/java/one/talon/model/InlineResponse20037Test.java index 045a355d..e1a4e803 100644 --- a/src/test/java/one/talon/model/InlineResponse20037Test.java +++ b/src/test/java/one/talon/model/InlineResponse20037Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.WebhookLogEntry; +import one.talon.model.WebhookWithOutgoingIntegrationDetails; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20038Test.java b/src/test/java/one/talon/model/InlineResponse20038Test.java index 68c446cf..f62543ea 100644 --- a/src/test/java/one/talon/model/InlineResponse20038Test.java +++ b/src/test/java/one/talon/model/InlineResponse20038Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.EventType; +import one.talon.model.WebhookActivationLogEntry; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20039Test.java b/src/test/java/one/talon/model/InlineResponse20039Test.java index cfffb6a9..76a15044 100644 --- a/src/test/java/one/talon/model/InlineResponse20039Test.java +++ b/src/test/java/one/talon/model/InlineResponse20039Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.User; +import one.talon.model.WebhookLogEntry; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20040Test.java b/src/test/java/one/talon/model/InlineResponse20040Test.java index 6c7eb8fc..1241e489 100644 --- a/src/test/java/one/talon/model/InlineResponse20040Test.java +++ b/src/test/java/one/talon/model/InlineResponse20040Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Change; +import one.talon.model.EventType; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -51,14 +51,6 @@ public void totalResultSizeTest() { // TODO: test totalResultSize } - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - /** * Test the property 'data' */ diff --git a/src/test/java/one/talon/model/InlineResponse20041Test.java b/src/test/java/one/talon/model/InlineResponse20041Test.java index 48a612ea..bfeed8f2 100644 --- a/src/test/java/one/talon/model/InlineResponse20041Test.java +++ b/src/test/java/one/talon/model/InlineResponse20041Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Export; +import one.talon.model.User; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20042Test.java b/src/test/java/one/talon/model/InlineResponse20042Test.java index 64e60d7d..ecc183c2 100644 --- a/src/test/java/one/talon/model/InlineResponse20042Test.java +++ b/src/test/java/one/talon/model/InlineResponse20042Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Role; +import one.talon.model.Change; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -51,6 +51,14 @@ public void totalResultSizeTest() { // TODO: test totalResultSize } + /** + * Test the property 'hasMore' + */ + @Test + public void hasMoreTest() { + // TODO: test hasMore + } + /** * Test the property 'data' */ diff --git a/src/test/java/one/talon/model/InlineResponse20043Test.java b/src/test/java/one/talon/model/InlineResponse20043Test.java index a16fb9ca..b1f70342 100644 --- a/src/test/java/one/talon/model/InlineResponse20043Test.java +++ b/src/test/java/one/talon/model/InlineResponse20043Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Store; +import one.talon.model.Export; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,14 +43,6 @@ public void testInlineResponse20043() { // TODO: test InlineResponse20043 } - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - /** * Test the property 'totalResultSize' */ diff --git a/src/test/java/one/talon/model/InlineResponse20044Test.java b/src/test/java/one/talon/model/InlineResponse20044Test.java new file mode 100644 index 00000000..6b789691 --- /dev/null +++ b/src/test/java/one/talon/model/InlineResponse20044Test.java @@ -0,0 +1,62 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.Role; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for InlineResponse20044 + */ +public class InlineResponse20044Test { + private final InlineResponse20044 model = new InlineResponse20044(); + + /** + * Model tests for InlineResponse20044 + */ + @Test + public void testInlineResponse20044() { + // TODO: test InlineResponse20044 + } + + /** + * Test the property 'totalResultSize' + */ + @Test + public void totalResultSizeTest() { + // TODO: test totalResultSize + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/one/talon/model/InlineResponse20045Test.java b/src/test/java/one/talon/model/InlineResponse20045Test.java new file mode 100644 index 00000000..0c05afc5 --- /dev/null +++ b/src/test/java/one/talon/model/InlineResponse20045Test.java @@ -0,0 +1,70 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.Store; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for InlineResponse20045 + */ +public class InlineResponse20045Test { + private final InlineResponse20045 model = new InlineResponse20045(); + + /** + * Model tests for InlineResponse20045 + */ + @Test + public void testInlineResponse20045() { + // TODO: test InlineResponse20045 + } + + /** + * Test the property 'hasMore' + */ + @Test + public void hasMoreTest() { + // TODO: test hasMore + } + + /** + * Test the property 'totalResultSize' + */ + @Test + public void totalResultSizeTest() { + // TODO: test totalResultSize + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/one/talon/model/InlineResponse20046Test.java b/src/test/java/one/talon/model/InlineResponse20046Test.java new file mode 100644 index 00000000..17e4bb63 --- /dev/null +++ b/src/test/java/one/talon/model/InlineResponse20046Test.java @@ -0,0 +1,62 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.Achievement; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for InlineResponse20046 + */ +public class InlineResponse20046Test { + private final InlineResponse20046 model = new InlineResponse20046(); + + /** + * Model tests for InlineResponse20046 + */ + @Test + public void testInlineResponse20046() { + // TODO: test InlineResponse20046 + } + + /** + * Test the property 'hasMore' + */ + @Test + public void hasMoreTest() { + // TODO: test hasMore + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/one/talon/model/InlineResponse20047Test.java b/src/test/java/one/talon/model/InlineResponse20047Test.java new file mode 100644 index 00000000..57a84970 --- /dev/null +++ b/src/test/java/one/talon/model/InlineResponse20047Test.java @@ -0,0 +1,62 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.AchievementProgress; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for InlineResponse20047 + */ +public class InlineResponse20047Test { + private final InlineResponse20047 model = new InlineResponse20047(); + + /** + * Model tests for InlineResponse20047 + */ + @Test + public void testInlineResponse20047() { + // TODO: test InlineResponse20047 + } + + /** + * Test the property 'hasMore' + */ + @Test + public void hasMoreTest() { + // TODO: test hasMore + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/one/talon/model/LoyaltyProgramLedgersTest.java b/src/test/java/one/talon/model/LoyaltyProgramLedgersTest.java index 18669232..14faf700 100644 --- a/src/test/java/one/talon/model/LoyaltyProgramLedgersTest.java +++ b/src/test/java/one/talon/model/LoyaltyProgramLedgersTest.java @@ -25,6 +25,7 @@ import java.util.List; import java.util.Map; import one.talon.model.LedgerInfo; +import org.threeten.bp.OffsetDateTime; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -68,6 +69,14 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'joinDate' + */ + @Test + public void joinDateTest() { + // TODO: test joinDate + } + /** * Test the property 'ledger' */ diff --git a/src/test/java/one/talon/model/LoyaltyProgramTest.java b/src/test/java/one/talon/model/LoyaltyProgramTest.java index 08ebfdee..cf2fc6a0 100644 --- a/src/test/java/one/talon/model/LoyaltyProgramTest.java +++ b/src/test/java/one/talon/model/LoyaltyProgramTest.java @@ -124,6 +124,14 @@ public void sandboxTest() { // TODO: test sandbox } + /** + * Test the property 'tiersExpirationPolicy' + */ + @Test + public void tiersExpirationPolicyTest() { + // TODO: test tiersExpirationPolicy + } + /** * Test the property 'tiersExpireIn' */ @@ -140,6 +148,14 @@ public void tiersDowngradePolicyTest() { // TODO: test tiersDowngradePolicy } + /** + * Test the property 'programJoinPolicy' + */ + @Test + public void programJoinPolicyTest() { + // TODO: test programJoinPolicy + } + /** * Test the property 'accountID' */ @@ -188,6 +204,14 @@ public void canUpdateTiersTest() { // TODO: test canUpdateTiers } + /** + * Test the property 'canUpdateJoinPolicy' + */ + @Test + public void canUpdateJoinPolicyTest() { + // TODO: test canUpdateJoinPolicy + } + /** * Test the property 'canUpgradeToAdvancedTiers' */ diff --git a/src/test/java/one/talon/model/LoyaltyProgramTransactionTest.java b/src/test/java/one/talon/model/LoyaltyProgramTransactionTest.java index 41531483..5edafffd 100644 --- a/src/test/java/one/talon/model/LoyaltyProgramTransactionTest.java +++ b/src/test/java/one/talon/model/LoyaltyProgramTransactionTest.java @@ -58,6 +58,14 @@ public void programIdTest() { // TODO: test programId } + /** + * Test the property 'campaignId' + */ + @Test + public void campaignIdTest() { + // TODO: test campaignId + } + /** * Test the property 'created' */ diff --git a/src/test/java/one/talon/model/MessageLogEntriesTest.java b/src/test/java/one/talon/model/MessageLogEntriesTest.java new file mode 100644 index 00000000..f81c3983 --- /dev/null +++ b/src/test/java/one/talon/model/MessageLogEntriesTest.java @@ -0,0 +1,62 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.MessageLogEntry; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for MessageLogEntries + */ +public class MessageLogEntriesTest { + private final MessageLogEntries model = new MessageLogEntries(); + + /** + * Model tests for MessageLogEntries + */ + @Test + public void testMessageLogEntries() { + // TODO: test MessageLogEntries + } + + /** + * Test the property 'nextCursor' + */ + @Test + public void nextCursorTest() { + // TODO: test nextCursor + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/one/talon/model/MessageLogEntryTest.java b/src/test/java/one/talon/model/MessageLogEntryTest.java new file mode 100644 index 00000000..409451dd --- /dev/null +++ b/src/test/java/one/talon/model/MessageLogEntryTest.java @@ -0,0 +1,142 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import one.talon.model.MessageLogRequest; +import one.talon.model.MessageLogResponse; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for MessageLogEntry + */ +public class MessageLogEntryTest { + private final MessageLogEntry model = new MessageLogEntry(); + + /** + * Model tests for MessageLogEntry + */ + @Test + public void testMessageLogEntry() { + // TODO: test MessageLogEntry + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'service' + */ + @Test + public void serviceTest() { + // TODO: test service + } + + /** + * Test the property 'changeType' + */ + @Test + public void changeTypeTest() { + // TODO: test changeType + } + + /** + * Test the property 'notificationId' + */ + @Test + public void notificationIdTest() { + // TODO: test notificationId + } + + /** + * Test the property 'notificationName' + */ + @Test + public void notificationNameTest() { + // TODO: test notificationName + } + + /** + * Test the property 'request' + */ + @Test + public void requestTest() { + // TODO: test request + } + + /** + * Test the property 'response' + */ + @Test + public void responseTest() { + // TODO: test response + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'entityType' + */ + @Test + public void entityTypeTest() { + // TODO: test entityType + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'loyaltyProgramId' + */ + @Test + public void loyaltyProgramIdTest() { + // TODO: test loyaltyProgramId + } + +} diff --git a/src/test/java/one/talon/model/MessageLogRequestTest.java b/src/test/java/one/talon/model/MessageLogRequestTest.java new file mode 100644 index 00000000..2135d624 --- /dev/null +++ b/src/test/java/one/talon/model/MessageLogRequestTest.java @@ -0,0 +1,60 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for MessageLogRequest + */ +public class MessageLogRequestTest { + private final MessageLogRequest model = new MessageLogRequest(); + + /** + * Model tests for MessageLogRequest + */ + @Test + public void testMessageLogRequest() { + // TODO: test MessageLogRequest + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'request' + */ + @Test + public void requestTest() { + // TODO: test request + } + +} diff --git a/src/test/java/one/talon/model/MessageLogResponseTest.java b/src/test/java/one/talon/model/MessageLogResponseTest.java new file mode 100644 index 00000000..346308e7 --- /dev/null +++ b/src/test/java/one/talon/model/MessageLogResponseTest.java @@ -0,0 +1,68 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for MessageLogResponse + */ +public class MessageLogResponseTest { + private final MessageLogResponse model = new MessageLogResponse(); + + /** + * Model tests for MessageLogResponse + */ + @Test + public void testMessageLogResponse() { + // TODO: test MessageLogResponse + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'response' + */ + @Test + public void responseTest() { + // TODO: test response + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/src/test/java/one/talon/model/NewApplicationAPIKeyTest.java b/src/test/java/one/talon/model/NewApplicationAPIKeyTest.java index 18dc80fb..27e1e983 100644 --- a/src/test/java/one/talon/model/NewApplicationAPIKeyTest.java +++ b/src/test/java/one/talon/model/NewApplicationAPIKeyTest.java @@ -65,6 +65,22 @@ public void platformTest() { // TODO: test platform } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'timeOffset' + */ + @Test + public void timeOffsetTest() { + // TODO: test timeOffset + } + /** * Test the property 'id' */ diff --git a/src/test/java/one/talon/model/NewCampaignTest.java b/src/test/java/one/talon/model/NewCampaignTest.java index 2cddb85e..7dd72361 100644 --- a/src/test/java/one/talon/model/NewCampaignTest.java +++ b/src/test/java/one/talon/model/NewCampaignTest.java @@ -149,14 +149,6 @@ public void campaignGroupsTest() { // TODO: test campaignGroups } - /** - * Test the property 'evaluationGroupId' - */ - @Test - public void evaluationGroupIdTest() { - // TODO: test evaluationGroupId - } - /** * Test the property 'type' */ @@ -173,4 +165,12 @@ public void linkedStoreIdsTest() { // TODO: test linkedStoreIds } + /** + * Test the property 'evaluationGroupId' + */ + @Test + public void evaluationGroupIdTest() { + // TODO: test evaluationGroupId + } + } diff --git a/src/test/java/one/talon/model/NewInvitationTest.java b/src/test/java/one/talon/model/NewInvitationTest.java index ec173d6f..4c73632f 100644 --- a/src/test/java/one/talon/model/NewInvitationTest.java +++ b/src/test/java/one/talon/model/NewInvitationTest.java @@ -58,14 +58,6 @@ public void emailTest() { // TODO: test email } - /** - * Test the property 'acl' - */ - @Test - public void aclTest() { - // TODO: test acl - } - /** * Test the property 'isAdmin' */ @@ -82,4 +74,12 @@ public void rolesTest() { // TODO: test roles } + /** + * Test the property 'acl' + */ + @Test + public void aclTest() { + // TODO: test acl + } + } diff --git a/src/test/java/one/talon/model/NewLoyaltyProgramTest.java b/src/test/java/one/talon/model/NewLoyaltyProgramTest.java index 08da4738..179b50f5 100644 --- a/src/test/java/one/talon/model/NewLoyaltyProgramTest.java +++ b/src/test/java/one/talon/model/NewLoyaltyProgramTest.java @@ -107,6 +107,14 @@ public void sandboxTest() { // TODO: test sandbox } + /** + * Test the property 'tiersExpirationPolicy' + */ + @Test + public void tiersExpirationPolicyTest() { + // TODO: test tiersExpirationPolicy + } + /** * Test the property 'tiersExpireIn' */ @@ -123,6 +131,14 @@ public void tiersDowngradePolicyTest() { // TODO: test tiersDowngradePolicy } + /** + * Test the property 'programJoinPolicy' + */ + @Test + public void programJoinPolicyTest() { + // TODO: test programJoinPolicy + } + /** * Test the property 'name' */ diff --git a/src/test/java/one/talon/model/NewNotificationTestTest.java b/src/test/java/one/talon/model/NewNotificationTestTest.java index 5030a3d7..91c2c0e1 100644 --- a/src/test/java/one/talon/model/NewNotificationTestTest.java +++ b/src/test/java/one/talon/model/NewNotificationTestTest.java @@ -21,8 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/NotificationListItemTest.java b/src/test/java/one/talon/model/NotificationListItemTest.java new file mode 100644 index 00000000..8295a4aa --- /dev/null +++ b/src/test/java/one/talon/model/NotificationListItemTest.java @@ -0,0 +1,75 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NotificationListItem + */ +public class NotificationListItemTest { + private final NotificationListItem model = new NotificationListItem(); + + /** + * Model tests for NotificationListItem + */ + @Test + public void testNotificationListItem() { + // TODO: test NotificationListItem + } + + /** + * Test the property 'notificationId' + */ + @Test + public void notificationIdTest() { + // TODO: test notificationId + } + + /** + * Test the property 'notificationName' + */ + @Test + public void notificationNameTest() { + // TODO: test notificationName + } + + /** + * Test the property 'entityId' + */ + @Test + public void entityIdTest() { + // TODO: test entityId + } + + /** + * Test the property 'enabled' + */ + @Test + public void enabledTest() { + // TODO: test enabled + } + +} diff --git a/src/test/java/one/talon/model/PatchItemCatalogActionTest.java b/src/test/java/one/talon/model/PatchItemCatalogActionTest.java index fd5a48cd..2e7d1566 100644 --- a/src/test/java/one/talon/model/PatchItemCatalogActionTest.java +++ b/src/test/java/one/talon/model/PatchItemCatalogActionTest.java @@ -22,6 +22,7 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import one.talon.model.Product; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -65,6 +66,14 @@ public void attributesTest() { // TODO: test attributes } + /** + * Test the property 'product' + */ + @Test + public void productTest() { + // TODO: test product + } + /** * Test the property 'createIfNotExists' */ diff --git a/src/test/java/one/talon/model/PendingPointsNotificationPolicyTest.java b/src/test/java/one/talon/model/PendingPointsNotificationPolicyTest.java index 2862f1b9..478e8ac5 100644 --- a/src/test/java/one/talon/model/PendingPointsNotificationPolicyTest.java +++ b/src/test/java/one/talon/model/PendingPointsNotificationPolicyTest.java @@ -48,4 +48,12 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'batchingEnabled' + */ + @Test + public void batchingEnabledTest() { + // TODO: test batchingEnabled + } + } diff --git a/src/test/java/one/talon/model/ProductTest.java b/src/test/java/one/talon/model/ProductTest.java new file mode 100644 index 00000000..c73c7a62 --- /dev/null +++ b/src/test/java/one/talon/model/ProductTest.java @@ -0,0 +1,51 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for Product + */ +public class ProductTest { + private final Product model = new Product(); + + /** + * Model tests for Product + */ + @Test + public void testProduct() { + // TODO: test Product + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/one/talon/model/SamlConnectionInternalTest.java b/src/test/java/one/talon/model/SamlConnectionInternalTest.java new file mode 100644 index 00000000..32021975 --- /dev/null +++ b/src/test/java/one/talon/model/SamlConnectionInternalTest.java @@ -0,0 +1,59 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for SamlConnectionInternal + */ +public class SamlConnectionInternalTest { + private final SamlConnectionInternal model = new SamlConnectionInternal(); + + /** + * Model tests for SamlConnectionInternal + */ + @Test + public void testSamlConnectionInternal() { + // TODO: test SamlConnectionInternal + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'metadataDocument' + */ + @Test + public void metadataDocumentTest() { + // TODO: test metadataDocument + } + +} diff --git a/src/test/java/one/talon/model/TierDowngradeNotificationPolicyTest.java b/src/test/java/one/talon/model/TierDowngradeNotificationPolicyTest.java index 82f52394..f219ef93 100644 --- a/src/test/java/one/talon/model/TierDowngradeNotificationPolicyTest.java +++ b/src/test/java/one/talon/model/TierDowngradeNotificationPolicyTest.java @@ -48,4 +48,12 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'batchingEnabled' + */ + @Test + public void batchingEnabledTest() { + // TODO: test batchingEnabled + } + } diff --git a/src/test/java/one/talon/model/TierUpgradeNotificationPolicyTest.java b/src/test/java/one/talon/model/TierUpgradeNotificationPolicyTest.java index 187ca2d2..53527bd8 100644 --- a/src/test/java/one/talon/model/TierUpgradeNotificationPolicyTest.java +++ b/src/test/java/one/talon/model/TierUpgradeNotificationPolicyTest.java @@ -48,4 +48,12 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'batchingEnabled' + */ + @Test + public void batchingEnabledTest() { + // TODO: test batchingEnabled + } + } diff --git a/src/test/java/one/talon/model/TierWillDowngradeNotificationPolicyTest.java b/src/test/java/one/talon/model/TierWillDowngradeNotificationPolicyTest.java index 4cafab12..95b9f3e1 100644 --- a/src/test/java/one/talon/model/TierWillDowngradeNotificationPolicyTest.java +++ b/src/test/java/one/talon/model/TierWillDowngradeNotificationPolicyTest.java @@ -51,6 +51,14 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'batchingEnabled' + */ + @Test + public void batchingEnabledTest() { + // TODO: test batchingEnabled + } + /** * Test the property 'triggers' */ diff --git a/src/test/java/one/talon/model/UpdateAchievementTest.java b/src/test/java/one/talon/model/UpdateAchievementTest.java index 941bb3cd..e793712f 100644 --- a/src/test/java/one/talon/model/UpdateAchievementTest.java +++ b/src/test/java/one/talon/model/UpdateAchievementTest.java @@ -21,6 +21,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.math.BigDecimal; +import one.talon.model.TimePoint; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -40,6 +42,14 @@ public void testUpdateAchievement() { // TODO: test UpdateAchievement } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + /** * Test the property 'title' */ @@ -56,4 +66,28 @@ public void descriptionTest() { // TODO: test description } + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } + + /** + * Test the property 'period' + */ + @Test + public void periodTest() { + // TODO: test period + } + + /** + * Test the property 'periodEndOverride' + */ + @Test + public void periodEndOverrideTest() { + // TODO: test periodEndOverride + } + } diff --git a/src/test/java/one/talon/model/UpdateApplicationAPIKeyTest.java b/src/test/java/one/talon/model/UpdateApplicationAPIKeyTest.java new file mode 100644 index 00000000..e2ad3ffb --- /dev/null +++ b/src/test/java/one/talon/model/UpdateApplicationAPIKeyTest.java @@ -0,0 +1,51 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for UpdateApplicationAPIKey + */ +public class UpdateApplicationAPIKeyTest { + private final UpdateApplicationAPIKey model = new UpdateApplicationAPIKey(); + + /** + * Model tests for UpdateApplicationAPIKey + */ + @Test + public void testUpdateApplicationAPIKey() { + // TODO: test UpdateApplicationAPIKey + } + + /** + * Test the property 'timeOffset' + */ + @Test + public void timeOffsetTest() { + // TODO: test timeOffset + } + +} diff --git a/src/test/java/one/talon/model/UpdateLoyaltyProgramTest.java b/src/test/java/one/talon/model/UpdateLoyaltyProgramTest.java index ece40556..89bb0e0b 100644 --- a/src/test/java/one/talon/model/UpdateLoyaltyProgramTest.java +++ b/src/test/java/one/talon/model/UpdateLoyaltyProgramTest.java @@ -107,6 +107,14 @@ public void sandboxTest() { // TODO: test sandbox } + /** + * Test the property 'tiersExpirationPolicy' + */ + @Test + public void tiersExpirationPolicyTest() { + // TODO: test tiersExpirationPolicy + } + /** * Test the property 'tiersExpireIn' */ @@ -123,6 +131,14 @@ public void tiersDowngradePolicyTest() { // TODO: test tiersDowngradePolicy } + /** + * Test the property 'programJoinPolicy' + */ + @Test + public void programJoinPolicyTest() { + // TODO: test programJoinPolicy + } + /** * Test the property 'tiers' */ diff --git a/src/test/java/one/talon/model/UpdateUserTest.java b/src/test/java/one/talon/model/UpdateUserTest.java index b246e105..13ff4359 100644 --- a/src/test/java/one/talon/model/UpdateUserTest.java +++ b/src/test/java/one/talon/model/UpdateUserTest.java @@ -51,19 +51,27 @@ public void nameTest() { } /** - * Test the property 'policy' + * Test the property 'state' */ @Test - public void policyTest() { - // TODO: test policy + public void stateTest() { + // TODO: test state } /** - * Test the property 'state' + * Test the property 'isAdmin' */ @Test - public void stateTest() { - // TODO: test state + public void isAdminTest() { + // TODO: test isAdmin + } + + /** + * Test the property 'policy' + */ + @Test + public void policyTest() { + // TODO: test policy } /** @@ -82,12 +90,4 @@ public void applicationNotificationSubscriptionsTest() { // TODO: test applicationNotificationSubscriptions } - /** - * Test the property 'isAdmin' - */ - @Test - public void isAdminTest() { - // TODO: test isAdmin - } - } diff --git a/src/test/java/one/talon/model/UserTest.java b/src/test/java/one/talon/model/UserTest.java index f53e6e46..e1cb3fc3 100644 --- a/src/test/java/one/talon/model/UserTest.java +++ b/src/test/java/one/talon/model/UserTest.java @@ -84,11 +84,11 @@ public void accountIdTest() { } /** - * Test the property 'inviteToken' + * Test the property 'name' */ @Test - public void inviteTokenTest() { - // TODO: test inviteToken + public void nameTest() { + // TODO: test name } /** @@ -100,27 +100,27 @@ public void stateTest() { } /** - * Test the property 'name' + * Test the property 'inviteToken' */ @Test - public void nameTest() { - // TODO: test name + public void inviteTokenTest() { + // TODO: test inviteToken } /** - * Test the property 'policy' + * Test the property 'isAdmin' */ @Test - public void policyTest() { - // TODO: test policy + public void isAdminTest() { + // TODO: test isAdmin } /** - * Test the property 'latestFeedTimestamp' + * Test the property 'policy' */ @Test - public void latestFeedTimestampTest() { - // TODO: test latestFeedTimestamp + public void policyTest() { + // TODO: test policy } /** @@ -131,14 +131,6 @@ public void rolesTest() { // TODO: test roles } - /** - * Test the property 'applicationNotificationSubscriptions' - */ - @Test - public void applicationNotificationSubscriptionsTest() { - // TODO: test applicationNotificationSubscriptions - } - /** * Test the property 'authMethod' */ @@ -148,11 +140,11 @@ public void authMethodTest() { } /** - * Test the property 'isAdmin' + * Test the property 'applicationNotificationSubscriptions' */ @Test - public void isAdminTest() { - // TODO: test isAdmin + public void applicationNotificationSubscriptionsTest() { + // TODO: test applicationNotificationSubscriptions } /** @@ -171,4 +163,12 @@ public void lastAccessedTest() { // TODO: test lastAccessed } + /** + * Test the property 'latestFeedTimestamp' + */ + @Test + public void latestFeedTimestampTest() { + // TODO: test latestFeedTimestamp + } + }