From 5e183989138c88a2a6a33173af23ee87d8cb3dac Mon Sep 17 00:00:00 2001 From: Talon-One SDK Generator Date: Thu, 5 Mar 2026 14:22:32 +0000 Subject: [PATCH] update to 14.3.0 --- README.md | 43 +- api/openapi.yaml | 7431 +++++++++++------ build.gradle | 2 +- build.sbt | 2 +- docs/Attribute.md | 1 + docs/BestPriorPrice.md | 3 +- docs/BestPriorPriceRequest.md | 13 +- docs/Blueprint.md | 44 + ...ampaignCollectionEditedNotificationItem.md | 1 + docs/CampaignCreatedNotificationItem.md | 1 + docs/CampaignEditedNotificationItem.md | 1 + .../CampaignRulesetChangedNotificationItem.md | 2 + docs/CampaignStateChangedNotificationItem.md | 1 + docs/CouponWithApplication.md | 35 + docs/CustomerProfileIntegrationRequestV2.md | 2 +- docs/EventAttributesEntity.md | 13 + docs/Experiment.md | 5 +- docs/ExperimentCampaignCopy.md | 17 + docs/ExperimentCopy.md | 13 + docs/ExperimentCopyExperiment.md | 13 + docs/History.md | 17 + docs/InlineResponse20015.md | 2 +- docs/InlineResponse20016.md | 2 +- docs/InlineResponse20017.md | 4 +- docs/InlineResponse20018.md | 2 +- docs/InlineResponse20019.md | 4 +- docs/InlineResponse20020.md | 5 +- docs/InlineResponse20021.md | 5 +- docs/InlineResponse20022.md | 2 +- docs/InlineResponse20023.md | 4 +- docs/InlineResponse20024.md | 5 +- docs/InlineResponse20025.md | 2 +- docs/InlineResponse20026.md | 2 +- docs/InlineResponse20027.md | 3 +- docs/InlineResponse20028.md | 2 +- docs/InlineResponse20029.md | 4 +- docs/InlineResponse20030.md | 4 +- docs/InlineResponse20031.md | 4 +- docs/InlineResponse20032.md | 5 +- docs/InlineResponse20033.md | 3 +- docs/InlineResponse20034.md | 2 +- docs/InlineResponse20035.md | 3 +- docs/InlineResponse20036.md | 5 +- docs/InlineResponse20037.md | 5 +- docs/InlineResponse20038.md | 5 +- docs/InlineResponse20039.md | 2 +- docs/InlineResponse20040.md | 2 +- docs/InlineResponse20041.md | 2 +- docs/InlineResponse20042.md | 5 +- docs/InlineResponse20043.md | 5 +- docs/InlineResponse20044.md | 2 +- docs/InlineResponse20045.md | 5 +- docs/InlineResponse20046.md | 4 +- docs/InlineResponse20047.md | 2 +- docs/InlineResponse20048.md | 3 +- docs/InlineResponse20049.md | 4 +- docs/InlineResponse20050.md | 3 +- docs/InlineResponse20051.md | 3 +- docs/IntegrationApi.md | 93 +- docs/IntegrationEventV2Request.md | 4 +- docs/IntegrationEventV2Response.md | 21 + docs/IntegrationEventV3Request.md | 2 +- docs/IntegrationEventV3Response.md | 12 +- docs/IntegrationResponse.md | 20 + docs/IntegrationStateV2.md | 21 +- docs/ManagementApi.md | 507 +- docs/NewAttribute.md | 1 + docs/NewBlueprint.md | 27 + docs/NewExperiment.md | 13 +- docs/NewExperimentVariant.md | 2 +- docs/PlaceholderDetails.md | 14 + docs/PriceHistoryRequest.md | 14 + docs/PriceHistoryResponse.md | 13 + ...ticEventPayloadCouponBasedNotifications.md | 1 + ...tPayloadLoyaltyProfileBasedNotification.md | 26 + ...tyProfileBasedPointsChangedNotification.md | 20 + ...ileBasedPointsChangedNotificationAction.md | 25 + ...tyProfileBasedTierDowngradeNotification.md | 21 + ...altyProfileBasedTierUpgradeNotification.md | 23 + docs/PrismaticEventRecord.md | 19 + docs/PrismaticFlowConfigResponse.md | 14 + docs/PrismaticFlowResponse.md | 16 + docs/PrismaticPaginatedEventPayload.md | 1 + docs/PromoteExperiment.md | 15 + docs/ResponseContentObject.md | 25 + docs/TalangAttribute.md | 1 + docs/UpdateBlueprint.md | 27 + docs/UpdateExperiment.md | 2 +- docs/UpdateExperimentVariant.md | 4 +- docs/UpdateExperimentVariantName.md | 12 + docs/UpdateLoyaltyCardRequest.md | 12 + pom.xml | 2 +- src/main/java/one/talon/ApiClient.java | 2 +- .../java/one/talon/api/IntegrationApi.java | 136 +- .../java/one/talon/api/ManagementApi.java | 1037 ++- src/main/java/one/talon/model/Attribute.java | 2 + .../java/one/talon/model/BestPriorPrice.java | 38 +- .../talon/model/BestPriorPriceRequest.java | 84 +- src/main/java/one/talon/model/Blueprint.java | 550 ++ ...paignCollectionEditedNotificationItem.java | 42 +- .../CampaignCreatedNotificationItem.java | 42 +- .../model/CampaignEditedNotificationItem.java | 44 +- ...ampaignRulesetChangedNotificationItem.java | 81 +- .../CampaignStateChangedNotificationItem.java | 44 +- .../talon/model/CouponWithApplication.java | 777 ++ .../CustomerProfileIntegrationRequestV2.java | 66 +- .../talon/model/EventAttributesEntity.java | 127 + src/main/java/one/talon/model/Experiment.java | 11 +- .../talon/model/ExperimentCampaignCopy.java | 255 + .../java/one/talon/model/ExperimentCopy.java | 127 + .../talon/model/ExperimentCopyExperiment.java | 127 + src/main/java/one/talon/model/History.java | 241 + .../one/talon/model/InlineResponse20015.java | 12 +- .../one/talon/model/InlineResponse20016.java | 12 +- .../one/talon/model/InlineResponse20017.java | 42 +- .../one/talon/model/InlineResponse20018.java | 12 +- .../one/talon/model/InlineResponse20019.java | 20 +- .../one/talon/model/InlineResponse20020.java | 52 +- .../one/talon/model/InlineResponse20021.java | 46 +- .../one/talon/model/InlineResponse20022.java | 12 +- .../one/talon/model/InlineResponse20023.java | 42 +- .../one/talon/model/InlineResponse20024.java | 46 +- .../one/talon/model/InlineResponse20025.java | 50 +- .../one/talon/model/InlineResponse20026.java | 12 +- .../one/talon/model/InlineResponse20027.java | 34 +- .../one/talon/model/InlineResponse20028.java | 12 +- .../one/talon/model/InlineResponse20029.java | 15 +- .../one/talon/model/InlineResponse20030.java | 15 +- .../one/talon/model/InlineResponse20031.java | 41 +- .../one/talon/model/InlineResponse20032.java | 47 +- .../one/talon/model/InlineResponse20033.java | 43 +- .../one/talon/model/InlineResponse20034.java | 12 +- .../one/talon/model/InlineResponse20035.java | 43 +- .../one/talon/model/InlineResponse20036.java | 48 +- .../one/talon/model/InlineResponse20037.java | 48 +- .../one/talon/model/InlineResponse20038.java | 48 +- .../one/talon/model/InlineResponse20039.java | 12 +- .../one/talon/model/InlineResponse20040.java | 12 +- .../one/talon/model/InlineResponse20041.java | 12 +- .../one/talon/model/InlineResponse20042.java | 46 +- .../one/talon/model/InlineResponse20043.java | 46 +- .../one/talon/model/InlineResponse20044.java | 12 +- .../one/talon/model/InlineResponse20045.java | 48 +- .../one/talon/model/InlineResponse20046.java | 80 +- .../one/talon/model/InlineResponse20047.java | 14 +- .../one/talon/model/InlineResponse20048.java | 51 +- .../one/talon/model/InlineResponse20049.java | 15 +- .../one/talon/model/InlineResponse20050.java | 44 +- .../one/talon/model/InlineResponse20051.java | 44 +- .../model/IntegrationEventV2Request.java | 68 +- .../model/IntegrationEventV2Response.java | 379 + .../model/IntegrationEventV3Request.java | 2 +- .../model/IntegrationEventV3Response.java | 196 +- .../one/talon/model/IntegrationResponse.java | 349 + .../one/talon/model/IntegrationStateV2.java | 306 +- .../java/one/talon/model/NewAttribute.java | 2 + .../java/one/talon/model/NewBlueprint.java | 285 + .../java/one/talon/model/NewExperiment.java | 112 +- .../one/talon/model/NewExperimentVariant.java | 9 +- .../one/talon/model/PlaceholderDetails.java | 161 + .../one/talon/model/PriceHistoryRequest.java | 155 + .../one/talon/model/PriceHistoryResponse.java | 134 + ...cEventPayloadCouponBasedNotifications.java | 30 +- ...ayloadLoyaltyProfileBasedNotification.java | 511 ++ ...ProfileBasedPointsChangedNotification.java | 337 + ...eBasedPointsChangedNotificationAction.java | 261 + ...ProfileBasedTierDowngradeNotification.java | 355 + ...tyProfileBasedTierUpgradeNotification.java | 413 + .../one/talon/model/PrismaticEventRecord.java | 296 + .../model/PrismaticFlowConfigResponse.java | 161 + .../talon/model/PrismaticFlowResponse.java | 212 + .../model/PrismaticPaginatedEventPayload.java | 32 +- .../one/talon/model/PromoteExperiment.java | 184 + .../talon/model/ResponseContentObject.java | 164 + .../java/one/talon/model/TalangAttribute.java | 2 + .../java/one/talon/model/UpdateBlueprint.java | 286 + .../one/talon/model/UpdateExperiment.java | 4 +- .../talon/model/UpdateExperimentVariant.java | 10 +- .../model/UpdateExperimentVariantName.java | 98 + .../talon/model/UpdateLoyaltyCardRequest.java | 99 + .../one/talon/api/IntegrationApiTest.java | 24 +- .../java/one/talon/api/ManagementApiTest.java | 142 +- .../model/BestPriorPriceRequestTest.java | 8 + .../one/talon/model/BestPriorPriceTest.java | 8 + .../java/one/talon/model/BlueprintTest.java | 152 + ...nCollectionEditedNotificationItemTest.java | 11 + .../CampaignCreatedNotificationItemTest.java | 11 + .../CampaignEditedNotificationItemTest.java | 11 + ...ignRulesetChangedNotificationItemTest.java | 19 + ...paignStateChangedNotificationItemTest.java | 11 + .../model/CouponWithApplicationTest.java | 240 + ...stomerProfileIntegrationRequestV2Test.java | 12 +- .../model/EventAttributesEntityTest.java | 59 + .../model/ExperimentCampaignCopyTest.java | 94 + .../model/ExperimentCopyExperimentTest.java | 60 + .../one/talon/model/ExperimentCopyTest.java | 60 + .../java/one/talon/model/HistoryTest.java | 94 + .../talon/model/InlineResponse20015Test.java | 2 +- .../talon/model/InlineResponse20016Test.java | 2 +- .../talon/model/InlineResponse20017Test.java | 8 +- .../talon/model/InlineResponse20018Test.java | 2 +- .../talon/model/InlineResponse20019Test.java | 2 +- .../talon/model/InlineResponse20020Test.java | 10 +- .../talon/model/InlineResponse20021Test.java | 10 +- .../talon/model/InlineResponse20022Test.java | 2 +- .../talon/model/InlineResponse20023Test.java | 8 +- .../talon/model/InlineResponse20024Test.java | 10 +- .../talon/model/InlineResponse20025Test.java | 12 +- .../talon/model/InlineResponse20026Test.java | 2 +- .../talon/model/InlineResponse20027Test.java | 8 + .../talon/model/InlineResponse20028Test.java | 2 +- .../talon/model/InlineResponse20029Test.java | 2 +- .../talon/model/InlineResponse20030Test.java | 2 +- .../talon/model/InlineResponse20031Test.java | 7 +- .../talon/model/InlineResponse20032Test.java | 9 - .../talon/model/InlineResponse20033Test.java | 10 +- .../talon/model/InlineResponse20034Test.java | 2 +- .../talon/model/InlineResponse20035Test.java | 10 +- .../talon/model/InlineResponse20036Test.java | 10 +- .../talon/model/InlineResponse20037Test.java | 10 +- .../talon/model/InlineResponse20038Test.java | 10 +- .../talon/model/InlineResponse20039Test.java | 2 +- .../talon/model/InlineResponse20040Test.java | 2 +- .../talon/model/InlineResponse20041Test.java | 2 +- .../talon/model/InlineResponse20042Test.java | 10 +- .../talon/model/InlineResponse20043Test.java | 10 +- .../talon/model/InlineResponse20044Test.java | 2 +- .../talon/model/InlineResponse20045Test.java | 10 +- .../talon/model/InlineResponse20046Test.java | 18 +- .../talon/model/InlineResponse20047Test.java | 2 +- .../talon/model/InlineResponse20048Test.java | 10 +- .../talon/model/InlineResponse20049Test.java | 2 +- .../talon/model/InlineResponse20050Test.java | 10 +- .../talon/model/InlineResponse20051Test.java | 10 +- .../model/IntegrationEventV2RequestTest.java | 12 +- .../model/IntegrationEventV2ResponseTest.java | 126 + .../model/IntegrationEventV3ResponseTest.java | 40 +- .../talon/model/IntegrationResponseTest.java | 117 + .../talon/model/IntegrationStateV2Test.java | 73 +- .../one/talon/model/NewBlueprintTest.java | 87 + .../one/talon/model/NewExperimentTest.java | 17 - .../talon/model/PlaceholderDetailsTest.java | 69 + .../talon/model/PriceHistoryRequestTest.java | 68 + .../talon/model/PriceHistoryResponseTest.java | 62 + ...ntPayloadCouponBasedNotificationsTest.java | 8 + ...adLoyaltyProfileBasedNotificationTest.java | 167 + ...edPointsChangedNotificationActionTest.java | 84 + ...ileBasedPointsChangedNotificationTest.java | 119 + ...ileBasedTierDowngradeNotificationTest.java | 124 + ...ofileBasedTierUpgradeNotificationTest.java | 140 + .../talon/model/PrismaticEventRecordTest.java | 108 + .../PrismaticFlowConfigResponseTest.java | 67 + .../model/PrismaticFlowResponseTest.java | 84 + .../PrismaticPaginatedEventPayloadTest.java | 9 + .../talon/model/PromoteExperimentTest.java | 76 + .../model/ResponseContentObjectTest.java | 53 + .../one/talon/model/UpdateBlueprintTest.java | 87 + .../UpdateExperimentVariantNameTest.java | 51 + .../model/UpdateLoyaltyCardRequestTest.java | 51 + 259 files changed, 18396 insertions(+), 4223 deletions(-) create mode 100644 docs/Blueprint.md create mode 100644 docs/CouponWithApplication.md create mode 100644 docs/EventAttributesEntity.md create mode 100644 docs/ExperimentCampaignCopy.md create mode 100644 docs/ExperimentCopy.md create mode 100644 docs/ExperimentCopyExperiment.md create mode 100644 docs/History.md create mode 100644 docs/IntegrationEventV2Response.md create mode 100644 docs/IntegrationResponse.md create mode 100644 docs/NewBlueprint.md create mode 100644 docs/PlaceholderDetails.md create mode 100644 docs/PriceHistoryRequest.md create mode 100644 docs/PriceHistoryResponse.md create mode 100644 docs/PrismaticEventPayloadLoyaltyProfileBasedNotification.md create mode 100644 docs/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.md create mode 100644 docs/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.md create mode 100644 docs/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.md create mode 100644 docs/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.md create mode 100644 docs/PrismaticEventRecord.md create mode 100644 docs/PrismaticFlowConfigResponse.md create mode 100644 docs/PrismaticFlowResponse.md create mode 100644 docs/PromoteExperiment.md create mode 100644 docs/ResponseContentObject.md create mode 100644 docs/UpdateBlueprint.md create mode 100644 docs/UpdateExperimentVariantName.md create mode 100644 docs/UpdateLoyaltyCardRequest.md create mode 100644 src/main/java/one/talon/model/Blueprint.java create mode 100644 src/main/java/one/talon/model/CouponWithApplication.java create mode 100644 src/main/java/one/talon/model/EventAttributesEntity.java create mode 100644 src/main/java/one/talon/model/ExperimentCampaignCopy.java create mode 100644 src/main/java/one/talon/model/ExperimentCopy.java create mode 100644 src/main/java/one/talon/model/ExperimentCopyExperiment.java create mode 100644 src/main/java/one/talon/model/History.java create mode 100644 src/main/java/one/talon/model/IntegrationEventV2Response.java create mode 100644 src/main/java/one/talon/model/IntegrationResponse.java create mode 100644 src/main/java/one/talon/model/NewBlueprint.java create mode 100644 src/main/java/one/talon/model/PlaceholderDetails.java create mode 100644 src/main/java/one/talon/model/PriceHistoryRequest.java create mode 100644 src/main/java/one/talon/model/PriceHistoryResponse.java create mode 100644 src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedNotification.java create mode 100644 src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.java create mode 100644 src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.java create mode 100644 src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.java create mode 100644 src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.java create mode 100644 src/main/java/one/talon/model/PrismaticEventRecord.java create mode 100644 src/main/java/one/talon/model/PrismaticFlowConfigResponse.java create mode 100644 src/main/java/one/talon/model/PrismaticFlowResponse.java create mode 100644 src/main/java/one/talon/model/PromoteExperiment.java create mode 100644 src/main/java/one/talon/model/ResponseContentObject.java create mode 100644 src/main/java/one/talon/model/UpdateBlueprint.java create mode 100644 src/main/java/one/talon/model/UpdateExperimentVariantName.java create mode 100644 src/main/java/one/talon/model/UpdateLoyaltyCardRequest.java create mode 100644 src/test/java/one/talon/model/BlueprintTest.java create mode 100644 src/test/java/one/talon/model/CouponWithApplicationTest.java create mode 100644 src/test/java/one/talon/model/EventAttributesEntityTest.java create mode 100644 src/test/java/one/talon/model/ExperimentCampaignCopyTest.java create mode 100644 src/test/java/one/talon/model/ExperimentCopyExperimentTest.java create mode 100644 src/test/java/one/talon/model/ExperimentCopyTest.java create mode 100644 src/test/java/one/talon/model/HistoryTest.java create mode 100644 src/test/java/one/talon/model/IntegrationEventV2ResponseTest.java create mode 100644 src/test/java/one/talon/model/IntegrationResponseTest.java create mode 100644 src/test/java/one/talon/model/NewBlueprintTest.java create mode 100644 src/test/java/one/talon/model/PlaceholderDetailsTest.java create mode 100644 src/test/java/one/talon/model/PriceHistoryRequestTest.java create mode 100644 src/test/java/one/talon/model/PriceHistoryResponseTest.java create mode 100644 src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedNotificationTest.java create mode 100644 src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationActionTest.java create mode 100644 src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationTest.java create mode 100644 src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotificationTest.java create mode 100644 src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotificationTest.java create mode 100644 src/test/java/one/talon/model/PrismaticEventRecordTest.java create mode 100644 src/test/java/one/talon/model/PrismaticFlowConfigResponseTest.java create mode 100644 src/test/java/one/talon/model/PrismaticFlowResponseTest.java create mode 100644 src/test/java/one/talon/model/PromoteExperimentTest.java create mode 100644 src/test/java/one/talon/model/ResponseContentObjectTest.java create mode 100644 src/test/java/one/talon/model/UpdateBlueprintTest.java create mode 100644 src/test/java/one/talon/model/UpdateExperimentVariantNameTest.java create mode 100644 src/test/java/one/talon/model/UpdateLoyaltyCardRequestTest.java diff --git a/README.md b/README.md index ec18afe9..7ff38926 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Add this dependency to your project's POM: one.talon talon-one-client - 14.2.0 + 14.3.0 compile ``` @@ -50,7 +50,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:14.2.0" +compile "one.talon:talon-one-client:14.3.0" ``` ### Others @@ -220,6 +220,7 @@ Class | Method | HTTP request | Description *IntegrationApi* | [**getLoyaltyProgramProfileTransactions**](docs/IntegrationApi.md#getLoyaltyProgramProfileTransactions) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/transactions | List customer's loyalty transactions *IntegrationApi* | [**getReservedCustomers**](docs/IntegrationApi.md#getReservedCustomers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | List customers that have this coupon reserved *IntegrationApi* | [**linkLoyaltyCardToProfile**](docs/IntegrationApi.md#linkLoyaltyCardToProfile) | **POST** /v2/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/link_profile | Link customer profile to card +*IntegrationApi* | [**priceHistory**](docs/IntegrationApi.md#priceHistory) | **POST** /v1/best_prior_price_history | Get summary of price history *IntegrationApi* | [**reopenCustomerSession**](docs/IntegrationApi.md#reopenCustomerSession) | **PUT** /v2/customer_sessions/{customerSessionId}/reopen | Reopen customer session *IntegrationApi* | [**returnCartItems**](docs/IntegrationApi.md#returnCartItems) | **POST** /v2/customer_sessions/{customerSessionId}/returns | Return cart items *IntegrationApi* | [**syncCatalog**](docs/IntegrationApi.md#syncCatalog) | **PUT** /v1/catalogs/{catalogId}/sync | Sync cart item catalog @@ -283,6 +284,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**exportLoyaltyCardBalances**](docs/ManagementApi.md#exportLoyaltyCardBalances) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/export_card_balances | Export all card transaction logs *ManagementApi* | [**exportLoyaltyCardLedger**](docs/ManagementApi.md#exportLoyaltyCardLedger) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/export_log | Export card's ledger log *ManagementApi* | [**exportLoyaltyCards**](docs/ManagementApi.md#exportLoyaltyCards) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/cards/export | Export loyalty cards +*ManagementApi* | [**exportLoyaltyJoinDates**](docs/ManagementApi.md#exportLoyaltyJoinDates) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/export_join_dates | Export customers' loyalty program join dates *ManagementApi* | [**exportLoyaltyLedger**](docs/ManagementApi.md#exportLoyaltyLedger) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/export_log | Export customer's transaction logs *ManagementApi* | [**exportPoolGiveaways**](docs/ManagementApi.md#exportPoolGiveaways) | **GET** /v1/giveaways/pools/{poolId}/export | Export giveaway codes of a giveaway pool *ManagementApi* | [**exportReferrals**](docs/ManagementApi.md#exportReferrals) | **GET** /v1/applications/{applicationId}/export_referrals | Export referrals @@ -330,6 +332,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**getCustomersByAttributes**](docs/ManagementApi.md#getCustomersByAttributes) | **POST** /v1/customer_search/no_total | List customer profiles matching the given attributes *ManagementApi* | [**getDashboardStatistics**](docs/ManagementApi.md#getDashboardStatistics) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/dashboard | Get statistics for loyalty dashboard *ManagementApi* | [**getEventTypes**](docs/ManagementApi.md#getEventTypes) | **GET** /v1/event_types | List event types +*ManagementApi* | [**getExperiment**](docs/ManagementApi.md#getExperiment) | **GET** /v1/applications/{applicationId}/experiments/{experimentId} | Get experiment in Application *ManagementApi* | [**getExports**](docs/ManagementApi.md#getExports) | **GET** /v1/exports | Get exports *ManagementApi* | [**getLoyaltyCard**](docs/ManagementApi.md#getLoyaltyCard) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Get loyalty card *ManagementApi* | [**getLoyaltyCardTransactionLogs**](docs/ManagementApi.md#getLoyaltyCardTransactionLogs) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/logs | List card's transactions @@ -371,6 +374,7 @@ Class | Method | HTTP request | Description *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 +*ManagementApi* | [**listExperiments**](docs/ManagementApi.md#listExperiments) | **GET** /v1/applications/{applicationId}/experiments | List experiments *ManagementApi* | [**listStores**](docs/ManagementApi.md#listStores) | **GET** /v1/applications/{applicationId}/stores | List stores *ManagementApi* | [**oktaEventHandlerChallenge**](docs/ManagementApi.md#oktaEventHandlerChallenge) | **GET** /v1/provisioning/okta | Validate Okta API ownership *ManagementApi* | [**removeLoyaltyPoints**](docs/ManagementApi.md#removeLoyaltyPoints) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/deduct_points | Deduct points from customer profile @@ -402,7 +406,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**updateCollection**](docs/ManagementApi.md#updateCollection) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Update campaign-level collection's description *ManagementApi* | [**updateCoupon**](docs/ManagementApi.md#updateCoupon) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} | Update coupon *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* | [**updateLoyaltyCard**](docs/ManagementApi.md#updateLoyaltyCard) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Update loyalty card *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 @@ -496,6 +500,7 @@ Class | Method | HTTP request | Description - [BestPriorPriceRequest](docs/BestPriorPriceRequest.md) - [BestPriorTarget](docs/BestPriorTarget.md) - [Binding](docs/Binding.md) +- [Blueprint](docs/Blueprint.md) - [BulkApplicationNotification](docs/BulkApplicationNotification.md) - [BulkOperationOnCampaigns](docs/BulkOperationOnCampaigns.md) - [Campaign](docs/Campaign.md) @@ -568,7 +573,6 @@ Class | Method | HTTP request | Description - [Collection](docs/Collection.md) - [CollectionItem](docs/CollectionItem.md) - [CollectionWithoutPayload](docs/CollectionWithoutPayload.md) -- [CollectionsCatalog](docs/CollectionsCatalog.md) - [Coupon](docs/Coupon.md) - [CouponConstraints](docs/CouponConstraints.md) - [CouponCreatedEffectProps](docs/CouponCreatedEffectProps.md) @@ -582,6 +586,7 @@ Class | Method | HTTP request | Description - [CouponReservations](docs/CouponReservations.md) - [CouponSearch](docs/CouponSearch.md) - [CouponValue](docs/CouponValue.md) +- [CouponWithApplication](docs/CouponWithApplication.md) - [CouponsNotificationData](docs/CouponsNotificationData.md) - [CouponsNotificationPolicy](docs/CouponsNotificationPolicy.md) - [CreateAchievement](docs/CreateAchievement.md) @@ -623,10 +628,14 @@ Class | Method | HTTP request | Description - [ErrorSource](docs/ErrorSource.md) - [EvaluableCampaignIds](docs/EvaluableCampaignIds.md) - [Event](docs/Event.md) +- [EventAttributesEntity](docs/EventAttributesEntity.md) - [EventType](docs/EventType.md) - [EventV2](docs/EventV2.md) - [EventV3](docs/EventV3.md) - [Experiment](docs/Experiment.md) +- [ExperimentCampaignCopy](docs/ExperimentCampaignCopy.md) +- [ExperimentCopy](docs/ExperimentCopy.md) +- [ExperimentCopyExperiment](docs/ExperimentCopyExperiment.md) - [ExperimentResults](docs/ExperimentResults.md) - [ExperimentVariant](docs/ExperimentVariant.md) - [ExperimentVariantAllocation](docs/ExperimentVariantAllocation.md) @@ -664,6 +673,7 @@ Class | Method | HTTP request | Description - [Giveaway](docs/Giveaway.md) - [GiveawaysPool](docs/GiveawaysPool.md) - [HiddenConditionsEffects](docs/HiddenConditionsEffects.md) +- [History](docs/History.md) - [IdentifiableEntity](docs/IdentifiableEntity.md) - [ImportEntity](docs/ImportEntity.md) - [IncreaseAchievementProgressEffectProps](docs/IncreaseAchievementProgressEffectProps.md) @@ -715,6 +725,7 @@ Class | Method | HTTP request | Description - [InlineResponse20049](docs/InlineResponse20049.md) - [InlineResponse2005](docs/InlineResponse2005.md) - [InlineResponse20050](docs/InlineResponse20050.md) +- [InlineResponse20051](docs/InlineResponse20051.md) - [InlineResponse2006](docs/InlineResponse2006.md) - [InlineResponse2007](docs/InlineResponse2007.md) - [InlineResponse2008](docs/InlineResponse2008.md) @@ -727,11 +738,13 @@ Class | Method | HTTP request | Description - [IntegrationEntity](docs/IntegrationEntity.md) - [IntegrationEvent](docs/IntegrationEvent.md) - [IntegrationEventV2Request](docs/IntegrationEventV2Request.md) +- [IntegrationEventV2Response](docs/IntegrationEventV2Response.md) - [IntegrationEventV3Request](docs/IntegrationEventV3Request.md) - [IntegrationEventV3Response](docs/IntegrationEventV3Response.md) - [IntegrationProfileEntity](docs/IntegrationProfileEntity.md) - [IntegrationProfileEntityV3](docs/IntegrationProfileEntityV3.md) - [IntegrationRequest](docs/IntegrationRequest.md) +- [IntegrationResponse](docs/IntegrationResponse.md) - [IntegrationState](docs/IntegrationState.md) - [IntegrationStateV2](docs/IntegrationStateV2.md) - [IntegrationStoreEntity](docs/IntegrationStoreEntity.md) @@ -807,6 +820,7 @@ Class | Method | HTTP request | Description - [NewAttribute](docs/NewAttribute.md) - [NewAudience](docs/NewAudience.md) - [NewBaseNotification](docs/NewBaseNotification.md) +- [NewBlueprint](docs/NewBlueprint.md) - [NewCampaign](docs/NewCampaign.md) - [NewCampaignCollection](docs/NewCampaignCollection.md) - [NewCampaignEvaluationGroup](docs/NewCampaignEvaluationGroup.md) @@ -817,7 +831,6 @@ Class | Method | HTTP request | Description - [NewCampaignTemplate](docs/NewCampaignTemplate.md) - [NewCatalog](docs/NewCatalog.md) - [NewCollection](docs/NewCollection.md) -- [NewCollectionsCatalog](docs/NewCollectionsCatalog.md) - [NewCouponCreationJob](docs/NewCouponCreationJob.md) - [NewCouponDeletionJob](docs/NewCouponDeletionJob.md) - [NewCoupons](docs/NewCoupons.md) @@ -885,17 +898,26 @@ Class | Method | HTTP request | Description - [PendingActivePointsNotification](docs/PendingActivePointsNotification.md) - [PendingPointsNotificationPolicy](docs/PendingPointsNotificationPolicy.md) - [Picklist](docs/Picklist.md) +- [PlaceholderDetails](docs/PlaceholderDetails.md) - [PriceDetail](docs/PriceDetail.md) +- [PriceHistoryRequest](docs/PriceHistoryRequest.md) +- [PriceHistoryResponse](docs/PriceHistoryResponse.md) - [PriceType](docs/PriceType.md) - [PriceTypeReferenceDetail](docs/PriceTypeReferenceDetail.md) - [PriceTypeReferences](docs/PriceTypeReferences.md) - [PrismaticConfig](docs/PrismaticConfig.md) - [PrismaticEventPayloadCouponBasedNotifications](docs/PrismaticEventPayloadCouponBasedNotifications.md) - [PrismaticEventPayloadCouponBasedNotificationsLimits](docs/PrismaticEventPayloadCouponBasedNotificationsLimits.md) -- [PrismaticEventPayloadLoyaltyProfileBasedNotifications](docs/PrismaticEventPayloadLoyaltyProfileBasedNotifications.md) -- [PrismaticEventPayloadLoyaltyProfileBasedNotificationsAction](docs/PrismaticEventPayloadLoyaltyProfileBasedNotificationsAction.md) +- [PrismaticEventPayloadLoyaltyProfileBasedNotification](docs/PrismaticEventPayloadLoyaltyProfileBasedNotification.md) +- [PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification](docs/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.md) +- [PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction](docs/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.md) +- [PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification](docs/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.md) +- [PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification](docs/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.md) +- [PrismaticEventRecord](docs/PrismaticEventRecord.md) - [PrismaticFlow](docs/PrismaticFlow.md) - [PrismaticFlowConfig](docs/PrismaticFlowConfig.md) +- [PrismaticFlowConfigResponse](docs/PrismaticFlowConfigResponse.md) +- [PrismaticFlowResponse](docs/PrismaticFlowResponse.md) - [PrismaticFlowWithConfig](docs/PrismaticFlowWithConfig.md) - [PrismaticPaginatedEventPayload](docs/PrismaticPaginatedEventPayload.md) - [Product](docs/Product.md) @@ -905,6 +927,7 @@ Class | Method | HTTP request | Description - [ProductUnitAnalyticsTotals](docs/ProductUnitAnalyticsTotals.md) - [ProfileAudiencesChanges](docs/ProfileAudiencesChanges.md) - [ProjectedTier](docs/ProjectedTier.md) +- [PromoteExperiment](docs/PromoteExperiment.md) - [RedeemReferralEffectProps](docs/RedeemReferralEffectProps.md) - [Referral](docs/Referral.md) - [ReferralConstraints](docs/ReferralConstraints.md) @@ -917,6 +940,7 @@ Class | Method | HTTP request | Description - [RemoveManyItemsCatalogAction](docs/RemoveManyItemsCatalogAction.md) - [ReopenSessionResponse](docs/ReopenSessionResponse.md) - [ReserveCouponEffectProps](docs/ReserveCouponEffectProps.md) +- [ResponseContentObject](docs/ResponseContentObject.md) - [ReturnIntegrationRequest](docs/ReturnIntegrationRequest.md) - [ReturnedCartItem](docs/ReturnedCartItem.md) - [Revision](docs/Revision.md) @@ -1007,7 +1031,6 @@ Class | Method | HTTP request | Description - [TierWillDowngradeNotificationPolicy](docs/TierWillDowngradeNotificationPolicy.md) - [TierWillDowngradeNotificationTrigger](docs/TierWillDowngradeNotificationTrigger.md) - [TimePoint](docs/TimePoint.md) -- [TrackEventV2Response](docs/TrackEventV2Response.md) - [TransferLoyaltyCard](docs/TransferLoyaltyCard.md) - [TriggerWebhookEffectProps](docs/TriggerWebhookEffectProps.md) - [TwoFAConfig](docs/TwoFAConfig.md) @@ -1018,6 +1041,7 @@ Class | Method | HTTP request | Description - [UpdateApplicationCIF](docs/UpdateApplicationCIF.md) - [UpdateAttributeEffectProps](docs/UpdateAttributeEffectProps.md) - [UpdateAudience](docs/UpdateAudience.md) +- [UpdateBlueprint](docs/UpdateBlueprint.md) - [UpdateCampaign](docs/UpdateCampaign.md) - [UpdateCampaignCollection](docs/UpdateCampaignCollection.md) - [UpdateCampaignEvaluationGroup](docs/UpdateCampaignEvaluationGroup.md) @@ -1025,14 +1049,15 @@ Class | Method | HTTP request | Description - [UpdateCampaignTemplate](docs/UpdateCampaignTemplate.md) - [UpdateCatalog](docs/UpdateCatalog.md) - [UpdateCollection](docs/UpdateCollection.md) -- [UpdateCollectionsCatalog](docs/UpdateCollectionsCatalog.md) - [UpdateCoupon](docs/UpdateCoupon.md) - [UpdateCouponBatch](docs/UpdateCouponBatch.md) - [UpdateCouponsData](docs/UpdateCouponsData.md) - [UpdateExperiment](docs/UpdateExperiment.md) - [UpdateExperimentVariant](docs/UpdateExperimentVariant.md) - [UpdateExperimentVariantArray](docs/UpdateExperimentVariantArray.md) +- [UpdateExperimentVariantName](docs/UpdateExperimentVariantName.md) - [UpdateLoyaltyCard](docs/UpdateLoyaltyCard.md) +- [UpdateLoyaltyCardRequest](docs/UpdateLoyaltyCardRequest.md) - [UpdateLoyaltyProgram](docs/UpdateLoyaltyProgram.md) - [UpdateLoyaltyProgramTier](docs/UpdateLoyaltyProgramTier.md) - [UpdatePicklist](docs/UpdatePicklist.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index b51bd393..de2382ae 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -114,6 +114,9 @@ tags: - **Built-in events:** They are triggered by various endpoints, such as the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint. [Learn more](https://docs.talon.one/docs/dev/concepts/entities/events). - **Custom events:** They are triggered by the [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. name: Events +- description: | + Operations for managing experiments and experiment variants. + name: Experiments - description: | Represents a program that rewards customers with giveaways, such as free gift cards. @@ -1081,7 +1084,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TrackEventV2Response' + $ref: '#/components/schemas/IntegrationEventV2Response' description: OK "400": content: @@ -4575,6 +4578,85 @@ paths: tags: - management x-accepts: application/json + /v1/applications/{applicationId}/experiments: + get: + description: Get a list of experiments per application. + operationId: listExperiments + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + format: int64 + type: integer + - description: The number of items in the response. + in: query + name: pageSize + schema: + default: 1000 + format: int64 + maximum: 1000 + minimum: 1 + type: integer + - description: The number of items to skip when paging through large result + sets. + in: query + name: skip + schema: + format: int64 + 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:** You may not be able to use all fields for sorting. This is due to performance limitations. + in: query + name: sort + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_15' + description: OK + summary: List experiments + tags: + - management + x-accepts: application/json + /v1/applications/{applicationId}/experiments/{experimentId}: + get: + description: Retrieve a given experiment associated with an Application. + operationId: getExperiment + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + format: int64 + type: integer + - description: The ID of the experiment. + in: path + name: experimentId + required: true + schema: + format: int64 + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Experiment' + description: OK + summary: Get experiment in Application + tags: + - management + x-accepts: application/json /v1/applications/{applicationId}/create_campaign_from_template: post: description: | @@ -4622,7 +4704,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_15' + $ref: '#/components/schemas/inline_response_200_16' description: OK summary: List loyalty programs tags: @@ -4769,7 +4851,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_16' + $ref: '#/components/schemas/inline_response_200_17' description: OK summary: Get statistics for loyalty dashboard tags: @@ -5198,6 +5280,50 @@ paths: tags: - management x-accepts: application/csv + /v1/loyalty_programs/{loyaltyProgramId}/export_join_dates: + get: + description: | + Download a CSV file containing the join dates of all customers 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. + - `profileIntegrationID`: The integration ID of the customer profile. + - `joinDate`: The customer's loyalty program join date in RFC3339 format. + operationId: exportLoyaltyJoinDates + parameters: + - description: The identifier of the loyalty program. + in: path + name: loyaltyProgramId + required: true + schema: + type: string + responses: + "200": + content: + application/csv: + 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 + summary: Export customers' loyalty program join dates + tags: + - management + x-accepts: application/csv /v1/loyalty_programs/{loyaltyProgramId}/export_customers_tiers: get: description: | @@ -5517,7 +5643,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_17' + $ref: '#/components/schemas/inline_response_200_18' description: OK "400": content: @@ -5552,14 +5678,15 @@ paths: - `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. The identifiers should be separated with a semicolon (;). + - `attributes` (optional): A JSON object that contains the loyalty card's custom attributes and their values. These attributes must be created and connected to this loyalty program before they can be assigned to the cards through this endpoint. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv - identifier,state,customerprofileids - 123-456-789AT,active,Alexa001;UserA + identifier,state,customerprofileids,attributes + 123-456-789AT,active,Alexa001;UserA,"{""my_attribute"": ""10_off""}" ``` operationId: importLoyaltyCards parameters: @@ -5790,7 +5917,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_18' + $ref: '#/components/schemas/inline_response_200_19' description: OK "400": content: @@ -5810,13 +5937,22 @@ paths: x-accepts: application/json post: description: | - Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). + Generate a loyalty card in a specified [card-based loyalty + program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). - To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. + To link the card to one or more customer profiles, use the + `customerProfileIds` parameter in the request body. **Note:** - - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. + + - The number of customer profiles linked to the loyalty card cannot exceed + the loyalty program's `usersPerCardLimit`. To find the program's limit, use + the [Get loyalty + program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) + endpoint. + + - If the loyalty program has a defined code format, it will be used for the + loyalty card identifier. operationId: generateLoyaltyCard parameters: - description: | @@ -6043,8 +6179,9 @@ paths: - management x-accepts: application/json put: - description: Update the status of the given loyalty card. A card can be _active_ - or _inactive_. + description: 'Update the details of a specific loyalty card. You can set the + card''s status to `active` or `inactive` through this endpoint. At least one + of `status` or `attributes` must be provided. ' operationId: updateLoyaltyCard parameters: - description: | @@ -6070,7 +6207,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateLoyaltyCard' + $ref: '#/components/schemas/UpdateLoyaltyCardRequest' description: body required: true responses: @@ -6098,7 +6235,7 @@ paths: schema: $ref: '#/components/schemas/ErrorResponseWithStatus' description: Not found - summary: Update loyalty card status + summary: Update loyalty card tags: - management x-codegen-request-body-name: body @@ -6407,7 +6544,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_19' + $ref: '#/components/schemas/inline_response_200_20' description: OK "401": content: @@ -6661,7 +6798,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_20' + $ref: '#/components/schemas/inline_response_200_21' description: OK "400": content: @@ -6870,7 +7007,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_21' + $ref: '#/components/schemas/inline_response_200_22' description: OK "404": content: @@ -6938,7 +7075,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_20' + $ref: '#/components/schemas/inline_response_200_21' description: OK "404": content: @@ -7014,7 +7151,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_20' + $ref: '#/components/schemas/inline_response_200_21' description: OK "404": content: @@ -7570,7 +7707,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_22' + $ref: '#/components/schemas/inline_response_200_23' description: OK summary: Get access logs for Application tags: @@ -7637,7 +7774,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_23' + $ref: '#/components/schemas/inline_response_200_24' description: OK summary: Get analytics of campaigns tags: @@ -7692,7 +7829,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_24' + $ref: '#/components/schemas/inline_response_200_25' description: OK summary: List application's customers tags: @@ -7751,7 +7888,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_25' + $ref: '#/components/schemas/inline_response_200_26' description: OK summary: List application customers matching the given attributes tags: @@ -7801,7 +7938,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_26' + $ref: '#/components/schemas/inline_response_200_27' description: OK summary: List customer profiles matching the given attributes tags: @@ -7877,7 +8014,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_27' + $ref: '#/components/schemas/inline_response_200_28' description: OK summary: List customer profiles tags: @@ -8006,7 +8143,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_28' + $ref: '#/components/schemas/inline_response_200_29' description: OK summary: Get Activity Reports for Application Customers tags: @@ -8236,7 +8373,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_29' + $ref: '#/components/schemas/inline_response_200_30' description: OK summary: List Application sessions tags: @@ -8387,7 +8524,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_30' + $ref: '#/components/schemas/inline_response_200_31' description: OK summary: List Applications events tags: @@ -8438,7 +8575,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_31' + $ref: '#/components/schemas/inline_response_200_32' description: OK summary: List Applications event types tags: @@ -8488,7 +8625,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_32' + $ref: '#/components/schemas/inline_response_200_33' description: OK summary: List audiences tags: @@ -8520,7 +8657,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_33' + $ref: '#/components/schemas/inline_response_200_34' description: OK summary: List audience analytics tags: @@ -8575,7 +8712,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_34' + $ref: '#/components/schemas/inline_response_200_35' description: OK "404": content: @@ -8760,7 +8897,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_35' + $ref: '#/components/schemas/inline_response_200_36' description: OK summary: List friends referred by customer profile tags: @@ -8791,6 +8928,31 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json + /v1/best_prior_price_history: + post: + description: | + Fetch the historical price data for a given SKU within a defined timeframe. + operationId: priceHistory + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PriceHistoryRequest' + description: body + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PriceHistoryResponse' + description: Ok + summary: Get summary of price history + tags: + - integration + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json /v1/attributes: get: description: | @@ -8859,7 +9021,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_36' + $ref: '#/components/schemas/inline_response_200_37' description: OK summary: List custom attributes tags: @@ -9098,7 +9260,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_37' + $ref: '#/components/schemas/inline_response_200_38' description: OK summary: List items in a catalog tags: @@ -9438,7 +9600,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_38' + $ref: '#/components/schemas/inline_response_200_39' description: OK summary: List additional costs tags: @@ -9598,7 +9760,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_39' + $ref: '#/components/schemas/inline_response_200_40' description: OK summary: List webhooks tags: @@ -9811,7 +9973,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_40' + $ref: '#/components/schemas/inline_response_200_41' description: OK summary: List event types tags: @@ -9824,7 +9986,11 @@ paths: The CSV file contains the following columns: - - `value` (required): The coupon code. + - `value` (required): The coupon code. Must be at least 3 characters long. We recommend using alphanumeric characters. + There is no maximum length but limiting the code to 30 characters + ensures it is fully readable in the Campaign Manager. + The code should be unique unless you set `skipDuplicates` to `true`. + - `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 recipient of the coupon. @@ -10432,7 +10598,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_41' + $ref: '#/components/schemas/inline_response_200_42' description: OK summary: List users in account tags: @@ -11065,7 +11231,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_42' + $ref: '#/components/schemas/inline_response_200_43' description: OK summary: Get audit logs for an account tags: @@ -11332,7 +11498,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_43' + $ref: '#/components/schemas/inline_response_200_44' description: OK summary: Get exports tags: @@ -11347,7 +11513,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_44' + $ref: '#/components/schemas/inline_response_200_45' description: OK summary: List roles tags: @@ -11485,7 +11651,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_45' + $ref: '#/components/schemas/inline_response_200_46' description: OK summary: List stores tags: @@ -11935,7 +12101,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_46' + $ref: '#/components/schemas/inline_response_200_47' description: OK "400": content: @@ -12034,7 +12200,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_47' + $ref: '#/components/schemas/inline_response_200_48' description: OK "400": content: @@ -12266,7 +12432,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_48' + $ref: '#/components/schemas/inline_response_200_49' description: OK summary: List achievements tags: @@ -12626,7 +12792,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_49' + $ref: '#/components/schemas/inline_response_200_50' description: OK "400": content: @@ -12678,7 +12844,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_50' + $ref: '#/components/schemas/inline_response_200_51' description: OK summary: Summarize coupon redemption failures in session tags: @@ -13420,6 +13586,10 @@ components: TotalResultSize: format: int64 type: integer + BatchedAt: + description: Timestamp when the batch was created. + format: date-time + type: string EventType: enum: - LoyaltyPointsChanged @@ -16062,499 +16232,164 @@ components: - lastActivity - totalSales type: object - IntegrationEvent: + LoyaltyProgramEntity: properties: - profileId: - description: | - ID of the customer profile set by your integration layer. - - **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. - example: URNGV8294NV - type: string - storeIntegrationId: - description: The integration ID of the store. You choose this ID when you - create a store. - example: STORE-001 - maxLength: 1000 - minLength: 1 + programID: + description: The ID of the loyalty program that owns this entity. + example: 125 + format: int64 + type: integer + programName: + description: The integration name of the loyalty program that owns this + entity. + example: Loyalty_program type: string - type: - description: A string representing the event. Must not be a reserved event - name. - example: pageViewed - minLength: 1 - title: Event Type + programTitle: + description: The Campaign Manager-displayed name of the loyalty program + that owns this entity. + example: Loyalty program type: string - attributes: - description: Arbitrary additional JSON data associated with the event. - example: - myAttribute: myValue - properties: {} - type: object required: - - attributes - - type + - programID type: object - LedgerEntry: - description: Entry in the point ledger. - example: - expiryDate: 2022-04-26T11:02:38Z - accountId: 0 - eventId: 3 - reason: Customer appeasement. - amount: 100 - created: 2020-06-10T09:05:27.993483Z - profileId: URNGV8294NV - loyaltyProgramId: 323414846 - id: 6 - referenceId: 6 + UpdateLoyaltyCard: properties: - id: - description: The internal ID of this entity. - example: 6 - format: int64 - type: integer - created: - description: The time this entity was created. - example: 2020-06-10T09:05:27.993483Z - format: date-time + status: + description: | + Status of the loyalty card. Can be `active` or `inactive`. + example: active type: string - profileId: + blockReason: description: | - ID of the customer profile set by your integration layer. - - **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. - example: URNGV8294NV + Reason for transferring and blocking the loyalty card. + example: Current card lost. Customer needs a new card. type: string - accountId: - description: The ID of the Talon.One account that owns this profile. - format: int64 - type: integer - loyaltyProgramId: - description: ID of the ledger. - example: 323414846 - format: int64 - type: integer - eventId: - description: ID of the related event. - example: 3 - format: int64 - type: integer - amount: - description: Amount of loyalty points. - example: 100 - format: int64 - type: integer - reason: - description: reason for awarding/deducting points. - example: Customer appeasement. + required: + - status + type: object + LoyaltyCardProfileRegistration: + example: + integrationId: R195412 + timestamp: 2021-09-12T10:12:42Z + properties: + integrationId: + description: Integration ID of the customer profile linked to the card. + example: R195412 + maxLength: 1000 type: string - expiryDate: - description: Expiration date of the points. - example: 2022-04-26T11:02:38Z + timestamp: + description: Timestamp the customer profile was linked to the card. + example: 2021-09-12T10:12:42Z format: date-time type: string - referenceId: - description: The ID of the balancing ledgerEntry. - format: int64 - type: integer required: - - accountId - - amount - - created - - eventId - - expiryDate - - id - - loyaltyProgramId - - profileId - - reason + - integrationId + - timestamp type: object - CouponRejectionReason: - description: Holds a reference to the campaign, the coupon and the reason for - which that coupon was rejected. Should only be present when there is a 'rejectCoupon' - effect. - example: - reason: CouponNotFound - campaignId: 244 - couponId: 4928 + LoyaltyProgramBalance: + description: The balance in a Loyalty Program for some Customer. properties: - campaignId: - example: 244 - format: int64 - type: integer - couponId: - example: 4928 - format: int64 - type: integer - reason: - enum: - - CouponNotFound - - CouponPartOfNotRunningCampaign - - CampaignLimitReached - - ProfileLimitReached - - CouponRecipientDoesNotMatch - - CouponExpired - - CouponStartDateInFuture - - CouponRejectedByCondition - - EffectCouldNotBeApplied - - CouponPartOfNotTriggeredCampaign - - CouponReservationRequired - - ProfileRequired - example: CouponNotFound - type: string + currentBalance: + description: Sum of currently active points. + example: 100.0 + title: Current balance + type: number + pendingBalance: + description: Sum of pending points. + example: 10.0 + title: Pending balance + type: number + negativeBalance: + description: Sum of negative points. This implies that `currentBalance` + is `0`. + example: 10.0 + title: Negative balance + type: number + expiredBalance: + description: | + **DEPRECATED** Value is shown as 0. + example: 0.0 + title: Expired balance + type: number + spentBalance: + description: | + **DEPRECATED** Value is shown as 0. + example: 0.0 + title: Spent balance + type: number + tentativeCurrentBalance: + description: | + The tentative points balance, reflecting the `currentBalance` and all point additions and deductions within the current open customer session. When the session is closed, the effects are applied and the `currentBalance` is updated to this value. + + **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. + example: 100.0 + title: Tentative current balance + type: number + tentativePendingBalance: + description: | + The tentative points balance, reflecting the `pendingBalance` and all point additions with a future activation date within the current open customer session. When the session is closed, the effects are applied and the `pendingBalance` is updated to this value. + + **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. + example: 20.0 + title: Tentative pending balance + type: number + tentativeNegativeBalance: + description: | + The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. + + **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. + example: 100.0 + title: Tentative negative balance + type: number required: - - campaignId - - couponId - - reason + - currentBalance + - expiredBalance + - pendingBalance + - spentBalance + - tentativeCurrentBalance type: object - ReferralRejectionReason: - description: Holds a reference to the campaign, the referral and the reason - for which that referral was rejected. Should only be present when there is - a 'rejectReferral' effect. + Tier: example: - reason: ReferralNotFound - campaignId: 1 - referralId: 5 + expiryDate: 2000-01-23T04:56:07.000+00:00 + downgradePolicy: one_down + name: bronze + id: 11 + startDate: 2000-01-23T04:56:07.000+00:00 properties: - campaignId: - format: int64 - type: integer - referralId: + id: + description: The internal ID of the tier. + example: 11 format: int64 type: integer - reason: + name: + description: The name of the tier. + example: bronze + type: string + startDate: + description: Date and time when the customer moved to this tier. This value + uses the loyalty program's time zone setting. + format: date-time + type: string + expiryDate: + description: Date when tier level expires in the RFC3339 format (in the + Loyalty Program's timezone). + format: date-time + type: string + downgradePolicy: + description: | + The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. + - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. + - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. enum: - - ReferralNotFound - - ReferralRecipientIdSameAsAdvocate - - ReferralPartOfNotRunningCampaign - - ReferralLimitReached - - CampaignLimitReached - - ProfileLimitReached - - ReferralRecipientDoesNotMatch - - ReferralExpired - - ReferralStartDateInFuture - - ReferralRejectedByCondition - - EffectCouldNotBeApplied - - ReferralPartOfNotTriggeredCampaign - example: ReferralNotFound + - one_down + - balance_based type: string required: - - campaignId - - reason - - referralId + - id + - name type: object - Meta: - example: - campaigns: '{}' - coupons: '{}' - referralRejectionReason: - reason: ReferralNotFound - campaignId: 1 - referralId: 5 - warnings: '{}' - couponRejectionReason: - reason: CouponNotFound - campaignId: 244 - couponId: 4928 - properties: - campaigns: - description: Maps each evaluated campaign ID to a key-value list of that - campaigns attributes. Campaigns without attributes will be omitted. - properties: {} - type: object - coupons: - description: Maps the coupon value to a key-value list of that coupons attributes. - properties: {} - type: object - couponRejectionReason: - $ref: '#/components/schemas/CouponRejectionReason' - referralRejectionReason: - $ref: '#/components/schemas/ReferralRejectionReason' - warnings: - description: Contains warnings about possible misuse. - properties: {} - type: object - type: object - Event: - example: - effects: - - '{}' - - '{}' - storeIntegrationId: STORE-001 - created: 2020-06-10T09:05:27.993483Z - profileId: URNGV8294NV - meta: - campaigns: '{}' - coupons: '{}' - referralRejectionReason: - reason: ReferralNotFound - campaignId: 1 - referralId: 5 - warnings: '{}' - couponRejectionReason: - reason: CouponNotFound - campaignId: 244 - couponId: 4928 - ledgerEntries: - - expiryDate: 2022-04-26T11:02:38Z - accountId: 0 - eventId: 3 - reason: Customer appeasement. - amount: 100 - created: 2020-06-10T09:05:27.993483Z - profileId: URNGV8294NV - loyaltyProgramId: 323414846 - id: 6 - referenceId: 6 - - expiryDate: 2022-04-26T11:02:38Z - accountId: 0 - eventId: 3 - reason: Customer appeasement. - amount: 100 - created: 2020-06-10T09:05:27.993483Z - profileId: URNGV8294NV - loyaltyProgramId: 323414846 - id: 6 - referenceId: 6 - attributes: - myAttribute: myValue - id: 6 - sessionId: 175KJPS947296 - applicationId: 322 - type: pageViewed - properties: - id: - description: The internal ID of this entity. - example: 6 - format: int64 - type: integer - created: - description: The time 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 - format: int64 - type: integer - profileId: - description: | - ID of the customer profile set by your integration layer. - - **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. - example: URNGV8294NV - type: string - storeIntegrationId: - description: The integration ID of the store. You choose this ID when you - create a store. - example: STORE-001 - maxLength: 1000 - minLength: 1 - type: string - type: - description: A string representing the event. Must not be a reserved event - name. - example: pageViewed - minLength: 1 - title: Event Type - type: string - attributes: - description: Arbitrary additional JSON data associated with the event. - example: - myAttribute: myValue - properties: {} - type: object - sessionId: - description: The ID of the session that this event occurred in. - example: 175KJPS947296 - title: Session ID of Event - type: string - effects: - description: | - An array of effects generated by the rules of the enabled campaigns of the Application. - - You decide how to apply them in your system. See the list of [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). - items: - properties: {} - type: object - type: array - ledgerEntries: - description: Ledger entries for the event. - items: - $ref: '#/components/schemas/LedgerEntry' - type: array - meta: - $ref: '#/components/schemas/Meta' - required: - - applicationId - - attributes - - created - - effects - - id - - type - type: object - LoyaltyProgramEntity: - properties: - programID: - description: The ID of the loyalty program that owns this entity. - example: 125 - format: int64 - type: integer - programName: - description: The integration name of the loyalty program that owns this - entity. - example: Loyalty_program - type: string - programTitle: - description: The Campaign Manager-displayed name of the loyalty program - that owns this entity. - example: Loyalty program - type: string - required: - - programID - type: object - UpdateLoyaltyCard: - example: - blockReason: Current card lost. Customer needs a new card. - status: active - properties: - status: - description: | - Status of the loyalty card. Can be `active` or `inactive`. - example: active - type: string - blockReason: - description: | - Reason for transferring and blocking the loyalty card. - example: Current card lost. Customer needs a new card. - type: string - required: - - status - type: object - LoyaltyCardProfileRegistration: - example: - integrationId: R195412 - timestamp: 2021-09-12T10:12:42Z - properties: - integrationId: - description: Integration ID of the customer profile linked to the card. - example: R195412 - maxLength: 1000 - type: string - timestamp: - description: Timestamp the customer profile was linked to the card. - example: 2021-09-12T10:12:42Z - format: date-time - type: string - required: - - integrationId - - timestamp - type: object - LoyaltyProgramBalance: - description: The balance in a Loyalty Program for some Customer. - properties: - currentBalance: - description: Sum of currently active points. - example: 100.0 - title: Current balance - type: number - pendingBalance: - description: Sum of pending points. - example: 10.0 - title: Pending balance - type: number - negativeBalance: - description: Sum of negative points. This implies that `currentBalance` - is `0`. - example: 10.0 - title: Negative balance - type: number - expiredBalance: - description: | - **DEPRECATED** Value is shown as 0. - example: 0.0 - title: Expired balance - type: number - spentBalance: - description: | - **DEPRECATED** Value is shown as 0. - example: 0.0 - title: Spent balance - type: number - tentativeCurrentBalance: - description: | - The tentative points balance, reflecting the `currentBalance` and all point additions and deductions within the current open customer session. When the session is closed, the effects are applied and the `currentBalance` is updated to this value. - - **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. - example: 100.0 - title: Tentative current balance - type: number - tentativePendingBalance: - description: | - The tentative points balance, reflecting the `pendingBalance` and all point additions with a future activation date within the current open customer session. When the session is closed, the effects are applied and the `pendingBalance` is updated to this value. - - **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. - example: 20.0 - title: Tentative pending balance - type: number - tentativeNegativeBalance: - description: | - The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. - - **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. - example: 100.0 - title: Tentative negative balance - type: number - required: - - currentBalance - - expiredBalance - - pendingBalance - - spentBalance - - tentativeCurrentBalance - type: object - Tier: - example: - expiryDate: 2000-01-23T04:56:07.000+00:00 - downgradePolicy: one_down - name: bronze - id: 11 - startDate: 2000-01-23T04:56:07.000+00:00 - properties: - id: - description: The internal ID of the tier. - example: 11 - format: int64 - type: integer - name: - description: The name of the tier. - example: bronze - type: string - startDate: - description: Date and time when the customer moved to this tier. This value - uses the loyalty program's time zone setting. - format: date-time - type: string - expiryDate: - description: Date when tier level expires in the RFC3339 format (in the - Loyalty Program's timezone). - format: date-time - type: string - downgradePolicy: - description: | - The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. - enum: - - one_down - - balance_based - type: string - required: - - id - - name - type: object - LedgerInfo: - description: The balance in a Loyalty Program for some Customer. + LedgerInfo: + description: The balance in a Loyalty Program for some Customer. example: pendingBalance: 10.0 negativeBalance: 10.0 @@ -17023,391 +16858,127 @@ components: required: - programs type: object - ReferralConstraints: - properties: - startDate: - description: Timestamp at which point the referral code becomes valid. - example: 2020-11-10T23:00:00Z - format: date-time - title: Referral code valid from - type: string - expiryDate: - description: Expiration date of the referral code. Referral never expires - if this is omitted. - example: 2021-11-10T23:00:00Z - format: date-time - title: Referral code valid until - type: string - usageLimit: - description: | - The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. - example: 1 - format: int64 - maximum: 999999 - minimum: 0 - title: Referral code Usage Limit - type: integer - type: object - NewReferral: - example: - expiryDate: 2021-11-10T23:00:00Z - friendProfileIntegrationId: BZGGC2454PA - usageLimit: 1 - campaignId: 78 - attributes: - channel: web - startDate: 2020-11-10T23:00:00Z - advocateProfileIntegrationId: URNGV8294NV - properties: - startDate: - description: Timestamp at which point the referral code becomes valid. - example: 2020-11-10T23:00:00Z - format: date-time - title: Referral code valid from - type: string - expiryDate: - description: Expiration date of the referral code. Referral never expires - if this is omitted. - example: 2021-11-10T23:00:00Z - format: date-time - title: Referral code valid until - type: string - usageLimit: - description: | - The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. - example: 1 - format: int64 - maximum: 999999 - minimum: 0 - title: Referral code Usage Limit - type: integer - campaignId: - description: ID of the campaign from which the referral received the referral - code. - example: 78 - format: int64 - title: Referral's Campaign ID - type: integer - advocateProfileIntegrationId: - description: The Integration ID of the Advocate's Profile. - example: URNGV8294NV - maxLength: 1000 - title: Advocate's Profile ID - type: string - friendProfileIntegrationId: - description: An optional Integration ID of the Friend's Profile. - example: BZGGC2454PA - title: Friend's Profile ID - type: string - attributes: - description: Arbitrary properties associated with this item. - example: - channel: web - properties: {} - type: object - required: - - advocateProfileIntegrationId - - campaignId - type: object - ImportEntity: - properties: - importId: - description: The ID of the Import which created this referral. - example: 4 - format: int64 - type: integer - type: object - Referral: - example: - code: 27G47Y54VH9L - created: 2020-06-10T09:05:27.993483Z - usageLimit: 1 - campaignId: 78 - usageCounter: 1 - batchId: tqyrgahe - advocateProfileIntegrationId: URNGV8294NV - expiryDate: 2021-11-10T23:00:00Z - importId: 4 - friendProfileIntegrationId: BZGGC2454PA - attributes: - channel: web - id: 6 - startDate: 2020-11-10T23:00:00Z + EntityWithTalangVisibleID: properties: id: - description: The internal ID of this entity. - example: 6 + description: Unique ID for this entity. + example: 4 format: int64 type: integer created: - description: The time this entity was created. + description: The exact moment this entity was created. example: 2020-06-10T09:05:27.993483Z format: date-time type: string - startDate: - description: Timestamp at which point the referral code becomes valid. - example: 2020-11-10T23:00:00Z - format: date-time - title: Referral code valid from - type: string - expiryDate: - description: Expiration date of the referral code. Referral never expires - if this is omitted. - example: 2021-11-10T23:00:00Z - format: date-time - title: Referral code valid until - type: string - usageLimit: - description: | - The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. - example: 1 - format: int64 - maximum: 999999 - minimum: 0 - title: Referral code Usage Limit - type: integer - campaignId: - description: ID of the campaign from which the referral received the referral - code. - example: 78 - format: int64 - title: Referral's Campaign ID - type: integer - advocateProfileIntegrationId: - description: The Integration ID of the Advocate's Profile. - example: URNGV8294NV - maxLength: 1000 - title: Advocate's Profile ID - type: string - friendProfileIntegrationId: - description: An optional Integration ID of the Friend's Profile. - example: BZGGC2454PA - title: Friend's Profile ID - type: string - attributes: - description: Arbitrary properties associated with this item. - example: - channel: web - properties: {} - type: object - importId: - description: The ID of the Import which created this referral. - example: 4 - format: int64 - type: integer - code: - description: The referral code. - example: 27G47Y54VH9L - minLength: 4 - title: Referral code - type: string - usageCounter: - description: The number of times this referral code has been successfully - used. - example: 1 - format: int64 - title: Referral code Usages - type: integer - batchId: - description: The ID of the batch the referrals belong to. - example: tqyrgahe - title: Batch ID - type: string required: - - advocateProfileIntegrationId - - campaignId - - code - created - id - - usageCounter - - usageLimit type: object - InventoryReferral: - example: - code: 27G47Y54VH9L - created: 2020-06-10T09:05:27.993483Z - usageLimit: 1 - campaignId: 78 - usageCounter: 1 - batchId: tqyrgahe - advocateProfileIntegrationId: URNGV8294NV - expiryDate: 2021-11-10T23:00:00Z - importId: 4 - friendProfileIntegrationId: BZGGC2454PA - attributes: - channel: web - referredCustomers: - - referredCustomers - - referredCustomers - id: 6 - startDate: 2020-11-10T23:00:00Z + UserEntity: properties: - id: - description: The internal ID of this entity. - example: 6 + userId: + description: The ID of the user associated with this entity. + example: 388 format: int64 type: integer - created: - description: The time this entity was created. - example: 2020-06-10T09:05:27.993483Z - format: date-time - type: string - startDate: - description: Timestamp at which point the referral code becomes valid. - example: 2020-11-10T23:00:00Z - format: date-time - title: Referral code valid from - type: string - expiryDate: - description: Expiration date of the referral code. Referral never expires - if this is omitted. - example: 2021-11-10T23:00:00Z - format: date-time - title: Referral code valid until - type: string - usageLimit: + required: + - userId + type: object + CodeGeneratorSettings: + example: + couponPattern: SUMMER-####-#### + validCharacters: + - A + - B + - C + - D + - E + - F + - G + - H + - I + - J + - K + - L + - M + - "N" + - O + - P + - Q + - R + - S + - T + - U + - V + - W + - X + - "Y" + - Z + - "0" + - "1" + - "2" + - "3" + - "4" + - "5" + - "6" + - "7" + - "8" + - "9" + properties: + validCharacters: description: | - The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. - example: 1 - format: int64 - maximum: 999999 - minimum: 0 - title: Referral code Usage Limit - type: integer - campaignId: - description: ID of the campaign from which the referral received the referral - code. - example: 78 - format: int64 - title: Referral's Campaign ID - type: integer - advocateProfileIntegrationId: - description: The Integration ID of the Advocate's Profile. - example: URNGV8294NV - maxLength: 1000 - title: Advocate's Profile ID - type: string - friendProfileIntegrationId: - description: An optional Integration ID of the Friend's Profile. - example: BZGGC2454PA - title: Friend's Profile ID - type: string - attributes: - description: Arbitrary properties associated with this item. + List of characters used to generate the random parts of a code. example: - channel: web - properties: {} - type: object - importId: - description: The ID of the Import which created this referral. - example: 4 - format: int64 - type: integer - code: - description: The referral code. - example: 27G47Y54VH9L - minLength: 4 - title: Referral code - type: string - usageCounter: - description: The number of times this referral code has been successfully - used. - example: 1 - format: int64 - title: Referral code Usages - type: integer - batchId: - description: The ID of the batch the referrals belong to. - example: tqyrgahe - title: Batch ID - type: string - referredCustomers: - description: An array of referred customers. + - A + - B + - C + - D + - E + - F + - G + - H + - I + - J + - K + - L + - M + - "N" + - O + - P + - Q + - R + - S + - T + - U + - V + - W + - X + - "Y" + - Z + - "0" + - "1" + - "2" + - "3" + - "4" + - "5" + - "6" + - "7" + - "8" + - "9" items: type: string type: array - required: - - advocateProfileIntegrationId - - campaignId - - code - - created - - id - - referredCustomers - - usageCounter - - usageLimit - type: object - CouponEntity: - properties: - id: - description: The internal ID of the coupon. - example: 6 - format: int64 - type: integer - created: - description: The time the coupon was created. - example: 2020-06-10T09:05:27.993483Z - format: date-time - type: string - required: - - created - - id - type: object - CampaignEntity: - properties: - campaignId: - description: The ID of the campaign that owns this entity. - example: 211 - format: int64 - title: Campaign ID - type: integer - required: - - campaignId - type: object - CouponValue: - properties: - value: - description: The coupon code. - example: XMAS-20-2021 - minLength: 4 - title: Coupon Code - type: string - type: object - CouponConstraints: - properties: - usageLimit: - description: | - The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. - example: 100 - format: int64 - maximum: 999999 - minimum: 0 - type: integer - discountLimit: - description: | - The total discount value that the code can give. Typically used to represent a gift card value. - example: 30.0 - maximum: 1E+15 - minimum: 0 - type: number - reservationLimit: + couponPattern: description: | - The number of reservations that can be made with this coupon code. - example: 45 - format: int64 - maximum: 999999 - minimum: 0 - type: integer - startDate: - description: Timestamp at which point the coupon becomes valid. - example: 2020-01-24T14:15:22Z - format: date-time - type: string - expiryDate: - description: Expiration date of the coupon. Coupon never expires if this - is omitted. - example: 2023-08-24T14:15:22Z - format: date-time + The pattern used to generate codes, such as coupon codes, referral codes, and loyalty cards. The character `#` is a placeholder and is replaced by a random character from the `validCharacters` set. + example: SUMMER-####-#### + maxLength: 100 + minLength: 3 + pattern: ^[A-Za-z0-9_#-]*$ type: string + required: + - couponPattern + - validCharacters type: object LimitConfig: example: @@ -17459,906 +17030,397 @@ components: - entities - limit type: object - CouponLimitConfigs: + BaseCampaign: 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 + 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 + format: int64 + type: integer + tags: + description: A list of tags for the campaign. + example: + - summer + items: + maxLength: 50 + minLength: 1 + type: string + maxItems: 50 + type: array + reevaluateOnReturn: + description: Indicates whether this campaign should be reevaluated when + a customer returns an item. + example: true + title: Reevaluate on return + type: boolean + features: + description: The features enabled in this campaign. + example: + - coupons + - referrals + items: + enum: + - coupons + - referrals + - loyalty + - giveaways + - strikethrough + - achievements + type: string + type: array + couponSettings: + $ref: '#/components/schemas/CodeGeneratorSettings' + referralSettings: + $ref: '#/components/schemas/CodeGeneratorSettings' limits: description: | - Limits configuration for a coupon. These limits will override the limits - set from the campaign. - - **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. - Only per-profile limits are allowed to be configured. + 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: + format: int64 + type: integer + type: array + 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: + format: int64 + type: integer + type: array + required: + - features + - limits + - name + - state + - tags type: object - Coupon: + CampaignBudget: example: - recipientIntegrationId: URNGV8294NV - implicitlyReserved: false - created: 2020-06-10T09:05:27.993483Z - campaignId: 211 - usageLimit: 100 - referralId: 326632952 - usageCounter: 10 - batchId: 32535-43255 - discountCounter: 10.0 - expiryDate: 2023-08-24T14:15:22Z - importId: 4 - reservationLimit: 45 - reservationCounter: 1.0 - reservation: false - attributes: '{}' - id: 6 - value: XMAS-20-2021 - discountLimit: 30.0 - startDate: 2020-01-24T14:15:22Z - limits: - - period: yearly - entities: - - Coupon - limit: 1000.0 - action: createCoupon - - period: yearly - entities: - - Coupon - limit: 1000.0 - action: createCoupon - discountRemainder: 5.0 - isReservationMandatory: false + limit: 1000.0 + action: createCoupon + counter: 42.0 properties: - id: - description: The internal ID of the coupon. - example: 6 - format: int64 - type: integer - created: - description: The time the coupon was created. - example: 2020-06-10T09:05:27.993483Z - format: date-time + action: + description: | + The limitable action to which this limit applies. For example: + - `setDiscount` + - `setDiscountEffect` + - `redeemCoupon` + - `createCoupon` + example: createCoupon type: string - campaignId: - description: The ID of the campaign that owns this entity. - example: 211 + limit: + description: The value to set for the limit. + example: 1000.0 + minimum: 0 + type: number + counter: + description: The number of occurrences of the limited action in the context + of the campaign. + example: 42.0 + minimum: 0 + type: number + required: + - action + - counter + - limit + type: object + AdditionalCampaignProperties: + properties: + 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 format: int64 - title: Campaign ID type: integer - value: - description: The coupon code. - example: XMAS-20-2021 - minLength: 4 - title: Coupon Code - type: string - usageLimit: + referralRedemptionCount: description: | - The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. - example: 100 + This property is **deprecated**. The count should be available under *budgets* property. + Number of referral codes redeemed in the campaign. + example: 3 format: int64 - maximum: 999999 - minimum: 0 type: integer - discountLimit: + discountCount: description: | - The total discount value that the code can give. Typically used to represent a gift card value. - example: 30.0 - maximum: 1E+15 - minimum: 0 + 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 - reservationLimit: + discountEffectCount: description: | - The number of reservations that can be made with this coupon code. - example: 45 + This property is **deprecated**. The count should be available under *budgets* property. + Total number of times discounts were redeemed in this campaign. + example: 343 format: int64 - maximum: 999999 - minimum: 0 type: integer - startDate: - description: Timestamp at which point the coupon becomes valid. - example: 2020-01-24T14:15:22Z - format: date-time - type: string - expiryDate: - description: Expiration date of the coupon. Coupon never expires if this - is omitted. - example: 2023-08-24T14:15:22Z - format: date-time - type: string - limits: + couponCreationCount: description: | - Limits configuration for a coupon. These limits will override the limits - set from the campaign. - - **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. - Only per-profile limits are allowed to be configured. - items: - $ref: '#/components/schemas/LimitConfig' - type: array - usageCounter: - description: The number of times the coupon has been successfully redeemed. - example: 10 + This property is **deprecated**. The count should be available under *budgets* property. + Total number of coupons created by rules in this campaign. + example: 16 format: int64 - title: Total coupon redemptions type: integer - discountCounter: - description: The amount of discounts given on rules redeeming this coupon. - Only usable if a coupon discount budget was set for this coupon. - example: 10.0 - title: Discounts Given - type: number - discountRemainder: - description: The remaining discount this coupon can give. - example: 5.0 - title: Coupon Discount Remainder - type: number - reservationCounter: - description: The number of times this coupon has been reserved. - example: 1.0 - title: Number of reservations - type: number - attributes: - description: Custom attributes associated with this coupon. - properties: {} - title: Attributes of coupon - type: object - referralId: - description: The integration ID of the referring customer (if any) for whom - this coupon was created as an effect. - example: 326632952 + 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 format: int64 - title: Advocate ID type: integer - recipientIntegrationId: - description: The Integration ID of the customer that is allowed to redeem - this coupon. - example: URNGV8294NV - maxLength: 1000 - title: Recipient ID - type: string - importId: - description: The ID of the Import which created this coupon. - example: 4 + 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 format: int64 - title: Import ID type: integer - reservation: - default: true + addFreeItemEffectCount: description: | - Defines the reservation type: - - `true`: The coupon can be reserved for multiple customers. - - `false`: The coupon can be reserved only for one customer. It is a personal code. - example: false - title: Reservation Type - type: boolean - batchId: - description: The id of the batch the coupon belongs to. - example: 32535-43255 - title: Batch ID - type: string - isReservationMandatory: - default: false - description: An indication of whether the code can be redeemed only if it - has been reserved first. - example: false - title: Is reservation mandatory - type: boolean - implicitlyReserved: - description: An indication of whether the coupon is implicitly reserved - for all customers. - example: false - title: Is coupon implicitly reserved for all customers - type: boolean - required: - - campaignId - - created - - id - - usageCounter - - usageLimit - - value - type: object - IntegrationCoupon: - example: - recipientIntegrationId: URNGV8294NV - implicitlyReserved: false - created: 2020-06-10T09:05:27.993483Z - campaignId: 211 - usageLimit: 100 - referralId: 326632952 - profileRedemptionCount: 5 - usageCounter: 10 - batchId: 32535-43255 - discountCounter: 10.0 - expiryDate: 2023-08-24T14:15:22Z - importId: 4 - reservationLimit: 45 - reservationCounter: 1.0 - reservation: false - attributes: '{}' - id: 6 - value: XMAS-20-2021 - discountLimit: 30.0 - startDate: 2020-01-24T14:15:22Z - limits: - - period: yearly - entities: - - Coupon - limit: 1000.0 - action: createCoupon - - period: yearly - entities: - - Coupon - limit: 1000.0 - action: createCoupon - discountRemainder: 5.0 - isReservationMandatory: false - properties: - id: - description: The internal ID of the coupon. - example: 6 + 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 format: int64 type: integer - created: - description: The time the coupon was created. - example: 2020-06-10T09:05:27.993483Z - format: date-time - type: string - campaignId: - description: The ID of the campaign that owns this entity. - example: 211 + 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 format: int64 - title: Campaign ID type: integer - value: - description: The coupon code. - example: XMAS-20-2021 - minLength: 4 - title: Coupon Code - type: string - usageLimit: + createdLoyaltyPointsCount: description: | - The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. - example: 100 + 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 format: int64 - maximum: 999999 - minimum: 0 type: integer - discountLimit: + redeemedLoyaltyPointsCount: description: | - The total discount value that the code can give. Typically used to represent a gift card value. - example: 30.0 - maximum: 1E+15 - minimum: 0 + 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 - reservationLimit: + redeemedLoyaltyPointsEffectCount: description: | - The number of reservations that can be made with this coupon code. - example: 45 + 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 format: int64 - maximum: 999999 - minimum: 0 type: integer - startDate: - description: Timestamp at which point the coupon becomes valid. - example: 2020-01-24T14:15:22Z - format: date-time - type: string - expiryDate: - description: Expiration date of the coupon. Coupon never expires if this - is omitted. - example: 2023-08-24T14:15:22Z - format: date-time - type: string - limits: + callApiEffectCount: description: | - Limits configuration for a coupon. These limits will override the limits - set from the campaign. - - **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. - Only per-profile limits are allowed to be configured. - items: - $ref: '#/components/schemas/LimitConfig' - type: array - usageCounter: - description: The number of times the coupon has been successfully redeemed. - example: 10 + This property is **deprecated**. The count should be available under *budgets* property. + Total number of webhooks triggered by rules in this campaign. + example: 0 format: int64 - title: Total coupon redemptions type: integer - discountCounter: - description: The amount of discounts given on rules redeeming this coupon. - Only usable if a coupon discount budget was set for this coupon. - example: 10.0 - title: Discounts Given - type: number - discountRemainder: - description: The remaining discount this coupon can give. - example: 5.0 - title: Coupon Discount Remainder - type: number - reservationCounter: - description: The number of times this coupon has been reserved. - example: 1.0 - title: Number of reservations - type: number - attributes: - description: Custom attributes associated with this coupon. - properties: {} - title: Attributes of coupon - type: object - referralId: - description: The integration ID of the referring customer (if any) for whom - this coupon was created as an effect. - example: 326632952 + 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 format: int64 - title: Advocate ID type: integer - recipientIntegrationId: - description: The Integration ID of the customer that is allowed to redeem - this coupon. - example: URNGV8294NV - maxLength: 1000 - title: Recipient ID + lastActivity: + description: Timestamp of the most recent event received by this campaign. + example: 2022-11-10T23:00:00Z + format: date-time type: string - importId: - description: The ID of the Import which created this coupon. - example: 4 + 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 format: int64 - title: Import ID type: integer - reservation: - default: true - description: | - Defines the reservation type: - - `true`: The coupon can be reserved for multiple customers. - - `false`: The coupon can be reserved only for one customer. It is a personal code. - example: false - title: Reservation Type - type: boolean - batchId: - description: The id of the batch the coupon belongs to. - example: 32535-43255 - title: Batch ID + frontendState: + description: The campaign state displayed in the Campaign Manager. + enum: + - expired + - scheduled + - running + - disabled + - archived + - staged + example: running type: string - isReservationMandatory: - default: false - description: An indication of whether the code can be redeemed only if it - has been reserved first. - example: false - title: Is reservation mandatory - type: boolean - implicitlyReserved: - description: An indication of whether the coupon is implicitly reserved - for all customers. - example: false - title: Is coupon implicitly reserved for all customers + storesImported: + description: Indicates whether the linked stores were imported via a CSV + file. + example: true type: boolean - profileRedemptionCount: - description: The number of times the coupon was redeemed by the profile. - example: 5 + valueMapsIds: + description: A list of value map IDs for the campaign. + example: + - 100 + - 215 + items: + format: int64 + type: integer + type: array + experimentId: + description: The ID of the Experiment this Campaign is part of. + example: 1 format: int64 - title: Coupon redemptions for the profile type: integer required: - - campaignId - - created - - id - - profileRedemptionCount - - usageCounter - - usageLimit - - value + - frontendState + - storesImported type: object - EntityWithTalangVisibleID: + CampaignVersions: properties: - id: - description: Unique ID for this entity. - example: 4 + revisionFrontendState: + description: The campaign revision state displayed in the Campaign Manager. + enum: + - revised + - pending + example: revised + type: string + activeRevisionId: + description: | + ID of the revision that was last activated on this campaign. + example: 6 format: int64 type: integer - created: - description: The exact moment this entity was created. - example: 2020-06-10T09:05:27.993483Z - format: date-time - type: string - required: - - created - - id - type: object - UserEntity: - properties: - userId: - description: The ID of the user associated with this entity. - example: 388 + activeRevisionVersionId: + description: | + ID of the revision version that is active on the campaign. + example: 6 format: int64 type: integer - required: - - userId + version: + description: | + Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. + example: 6 + format: int64 + type: integer + currentRevisionId: + description: | + ID of the revision currently being modified for the campaign. + example: 6 + format: int64 + type: integer + currentRevisionVersionId: + description: | + ID of the latest version applied on the current revision. + example: 6 + format: int64 + type: integer + stageRevision: + default: false + description: | + Flag for determining whether we use current revision when sending requests with staging API key. + example: false + type: boolean type: object - CodeGeneratorSettings: + Campaign: example: - couponPattern: SUMMER-####-#### - validCharacters: - - A - - B - - C - - D - - E - - F - - G - - H - - I - - J - - K - - L - - M - - "N" - - O - - P - - Q - - R - - S - - T - - U - - V - - W - - X - - "Y" - - Z - - "0" - - "1" - - "2" - - "3" - - "4" - - "5" - - "6" - - "7" - - "8" - - "9" - properties: - validCharacters: - description: | - List of characters used to generate the random parts of a code. - example: - - A - - B - - C - - D - - E - - F - - G - - H - - I - - J - - K - - L - - M - - "N" - - O - - P - - Q - - R - - S - - T - - U - - V - - W - - X - - "Y" - - Z - - "0" - - "1" - - "2" - - "3" - - "4" - - "5" - - "6" - - "7" - - "8" - - "9" - items: - type: string - type: array - couponPattern: - description: | - The pattern used to generate codes, such as coupon codes, referral codes, and loyalty cards. The character `#` is a placeholder and is replaced by a random character from the `validCharacters` set. - example: SUMMER-####-#### - maxLength: 100 - minLength: 3 - pattern: ^[A-Za-z0-9_#-]*$ - type: string - required: - - couponPattern - - validCharacters - type: object - BaseCampaign: - 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 - 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 - format: int64 - type: integer - tags: - description: A list of tags for the campaign. - example: - - summer - items: - maxLength: 50 - minLength: 1 - type: string - maxItems: 50 - type: array - reevaluateOnReturn: - description: Indicates whether this campaign should be reevaluated when - a customer returns an item. - example: true - title: Reevaluate on return - type: boolean - features: - description: The features enabled in this campaign. - example: - - coupons - - referrals - items: - enum: - - coupons - - referrals - - loyalty - - giveaways - - strikethrough - - achievements - 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: - format: int64 - type: integer - type: array - 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: - format: int64 - type: integer - type: array - required: - - features - - limits - - name - - state - - tags - type: object - CampaignBudget: - example: - limit: 1000.0 - action: createCoupon - counter: 42.0 - properties: - action: - description: | - The limitable action to which this limit applies. For example: - - `setDiscount` - - `setDiscountEffect` - - `redeemCoupon` - - `createCoupon` - example: createCoupon - type: string - limit: - description: The value to set for the limit. - example: 1000.0 - minimum: 0 - type: number - counter: - description: The number of occurrences of the limited action in the context - of the campaign. - example: 42.0 - minimum: 0 - type: number - required: - - action - - counter - - limit - type: object - AdditionalCampaignProperties: - properties: - 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 - format: int64 - 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 - format: int64 - 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 - format: int64 - 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 - format: int64 - 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 - format: int64 - 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 - format: int64 - 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 - format: int64 - 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 - format: int64 - 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 - format: int64 - 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 - format: int64 - 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 - format: int64 - 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 - format: int64 - 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 - format: int64 - type: integer - frontendState: - description: The campaign state displayed in the Campaign Manager. - enum: - - expired - - scheduled - - running - - disabled - - archived - - staged - example: running - type: string - storesImported: - description: Indicates whether the linked stores were imported via a CSV - file. - example: true - type: boolean - valueMapsIds: - description: A list of value map IDs for the campaign. - example: - - 100 - - 215 - items: - format: int64 - type: integer - type: array - experimentId: - description: The ID of the Experiment this Campaign is part of. - example: 1 - format: int64 - type: integer - required: - - frontendState - - storesImported - type: object - CampaignVersions: - properties: - revisionFrontendState: - description: The campaign revision state displayed in the Campaign Manager. - enum: - - revised - - pending - example: revised - type: string - activeRevisionId: - description: | - ID of the revision that was last activated on this campaign. - example: 6 - format: int64 - type: integer - activeRevisionVersionId: - description: | - ID of the revision version that is active on the campaign. - example: 6 - format: int64 - type: integer - version: - description: | - Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. - example: 6 - format: int64 - type: integer - currentRevisionId: - description: | - ID of the revision currently being modified for the campaign. - example: 6 - format: int64 - type: integer - currentRevisionVersionId: - description: | - ID of the latest version applied on the current revision. - example: 6 - format: int64 - type: integer - stageRevision: - default: false - description: | - Flag for determining whether we use current revision when sending requests with staging API key. - example: false - type: boolean - type: object - Campaign: - example: - type: advanced - templateId: 3 - customEffectCount: 0 - activeRevisionId: 6 - features: - - coupons - - referrals - createdLoyaltyPointsCount: 9.0 - storesImported: true - couponSettings: - couponPattern: SUMMER-####-#### - validCharacters: + type: advanced + templateId: 3 + customEffectCount: 0 + activeRevisionId: 6 + features: + - coupons + - referrals + createdLoyaltyPointsCount: 9.0 + storesImported: true + couponSettings: + couponPattern: SUMMER-####-#### + validCharacters: - A - B - C @@ -18869,11 +17931,11 @@ components: RuleFailureReason: description: Details about why a rule failed. example: - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -18910,59 +17972,1197 @@ components: of the rule failure. format: int64 type: integer - referralValue: - description: The code of the referral that was being evaluated at the time - of the rule failure. + referralValue: + description: The code of the referral that was being evaluated at the time + of the rule failure. + type: string + ruleIndex: + description: The index of the rule that failed within the ruleset. + format: int64 + type: integer + ruleName: + description: The name of the rule that failed within the ruleset. + type: string + conditionIndex: + description: The index of the condition that failed. + format: int64 + type: integer + effectIndex: + description: The index of the effect that failed. + format: int64 + type: integer + details: + description: More details about the failure. + type: string + evaluationGroupID: + description: The ID of the evaluation group. For more information, see [Managing + campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). + example: 3 + format: int64 + type: integer + evaluationGroupMode: + description: The evaluation mode of the evaluation group. For more information, + see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign- + example: stackable + type: string + required: + - campaignID + - campaignName + - ruleIndex + - ruleName + - rulesetID + type: object + CouponEntity: + properties: + id: + description: The internal ID of the coupon. + example: 6 + format: int64 + type: integer + created: + description: The time the coupon was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time + type: string + required: + - created + - id + type: object + CampaignEntity: + properties: + campaignId: + description: The ID of the campaign that owns this entity. + example: 211 + format: int64 + title: Campaign ID + type: integer + required: + - campaignId + type: object + CouponValue: + properties: + value: + description: The coupon code. + example: XMAS-20-2021 + minLength: 4 + title: Coupon Code + type: string + type: object + CouponConstraints: + properties: + usageLimit: + description: | + The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + example: 100 + format: int64 + maximum: 999999 + minimum: 0 + type: integer + discountLimit: + description: | + The total discount value that the code can give. Typically used to represent a gift card value. + example: 30.0 + maximum: 1E+15 + minimum: 0 + type: number + reservationLimit: + description: | + The number of reservations that can be made with this coupon code. + example: 45 + format: int64 + maximum: 999999 + minimum: 0 + type: integer + startDate: + description: Timestamp at which point the coupon becomes valid. + example: 2020-01-24T14:15:22Z + format: date-time + type: string + expiryDate: + description: Expiration date of the coupon. Coupon never expires if this + is omitted. + example: 2023-08-24T14:15:22Z + format: date-time + type: string + type: object + CouponLimitConfigs: + properties: + limits: + description: | + Limits configuration for a coupon. These limits will override the limits + set from the campaign. + + **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. + Only per-profile limits are allowed to be configured. + items: + $ref: '#/components/schemas/LimitConfig' + type: array + type: object + Coupon: + example: + recipientIntegrationId: URNGV8294NV + implicitlyReserved: false + created: 2020-06-10T09:05:27.993483Z + campaignId: 211 + usageLimit: 100 + referralId: 326632952 + usageCounter: 10 + batchId: 32535-43255 + discountCounter: 10.0 + expiryDate: 2023-08-24T14:15:22Z + importId: 4 + reservationLimit: 45 + reservationCounter: 1.0 + reservation: false + attributes: '{}' + id: 6 + value: XMAS-20-2021 + discountLimit: 30.0 + startDate: 2020-01-24T14:15:22Z + limits: + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + discountRemainder: 5.0 + isReservationMandatory: false + properties: + id: + description: The internal ID of the coupon. + example: 6 + format: int64 + type: integer + created: + description: The time the coupon was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time + type: string + campaignId: + description: The ID of the campaign that owns this entity. + example: 211 + format: int64 + title: Campaign ID + type: integer + value: + description: The coupon code. + example: XMAS-20-2021 + minLength: 4 + title: Coupon Code + type: string + usageLimit: + description: | + The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + example: 100 + format: int64 + maximum: 999999 + minimum: 0 + type: integer + discountLimit: + description: | + The total discount value that the code can give. Typically used to represent a gift card value. + example: 30.0 + maximum: 1E+15 + minimum: 0 + type: number + reservationLimit: + description: | + The number of reservations that can be made with this coupon code. + example: 45 + format: int64 + maximum: 999999 + minimum: 0 + type: integer + startDate: + description: Timestamp at which point the coupon becomes valid. + example: 2020-01-24T14:15:22Z + format: date-time + type: string + expiryDate: + description: Expiration date of the coupon. Coupon never expires if this + is omitted. + example: 2023-08-24T14:15:22Z + format: date-time + type: string + limits: + description: | + Limits configuration for a coupon. These limits will override the limits + set from the campaign. + + **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. + Only per-profile limits are allowed to be configured. + items: + $ref: '#/components/schemas/LimitConfig' + type: array + usageCounter: + description: The number of times the coupon has been successfully redeemed. + example: 10 + format: int64 + title: Total coupon redemptions + type: integer + discountCounter: + description: The amount of discounts given on rules redeeming this coupon. + Only usable if a coupon discount budget was set for this coupon. + example: 10.0 + title: Discounts Given + type: number + discountRemainder: + description: The remaining discount this coupon can give. + example: 5.0 + title: Coupon Discount Remainder + type: number + reservationCounter: + description: The number of times this coupon has been reserved. + example: 1.0 + title: Number of reservations + type: number + attributes: + description: Custom attributes associated with this coupon. + properties: {} + title: Attributes of coupon + type: object + referralId: + description: The integration ID of the referring customer (if any) for whom + this coupon was created as an effect. + example: 326632952 + format: int64 + title: Advocate ID + type: integer + recipientIntegrationId: + description: The Integration ID of the customer that is allowed to redeem + this coupon. + example: URNGV8294NV + maxLength: 1000 + title: Recipient ID + type: string + importId: + description: The ID of the Import which created this coupon. + example: 4 + format: int64 + title: Import ID + type: integer + reservation: + default: true + description: | + Defines the reservation type: + - `true`: The coupon can be reserved for multiple customers. + - `false`: The coupon can be reserved only for one customer. It is a personal code. + example: false + title: Reservation Type + type: boolean + batchId: + description: The id of the batch the coupon belongs to. + example: 32535-43255 + title: Batch ID + type: string + isReservationMandatory: + default: false + description: An indication of whether the code can be redeemed only if it + has been reserved first. + example: false + title: Is reservation mandatory + type: boolean + implicitlyReserved: + description: An indication of whether the coupon is implicitly reserved + for all customers. + example: false + title: Is coupon implicitly reserved for all customers + type: boolean + required: + - campaignId + - created + - id + - usageCounter + - usageLimit + - value + type: object + ReferralConstraints: + properties: + startDate: + description: Timestamp at which point the referral code becomes valid. + example: 2020-11-10T23:00:00Z + format: date-time + title: Referral code valid from + type: string + expiryDate: + description: Expiration date of the referral code. Referral never expires + if this is omitted. + example: 2021-11-10T23:00:00Z + format: date-time + title: Referral code valid until + type: string + usageLimit: + description: | + The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. + example: 1 + format: int64 + maximum: 999999 + minimum: 0 + title: Referral code Usage Limit + type: integer + type: object + NewReferral: + example: + expiryDate: 2021-11-10T23:00:00Z + friendProfileIntegrationId: BZGGC2454PA + usageLimit: 1 + campaignId: 78 + attributes: + channel: web + startDate: 2020-11-10T23:00:00Z + advocateProfileIntegrationId: URNGV8294NV + properties: + startDate: + description: Timestamp at which point the referral code becomes valid. + example: 2020-11-10T23:00:00Z + format: date-time + title: Referral code valid from + type: string + expiryDate: + description: Expiration date of the referral code. Referral never expires + if this is omitted. + example: 2021-11-10T23:00:00Z + format: date-time + title: Referral code valid until + type: string + usageLimit: + description: | + The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. + example: 1 + format: int64 + maximum: 999999 + minimum: 0 + title: Referral code Usage Limit + type: integer + campaignId: + description: ID of the campaign from which the referral received the referral + code. + example: 78 + format: int64 + title: Referral's Campaign ID + type: integer + advocateProfileIntegrationId: + description: The Integration ID of the Advocate's Profile. + example: URNGV8294NV + maxLength: 1000 + title: Advocate's Profile ID + type: string + friendProfileIntegrationId: + description: An optional Integration ID of the Friend's Profile. + example: BZGGC2454PA + title: Friend's Profile ID + type: string + attributes: + description: Arbitrary properties associated with this item. + example: + channel: web + properties: {} + type: object + required: + - advocateProfileIntegrationId + - campaignId + type: object + ImportEntity: + properties: + importId: + description: The ID of the Import which created this referral. + example: 4 + format: int64 + type: integer + type: object + Referral: + example: + code: 27G47Y54VH9L + created: 2020-06-10T09:05:27.993483Z + usageLimit: 1 + campaignId: 78 + usageCounter: 1 + batchId: tqyrgahe + advocateProfileIntegrationId: URNGV8294NV + expiryDate: 2021-11-10T23:00:00Z + importId: 4 + friendProfileIntegrationId: BZGGC2454PA + attributes: + channel: web + id: 6 + startDate: 2020-11-10T23:00:00Z + properties: + id: + description: The internal ID of this entity. + example: 6 + format: int64 + type: integer + created: + description: The time this entity was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time + type: string + startDate: + description: Timestamp at which point the referral code becomes valid. + example: 2020-11-10T23:00:00Z + format: date-time + title: Referral code valid from + type: string + expiryDate: + description: Expiration date of the referral code. Referral never expires + if this is omitted. + example: 2021-11-10T23:00:00Z + format: date-time + title: Referral code valid until + type: string + usageLimit: + description: | + The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. + example: 1 + format: int64 + maximum: 999999 + minimum: 0 + title: Referral code Usage Limit + type: integer + campaignId: + description: ID of the campaign from which the referral received the referral + code. + example: 78 + format: int64 + title: Referral's Campaign ID + type: integer + advocateProfileIntegrationId: + description: The Integration ID of the Advocate's Profile. + example: URNGV8294NV + maxLength: 1000 + title: Advocate's Profile ID + type: string + friendProfileIntegrationId: + description: An optional Integration ID of the Friend's Profile. + example: BZGGC2454PA + title: Friend's Profile ID + type: string + attributes: + description: Arbitrary properties associated with this item. + example: + channel: web + properties: {} + type: object + importId: + description: The ID of the Import which created this referral. + example: 4 + format: int64 + type: integer + code: + description: The referral code. + example: 27G47Y54VH9L + minLength: 4 + title: Referral code + type: string + usageCounter: + description: The number of times this referral code has been successfully + used. + example: 1 + format: int64 + title: Referral code Usages + type: integer + batchId: + description: The ID of the batch the referrals belong to. + example: tqyrgahe + title: Batch ID + type: string + required: + - advocateProfileIntegrationId + - campaignId + - code + - created + - id + - usageCounter + - usageLimit + type: object + Giveaway: + example: + profileIntegrationId: R195412 + code: GIVEAWAY1 + importId: 4 + endDate: 2000-01-23T04:56:07.000+00:00 + created: 2020-06-10T09:05:27.993483Z + profileId: 1 + poolId: 1 + attributes: '{}' + id: 6 + used: true + startDate: 2000-01-23T04:56:07.000+00:00 + properties: + id: + description: The internal ID of this entity. + example: 6 + format: int64 + type: integer + created: + description: The time this entity was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time + type: string + code: + description: The code value of this giveaway. + example: GIVEAWAY1 + type: string + poolId: + description: The ID of the pool to return giveaway codes from. + example: 1 + format: int64 + type: integer + startDate: + description: Timestamp at which point the giveaway becomes valid. + format: date-time + type: string + endDate: + description: Timestamp at which point the giveaway becomes invalid. + format: date-time + type: string + attributes: + description: Arbitrary properties associated with this giveaway. + properties: {} + type: object + used: + description: Indicates whether this giveaway code was given before. + example: true + type: boolean + importId: + description: The ID of the Import which created this giveaway. + example: 4 + format: int64 + type: integer + profileIntegrationId: + description: The third-party integration ID of the customer profile that + was awarded the giveaway, if the giveaway was awarded. + example: R195412 + type: string + profileId: + description: The internal ID of the customer profile that was awarded the + giveaway, if the giveaway was awarded and an internal ID exists. + example: 1 + format: int64 + type: integer + required: + - code + - created + - id + - poolId + type: object + IntegrationResponse: + description: | + Contains entities that might be valuable in Talon.One integrations. + properties: + customerProfile: + $ref: '#/components/schemas/CustomerProfile' + loyalty: + $ref: '#/components/schemas/Loyalty' + triggeredCampaigns: + description: The campaigns that were triggered as a result of processing + the event. + items: + $ref: '#/components/schemas/Campaign' + type: array + effects: + description: The effects generated by the rules in your running campaigns. + See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + items: + $ref: '#/components/schemas/Effect' + type: array + ruleFailureReasons: + description: | + The reasons why certain rules were not triggered during the event + processing. + items: + $ref: '#/components/schemas/RuleFailureReason' + type: array + createdCoupons: + description: The coupons that were created during the event processing. + items: + $ref: '#/components/schemas/Coupon' + type: array + createdReferrals: + description: The referrals that were created during the event processing. + items: + $ref: '#/components/schemas/Referral' + type: array + awardedGiveaways: + description: The giveaways that were awarded during the event processing. + items: + $ref: '#/components/schemas/Giveaway' + type: array + required: + - createdCoupons + - createdReferrals + - effects + type: object + InventoryReferral: + example: + code: 27G47Y54VH9L + created: 2020-06-10T09:05:27.993483Z + usageLimit: 1 + campaignId: 78 + usageCounter: 1 + batchId: tqyrgahe + advocateProfileIntegrationId: URNGV8294NV + expiryDate: 2021-11-10T23:00:00Z + importId: 4 + friendProfileIntegrationId: BZGGC2454PA + attributes: + channel: web + referredCustomers: + - referredCustomers + - referredCustomers + id: 6 + startDate: 2020-11-10T23:00:00Z + properties: + id: + description: The internal ID of this entity. + example: 6 + format: int64 + type: integer + created: + description: The time this entity was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time + type: string + startDate: + description: Timestamp at which point the referral code becomes valid. + example: 2020-11-10T23:00:00Z + format: date-time + title: Referral code valid from + type: string + expiryDate: + description: Expiration date of the referral code. Referral never expires + if this is omitted. + example: 2021-11-10T23:00:00Z + format: date-time + title: Referral code valid until + type: string + usageLimit: + description: | + The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. + example: 1 + format: int64 + maximum: 999999 + minimum: 0 + title: Referral code Usage Limit + type: integer + campaignId: + description: ID of the campaign from which the referral received the referral + code. + example: 78 + format: int64 + title: Referral's Campaign ID + type: integer + advocateProfileIntegrationId: + description: The Integration ID of the Advocate's Profile. + example: URNGV8294NV + maxLength: 1000 + title: Advocate's Profile ID + type: string + friendProfileIntegrationId: + description: An optional Integration ID of the Friend's Profile. + example: BZGGC2454PA + title: Friend's Profile ID + type: string + attributes: + description: Arbitrary properties associated with this item. + example: + channel: web + properties: {} + type: object + importId: + description: The ID of the Import which created this referral. + example: 4 + format: int64 + type: integer + code: + description: The referral code. + example: 27G47Y54VH9L + minLength: 4 + title: Referral code + type: string + usageCounter: + description: The number of times this referral code has been successfully + used. + example: 1 + format: int64 + title: Referral code Usages + type: integer + batchId: + description: The ID of the batch the referrals belong to. + example: tqyrgahe + title: Batch ID + type: string + referredCustomers: + description: An array of referred customers. + items: + type: string + type: array + required: + - advocateProfileIntegrationId + - campaignId + - code + - created + - id + - referredCustomers + - usageCounter + - usageLimit + type: object + IntegrationCoupon: + example: + recipientIntegrationId: URNGV8294NV + implicitlyReserved: false + created: 2020-06-10T09:05:27.993483Z + campaignId: 211 + usageLimit: 100 + referralId: 326632952 + profileRedemptionCount: 5 + usageCounter: 10 + batchId: 32535-43255 + discountCounter: 10.0 + expiryDate: 2023-08-24T14:15:22Z + importId: 4 + reservationLimit: 45 + reservationCounter: 1.0 + reservation: false + attributes: '{}' + id: 6 + value: XMAS-20-2021 + discountLimit: 30.0 + startDate: 2020-01-24T14:15:22Z + limits: + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + discountRemainder: 5.0 + isReservationMandatory: false + properties: + id: + description: The internal ID of the coupon. + example: 6 + format: int64 + type: integer + created: + description: The time the coupon was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time + type: string + campaignId: + description: The ID of the campaign that owns this entity. + example: 211 + format: int64 + title: Campaign ID + type: integer + value: + description: The coupon code. + example: XMAS-20-2021 + minLength: 4 + title: Coupon Code + type: string + usageLimit: + description: | + The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + example: 100 + format: int64 + maximum: 999999 + minimum: 0 + type: integer + discountLimit: + description: | + The total discount value that the code can give. Typically used to represent a gift card value. + example: 30.0 + maximum: 1E+15 + minimum: 0 + type: number + reservationLimit: + description: | + The number of reservations that can be made with this coupon code. + example: 45 + format: int64 + maximum: 999999 + minimum: 0 + type: integer + startDate: + description: Timestamp at which point the coupon becomes valid. + example: 2020-01-24T14:15:22Z + format: date-time + type: string + expiryDate: + description: Expiration date of the coupon. Coupon never expires if this + is omitted. + example: 2023-08-24T14:15:22Z + format: date-time + type: string + limits: + description: | + Limits configuration for a coupon. These limits will override the limits + set from the campaign. + + **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. + Only per-profile limits are allowed to be configured. + items: + $ref: '#/components/schemas/LimitConfig' + type: array + usageCounter: + description: The number of times the coupon has been successfully redeemed. + example: 10 + format: int64 + title: Total coupon redemptions + type: integer + discountCounter: + description: The amount of discounts given on rules redeeming this coupon. + Only usable if a coupon discount budget was set for this coupon. + example: 10.0 + title: Discounts Given + type: number + discountRemainder: + description: The remaining discount this coupon can give. + example: 5.0 + title: Coupon Discount Remainder + type: number + reservationCounter: + description: The number of times this coupon has been reserved. + example: 1.0 + title: Number of reservations + type: number + attributes: + description: Custom attributes associated with this coupon. + properties: {} + title: Attributes of coupon + type: object + referralId: + description: The integration ID of the referring customer (if any) for whom + this coupon was created as an effect. + example: 326632952 + format: int64 + title: Advocate ID + type: integer + recipientIntegrationId: + description: The Integration ID of the customer that is allowed to redeem + this coupon. + example: URNGV8294NV + maxLength: 1000 + title: Recipient ID + type: string + importId: + description: The ID of the Import which created this coupon. + example: 4 + format: int64 + title: Import ID + type: integer + reservation: + default: true + description: | + Defines the reservation type: + - `true`: The coupon can be reserved for multiple customers. + - `false`: The coupon can be reserved only for one customer. It is a personal code. + example: false + title: Reservation Type + type: boolean + batchId: + description: The id of the batch the coupon belongs to. + example: 32535-43255 + title: Batch ID + type: string + isReservationMandatory: + default: false + description: An indication of whether the code can be redeemed only if it + has been reserved first. + example: false + title: Is reservation mandatory + type: boolean + implicitlyReserved: + description: An indication of whether the coupon is implicitly reserved + for all customers. + example: false + title: Is coupon implicitly reserved for all customers + type: boolean + profileRedemptionCount: + description: The number of times the coupon was redeemed by the profile. + example: 5 + format: int64 + title: Coupon redemptions for the profile + type: integer + required: + - campaignId + - created + - id + - profileRedemptionCount + - usageCounter + - usageLimit + - value + type: object + IntegrationEvent: + properties: + profileId: + description: | + ID of the customer profile set by your integration layer. + + **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + example: URNGV8294NV + type: string + storeIntegrationId: + description: The integration ID of the store. You choose this ID when you + create a store. + example: STORE-001 + maxLength: 1000 + minLength: 1 + type: string + type: + description: A string representing the event. Must not be a reserved event + name. + example: pageViewed + minLength: 1 + title: Event Type + type: string + attributes: + description: Arbitrary additional JSON data associated with the event. + example: + myAttribute: myValue + properties: {} + type: object + required: + - attributes + - type + type: object + LedgerEntry: + description: Entry in the point ledger. + example: + expiryDate: 2022-04-26T11:02:38Z + accountId: 7 + eventId: 3 + reason: Customer appeasement. + amount: 100 + created: 2020-06-10T09:05:27.993483Z + profileId: URNGV8294NV + loyaltyProgramId: 323414846 + id: 6 + referenceId: 9 + properties: + id: + description: The internal ID of this entity. + example: 6 + format: int64 + type: integer + created: + description: The time this entity was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time + type: string + profileId: + description: | + ID of the customer profile set by your integration layer. + + **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + example: URNGV8294NV + type: string + accountId: + description: The ID of the Talon.One account that owns this profile. + format: int64 + type: integer + loyaltyProgramId: + description: ID of the ledger. + example: 323414846 + format: int64 + type: integer + eventId: + description: ID of the related event. + example: 3 + format: int64 + type: integer + amount: + description: Amount of loyalty points. + example: 100 + format: int64 + type: integer + reason: + description: reason for awarding/deducting points. + example: Customer appeasement. type: string - ruleIndex: - description: The index of the rule that failed within the ruleset. + expiryDate: + description: Expiration date of the points. + example: 2022-04-26T11:02:38Z + format: date-time + type: string + referenceId: + description: The ID of the balancing ledgerEntry. format: int64 type: integer - ruleName: - description: The name of the rule that failed within the ruleset. - type: string - conditionIndex: - description: The index of the condition that failed. + required: + - accountId + - amount + - created + - eventId + - expiryDate + - id + - loyaltyProgramId + - profileId + - reason + type: object + CouponRejectionReason: + description: Holds a reference to the campaign, the coupon and the reason for + which that coupon was rejected. Should only be present when there is a 'rejectCoupon' + effect. + example: + reason: CouponNotFound + campaignId: 244 + couponId: 4928 + properties: + campaignId: + example: 244 format: int64 type: integer - effectIndex: - description: The index of the effect that failed. + couponId: + example: 4928 format: int64 type: integer - details: - description: More details about the failure. + reason: + enum: + - CouponNotFound + - CouponPartOfNotRunningCampaign + - CampaignLimitReached + - ProfileLimitReached + - CouponRecipientDoesNotMatch + - CouponExpired + - CouponStartDateInFuture + - CouponRejectedByCondition + - EffectCouldNotBeApplied + - CouponPartOfNotTriggeredCampaign + - CouponReservationRequired + - ProfileRequired + example: CouponNotFound type: string - evaluationGroupID: - description: The ID of the evaluation group. For more information, see [Managing - campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). - example: 3 + required: + - campaignId + - couponId + - reason + type: object + ReferralRejectionReason: + description: Holds a reference to the campaign, the referral and the reason + for which that referral was rejected. Should only be present when there is + a 'rejectReferral' effect. + example: + reason: ReferralNotFound + campaignId: 3 + referralId: 2 + properties: + campaignId: format: int64 type: integer - evaluationGroupMode: - description: The evaluation mode of the evaluation group. For more information, - see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign- - example: stackable + referralId: + format: int64 + type: integer + reason: + enum: + - ReferralNotFound + - ReferralRecipientIdSameAsAdvocate + - ReferralPartOfNotRunningCampaign + - ReferralLimitReached + - CampaignLimitReached + - ProfileLimitReached + - ReferralRecipientDoesNotMatch + - ReferralExpired + - ReferralStartDateInFuture + - ReferralRejectedByCondition + - EffectCouldNotBeApplied + - ReferralPartOfNotTriggeredCampaign + example: ReferralNotFound type: string required: - - campaignID - - campaignName - - ruleIndex - - ruleName - - rulesetID + - campaignId + - reason + - referralId type: object - Giveaway: + Meta: example: - profileIntegrationId: R195412 - code: GIVEAWAY1 - importId: 4 - endDate: 2000-01-23T04:56:07.000+00:00 + campaigns: '{}' + coupons: '{}' + referralRejectionReason: + reason: ReferralNotFound + campaignId: 3 + referralId: 2 + warnings: '{}' + couponRejectionReason: + reason: CouponNotFound + campaignId: 244 + couponId: 4928 + properties: + campaigns: + description: Maps each evaluated campaign ID to a key-value list of that + campaigns attributes. Campaigns without attributes will be omitted. + properties: {} + type: object + coupons: + description: Maps the coupon value to a key-value list of that coupons attributes. + properties: {} + type: object + couponRejectionReason: + $ref: '#/components/schemas/CouponRejectionReason' + referralRejectionReason: + $ref: '#/components/schemas/ReferralRejectionReason' + warnings: + description: Contains warnings about possible misuse. + properties: {} + type: object + type: object + Event: + example: + effects: + - '{}' + - '{}' + storeIntegrationId: STORE-001 created: 2020-06-10T09:05:27.993483Z - profileId: 1 - poolId: 1 - attributes: '{}' + profileId: URNGV8294NV + meta: + campaigns: '{}' + coupons: '{}' + referralRejectionReason: + reason: ReferralNotFound + campaignId: 3 + referralId: 2 + warnings: '{}' + couponRejectionReason: + reason: CouponNotFound + campaignId: 244 + couponId: 4928 + ledgerEntries: + - expiryDate: 2022-04-26T11:02:38Z + accountId: 7 + eventId: 3 + reason: Customer appeasement. + amount: 100 + created: 2020-06-10T09:05:27.993483Z + profileId: URNGV8294NV + loyaltyProgramId: 323414846 + id: 6 + referenceId: 9 + - expiryDate: 2022-04-26T11:02:38Z + accountId: 7 + eventId: 3 + reason: Customer appeasement. + amount: 100 + created: 2020-06-10T09:05:27.993483Z + profileId: URNGV8294NV + loyaltyProgramId: 323414846 + id: 6 + referenceId: 9 + attributes: + myAttribute: myValue id: 6 - used: true - startDate: 2000-01-23T04:56:07.000+00:00 + sessionId: 175KJPS947296 + applicationId: 322 + type: pageViewed properties: id: description: The internal ID of this entity. @@ -18974,52 +19174,155 @@ components: example: 2020-06-10T09:05:27.993483Z format: date-time type: string - code: - description: The code value of this giveaway. - example: GIVEAWAY1 - type: string - poolId: - description: The ID of the pool to return giveaway codes from. - example: 1 + applicationId: + description: The ID of the Application that owns this entity. + example: 322 format: int64 type: integer - startDate: - description: Timestamp at which point the giveaway becomes valid. - format: date-time + profileId: + description: | + ID of the customer profile set by your integration layer. + + **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + example: URNGV8294NV type: string - endDate: - description: Timestamp at which point the giveaway becomes invalid. - format: date-time + storeIntegrationId: + description: The integration ID of the store. You choose this ID when you + create a store. + example: STORE-001 + maxLength: 1000 + minLength: 1 + type: string + type: + description: A string representing the event. Must not be a reserved event + name. + example: pageViewed + minLength: 1 + title: Event Type type: string attributes: - description: Arbitrary properties associated with this giveaway. + description: Arbitrary additional JSON data associated with the event. + example: + myAttribute: myValue properties: {} type: object - used: - description: Indicates whether this giveaway code was given before. - example: true - type: boolean - importId: - description: The ID of the Import which created this giveaway. - example: 4 - format: int64 - type: integer - profileIntegrationId: - description: The third-party integration ID of the customer profile that - was awarded the giveaway, if the giveaway was awarded. - example: R195412 + sessionId: + description: The ID of the session that this event occurred in. + example: 175KJPS947296 + title: Session ID of Event type: string - profileId: - description: The internal ID of the customer profile that was awarded the - giveaway, if the giveaway was awarded and an internal ID exists. - example: 1 - format: int64 - type: integer + effects: + description: | + An array of effects generated by the rules of the enabled campaigns of the Application. + + You decide how to apply them in your system. See the list of [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + items: + properties: {} + type: object + type: array + ledgerEntries: + description: Ledger entries for the event. + items: + $ref: '#/components/schemas/LedgerEntry' + type: array + meta: + $ref: '#/components/schemas/Meta' required: - - code + - applicationId + - attributes - created + - effects - id - - poolId + - type + type: object + IntegrationProfileEntityV3: + properties: + profileId: + description: | + ID of the customer profile set by your integration layer. + + **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + example: URNGV8294NV + type: string + required: + - profileId + type: object + EventV3: + example: + connectedSessionID: 175KJPS947296 + storeIntegrationId: STORE-001 + profileId: URNGV8294NV + evaluableCampaignIds: + - 10 + - 12 + previousEventID: 175KJPS947296 + integrationId: 175KJPS947296 + attributes: + myAttribute: myValue + type: pageViewed + properties: + profileId: + description: | + ID of the customer profile set by your integration layer. + + **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + example: URNGV8294NV + type: string + storeIntegrationId: + description: The integration ID of the store. You choose this ID when you + create a store. + example: STORE-001 + maxLength: 1000 + minLength: 1 + type: string + evaluableCampaignIds: + description: | + 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. + example: + - 10 + - 12 + items: + format: int64 + type: integer + title: Campaigns to evaluate + type: array + integrationId: + description: | + The unique ID of the current event. Only one event with this ID could be activated, duplicated events are forbidden. + example: 175KJPS947296 + minLength: 1 + type: string + type: + description: | + A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. + example: pageViewed + minLength: 1 + title: Event Type + type: string + attributes: + description: Arbitrary additional JSON properties associated with the event. + They must be created in the Campaign Manager before setting them with + this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). + example: + myAttribute: myValue + properties: {} + type: object + connectedSessionID: + description: The ID of the session that happened in the past. + example: 175KJPS947296 + minLength: 1 + type: string + previousEventID: + description: The unique identifier of the event that happened in the past. + example: 175KJPS947296 + minLength: 1 + type: string + required: + - integrationId + - profileId + - type type: object AccountEntity: properties: @@ -20017,6 +20320,18 @@ components: id: 6 sessionId: 123 applicationId: 322 + advancedEvent: + connectedSessionID: 175KJPS947296 + storeIntegrationId: STORE-001 + profileId: URNGV8294NV + evaluableCampaignIds: + - 10 + - 12 + previousEventID: 175KJPS947296 + integrationId: 175KJPS947296 + attributes: + myAttribute: myValue + type: pageViewed event: effects: - '{}' @@ -20029,8 +20344,8 @@ components: coupons: '{}' referralRejectionReason: reason: ReferralNotFound - campaignId: 1 - referralId: 5 + campaignId: 3 + referralId: 2 warnings: '{}' couponRejectionReason: reason: CouponNotFound @@ -20038,7 +20353,7 @@ components: couponId: 4928 ledgerEntries: - expiryDate: 2022-04-26T11:02:38Z - accountId: 0 + accountId: 7 eventId: 3 reason: Customer appeasement. amount: 100 @@ -20046,9 +20361,9 @@ components: profileId: URNGV8294NV loyaltyProgramId: 323414846 id: 6 - referenceId: 6 + referenceId: 9 - expiryDate: 2022-04-26T11:02:38Z - accountId: 0 + accountId: 7 eventId: 3 reason: Customer appeasement. amount: 100 @@ -20056,7 +20371,7 @@ components: profileId: URNGV8294NV loyaltyProgramId: 323414846 id: 6 - referenceId: 6 + referenceId: 9 attributes: myAttribute: myValue id: 6 @@ -20064,11 +20379,11 @@ components: applicationId: 322 type: pageViewed ruleFailureReasons: - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -20078,11 +20393,11 @@ components: ruleName: ruleName details: details campaignName: campaignName - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -20111,21 +20426,13 @@ components: sessionId: 123 applicationId: 322 properties: - customerSession: - $ref: '#/components/schemas/CustomerSessionV2' customerProfile: $ref: '#/components/schemas/CustomerProfile' - event: - $ref: '#/components/schemas/Event' loyalty: $ref: '#/components/schemas/Loyalty' - referral: - $ref: '#/components/schemas/InventoryReferral' - coupons: - items: - $ref: '#/components/schemas/IntegrationCoupon' - type: array triggeredCampaigns: + description: The campaigns that were triggered as a result of processing + the event. items: $ref: '#/components/schemas/Campaign' type: array @@ -20136,24 +20443,44 @@ components: $ref: '#/components/schemas/Effect' type: array ruleFailureReasons: + description: | + The reasons why certain rules were not triggered during the event + processing. items: $ref: '#/components/schemas/RuleFailureReason' type: array createdCoupons: + description: The coupons that were created during the event processing. items: $ref: '#/components/schemas/Coupon' type: array createdReferrals: + description: The referrals that were created during the event processing. items: $ref: '#/components/schemas/Referral' type: array awardedGiveaways: + description: The giveaways that were awarded during the event processing. items: $ref: '#/components/schemas/Giveaway' type: array + referral: + $ref: '#/components/schemas/InventoryReferral' + coupons: + description: The coupons that were processed. + items: + $ref: '#/components/schemas/IntegrationCoupon' + type: array + event: + $ref: '#/components/schemas/Event' + advancedEvent: + $ref: '#/components/schemas/EventV3' + customerSession: + $ref: '#/components/schemas/CustomerSessionV2' return: $ref: '#/components/schemas/Return' previousReturns: + description: The previous returns associated with the event. items: $ref: '#/components/schemas/Return' type: array @@ -20252,6 +20579,25 @@ components: required: - effects type: object + ResponseContentObject: + properties: + responseContent: + description: | + Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. + example: + - triggeredCampaigns + - customerProfile + items: + enum: + - customerProfile + - triggeredCampaigns + - loyalty + - event + - awardedGiveaways + - ruleFailureReasons + type: string + type: array + type: object ProfileAudiencesChanges: example: deletes: @@ -20324,12 +20670,9 @@ components: type: integer title: Campaigns to evaluate type: array - audiencesChanges: - $ref: '#/components/schemas/ProfileAudiencesChanges' responseContent: description: | - Extends the response with the chosen data entities. Use this property to get as much data - as you need in one _Update customer profile_ request instead of sending extra requests to other endpoints. + Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. example: - triggeredCampaigns - customerProfile @@ -20343,6 +20686,8 @@ components: - ruleFailureReasons type: string type: array + audiencesChanges: + $ref: '#/components/schemas/ProfileAudiencesChanges' type: object CustomerProfileIntegrationResponseV2: description: | @@ -20892,8 +21237,8 @@ components: coupons: '{}' referralRejectionReason: reason: ReferralNotFound - campaignId: 1 - referralId: 5 + campaignId: 3 + referralId: 2 warnings: '{}' couponRejectionReason: reason: CouponNotFound @@ -20901,7 +21246,7 @@ components: couponId: 4928 ledgerEntries: - expiryDate: 2022-04-26T11:02:38Z - accountId: 0 + accountId: 7 eventId: 3 reason: Customer appeasement. amount: 100 @@ -20909,9 +21254,9 @@ components: profileId: URNGV8294NV loyaltyProgramId: 323414846 id: 6 - referenceId: 6 + referenceId: 9 - expiryDate: 2022-04-26T11:02:38Z - accountId: 0 + accountId: 7 eventId: 3 reason: Customer appeasement. amount: 100 @@ -20919,7 +21264,7 @@ components: profileId: URNGV8294NV loyaltyProgramId: 323414846 id: 6 - referenceId: 6 + referenceId: 9 attributes: myAttribute: myValue id: 6 @@ -20992,11 +21337,11 @@ components: discountRemainder: 5.0 isReservationMandatory: false ruleFailureReasons: - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -21006,11 +21351,11 @@ components: ruleName: ruleName details: details campaignName: campaignName - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -21523,6 +21868,7 @@ components: - Coupon - Event - Giveaway + - LoyaltyCard - Referral - Store example: Event @@ -21693,6 +22039,7 @@ components: - Coupon - Event - Giveaway + - LoyaltyCard - Referral - Store example: Event @@ -22038,6 +22385,26 @@ components: - usageLimit - value type: object + EventAttributesEntity: + properties: + type: + description: | + A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. + example: pageViewed + minLength: 1 + title: Event Type + type: string + attributes: + description: Arbitrary additional JSON properties associated with the event. + They must be created in the Campaign Manager before setting them with + this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). + example: + myAttribute: myValue + properties: {} + type: object + required: + - type + type: object EventV2: properties: profileId: @@ -22143,17 +22510,9 @@ components: myAttribute: myValue properties: {} type: object - loyaltyCards: - description: Identifier of the loyalty card used during this event. - example: - - loyalty-card-1 - items: - type: string - maxItems: 1 - type: array responseContent: description: | - Optional list of requested information to be present on the response related to the tracking custom event. + Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. example: - triggeredCampaigns - customerProfile @@ -22167,6 +22526,14 @@ components: - ruleFailureReasons type: string type: array + loyaltyCards: + description: Identifiers of the loyalty cards used during this event. + example: + - loyalty-card-1 + items: + type: string + maxItems: 1 + type: array required: - type type: object @@ -23598,7 +23965,7 @@ components: - sessionId - type type: object - TrackEventV2Response: + IntegrationEventV2Response: description: | This is the response type returned by the trackEventV2 endpoint. example: @@ -24134,6 +24501,71 @@ components: id: 6 used: true startDate: 2000-01-23T04:56:07.000+00:00 + createdCoupons: + - recipientIntegrationId: URNGV8294NV + implicitlyReserved: false + created: 2020-06-10T09:05:27.993483Z + campaignId: 211 + usageLimit: 100 + referralId: 326632952 + usageCounter: 10 + batchId: 32535-43255 + discountCounter: 10.0 + expiryDate: 2023-08-24T14:15:22Z + importId: 4 + reservationLimit: 45 + reservationCounter: 1.0 + reservation: false + attributes: '{}' + id: 6 + value: XMAS-20-2021 + discountLimit: 30.0 + startDate: 2020-01-24T14:15:22Z + limits: + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + discountRemainder: 5.0 + isReservationMandatory: false + - recipientIntegrationId: URNGV8294NV + implicitlyReserved: false + created: 2020-06-10T09:05:27.993483Z + campaignId: 211 + usageLimit: 100 + referralId: 326632952 + usageCounter: 10 + batchId: 32535-43255 + discountCounter: 10.0 + expiryDate: 2023-08-24T14:15:22Z + importId: 4 + reservationLimit: 45 + reservationCounter: 1.0 + reservation: false + attributes: '{}' + id: 6 + value: XMAS-20-2021 + discountLimit: 30.0 + startDate: 2020-01-24T14:15:22Z + limits: + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + discountRemainder: 5.0 + isReservationMandatory: false event: effects: - '{}' @@ -24146,8 +24578,8 @@ components: coupons: '{}' referralRejectionReason: reason: ReferralNotFound - campaignId: 1 - referralId: 5 + campaignId: 3 + referralId: 2 warnings: '{}' couponRejectionReason: reason: CouponNotFound @@ -24155,7 +24587,7 @@ components: couponId: 4928 ledgerEntries: - expiryDate: 2022-04-26T11:02:38Z - accountId: 0 + accountId: 7 eventId: 3 reason: Customer appeasement. amount: 100 @@ -24163,9 +24595,9 @@ components: profileId: URNGV8294NV loyaltyProgramId: 323414846 id: 6 - referenceId: 6 + referenceId: 9 - expiryDate: 2022-04-26T11:02:38Z - accountId: 0 + accountId: 7 eventId: 3 reason: Customer appeasement. amount: 100 @@ -24173,84 +24605,19 @@ components: profileId: URNGV8294NV loyaltyProgramId: 323414846 id: 6 - referenceId: 6 + referenceId: 9 attributes: myAttribute: myValue id: 6 sessionId: 175KJPS947296 applicationId: 322 type: pageViewed - createdCoupons: - - recipientIntegrationId: URNGV8294NV - implicitlyReserved: false - created: 2020-06-10T09:05:27.993483Z - campaignId: 211 - usageLimit: 100 - referralId: 326632952 - usageCounter: 10 - batchId: 32535-43255 - discountCounter: 10.0 - expiryDate: 2023-08-24T14:15:22Z - importId: 4 - reservationLimit: 45 - reservationCounter: 1.0 - reservation: false - attributes: '{}' - id: 6 - value: XMAS-20-2021 - discountLimit: 30.0 - startDate: 2020-01-24T14:15:22Z - limits: - - period: yearly - entities: - - Coupon - limit: 1000.0 - action: createCoupon - - period: yearly - entities: - - Coupon - limit: 1000.0 - action: createCoupon - discountRemainder: 5.0 - isReservationMandatory: false - - recipientIntegrationId: URNGV8294NV - implicitlyReserved: false - created: 2020-06-10T09:05:27.993483Z - campaignId: 211 - usageLimit: 100 - referralId: 326632952 - usageCounter: 10 - batchId: 32535-43255 - discountCounter: 10.0 - expiryDate: 2023-08-24T14:15:22Z - importId: 4 - reservationLimit: 45 - reservationCounter: 1.0 - reservation: false - attributes: '{}' - id: 6 - value: XMAS-20-2021 - discountLimit: 30.0 - startDate: 2020-01-24T14:15:22Z - limits: - - period: yearly - entities: - - Coupon - limit: 1000.0 - action: createCoupon - - period: yearly - entities: - - Coupon - limit: 1000.0 - action: createCoupon - discountRemainder: 5.0 - isReservationMandatory: false ruleFailureReasons: - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -24260,11 +24627,11 @@ components: ruleName: ruleName details: details campaignName: campaignName - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -24306,36 +24673,44 @@ components: properties: customerProfile: $ref: '#/components/schemas/CustomerProfile' - event: - $ref: '#/components/schemas/Event' loyalty: $ref: '#/components/schemas/Loyalty' triggeredCampaigns: + description: The campaigns that were triggered as a result of processing + the event. items: $ref: '#/components/schemas/Campaign' type: array - ruleFailureReasons: - items: - $ref: '#/components/schemas/RuleFailureReason' - type: array - awardedGiveaways: - items: - $ref: '#/components/schemas/Giveaway' - type: array effects: description: The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). items: $ref: '#/components/schemas/Effect' type: array + ruleFailureReasons: + description: | + The reasons why certain rules were not triggered during the event + processing. + items: + $ref: '#/components/schemas/RuleFailureReason' + type: array createdCoupons: + description: The coupons that were created during the event processing. items: $ref: '#/components/schemas/Coupon' type: array createdReferrals: + description: The referrals that were created during the event processing. items: $ref: '#/components/schemas/Referral' type: array + awardedGiveaways: + description: The giveaways that were awarded during the event processing. + items: + $ref: '#/components/schemas/Giveaway' + type: array + event: + $ref: '#/components/schemas/Event' required: - createdCoupons - createdReferrals @@ -25801,6 +26176,16 @@ components: - transactionUUID - type type: object + UpdateLoyaltyCardRequest: + example: + status: active + properties: + status: + description: | + Status of the loyalty card. Can be `active` or `inactive`. + example: active + type: string + type: object LoyaltyLedgerEntryFlags: description: A map of flags providing additional details about the entry. example: @@ -30962,6 +31347,185 @@ components: - state type: object ExperimentVariant: + example: + created: 2020-06-10T09:05:27.993483Z + isPrimary: true + name: Variant A + ruleset: + rbVersion: v2 + created: 2020-06-10T09:05:27.993483Z + campaignId: 320 + bindings: [] + activatedAt: 2000-01-23T04:56:07.000+00:00 + activate: true + rules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + id: 6 + strikethroughRules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + templateId: 3 + userId: 388 + weight: 12 + experimentId: 10 + id: 6 properties: id: description: The internal ID of this entity. @@ -30996,6 +31560,526 @@ components: - name type: object Experiment: + example: + deletedat: 2000-01-23T04:56:07.000+00:00 + created: 2020-06-10T09:05:27.993483Z + campaign: + type: advanced + templateId: 3 + customEffectCount: 0 + activeRevisionId: 6 + features: + - coupons + - referrals + createdLoyaltyPointsCount: 9.0 + storesImported: true + couponSettings: + couponPattern: SUMMER-####-#### + validCharacters: + - A + - B + - C + - D + - E + - F + - G + - H + - I + - J + - K + - L + - M + - "N" + - O + - P + - Q + - R + - S + - T + - U + - V + - W + - X + - "Y" + - Z + - "0" + - "1" + - "2" + - "3" + - "4" + - "5" + - "6" + - "7" + - "8" + - "9" + experimentId: 1 + id: 4 + state: enabled + reservecouponEffectCount: 9 + updatedBy: Jane Doe + frontendState: running + created: 2020-06-10T09:05:27.993483Z + referralCreationCount: 8 + stageRevision: false + couponRedemptionCount: 163 + couponCreationCount: 16 + version: 6 + campaignGroups: + - 1 + - 3 + tags: + - summer + discountEffectCount: 343 + budgets: + - limit: 1000.0 + action: createCoupon + counter: 42.0 + - limit: 1000.0 + action: createCoupon + counter: 42.0 + redeemedLoyaltyPointsCount: 8.0 + name: Summer promotions + valueMapsIds: + - 100 + - 215 + applicationId: 322 + updated: 2000-01-23T04:56:07.000+00:00 + callApiEffectCount: 0 + createdLoyaltyPointsEffectCount: 2 + discountCount: 288.0 + revisionFrontendState: revised + description: Campaign for all summer 2021 promotions + activeRevisionVersionId: 6 + currentRevisionVersionId: 6 + startTime: 2021-07-20T22:00:00Z + currentRevisionId: 6 + limits: + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + activeRulesetId: 6 + reevaluateOnReturn: true + userId: 388 + awardedGiveawaysCount: 9 + redeemedLoyaltyPointsEffectCount: 9 + linkedStoreIds: + - 1 + - 2 + - 3 + createdBy: John Doe + addFreeItemEffectCount: 0 + referralSettings: + couponPattern: SUMMER-####-#### + validCharacters: + - A + - B + - C + - D + - E + - F + - G + - H + - I + - J + - K + - L + - M + - "N" + - O + - P + - Q + - R + - S + - T + - U + - V + - W + - X + - "Y" + - Z + - "0" + - "1" + - "2" + - "3" + - "4" + - "5" + - "6" + - "7" + - "8" + - "9" + attributes: '{}' + lastActivity: 2022-11-10T23:00:00Z + endTime: 2021-09-22T22:00:00Z + referralRedemptionCount: 3 + id: 6 + state: enabled + variants: + - created: 2020-06-10T09:05:27.993483Z + isPrimary: true + name: Variant A + ruleset: + rbVersion: v2 + created: 2020-06-10T09:05:27.993483Z + campaignId: 320 + bindings: [] + activatedAt: 2000-01-23T04:56:07.000+00:00 + activate: true + rules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + id: 6 + strikethroughRules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + templateId: 3 + userId: 388 + weight: 12 + experimentId: 10 + id: 6 + - created: 2020-06-10T09:05:27.993483Z + isPrimary: true + name: Variant A + ruleset: + rbVersion: v2 + created: 2020-06-10T09:05:27.993483Z + campaignId: 320 + bindings: [] + activatedAt: 2000-01-23T04:56:07.000+00:00 + activate: true + rules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + id: 6 + strikethroughRules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + templateId: 3 + userId: 388 + weight: 12 + experimentId: 10 + id: 6 + applicationId: 322 + isVariantAssignmentExternal: true + activated: 2000-01-23T04:56:07.000+00:00 properties: id: description: The internal ID of this entity. @@ -31014,7 +32098,7 @@ components: type: integer isVariantAssignmentExternal: description: | - The source of the assignment. - false - The assignment to the variant is handled internally by the Talon.Oneandled internally by the Talon.One. - true - The assignment to the variant handled externally. + The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. type: boolean campaign: $ref: '#/components/schemas/Campaign' @@ -31030,6 +32114,7 @@ components: enum: - enabled - disabled + - archived example: enabled type: string variants: @@ -31045,27 +32130,14 @@ components: - applicationId - created - id + - state type: object NewExperiment: properties: isVariantAssignmentExternal: description: | - The source of the assignment. - false - The assignment to the variant is handled internally by the Talon.Oneandled internally by the Talon.One. - true - The assignment to the variant handled externally. + The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. type: boolean - activated: - description: | - The date and time the experiment was activated. - format: date-time - type: string - state: - default: disabled - description: | - A disabled experiment is not evaluated for rules or coupons. - enum: - - enabled - - disabled - example: enabled - type: string campaign: $ref: '#/components/schemas/NewCampaign' required: @@ -31075,10 +32147,8 @@ components: UpdateExperiment: properties: isVariantAssignmentExternal: - description: "The source of the assignment. - false - The assignment to\ - \ the variant is handled internally by the Talon.Oneandled internally\ - \ by the Talon.One. - true - The assignment to the variant handled externally.\ - \ \n" + description: | + The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. type: boolean campaign: $ref: '#/components/schemas/UpdateCampaign' @@ -31093,13 +32163,20 @@ components: format: int64 type: integer name: + description: The name of this variant. example: Variant A + maxLength: 255 + minLength: 1 type: string ruleset: $ref: '#/components/schemas/NewRuleset' weight: - example: 12 + description: The percentage split of this variant. The sum of all variant + percentages must be 100. + example: 13 format: int64 + maximum: 99 + minimum: 1 type: integer required: - id @@ -31121,12 +32198,17 @@ components: properties: name: description: The name of this variant. + example: Variant A + maxLength: 255 minLength: 1 - pattern: ^[A-Za-z](\w|\s)*$ type: string weight: + description: The percentage split of this variant. The sum of all variant + percentages must be 100. example: 13 format: int64 + maximum: 99 + minimum: 1 type: integer ruleset: $ref: '#/components/schemas/NewRuleset' @@ -31137,6 +32219,7 @@ components: - isPrimary - name - ruleset + - weight type: object NewExperimentVariantArray: properties: @@ -31148,6 +32231,17 @@ components: required: - variants type: object + UpdateExperimentVariantName: + properties: + name: + description: The name of the variant. + example: Variant A + maxLength: 255 + minLength: 1 + type: string + required: + - name + type: object ExperimentVariantResult: properties: variantId: @@ -31230,6 +32324,82 @@ components: required: - confidence type: object + ExperimentCampaignCopy: + properties: + name: + description: Name of the copied campaign (Defaults to "Copy of original + campaign name"). + example: Copy of Summer promotions + 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-06-01T09:00:27.993483Z + format: date-time + type: string + endTime: + description: Timestamp when the campaign will become inactive. + example: 2021-09-10T01:00:00.993483Z + format: date-time + type: string + tags: + description: A list of tags for the campaign. + example: + - Summer + - Shoes + items: + maxLength: 50 + minLength: 1 + type: string + maxItems: 50 + type: array + evaluationGroupId: + description: The ID of the campaign evaluation group the campaign belongs + to. + example: 2 + format: int64 + type: integer + type: object + ExperimentCopy: + properties: + targetApplicationId: + description: | + The ID of the Application to copy the experiment. It is displayed in your Talon.One deployment URL. + format: int64 + type: integer + experiment: + $ref: '#/components/schemas/ExperimentCopy_experiment' + required: + - experiment + - targetApplicationId + type: object + PromoteExperiment: + properties: + targetApplicationId: + description: | + The ID of the Application to copy the experiment. It is displayed in your Talon.One deployment URL. + format: int64 + type: integer + variantId: + description: | + The ID of the Experiment Variant to build the new campaign. + format: int64 + type: integer + disableExperiment: + description: | + Force disable the experiment. + type: boolean + campaign: + $ref: '#/components/schemas/ExperimentCampaignCopy' + required: + - campaign + - targetApplicationId + - variantId + type: object CreateTemplateCampaign: example: campaignAttributesOverrides: '{}' @@ -33369,6 +34539,9 @@ components: - R195412 - G244519 cardIdentifier: summer-loyalty-card-0543 + attributes: + preferredReward: discount + enrollmentSource: mobile properties: status: default: active @@ -35192,11 +36365,11 @@ components: storeId: 0 type: type ruleFailureReasons: - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -35206,11 +36379,11 @@ components: ruleName: ruleName details: details campaignName: campaignName - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -36216,6 +37389,7 @@ components: - comma - period strictEndDate: true + timeframeEndDateType: sale target: targetType: AUDIENCE audienceID: 4 @@ -36243,11 +37417,26 @@ components: type: string strictEndDate: description: | + This property is **deprecated**. Use `timeframeEndDateType` instead. + Indicates whether the timeframe includes the start of the current sale. - When `false`, the timeframe includes the start date of the current sale. - - When `true`, the timeframe striclty uses the number of days specified in `timeframe`. + - When `true`, the timeframe strictly uses the number of days specified in `timeframe`. example: true type: boolean + x-deprecated: true + timeframeEndDateType: + description: | + Sets the timeframe for retrieving historical pricing data. Can be one of the following values: + - `strict`: The timeframe ends at the `timeframeEndDate` value. + - `price`: The timeframe ends at the start of the current `contextId` with the current price value. Identical price records are merged. If there is no `contextId` for the most recent price, the most recent timestamp for the price is used. + - `sale`: The timeframe ends at the start of current `contextId` and takes the prices prior to the start of the `contextId` into account. + enum: + - strict + - price + - sale + example: sale + type: string target: $ref: '#/components/schemas/BestPriorTarget' required: @@ -36334,23 +37523,29 @@ components: discountValue: 6.027456183070403 observedAt: 2020-11-10T23:00:00Z price: 99.99 - contextId: Summer Sale 2007 + contextId: Summer Sale 2025 + id: 1 sku: NVR-GN-GV-UUP target: '{}' properties: + id: + description: The ID of the historical price. + example: 1 + format: int64 + type: integer sku: description: sku example: NVR-GN-GV-UUP type: string observedAt: - description: The date and time when the best price was observed. + description: The date and time when the price was observed. example: 2020-11-10T23:00:00Z format: date-time type: string contextId: description: | The context ID of the context active at the time of observation. - example: Summer Sale 2007 + example: Summer Sale 2025 type: string price: description: Price of the item. @@ -36362,6 +37557,7 @@ components: type: object required: - contextId + - id - metadata - observedAt - price @@ -36372,6 +37568,130 @@ components: items: $ref: '#/components/schemas/BestPriorPrice' type: array + PriceHistoryRequest: + example: + endDate: 2020-12-10T23:00:00Z + sku: "" + startDate: 2020-11-10T23:00:00Z + properties: + sku: + description: The SKU of the item for which the historical prices are being + retrieved. + example: "" + type: string + startDate: + description: The start date of the period for which historical prices should + be retrieved. + example: 2020-11-10T23:00:00Z + format: date-time + type: string + endDate: + description: The end date of the period for which historical prices should + be retrieved. + example: 2020-12-10T23:00:00Z + format: date-time + type: string + required: + - endDate + - sku + - startDate + type: object + History: + example: + metadata: + adjustmentDetails: + selectedPriceType: member + value: 1.4658129805029452 + referenceId: 68851723-e6fa-488f-ace9-112581e6c19b + influencingCampaignDetails: + - campaignId: 0 + discountValue: 6.027456183070403 + - campaignId: 0 + discountValue: 6.027456183070403 + observedAt: 2020-11-10T23:00:00Z + price: 99.99 + contextId: Summer Sale 2025 + id: 1 + target: '{}' + properties: + id: + description: The ID of the historical price. + example: 1 + format: int64 + type: integer + observedAt: + description: The date and time when the price was observed. + example: 2020-11-10T23:00:00Z + format: date-time + type: string + contextId: + description: | + Identifier of the relevant context at the time the price was observed (e.g. summer sale). + example: Summer Sale 2025 + type: string + price: + description: Price of the item. + example: 99.99 + type: number + metadata: + $ref: '#/components/schemas/BestPriorPriceMetadata' + target: + type: object + required: + - contextId + - id + - metadata + - observedAt + - price + - target + type: object + PriceHistoryResponse: + example: + history: + - metadata: + adjustmentDetails: + selectedPriceType: member + value: 1.4658129805029452 + referenceId: 68851723-e6fa-488f-ace9-112581e6c19b + influencingCampaignDetails: + - campaignId: 0 + discountValue: 6.027456183070403 + - campaignId: 0 + discountValue: 6.027456183070403 + observedAt: 2020-11-10T23:00:00Z + price: 99.99 + contextId: Summer Sale 2025 + id: 1 + target: '{}' + - metadata: + adjustmentDetails: + selectedPriceType: member + value: 1.4658129805029452 + referenceId: 68851723-e6fa-488f-ace9-112581e6c19b + influencingCampaignDetails: + - campaignId: 0 + discountValue: 6.027456183070403 + - campaignId: 0 + discountValue: 6.027456183070403 + observedAt: 2020-11-10T23:00:00Z + price: 99.99 + contextId: Summer Sale 2025 + id: 1 + target: '{}' + sku: "" + properties: + sku: + description: The SKU of the item for which historical prices should be retrieved. + example: "" + type: string + history: + items: + $ref: '#/components/schemas/History' + type: array + required: + - history + - sku + type: object TalangAttribute: properties: entity: @@ -36390,6 +37710,7 @@ components: - Event - Item - Loyalty + - LoyaltyCard - Profile - Giveaway - Referral @@ -40134,29 +41455,29 @@ components: - expression - name type: object - CollectionsCatalog: + Blueprint: properties: id: - description: The internal ID of this collection. + description: The internal ID of this blueprint. format: int64 type: integer accountId: - description: The ID of the account that owns this collection. + description: The ID of the account that owns this blueprint. format: int64 type: integer applicationId: - description: The ID of the Application that owns this collection. + description: The ID of the Application that owns this blueprint. format: int64 type: integer title: - description: A short description of the collection catalog. + description: A short description of the blueprint. example: High value cart discount type: string description: - description: A longer, more detailed description of the collection catalog. + description: A longer, more detailed description of the blueprint. type: string category: - description: Category used to group collection catalogs. + description: Category used to group blueprints. enum: - promotions - pricing @@ -40164,39 +41485,38 @@ components: - custom type: string source: - description: Indicates whether the collection is custom or shipped by Talon.One. + description: Indicates whether the blueprint is custom or shipped by Talon.One. enum: - custom - default type: string rules: - description: Array of rule templates in this collection catalog. Rules only - contain title (no description, as description is at the collection catalog - level). + description: Array of rule templates in this blueprint. Rules only contain + title (no description, as description is at the blueprint level). items: $ref: '#/components/schemas/CatalogRule' type: array cartItemFilters: - description: Array of cart item filter templates in this collection catalog. - Cart item filters only contain name (no description, as description is - at the collection catalog level). + description: Array of cart item filter templates in this blueprint. Cart + item filters only contain name (no description, as description is at the + blueprint level). items: $ref: '#/components/schemas/CartItemFilterTemplate' type: array created: - description: Timestamp when the collection was created. + description: Timestamp when the blueprint was created. format: date-time type: string createdBy: - description: ID of the user who created the collection. + description: ID of the user who created the blueprint. format: int64 type: integer modified: - description: Timestamp when the collection was last updated. + description: Timestamp when the blueprint was last updated. format: date-time type: string modifiedBy: - description: ID of the user who last updated the collection. + description: ID of the user who last updated the blueprint. format: int64 type: integer required: @@ -40211,18 +41531,18 @@ components: - source - title type: object - NewCollectionsCatalog: + NewBlueprint: properties: title: - description: The display name for the collection catalog. + description: The display name for the blueprint. example: Customer loyalty boost type: string description: - description: A longer, more detailed description of the collection catalog. + description: A longer, more detailed description of the blueprint. type: string category: default: custom - description: Category used to group collection catalogs. + description: Category used to group blueprints. enum: - promotions - pricing @@ -40230,33 +41550,32 @@ components: - custom type: string rules: - description: Array of rules to store in this collection catalog. Rules should - only contain title (no description, as description is at the collection - catalog level). At least one rule or cart item filter is required. + description: Array of rules to store in this blueprint. Rules should only + contain title (no description, as description is at the blueprint level). + At least one rule or cart item filter is required. items: $ref: '#/components/schemas/CatalogRule' type: array cartItemFilters: - description: Array of cart item filters to store in this collection catalog. - If not provided, will be extracted from the rules. Cart item filters should - only contain name (no description, as description is at the collection - catalog level). + description: Array of cart item filters to store in this blueprint. If not + provided, will be extracted from the rules. Cart item filters should only + contain name (no description, as description is at the blueprint level). items: $ref: '#/components/schemas/CartItemFilterTemplate' type: array required: - title type: object - UpdateCollectionsCatalog: + UpdateBlueprint: properties: title: - description: The display name for the collection catalog. + description: The display name for the blueprint. type: string description: - description: A longer, more detailed description of the collection catalog. + description: A longer, more detailed description of the blueprint. type: string category: - description: Category used to group collection catalogs. + description: Category used to group blueprints. enum: - promotions - pricing @@ -40265,14 +41584,14 @@ components: type: string rules: description: Replaces the stored rules. Rules should only contain title - (no description, as description is at the collection catalog level). + (no description, as description is at the blueprint level). items: $ref: '#/components/schemas/CatalogRule' type: array cartItemFilters: description: Replaces the stored cart item filters. Cart item filters should - only contain name (no description, as description is at the collection - catalog level). + only contain name (no description, as description is at the blueprint + level). items: $ref: '#/components/schemas/CartItemFilterTemplate' type: array @@ -41071,74 +42390,439 @@ components: - name - summary type: object + PrismaticFlowConfigResponse: + properties: + WorkerCount: + description: Number of Prismatic workers to run in parallel for this flow + (maximum 500). + format: int64 + maximum: 5E+2 + minimum: 1 + type: integer + MaxEventsPerMessage: + description: Maximum number of events to send in a single message to Prismatic. + format: int64 + minimum: 1 + type: integer + MaxRetries: + description: Maximum number of retries for a Prismatic event before it is + ignored. + format: int64 + minimum: 0 + type: integer + type: object + PrismaticFlowResponse: + properties: + Id: + description: ID of the prismatic flow. + format: int64 + type: integer + ApplicationID: + description: ID of application the flow is registered for. + example: 54 + format: int64 + type: integer + EventType: + description: The event type we want to register a flow for. + type: string + x-fieldType: PrismaticEventType + PrismaticFlowUrl: + description: The URL of the prismatic flow that we want to trigger for the + event. + type: string + Config: + $ref: '#/components/schemas/PrismaticFlowConfigResponse' + required: + - Config + - EventType + - Id + - PrismaticFlowUrl + type: object PrismaticFlowConfig: properties: ApiKey: type: string - WorkerCount: - default: 10 - description: Number of Prismatic workers to run in parallel for this flow - (maximum 500). + WorkerCount: + default: 10 + description: Number of Prismatic workers to run in parallel for this flow + (maximum 500). + format: int64 + maximum: 5E+2 + minimum: 1 + type: integer + MaxEventsPerMessage: + default: 1000 + description: Maximum number of events to send in a single message to Prismatic. + format: int64 + minimum: 1 + type: integer + MaxRetries: + default: 10 + description: Maximum number of retries for a Prismatic event before it is + ignored. + format: int64 + minimum: 0 + type: integer + required: + - ApiKey + type: object + PrismaticFlowWithConfig: + properties: + ApplicationID: + description: ID of application the flow is registered for. + example: 54 + format: int64 + type: integer + EventType: + description: The event type we want to register a flow for. + type: string + x-fieldType: PrismaticEventType + PrismaticFlowUrl: + description: The URL of the prismatic flow that we want to trigger for the + event. + type: string + Config: + $ref: '#/components/schemas/PrismaticFlowConfig' + required: + - Config + - EventType + - PrismaticFlowUrl + type: object + PrismaticFlow: + properties: + ApplicationID: + description: ID of application the flow is registered for. + example: 54 + format: int64 + type: integer + EventType: + description: The event type we want to register a flow for. + type: string + x-fieldType: PrismaticEventType + PrismaticFlowUrl: + description: The URL of the prismatic flow that we want to trigger for the + event. + type: string + required: + - EventType + - PrismaticFlowUrl + type: object + PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction: + properties: + Amount: + format: float + type: number + Reason: + type: string + Operation: + enum: + - addition + - deduction + type: string + StartDate: + format: date-time + type: string + ExpiryDate: + format: date-time + type: string + required: + - Amount + - Operation + type: object + PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification: + properties: + ProfileIntegrationID: + type: string + LoyaltyProgramID: + format: int64 + type: integer + SubledgerID: + type: string + SourceOfEvent: + type: string + EmployeeName: + type: string + UserID: + format: int64 + type: integer + CurrentPoints: + format: float + type: number + Actions: + items: + $ref: '#/components/schemas/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction' + type: array + PublishedAt: + description: Timestamp when the event was published. + format: date-time + type: string + required: + - CurrentPoints + - LoyaltyProgramID + - ProfileIntegrationID + - PublishedAt + - SourceOfEvent + - SubledgerID + type: object + x-discriminator-value: LoyaltyPointsChanged + x-ms-discriminator-value: LoyaltyPointsChanged + PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification: + properties: + ProfileIntegrationID: + type: string + LoyaltyProgramID: + format: int64 + type: integer + SubledgerID: + type: string + SourceOfEvent: + type: string + CurrentTier: + type: string + CurrentPoints: + format: float + type: number + OldTier: + type: string + TierExpirationDate: + format: date-time + type: string + TimestampOfTierChange: + format: date-time + type: string + PublishedAt: + description: Timestamp when the event was published. + format: date-time + type: string + required: + - CurrentPoints + - LoyaltyProgramID + - ProfileIntegrationID + - PublishedAt + - SourceOfEvent + - SubledgerID + type: object + x-discriminator-value: LoyaltyTierDowngrade + x-ms-discriminator-value: LoyaltyTierDowngrade + PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification: + properties: + ProfileIntegrationID: + type: string + LoyaltyProgramID: + format: int64 + type: integer + SubledgerID: + type: string + SourceOfEvent: + type: string + CurrentTier: + type: string + CurrentPoints: + format: float + type: number + OldTier: + type: string + PointsRequiredToTheNextTier: + format: float + type: number + NextTier: + type: string + TierExpirationDate: + format: date-time + type: string + TimestampOfTierChange: + format: date-time + type: string + PublishedAt: + description: Timestamp when the event was published. + format: date-time + type: string + required: + - CurrentPoints + - LoyaltyProgramID + - ProfileIntegrationID + - PublishedAt + - SourceOfEvent + - SubledgerID + type: object + x-discriminator-value: LoyaltyTierUpgrade + x-ms-discriminator-value: LoyaltyTierUpgrade + PrismaticEventPayloadLoyaltyProfileBasedNotification: + properties: + ProfileIntegrationID: + type: string + LoyaltyProgramID: + format: int64 + type: integer + SubledgerID: + type: string + SourceOfEvent: + type: string + EmployeeName: + type: string + UserID: + format: int64 + type: integer + CurrentPoints: + format: float + type: number + Actions: + items: + $ref: '#/components/schemas/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction' + type: array + PublishedAt: + description: Timestamp when the event was published. + format: date-time + type: string + CurrentTier: + type: string + OldTier: + type: string + TierExpirationDate: + format: date-time + type: string + TimestampOfTierChange: + format: date-time + type: string + PointsRequiredToTheNextTier: + format: float + type: number + NextTier: + type: string + required: + - CurrentPoints + - LoyaltyProgramID + - ProfileIntegrationID + - PublishedAt + - SourceOfEvent + - SubledgerID + type: object + PrismaticEventPayloadCouponBasedNotificationsLimits: + properties: + Action: + type: string + Limit: + format: float + type: number + Period: + type: string + Entities: + items: + type: string + type: array + required: + - Action + - Entities + - Limit + type: object + PrismaticEventPayloadCouponBasedNotifications: + properties: + Id: + format: int64 + type: integer + Created: + format: date-time + type: string + CampaignId: + format: int64 + type: integer + Value: + type: string + UsageLimit: format: int64 - maximum: 5E+2 - minimum: 1 type: integer - MaxEventsPerMessage: - default: 1000 - description: Maximum number of events to send in a single message to Prismatic. + DiscountLimit: + format: float + type: number + ReservationLimit: format: int64 - minimum: 1 type: integer - MaxRetries: - default: 10 - description: Maximum number of retries for a Prismatic event before it is - ignored. + StartDate: + format: date-time + type: string + ExpiryDate: + format: date-time + type: string + UsageCounter: format: int64 - minimum: 0 type: integer - required: - - ApiKey - type: object - PrismaticFlowWithConfig: - properties: - ApplicationID: - description: ID of application the flow is registered for. - example: 54 + DiscountCounter: + format: float + type: number + DiscountRemainder: + format: float + type: number + ReferralId: format: int64 type: integer - EventType: - description: The event type we want to register a flow for. + RecipientIntegrationId: type: string - x-fieldType: PrismaticEventType - PrismaticFlowUrl: - description: The URL of the prismatic flow that we want to trigger for the - event. + ImportId: + format: int64 + type: integer + BatchId: + type: string + Attributes: + properties: {} + type: object + Limits: + items: + $ref: '#/components/schemas/PrismaticEventPayloadCouponBasedNotificationsLimits' + type: array + PublishedAt: + description: Timestamp when the event was published. + format: date-time + type: string + SourceOfEvent: + type: string + EmployeeName: type: string - Config: - $ref: '#/components/schemas/PrismaticFlowConfig' required: - - Config - - EventType - - PrismaticFlowUrl + - CampaignId + - Created + - EmployeeName + - Id + - PublishedAt + - SourceOfEvent + - UsageCounter + - UsageLimit + - Value type: object - PrismaticFlow: + x-discriminator-value: CouponDeleted + x-ms-discriminator-value: CouponDeleted + PrismaticEventRecord: properties: - ApplicationID: - description: ID of application the flow is registered for. - example: 54 + Id: + format: int64 + type: integer + FlowId: format: int64 type: integer EventType: - description: The event type we want to register a flow for. type: string x-fieldType: PrismaticEventType - PrismaticFlowUrl: - description: The URL of the prismatic flow that we want to trigger for the - event. + EventData: + type: object + PublishedAt: + format: date-time + type: string + ProcessedAt: + format: date-time + type: string + ProcessAfter: + format: date-time type: string + Retry: + format: int64 + type: integer required: + - EventData - EventType - - PrismaticFlowUrl + - FlowId + - Id + - ProcessAfter + - PublishedAt + - Retry type: object PrismaticConfig: description: Config used for accessing integrations in Prismatic @@ -41155,82 +42839,166 @@ components: - accessToken - prismaticUrl type: object - IntegrationProfileEntityV3: + CouponWithApplication: properties: - profileId: - description: | - ID of the customer profile set by your integration layer. - - **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. - example: URNGV8294NV + id: + description: The internal ID of the coupon. + example: 6 + format: int64 + type: integer + created: + description: The time the coupon was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time type: string - required: - - profileId - type: object - EventV3: - properties: - profileId: + campaignId: + description: The ID of the campaign that owns this entity. + example: 211 + format: int64 + title: Campaign ID + type: integer + value: + description: The coupon code. + example: XMAS-20-2021 + minLength: 4 + title: Coupon Code + type: string + usageLimit: description: | - ID of the customer profile set by your integration layer. - - **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. - example: URNGV8294NV + The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + example: 100 + format: int64 + maximum: 999999 + minimum: 0 + type: integer + discountLimit: + description: | + The total discount value that the code can give. Typically used to represent a gift card value. + example: 30.0 + maximum: 1E+15 + minimum: 0 + type: number + reservationLimit: + description: | + The number of reservations that can be made with this coupon code. + example: 45 + format: int64 + maximum: 999999 + minimum: 0 + type: integer + startDate: + description: Timestamp at which point the coupon becomes valid. + example: 2020-01-24T14:15:22Z + format: date-time type: string - storeIntegrationId: - description: The integration ID of the store. You choose this ID when you - create a store. - example: STORE-001 - maxLength: 1000 - minLength: 1 + expiryDate: + description: Expiration date of the coupon. Coupon never expires if this + is omitted. + example: 2023-08-24T14:15:22Z + format: date-time type: string - evaluableCampaignIds: + limits: description: | - When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. + Limits configuration for a coupon. These limits will override the limits + set from the campaign. - These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. - example: - - 10 - - 12 + **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. + Only per-profile limits are allowed to be configured. items: - format: int64 - type: integer - title: Campaigns to evaluate + $ref: '#/components/schemas/LimitConfig' type: array - integrationId: - description: | - The unique ID of the current event. Only one event with this ID could be activated, duplicated events are forbidden. - example: 175KJPS947296 - minLength: 1 - type: string - type: - description: | - A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. - example: pageViewed - minLength: 1 - title: Event Type - type: string + usageCounter: + description: The number of times the coupon has been successfully redeemed. + example: 10 + format: int64 + title: Total coupon redemptions + type: integer + discountCounter: + description: The amount of discounts given on rules redeeming this coupon. + Only usable if a coupon discount budget was set for this coupon. + example: 10.0 + title: Discounts Given + type: number + discountRemainder: + description: The remaining discount this coupon can give. + example: 5.0 + title: Coupon Discount Remainder + type: number + reservationCounter: + description: The number of times this coupon has been reserved. + example: 1.0 + title: Number of reservations + type: number attributes: - description: Arbitrary additional JSON properties associated with the event. - They must be created in the Campaign Manager before setting them with - this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). - example: - myAttribute: myValue + description: Custom attributes associated with this coupon. properties: {} + title: Attributes of coupon type: object - connectedSessionID: - description: The ID of the session that happened in the past. - example: 175KJPS947296 - minLength: 1 + referralId: + description: The integration ID of the referring customer (if any) for whom + this coupon was created as an effect. + example: 326632952 + format: int64 + title: Advocate ID + type: integer + recipientIntegrationId: + description: The Integration ID of the customer that is allowed to redeem + this coupon. + example: URNGV8294NV + maxLength: 1000 + title: Recipient ID type: string - previousEventID: - description: The unique identifier of the event that happened in the past. - example: 175KJPS947296 - minLength: 1 + importId: + description: The ID of the Import which created this coupon. + example: 4 + format: int64 + title: Import ID + type: integer + reservation: + default: true + description: | + Defines the reservation type: + - `true`: The coupon can be reserved for multiple customers. + - `false`: The coupon can be reserved only for one customer. It is a personal code. + example: false + title: Reservation Type + type: boolean + batchId: + description: The id of the batch the coupon belongs to. + example: 32535-43255 + title: Batch ID + type: string + isReservationMandatory: + default: false + description: An indication of whether the code can be redeemed only if it + has been reserved first. + example: false + title: Is reservation mandatory + type: boolean + implicitlyReserved: + description: An indication of whether the coupon is implicitly reserved + for all customers. + example: false + title: Is coupon implicitly reserved for all customers + type: boolean + applicationId: + description: The ID of the application. + example: 123 + format: int64 + type: integer + applicationName: + description: Name of the Application that is connected to the coupon. + example: Test Application type: string required: - - integrationId - - profileId - - type + - applicationId + - applicationName + - campaignId + - created + - id + - usageCounter + - usageLimit + - value type: object IntegrationEventV3Request: properties: @@ -41311,7 +43079,7 @@ components: - customerProfile - triggeredCampaigns - loyalty - - event + - advancedEvent - awardedGiveaways - ruleFailureReasons type: string @@ -41327,36 +43095,44 @@ components: properties: customerProfile: $ref: '#/components/schemas/CustomerProfile' - event: - $ref: '#/components/schemas/EventV3' loyalty: $ref: '#/components/schemas/Loyalty' triggeredCampaigns: + description: The campaigns that were triggered as a result of processing + the event. items: $ref: '#/components/schemas/Campaign' type: array - ruleFailureReasons: - items: - $ref: '#/components/schemas/RuleFailureReason' - type: array - awardedGiveaways: - items: - $ref: '#/components/schemas/Giveaway' - type: array effects: description: The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). items: $ref: '#/components/schemas/Effect' type: array + ruleFailureReasons: + description: | + The reasons why certain rules were not triggered during the event + processing. + items: + $ref: '#/components/schemas/RuleFailureReason' + type: array createdCoupons: + description: The coupons that were created during the event processing. items: $ref: '#/components/schemas/Coupon' type: array createdReferrals: + description: The referrals that were created during the event processing. items: $ref: '#/components/schemas/Referral' type: array + awardedGiveaways: + description: The giveaways that were awarded during the event processing. + items: + $ref: '#/components/schemas/Giveaway' + type: array + advancedEvent: + $ref: '#/components/schemas/EventV3' required: - createdCoupons - createdReferrals @@ -41388,6 +43164,29 @@ components: required: - Event type: object + PlaceholderDetails: + properties: + name: + description: The name of the placeholder. + example: my property + type: string + type: + description: The type of the value assigned to the placeholder. + example: list string + type: string + value: + description: The current value of the placeholder. + example: + - 1 + - sku_value + items: + type: object + type: array + required: + - name + - type + - value + type: object CampaignEvaluationPosition: description: The campaign position within the evaluation tree. properties: @@ -41424,6 +43223,12 @@ components: $ref: '#/components/schemas/Campaign' ruleset: $ref: '#/components/schemas/Ruleset' + placeholders: + description: The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) + in the campaign. + items: + $ref: '#/components/schemas/PlaceholderDetails' + type: array evaluationPosition: $ref: '#/components/schemas/CampaignEvaluationPosition' required: @@ -41474,6 +43279,12 @@ components: type: string ruleset: $ref: '#/components/schemas/Ruleset' + placeholders: + description: The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) + in the campaign. + items: + $ref: '#/components/schemas/PlaceholderDetails' + type: array required: - Event - campaign @@ -41513,8 +43324,20 @@ components: $ref: '#/components/schemas/Campaign' oldRuleset: $ref: '#/components/schemas/Ruleset' + oldPlaceholders: + description: The previous details of the placeholders before the ruleset + was changed. + items: + $ref: '#/components/schemas/PlaceholderDetails' + type: array ruleset: $ref: '#/components/schemas/Ruleset' + placeholders: + description: The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) + in the campaign. + items: + $ref: '#/components/schemas/PlaceholderDetails' + type: array required: - Event - campaign @@ -41554,6 +43377,12 @@ components: $ref: '#/components/schemas/Campaign' ruleset: $ref: '#/components/schemas/Ruleset' + placeholders: + description: The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) + in the campaign. + items: + $ref: '#/components/schemas/PlaceholderDetails' + type: array required: - Event - campaign @@ -41592,6 +43421,12 @@ components: $ref: '#/components/schemas/Campaign' ruleset: $ref: '#/components/schemas/Ruleset' + placeholders: + description: The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) + in the campaign. + items: + $ref: '#/components/schemas/PlaceholderDetails' + type: array collection: $ref: '#/components/schemas/CollectionWithoutPayload' required: @@ -43025,165 +44860,6 @@ components: - UserID - UsersPerCardLimit type: object - PrismaticEventPayloadLoyaltyProfileBasedNotificationsAction: - properties: - Amount: - format: float - type: number - Reason: - type: string - Operation: - enum: - - addition - - deduction - type: string - StartDate: - format: date-time - type: string - ExpiryDate: - format: date-time - type: string - required: - - Amount - - Operation - type: object - PrismaticEventPayloadLoyaltyProfileBasedNotifications: - properties: - ProfileIntegrationID: - type: string - LoyaltyProgramID: - format: int64 - type: integer - SubledgerID: - type: string - SourceOfEvent: - type: string - EmployeeName: - type: string - UserID: - format: int64 - type: integer - SessionIntegrationID: - type: string - CurrentTier: - type: string - CurrentPoints: - format: float - type: number - OldTier: - type: string - PointsRequiredToTheNextTier: - format: float - type: number - NextTier: - type: string - TierExpirationDate: - format: date-time - type: string - TimestampOfTierChange: - format: date-time - type: string - Actions: - items: - $ref: '#/components/schemas/PrismaticEventPayloadLoyaltyProfileBasedNotificationsAction' - type: array - required: - - CurrentPoints - - LoyaltyProgramID - - ProfileIntegrationID - - SourceOfEvent - - SubledgerID - type: object - x-discriminator-value: LoyaltyTierUpgrade - x-ms-discriminator-value: LoyaltyTierUpgrade - PrismaticEventPayloadCouponBasedNotificationsLimits: - properties: - Action: - type: string - Limit: - format: float - type: number - Period: - type: string - Entities: - items: - type: string - type: array - required: - - Action - - Entities - - Limit - type: object - PrismaticEventPayloadCouponBasedNotifications: - properties: - Id: - format: int64 - type: integer - Created: - format: date-time - type: string - CampaignId: - format: int64 - type: integer - Value: - type: string - UsageLimit: - format: int64 - type: integer - DiscountLimit: - format: float - type: number - ReservationLimit: - format: int64 - type: integer - StartDate: - format: date-time - type: string - ExpiryDate: - format: date-time - type: string - UsageCounter: - format: int64 - type: integer - DiscountCounter: - format: float - type: number - DiscountRemainder: - format: float - type: number - ReferralId: - format: int64 - type: integer - RecipientIntegrationId: - type: string - ImportId: - format: int64 - type: integer - BatchId: - type: string - Attributes: - properties: {} - type: object - Limits: - items: - $ref: '#/components/schemas/PrismaticEventPayloadCouponBasedNotificationsLimits' - type: array - SourceOfEvent: - type: string - EmployeeName: - type: string - required: - - CampaignId - - Created - - EmployeeName - - Id - - SourceOfEvent - - UsageCounter - - UsageLimit - - Value - type: object - x-discriminator-value: CouponDeleted - x-ms-discriminator-value: CouponDeleted SetLoyaltyPointsExpiryDateEffectProps: description: | The properties specific to the "setLoyaltyPointsExpiryDate" effect. This gets triggered when a validated rule contains the "set expiry date" effect. The current expiry date gets set to the date given in the effect. @@ -45224,6 +46900,1060 @@ components: - data - hasMore inline_response_200_15: + example: + data: + - deletedat: 2000-01-23T04:56:07.000+00:00 + created: 2020-06-10T09:05:27.993483Z + campaign: + type: advanced + templateId: 3 + customEffectCount: 0 + activeRevisionId: 6 + features: + - coupons + - referrals + createdLoyaltyPointsCount: 9.0 + storesImported: true + couponSettings: + couponPattern: SUMMER-####-#### + validCharacters: + - A + - B + - C + - D + - E + - F + - G + - H + - I + - J + - K + - L + - M + - "N" + - O + - P + - Q + - R + - S + - T + - U + - V + - W + - X + - "Y" + - Z + - "0" + - "1" + - "2" + - "3" + - "4" + - "5" + - "6" + - "7" + - "8" + - "9" + experimentId: 1 + id: 4 + state: enabled + reservecouponEffectCount: 9 + updatedBy: Jane Doe + frontendState: running + created: 2020-06-10T09:05:27.993483Z + referralCreationCount: 8 + stageRevision: false + couponRedemptionCount: 163 + couponCreationCount: 16 + version: 6 + campaignGroups: + - 1 + - 3 + tags: + - summer + discountEffectCount: 343 + budgets: + - limit: 1000.0 + action: createCoupon + counter: 42.0 + - limit: 1000.0 + action: createCoupon + counter: 42.0 + redeemedLoyaltyPointsCount: 8.0 + name: Summer promotions + valueMapsIds: + - 100 + - 215 + applicationId: 322 + updated: 2000-01-23T04:56:07.000+00:00 + callApiEffectCount: 0 + createdLoyaltyPointsEffectCount: 2 + discountCount: 288.0 + revisionFrontendState: revised + description: Campaign for all summer 2021 promotions + activeRevisionVersionId: 6 + currentRevisionVersionId: 6 + startTime: 2021-07-20T22:00:00Z + currentRevisionId: 6 + limits: + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + activeRulesetId: 6 + reevaluateOnReturn: true + userId: 388 + awardedGiveawaysCount: 9 + redeemedLoyaltyPointsEffectCount: 9 + linkedStoreIds: + - 1 + - 2 + - 3 + createdBy: John Doe + addFreeItemEffectCount: 0 + referralSettings: + couponPattern: SUMMER-####-#### + validCharacters: + - A + - B + - C + - D + - E + - F + - G + - H + - I + - J + - K + - L + - M + - "N" + - O + - P + - Q + - R + - S + - T + - U + - V + - W + - X + - "Y" + - Z + - "0" + - "1" + - "2" + - "3" + - "4" + - "5" + - "6" + - "7" + - "8" + - "9" + attributes: '{}' + lastActivity: 2022-11-10T23:00:00Z + endTime: 2021-09-22T22:00:00Z + referralRedemptionCount: 3 + id: 6 + state: enabled + variants: + - created: 2020-06-10T09:05:27.993483Z + isPrimary: true + name: Variant A + ruleset: + rbVersion: v2 + created: 2020-06-10T09:05:27.993483Z + campaignId: 320 + bindings: [] + activatedAt: 2000-01-23T04:56:07.000+00:00 + activate: true + rules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + id: 6 + strikethroughRules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + templateId: 3 + userId: 388 + weight: 12 + experimentId: 10 + id: 6 + - created: 2020-06-10T09:05:27.993483Z + isPrimary: true + name: Variant A + ruleset: + rbVersion: v2 + created: 2020-06-10T09:05:27.993483Z + campaignId: 320 + bindings: [] + activatedAt: 2000-01-23T04:56:07.000+00:00 + activate: true + rules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + id: 6 + strikethroughRules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + templateId: 3 + userId: 388 + weight: 12 + experimentId: 10 + id: 6 + applicationId: 322 + isVariantAssignmentExternal: true + activated: 2000-01-23T04:56:07.000+00:00 + - deletedat: 2000-01-23T04:56:07.000+00:00 + created: 2020-06-10T09:05:27.993483Z + campaign: + type: advanced + templateId: 3 + customEffectCount: 0 + activeRevisionId: 6 + features: + - coupons + - referrals + createdLoyaltyPointsCount: 9.0 + storesImported: true + couponSettings: + couponPattern: SUMMER-####-#### + validCharacters: + - A + - B + - C + - D + - E + - F + - G + - H + - I + - J + - K + - L + - M + - "N" + - O + - P + - Q + - R + - S + - T + - U + - V + - W + - X + - "Y" + - Z + - "0" + - "1" + - "2" + - "3" + - "4" + - "5" + - "6" + - "7" + - "8" + - "9" + experimentId: 1 + id: 4 + state: enabled + reservecouponEffectCount: 9 + updatedBy: Jane Doe + frontendState: running + created: 2020-06-10T09:05:27.993483Z + referralCreationCount: 8 + stageRevision: false + couponRedemptionCount: 163 + couponCreationCount: 16 + version: 6 + campaignGroups: + - 1 + - 3 + tags: + - summer + discountEffectCount: 343 + budgets: + - limit: 1000.0 + action: createCoupon + counter: 42.0 + - limit: 1000.0 + action: createCoupon + counter: 42.0 + redeemedLoyaltyPointsCount: 8.0 + name: Summer promotions + valueMapsIds: + - 100 + - 215 + applicationId: 322 + updated: 2000-01-23T04:56:07.000+00:00 + callApiEffectCount: 0 + createdLoyaltyPointsEffectCount: 2 + discountCount: 288.0 + revisionFrontendState: revised + description: Campaign for all summer 2021 promotions + activeRevisionVersionId: 6 + currentRevisionVersionId: 6 + startTime: 2021-07-20T22:00:00Z + currentRevisionId: 6 + limits: + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + - period: yearly + entities: + - Coupon + limit: 1000.0 + action: createCoupon + activeRulesetId: 6 + reevaluateOnReturn: true + userId: 388 + awardedGiveawaysCount: 9 + redeemedLoyaltyPointsEffectCount: 9 + linkedStoreIds: + - 1 + - 2 + - 3 + createdBy: John Doe + addFreeItemEffectCount: 0 + referralSettings: + couponPattern: SUMMER-####-#### + validCharacters: + - A + - B + - C + - D + - E + - F + - G + - H + - I + - J + - K + - L + - M + - "N" + - O + - P + - Q + - R + - S + - T + - U + - V + - W + - X + - "Y" + - Z + - "0" + - "1" + - "2" + - "3" + - "4" + - "5" + - "6" + - "7" + - "8" + - "9" + attributes: '{}' + lastActivity: 2022-11-10T23:00:00Z + endTime: 2021-09-22T22:00:00Z + referralRedemptionCount: 3 + id: 6 + state: enabled + variants: + - created: 2020-06-10T09:05:27.993483Z + isPrimary: true + name: Variant A + ruleset: + rbVersion: v2 + created: 2020-06-10T09:05:27.993483Z + campaignId: 320 + bindings: [] + activatedAt: 2000-01-23T04:56:07.000+00:00 + activate: true + rules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + id: 6 + strikethroughRules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + templateId: 3 + userId: 388 + weight: 12 + experimentId: 10 + id: 6 + - created: 2020-06-10T09:05:27.993483Z + isPrimary: true + name: Variant A + ruleset: + rbVersion: v2 + created: 2020-06-10T09:05:27.993483Z + campaignId: 320 + bindings: [] + activatedAt: 2000-01-23T04:56:07.000+00:00 + activate: true + rules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + id: 6 + strikethroughRules: + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + - condition: + - and + - - couponValid + effects: + - catch + - - noop + - - setDiscount + - 10% off + - - '*' + - - "." + - Session + - Total + - - / + - 10 + - 100 + bindings: + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + - attributeId: 100 + minValue: 0.0 + expression: + - string1 + - string2 + maxValue: 19.9 + valueType: string + name: my property + description: This is a template parameter of type `number`. + type: templateParameter + description: Creates a discount when a coupon is valid + id: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + title: Give discount via coupon + parentId: 7fa800a8-ac8d-4792-85dc-c4650dcc8f23 + templateId: 3 + userId: 388 + weight: 12 + experimentId: 10 + id: 6 + applicationId: 322 + isVariantAssignmentExternal: true + activated: 2000-01-23T04:56:07.000+00:00 + totalResultSize: 1 + properties: + totalResultSize: + example: 1 + format: int64 + type: integer + data: + items: + $ref: '#/components/schemas/Experiment' + type: array + required: + - data + - totalResultSize + inline_response_200_16: example: data: - cardBased: true @@ -45401,7 +48131,7 @@ components: required: - data - totalResultSize - inline_response_200_16: + inline_response_200_17: example: data: - date: 2000-01-23T04:56:07.000+00:00 @@ -45445,7 +48175,7 @@ components: required: - data - totalResultSize - inline_response_200_17: + inline_response_200_18: example: data: - rulesetId: 11 @@ -45504,7 +48234,7 @@ components: required: - data - hasMore - inline_response_200_18: + inline_response_200_19: example: data: - ledger: @@ -45621,7 +48351,7 @@ components: required: - data - hasMore - inline_response_200_19: + inline_response_200_20: example: data: - amount: 10.25 @@ -45666,7 +48396,7 @@ components: required: - data - hasMore - inline_response_200_20: + inline_response_200_21: example: data: - accountId: 3886 @@ -45712,7 +48442,7 @@ components: type: array required: - data - inline_response_200_21: + inline_response_200_22: example: data: - item: item @@ -45728,7 +48458,7 @@ components: required: - data - hasMore - inline_response_200_22: + inline_response_200_23: example: data: - method: PUT @@ -45768,7 +48498,7 @@ components: required: - data - hasMore - inline_response_200_23: + inline_response_200_24: example: data: - date: 2021-10-12T10:12:42Z @@ -45834,7 +48564,7 @@ components: required: - data - totalResultSize - inline_response_200_24: + inline_response_200_25: example: data: - accountId: 31 @@ -45896,7 +48626,7 @@ components: type: array required: - data - inline_response_200_25: + inline_response_200_26: example: data: - accountId: 31 @@ -45957,7 +48687,7 @@ components: type: array required: - data - inline_response_200_26: + inline_response_200_27: example: data: - accountId: 31 @@ -46016,7 +48746,7 @@ components: type: array required: - data - inline_response_200_27: + inline_response_200_28: example: data: - accountId: 31 @@ -46072,7 +48802,7 @@ components: required: - data - hasMore - inline_response_200_28: + inline_response_200_29: example: data: - couponUseAttempts: 1 @@ -46112,7 +48842,7 @@ components: required: - data - hasMore - inline_response_200_29: + inline_response_200_30: example: data: - coupon: BKDB946 @@ -46289,7 +49019,7 @@ components: type: array required: - data - inline_response_200_30: + inline_response_200_31: example: data: - effects: @@ -46337,11 +49067,11 @@ components: storeId: 0 type: type ruleFailureReasons: - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -46351,11 +49081,11 @@ components: ruleName: ruleName details: details campaignName: campaignName - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -46410,11 +49140,11 @@ components: storeId: 0 type: type ruleFailureReasons: - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -46424,11 +49154,11 @@ components: ruleName: ruleName details: details campaignName: campaignName - - rulesetID: 2 - ruleIndex: 9 - campaignID: 5 - referralID: 7 - conditionIndex: 3 + - rulesetID: 6 + ruleIndex: 5 + campaignID: 0 + referralID: 1 + conditionIndex: 5 effectIndex: 2 evaluationGroupMode: stackable couponID: 4928 @@ -46449,7 +49179,7 @@ components: required: - data - hasMore - inline_response_200_31: + inline_response_200_32: example: data: - data @@ -46467,7 +49197,7 @@ components: required: - data - totalResultSize - inline_response_200_32: + inline_response_200_33: example: data: - accountId: 3886 @@ -46505,7 +49235,7 @@ components: type: array required: - data - inline_response_200_33: + inline_response_200_34: example: data: - membersCount: 1234 @@ -46522,7 +49252,7 @@ components: type: array required: - data - inline_response_200_34: + inline_response_200_35: example: data: - accountId: 31 @@ -46577,7 +49307,7 @@ components: type: array required: - data - inline_response_200_35: + inline_response_200_36: example: data: - friendIntegrationId: friendIntegrationId @@ -46607,7 +49337,7 @@ components: type: array required: - data - inline_response_200_36: + inline_response_200_37: example: data: - created: 2020-06-10T09:05:27.993483Z @@ -46681,7 +49411,7 @@ components: required: - data - totalResultSize - inline_response_200_37: + inline_response_200_38: example: data: - product: @@ -46729,7 +49459,7 @@ components: type: array required: - data - inline_response_200_38: + inline_response_200_39: example: data: - accountId: 3886 @@ -46765,7 +49495,7 @@ components: required: - data - totalResultSize - inline_response_200_39: + inline_response_200_40: example: data: - headers: @@ -46823,7 +49553,7 @@ components: required: - data - totalResultSize - inline_response_200_40: + inline_response_200_41: example: data: - created: 2020-06-10T09:05:27.993483Z @@ -46849,7 +49579,7 @@ components: required: - data - totalResultSize - inline_response_200_41: + inline_response_200_42: example: data: - created: 2020-06-10T09:05:27.993483Z @@ -46903,7 +49633,7 @@ components: required: - data - totalResultSize - inline_response_200_42: + inline_response_200_43: example: data: - new: @@ -46955,7 +49685,7 @@ components: type: array required: - data - inline_response_200_43: + inline_response_200_44: example: data: - filter: '{}' @@ -46983,7 +49713,7 @@ components: required: - data - totalResultSize - inline_response_200_44: + inline_response_200_45: example: data: - accountId: 3886 @@ -47095,7 +49825,7 @@ components: required: - data - totalResultSize - inline_response_200_45: + inline_response_200_46: example: data: - linkedCampaignIds: @@ -47141,7 +49871,7 @@ components: type: array required: - data - inline_response_200_46: + inline_response_200_47: example: data: - period: period @@ -47163,7 +49893,7 @@ components: items: $ref: '#/components/schemas/ListCampaignStoreBudgets' type: array - inline_response_200_47: + inline_response_200_48: example: data: - period: overall @@ -47179,7 +49909,7 @@ components: items: $ref: '#/components/schemas/SummaryCampaignStoreBudget' type: array - inline_response_200_48: + inline_response_200_49: example: data: - period: 1Y @@ -47238,7 +49968,7 @@ components: type: array required: - data - inline_response_200_49: + inline_response_200_50: example: data: - endDate: 2000-01-23T04:56:07.000+00:00 @@ -47285,7 +50015,7 @@ components: required: - data - hasMore - inline_response_200_50: + inline_response_200_51: example: data: - summary: Session total was less than the required total. @@ -47346,6 +50076,17 @@ components: type: object minItems: 1 type: array + ExperimentCopy_experiment: + properties: + isVariantAssignmentExternal: + description: | + The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. + type: boolean + campaign: + $ref: '#/components/schemas/ExperimentCampaignCopy' + required: + - campaign + - isVariantAssignmentExternal ScimBaseUser_name: description: The components of the user’s real name. example: diff --git a/build.gradle b/build.gradle index 745e216b..e777031a 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'java' group = 'one.talon' -version = '14.2.0' +version = '14.3.0' buildscript { repositories { diff --git a/build.sbt b/build.sbt index ef6c515f..9079ce1a 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 := "14.2.0", + version := "14.3.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/docs/Attribute.md b/docs/Attribute.md index 69a537c7..7cdca090 100644 --- a/docs/Attribute.md +++ b/docs/Attribute.md @@ -38,6 +38,7 @@ CARTITEM | "CartItem" COUPON | "Coupon" EVENT | "Event" GIVEAWAY | "Giveaway" +LOYALTYCARD | "LoyaltyCard" REFERRAL | "Referral" STORE | "Store" diff --git a/docs/BestPriorPrice.md b/docs/BestPriorPrice.md index bc257825..7033ccc3 100644 --- a/docs/BestPriorPrice.md +++ b/docs/BestPriorPrice.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **Long** | The ID of the historical price. | **sku** | **String** | sku | -**observedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time when the best price was observed. | +**observedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time when the price was observed. | **contextId** | **String** | The context ID of the context active at the time of observation. | **price** | [**BigDecimal**](BigDecimal.md) | Price of the item. | **metadata** | [**BestPriorPriceMetadata**](BestPriorPriceMetadata.md) | | diff --git a/docs/BestPriorPriceRequest.md b/docs/BestPriorPriceRequest.md index 113b1d49..b33898b6 100644 --- a/docs/BestPriorPriceRequest.md +++ b/docs/BestPriorPriceRequest.md @@ -9,8 +9,19 @@ Name | Type | Description | Notes **skus** | **List<String>** | List of product SKUs to check when determining the best prior price. | **timeframeEndDate** | [**OffsetDateTime**](OffsetDateTime.md) | The end date and time that defines the latest time for retrieving historical SKU prices. | **timeframe** | **String** | The number of days prior to the timeframeEndDate. Only prices within this look back period are considered for the best prior price evaluation. | -**strictEndDate** | **Boolean** | Indicates whether the timeframe includes the start of the current sale. - When `false`, the timeframe includes the start date of the current sale. - When `true`, the timeframe striclty uses the number of days specified in `timeframe`. | +**strictEndDate** | **Boolean** | This property is **deprecated**. Use `timeframeEndDateType` instead. Indicates whether the timeframe includes the start of the current sale. - When `false`, the timeframe includes the start date of the current sale. - When `true`, the timeframe strictly uses the number of days specified in `timeframe`. | +**timeframeEndDateType** | [**TimeframeEndDateTypeEnum**](#TimeframeEndDateTypeEnum) | Sets the timeframe for retrieving historical pricing data. Can be one of the following values: - `strict`: The timeframe ends at the `timeframeEndDate` value. - `price`: The timeframe ends at the start of the current `contextId` with the current price value. Identical price records are merged. If there is no `contextId` for the most recent price, the most recent timestamp for the price is used. - `sale`: The timeframe ends at the start of current `contextId` and takes the prices prior to the start of the `contextId` into account. | [optional] **target** | [**BestPriorTarget**](BestPriorTarget.md) | | [optional] +## Enum: TimeframeEndDateTypeEnum + +Name | Value +---- | ----- +STRICT | "strict" +PRICE | "price" +SALE | "sale" + + + diff --git a/docs/Blueprint.md b/docs/Blueprint.md new file mode 100644 index 00000000..0b7d2c00 --- /dev/null +++ b/docs/Blueprint.md @@ -0,0 +1,44 @@ + + +# Blueprint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | The internal ID of this blueprint. | +**accountId** | **Long** | The ID of the account that owns this blueprint. | +**applicationId** | **Long** | The ID of the Application that owns this blueprint. | +**title** | **String** | A short description of the blueprint. | +**description** | **String** | A longer, more detailed description of the blueprint. | [optional] +**category** | [**CategoryEnum**](#CategoryEnum) | Category used to group blueprints. | +**source** | [**SourceEnum**](#SourceEnum) | Indicates whether the blueprint is custom or shipped by Talon.One. | +**rules** | [**List<CatalogRule>**](CatalogRule.md) | Array of rule templates in this blueprint. Rules only contain title (no description, as description is at the blueprint level). | +**cartItemFilters** | [**List<CartItemFilterTemplate>**](CartItemFilterTemplate.md) | Array of cart item filter templates in this blueprint. Cart item filters only contain name (no description, as description is at the blueprint level). | +**created** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the blueprint was created. | +**createdBy** | **Long** | ID of the user who created the blueprint. | +**modified** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the blueprint was last updated. | [optional] +**modifiedBy** | **Long** | ID of the user who last updated the blueprint. | [optional] + + + +## Enum: CategoryEnum + +Name | Value +---- | ----- +PROMOTIONS | "promotions" +PRICING | "pricing" +LOYALTY | "loyalty" +CUSTOM | "custom" + + + +## Enum: SourceEnum + +Name | Value +---- | ----- +CUSTOM | "custom" +DEFAULT | "default" + + + diff --git a/docs/CampaignCollectionEditedNotificationItem.md b/docs/CampaignCollectionEditedNotificationItem.md index 72993efe..92ec9cee 100644 --- a/docs/CampaignCollectionEditedNotificationItem.md +++ b/docs/CampaignCollectionEditedNotificationItem.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **event** | **String** | The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] | **campaign** | [**Campaign**](Campaign.md) | | **ruleset** | [**Ruleset**](Ruleset.md) | | [optional] +**placeholders** | [**List<PlaceholderDetails>**](PlaceholderDetails.md) | The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign. | [optional] **collection** | [**CollectionWithoutPayload**](CollectionWithoutPayload.md) | | diff --git a/docs/CampaignCreatedNotificationItem.md b/docs/CampaignCreatedNotificationItem.md index dfeed27f..c4783dc8 100644 --- a/docs/CampaignCreatedNotificationItem.md +++ b/docs/CampaignCreatedNotificationItem.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **event** | **String** | The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] | **campaign** | [**Campaign**](Campaign.md) | | **ruleset** | [**Ruleset**](Ruleset.md) | | [optional] +**placeholders** | [**List<PlaceholderDetails>**](PlaceholderDetails.md) | The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign. | [optional] **evaluationPosition** | [**CampaignEvaluationPosition**](CampaignEvaluationPosition.md) | | diff --git a/docs/CampaignEditedNotificationItem.md b/docs/CampaignEditedNotificationItem.md index 7cbbee39..e66e8e7d 100644 --- a/docs/CampaignEditedNotificationItem.md +++ b/docs/CampaignEditedNotificationItem.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **campaign** | [**Campaign**](Campaign.md) | | **oldCampaign** | [**Campaign**](Campaign.md) | | **ruleset** | [**Ruleset**](Ruleset.md) | | [optional] +**placeholders** | [**List<PlaceholderDetails>**](PlaceholderDetails.md) | The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign. | [optional] diff --git a/docs/CampaignRulesetChangedNotificationItem.md b/docs/CampaignRulesetChangedNotificationItem.md index fcd0760d..0cd78daf 100644 --- a/docs/CampaignRulesetChangedNotificationItem.md +++ b/docs/CampaignRulesetChangedNotificationItem.md @@ -10,7 +10,9 @@ Name | Type | Description | Notes **event** | **String** | The type of the event. Can be one of the following: ['campaign_state_changed', 'campaign_ruleset_changed', 'campaign_edited', 'campaign_created', 'campaign_deleted'] | **campaign** | [**Campaign**](Campaign.md) | | **oldRuleset** | [**Ruleset**](Ruleset.md) | | [optional] +**oldPlaceholders** | [**List<PlaceholderDetails>**](PlaceholderDetails.md) | The previous details of the placeholders before the ruleset was changed. | [optional] **ruleset** | [**Ruleset**](Ruleset.md) | | [optional] +**placeholders** | [**List<PlaceholderDetails>**](PlaceholderDetails.md) | The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign. | [optional] diff --git a/docs/CampaignStateChangedNotificationItem.md b/docs/CampaignStateChangedNotificationItem.md index 16322f2e..bfd18dfc 100644 --- a/docs/CampaignStateChangedNotificationItem.md +++ b/docs/CampaignStateChangedNotificationItem.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **oldState** | **String** | The campaign's old state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] | **newState** | **String** | The campaign's new state. Can be one of the following: ['running', 'disabled', 'scheduled', 'expired', 'archived'] | **ruleset** | [**Ruleset**](Ruleset.md) | | [optional] +**placeholders** | [**List<PlaceholderDetails>**](PlaceholderDetails.md) | The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign. | [optional] diff --git a/docs/CouponWithApplication.md b/docs/CouponWithApplication.md new file mode 100644 index 00000000..83425a56 --- /dev/null +++ b/docs/CouponWithApplication.md @@ -0,0 +1,35 @@ + + +# CouponWithApplication + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | The internal ID of the coupon. | +**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time the coupon was created. | +**campaignId** | **Long** | The ID of the campaign that owns this entity. | +**value** | **String** | The coupon code. | +**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] +**expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] +**limits** | [**List<LimitConfig>**](LimitConfig.md) | Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] +**usageCounter** | **Long** | The number of times the coupon has been successfully redeemed. | +**discountCounter** | [**BigDecimal**](BigDecimal.md) | The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. | [optional] +**discountRemainder** | [**BigDecimal**](BigDecimal.md) | The remaining discount this coupon can give. | [optional] +**reservationCounter** | [**BigDecimal**](BigDecimal.md) | The number of times this coupon has been reserved. | [optional] +**attributes** | [**Object**](.md) | Custom attributes associated with this coupon. | [optional] +**referralId** | **Long** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] +**recipientIntegrationId** | **String** | The Integration ID of the customer that is allowed to redeem this coupon. | [optional] +**importId** | **Long** | The ID of the Import which created this coupon. | [optional] +**reservation** | **Boolean** | Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. | [optional] +**batchId** | **String** | The id of the batch the coupon belongs to. | [optional] +**isReservationMandatory** | **Boolean** | An indication of whether the code can be redeemed only if it has been reserved first. | [optional] +**implicitlyReserved** | **Boolean** | An indication of whether the coupon is implicitly reserved for all customers. | [optional] +**applicationId** | **Long** | The ID of the application. | +**applicationName** | **String** | Name of the Application that is connected to the coupon. | + + + diff --git a/docs/CustomerProfileIntegrationRequestV2.md b/docs/CustomerProfileIntegrationRequestV2.md index 67166c88..25b2ccb1 100644 --- a/docs/CustomerProfileIntegrationRequestV2.md +++ b/docs/CustomerProfileIntegrationRequestV2.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] **evaluableCampaignIds** | **List<Long>** | 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] +**responseContent** | [**List<ResponseContentEnum>**](#List<ResponseContentEnum>) | Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. | [optional] **audiencesChanges** | [**ProfileAudiencesChanges**](ProfileAudiencesChanges.md) | | [optional] -**responseContent** | [**List<ResponseContentEnum>**](#List<ResponseContentEnum>) | Extends the response with the chosen data entities. Use this property to get as much data as you need in one _Update customer profile_ request instead of sending extra requests to other endpoints. | [optional] diff --git a/docs/EventAttributesEntity.md b/docs/EventAttributesEntity.md new file mode 100644 index 00000000..8bfd2d7e --- /dev/null +++ b/docs/EventAttributesEntity.md @@ -0,0 +1,13 @@ + + +# EventAttributesEntity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. | +**attributes** | [**Object**](.md) | Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). | [optional] + + + diff --git a/docs/Experiment.md b/docs/Experiment.md index 511093e8..802868ab 100644 --- a/docs/Experiment.md +++ b/docs/Experiment.md @@ -9,10 +9,10 @@ Name | Type | Description | Notes **id** | **Long** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **applicationId** | **Long** | The ID of the Application that owns this entity. | -**isVariantAssignmentExternal** | **Boolean** | The source of the assignment. - false - The assignment to the variant is handled internally by the Talon.Oneandled internally by the Talon.One. - true - The assignment to the variant handled externally. | [optional] +**isVariantAssignmentExternal** | **Boolean** | The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. | [optional] **campaign** | [**Campaign**](Campaign.md) | | [optional] **activated** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time the experiment was activated. | [optional] -**state** | [**StateEnum**](#StateEnum) | A disabled experiment is not evaluated for rules or coupons. | [optional] +**state** | [**StateEnum**](#StateEnum) | A disabled experiment is not evaluated for rules or coupons. | **variants** | [**List<ExperimentVariant>**](ExperimentVariant.md) | | [optional] **deletedat** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time the experiment was deleted. | [optional] @@ -24,6 +24,7 @@ Name | Value ---- | ----- ENABLED | "enabled" DISABLED | "disabled" +ARCHIVED | "archived" diff --git a/docs/ExperimentCampaignCopy.md b/docs/ExperimentCampaignCopy.md new file mode 100644 index 00000000..9632e8c3 --- /dev/null +++ b/docs/ExperimentCampaignCopy.md @@ -0,0 +1,17 @@ + + +# ExperimentCampaignCopy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Name of the copied campaign (Defaults to \"Copy of original campaign name\"). | [optional] +**description** | **String** | A detailed description of the campaign. | [optional] +**startTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become active. | [optional] +**endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] +**tags** | **List<String>** | A list of tags for the campaign. | [optional] +**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] + + + diff --git a/docs/ExperimentCopy.md b/docs/ExperimentCopy.md new file mode 100644 index 00000000..10505052 --- /dev/null +++ b/docs/ExperimentCopy.md @@ -0,0 +1,13 @@ + + +# ExperimentCopy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**targetApplicationId** | **Long** | The ID of the Application to copy the experiment. It is displayed in your Talon.One deployment URL. | +**experiment** | [**ExperimentCopyExperiment**](ExperimentCopyExperiment.md) | | + + + diff --git a/docs/ExperimentCopyExperiment.md b/docs/ExperimentCopyExperiment.md new file mode 100644 index 00000000..84bc7ecb --- /dev/null +++ b/docs/ExperimentCopyExperiment.md @@ -0,0 +1,13 @@ + + +# ExperimentCopyExperiment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isVariantAssignmentExternal** | **Boolean** | The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. | +**campaign** | [**ExperimentCampaignCopy**](ExperimentCampaignCopy.md) | | + + + diff --git a/docs/History.md b/docs/History.md new file mode 100644 index 00000000..94101ccd --- /dev/null +++ b/docs/History.md @@ -0,0 +1,17 @@ + + +# History + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | The ID of the historical price. | +**observedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time when the price was observed. | +**contextId** | **String** | Identifier of the relevant context at the time the price was observed (e.g. summer sale). | +**price** | [**BigDecimal**](BigDecimal.md) | Price of the item. | +**metadata** | [**BestPriorPriceMetadata**](BestPriorPriceMetadata.md) | | +**target** | [**Object**](.md) | | + + + diff --git a/docs/InlineResponse20015.md b/docs/InlineResponse20015.md index 80e9704d..960e31d7 100644 --- a/docs/InlineResponse20015.md +++ b/docs/InlineResponse20015.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | -**data** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | | +**data** | [**List<Experiment>**](Experiment.md) | | diff --git a/docs/InlineResponse20016.md b/docs/InlineResponse20016.md index 83a15fbb..f3b0a751 100644 --- a/docs/InlineResponse20016.md +++ b/docs/InlineResponse20016.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | -**data** | [**List<LoyaltyDashboardData>**](LoyaltyDashboardData.md) | | +**data** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | | diff --git a/docs/InlineResponse20017.md b/docs/InlineResponse20017.md index c9e91085..b19e9371 100644 --- a/docs/InlineResponse20017.md +++ b/docs/InlineResponse20017.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | -**data** | [**List<LoyaltyProgramTransaction>**](LoyaltyProgramTransaction.md) | | +**totalResultSize** | **Long** | | +**data** | [**List<LoyaltyDashboardData>**](LoyaltyDashboardData.md) | | diff --git a/docs/InlineResponse20018.md b/docs/InlineResponse20018.md index 76ab0218..91823d2f 100644 --- a/docs/InlineResponse20018.md +++ b/docs/InlineResponse20018.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/InlineResponse20019.md b/docs/InlineResponse20019.md index 7a0a3a71..3475c34b 100644 --- a/docs/InlineResponse20019.md +++ b/docs/InlineResponse20019.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/InlineResponse20020.md b/docs/InlineResponse20020.md index f6179802..2d08622b 100644 --- a/docs/InlineResponse20020.md +++ b/docs/InlineResponse20020.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [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/InlineResponse20021.md b/docs/InlineResponse20021.md index 8846a191..e57c161b 100644 --- a/docs/InlineResponse20021.md +++ b/docs/InlineResponse20021.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | -**data** | [**List<CollectionItem>**](CollectionItem.md) | | +**hasMore** | **Boolean** | | [optional] +**totalResultSize** | **Long** | | [optional] +**data** | [**List<CollectionWithoutPayload>**](CollectionWithoutPayload.md) | | diff --git a/docs/InlineResponse20022.md b/docs/InlineResponse20022.md index be00dd83..15dce971 100644 --- a/docs/InlineResponse20022.md +++ b/docs/InlineResponse20022.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | -**data** | [**List<AccessLogEntry>**](AccessLogEntry.md) | | +**data** | [**List<CollectionItem>**](CollectionItem.md) | | diff --git a/docs/InlineResponse20023.md b/docs/InlineResponse20023.md index 5dd633aa..261cc611 100644 --- a/docs/InlineResponse20023.md +++ b/docs/InlineResponse20023.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | -**data** | [**List<CampaignAnalytics>**](CampaignAnalytics.md) | | +**hasMore** | **Boolean** | | +**data** | [**List<AccessLogEntry>**](AccessLogEntry.md) | | diff --git a/docs/InlineResponse20024.md b/docs/InlineResponse20024.md index 53aee5a1..6a613160 100644 --- a/docs/InlineResponse20024.md +++ b/docs/InlineResponse20024.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | [optional] -**hasMore** | **Boolean** | | [optional] -**data** | [**List<ApplicationCustomer>**](ApplicationCustomer.md) | | +**totalResultSize** | **Long** | | +**data** | [**List<CampaignAnalytics>**](CampaignAnalytics.md) | | diff --git a/docs/InlineResponse20025.md b/docs/InlineResponse20025.md index 5ef800ec..a6d83a27 100644 --- a/docs/InlineResponse20025.md +++ b/docs/InlineResponse20025.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | [optional] **totalResultSize** | **Long** | | [optional] +**hasMore** | **Boolean** | | [optional] **data** | [**List<ApplicationCustomer>**](ApplicationCustomer.md) | | diff --git a/docs/InlineResponse20026.md b/docs/InlineResponse20026.md index d783ea33..3a665412 100644 --- a/docs/InlineResponse20026.md +++ b/docs/InlineResponse20026.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] **totalResultSize** | **Long** | | [optional] -**data** | [**List<CustomerProfile>**](CustomerProfile.md) | | +**data** | [**List<ApplicationCustomer>**](ApplicationCustomer.md) | | diff --git a/docs/InlineResponse20027.md b/docs/InlineResponse20027.md index 51436ae1..4392c5e6 100644 --- a/docs/InlineResponse20027.md +++ b/docs/InlineResponse20027.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | +**hasMore** | **Boolean** | | [optional] +**totalResultSize** | **Long** | | [optional] **data** | [**List<CustomerProfile>**](CustomerProfile.md) | | diff --git a/docs/InlineResponse20028.md b/docs/InlineResponse20028.md index 18c9c832..65d2bcc5 100644 --- a/docs/InlineResponse20028.md +++ b/docs/InlineResponse20028.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | -**data** | [**List<CustomerActivityReport>**](CustomerActivityReport.md) | | +**data** | [**List<CustomerProfile>**](CustomerProfile.md) | | diff --git a/docs/InlineResponse20029.md b/docs/InlineResponse20029.md index f2983457..02decbdc 100644 --- a/docs/InlineResponse20029.md +++ b/docs/InlineResponse20029.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | [optional] -**data** | [**List<ApplicationSession>**](ApplicationSession.md) | | +**hasMore** | **Boolean** | | +**data** | [**List<CustomerActivityReport>**](CustomerActivityReport.md) | | diff --git a/docs/InlineResponse20030.md b/docs/InlineResponse20030.md index 47ffd3c0..d9837029 100644 --- a/docs/InlineResponse20030.md +++ b/docs/InlineResponse20030.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | -**data** | [**List<ApplicationEvent>**](ApplicationEvent.md) | | +**hasMore** | **Boolean** | | [optional] +**data** | [**List<ApplicationSession>**](ApplicationSession.md) | | diff --git a/docs/InlineResponse20031.md b/docs/InlineResponse20031.md index 7312e701..71aa35ae 100644 --- a/docs/InlineResponse20031.md +++ b/docs/InlineResponse20031.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | -**data** | **List<String>** | | +**hasMore** | **Boolean** | | +**data** | [**List<ApplicationEvent>**](ApplicationEvent.md) | | diff --git a/docs/InlineResponse20032.md b/docs/InlineResponse20032.md index a727b244..8fbb8d88 100644 --- a/docs/InlineResponse20032.md +++ b/docs/InlineResponse20032.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [optional] -**data** | [**List<Audience>**](Audience.md) | | +**totalResultSize** | **Long** | | +**data** | **List<String>** | | diff --git a/docs/InlineResponse20033.md b/docs/InlineResponse20033.md index c1ddce2f..e821ab71 100644 --- a/docs/InlineResponse20033.md +++ b/docs/InlineResponse20033.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**data** | [**List<AudienceAnalytics>**](AudienceAnalytics.md) | | +**totalResultSize** | **Long** | | [optional] +**data** | [**List<Audience>**](Audience.md) | | diff --git a/docs/InlineResponse20034.md b/docs/InlineResponse20034.md index 2517c210..f19d7eea 100644 --- a/docs/InlineResponse20034.md +++ b/docs/InlineResponse20034.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**data** | [**List<CustomerProfile>**](CustomerProfile.md) | | +**data** | [**List<AudienceAnalytics>**](AudienceAnalytics.md) | | diff --git a/docs/InlineResponse20035.md b/docs/InlineResponse20035.md index 4f0dfdf4..13c902b4 100644 --- a/docs/InlineResponse20035.md +++ b/docs/InlineResponse20035.md @@ -7,8 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [optional] -**data** | [**List<ApplicationReferee>**](ApplicationReferee.md) | | +**data** | [**List<CustomerProfile>**](CustomerProfile.md) | | diff --git a/docs/InlineResponse20036.md b/docs/InlineResponse20036.md index 4fbbf04d..938917db 100644 --- a/docs/InlineResponse20036.md +++ b/docs/InlineResponse20036.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | -**data** | [**List<Attribute>**](Attribute.md) | | +**hasMore** | **Boolean** | | [optional] +**totalResultSize** | **Long** | | [optional] +**data** | [**List<ApplicationReferee>**](ApplicationReferee.md) | | diff --git a/docs/InlineResponse20037.md b/docs/InlineResponse20037.md index f7e3566a..dd0447f5 100644 --- a/docs/InlineResponse20037.md +++ b/docs/InlineResponse20037.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [optional] -**data** | [**List<CatalogItem>**](CatalogItem.md) | | +**totalResultSize** | **Long** | | +**data** | [**List<Attribute>**](Attribute.md) | | diff --git a/docs/InlineResponse20038.md b/docs/InlineResponse20038.md index 807b6eb1..6aa5de01 100644 --- a/docs/InlineResponse20038.md +++ b/docs/InlineResponse20038.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | -**data** | [**List<AccountAdditionalCost>**](AccountAdditionalCost.md) | | +**hasMore** | **Boolean** | | [optional] +**totalResultSize** | **Long** | | [optional] +**data** | [**List<CatalogItem>**](CatalogItem.md) | | diff --git a/docs/InlineResponse20039.md b/docs/InlineResponse20039.md index df470b34..ae3075c0 100644 --- a/docs/InlineResponse20039.md +++ b/docs/InlineResponse20039.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | -**data** | [**List<WebhookWithOutgoingIntegrationDetails>**](WebhookWithOutgoingIntegrationDetails.md) | | +**data** | [**List<AccountAdditionalCost>**](AccountAdditionalCost.md) | | diff --git a/docs/InlineResponse20040.md b/docs/InlineResponse20040.md index 65c55997..d9c48934 100644 --- a/docs/InlineResponse20040.md +++ b/docs/InlineResponse20040.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | -**data** | [**List<EventType>**](EventType.md) | | +**data** | [**List<WebhookWithOutgoingIntegrationDetails>**](WebhookWithOutgoingIntegrationDetails.md) | | diff --git a/docs/InlineResponse20041.md b/docs/InlineResponse20041.md index 9ca03828..3e586b7d 100644 --- a/docs/InlineResponse20041.md +++ b/docs/InlineResponse20041.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | -**data** | [**List<User>**](User.md) | | +**data** | [**List<EventType>**](EventType.md) | | diff --git a/docs/InlineResponse20042.md b/docs/InlineResponse20042.md index af59f592..dc662709 100644 --- a/docs/InlineResponse20042.md +++ b/docs/InlineResponse20042.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | [optional] -**hasMore** | **Boolean** | | [optional] -**data** | [**List<Change>**](Change.md) | | +**totalResultSize** | **Long** | | +**data** | [**List<User>**](User.md) | | diff --git a/docs/InlineResponse20043.md b/docs/InlineResponse20043.md index c15bf119..c752a397 100644 --- a/docs/InlineResponse20043.md +++ b/docs/InlineResponse20043.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | -**data** | [**List<Export>**](Export.md) | | +**totalResultSize** | **Long** | | [optional] +**hasMore** | **Boolean** | | [optional] +**data** | [**List<Change>**](Change.md) | | diff --git a/docs/InlineResponse20044.md b/docs/InlineResponse20044.md index 03fd2ac0..04f34f4e 100644 --- a/docs/InlineResponse20044.md +++ b/docs/InlineResponse20044.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | -**data** | [**List<RoleV2>**](RoleV2.md) | | +**data** | [**List<Export>**](Export.md) | | diff --git a/docs/InlineResponse20045.md b/docs/InlineResponse20045.md index 024a259e..dac85eea 100644 --- a/docs/InlineResponse20045.md +++ b/docs/InlineResponse20045.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [optional] -**data** | [**List<Store>**](Store.md) | | +**totalResultSize** | **Long** | | +**data** | [**List<RoleV2>**](RoleV2.md) | | diff --git a/docs/InlineResponse20046.md b/docs/InlineResponse20046.md index 725df900..5e727797 100644 --- a/docs/InlineResponse20046.md +++ b/docs/InlineResponse20046.md @@ -6,7 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**List<ListCampaignStoreBudgets>**](ListCampaignStoreBudgets.md) | | [optional] +**hasMore** | **Boolean** | | [optional] +**totalResultSize** | **Long** | | [optional] +**data** | [**List<Store>**](Store.md) | | diff --git a/docs/InlineResponse20047.md b/docs/InlineResponse20047.md index b3b967c7..69c9be85 100644 --- a/docs/InlineResponse20047.md +++ b/docs/InlineResponse20047.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**List<SummaryCampaignStoreBudget>**](SummaryCampaignStoreBudget.md) | | [optional] +**data** | [**List<ListCampaignStoreBudgets>**](ListCampaignStoreBudgets.md) | | [optional] diff --git a/docs/InlineResponse20048.md b/docs/InlineResponse20048.md index c7e4b31e..ec8b1243 100644 --- a/docs/InlineResponse20048.md +++ b/docs/InlineResponse20048.md @@ -6,8 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | [optional] -**data** | [**List<Achievement>**](Achievement.md) | | +**data** | [**List<SummaryCampaignStoreBudget>**](SummaryCampaignStoreBudget.md) | | [optional] diff --git a/docs/InlineResponse20049.md b/docs/InlineResponse20049.md index 6e71e2ee..4d12524e 100644 --- a/docs/InlineResponse20049.md +++ b/docs/InlineResponse20049.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | -**data** | [**List<AchievementProgressWithDefinition>**](AchievementProgressWithDefinition.md) | | +**hasMore** | **Boolean** | | [optional] +**data** | [**List<Achievement>**](Achievement.md) | | diff --git a/docs/InlineResponse20050.md b/docs/InlineResponse20050.md index 8922ecb8..0674b132 100644 --- a/docs/InlineResponse20050.md +++ b/docs/InlineResponse20050.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**List<CouponFailureSummary>**](CouponFailureSummary.md) | | +**hasMore** | **Boolean** | | +**data** | [**List<AchievementProgressWithDefinition>**](AchievementProgressWithDefinition.md) | | diff --git a/docs/InlineResponse20051.md b/docs/InlineResponse20051.md index 836b7a79..a7defda4 100644 --- a/docs/InlineResponse20051.md +++ b/docs/InlineResponse20051.md @@ -6,8 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | -**data** | [**List<AchievementProgressWithDefinition>**](AchievementProgressWithDefinition.md) | | +**data** | [**List<CouponFailureSummary>**](CouponFailureSummary.md) | | diff --git a/docs/IntegrationApi.md b/docs/IntegrationApi.md index b2008836..654b33cb 100644 --- a/docs/IntegrationApi.md +++ b/docs/IntegrationApi.md @@ -28,6 +28,7 @@ Method | HTTP request | Description [**getLoyaltyProgramProfileTransactions**](IntegrationApi.md#getLoyaltyProgramProfileTransactions) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/transactions | List customer's loyalty transactions [**getReservedCustomers**](IntegrationApi.md#getReservedCustomers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | List customers that have this coupon reserved [**linkLoyaltyCardToProfile**](IntegrationApi.md#linkLoyaltyCardToProfile) | **POST** /v2/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/link_profile | Link customer profile to card +[**priceHistory**](IntegrationApi.md#priceHistory) | **POST** /v1/best_prior_price_history | Get summary of price history [**reopenCustomerSession**](IntegrationApi.md#reopenCustomerSession) | **PUT** /v2/customer_sessions/{customerSessionId}/reopen | Reopen customer session [**returnCartItems**](IntegrationApi.md#returnCartItems) | **POST** /v2/customer_sessions/{customerSessionId}/returns | Return cart items [**syncCatalog**](IntegrationApi.md#syncCatalog) | **PUT** /v1/catalogs/{catalogId}/sync | Sync cart item catalog @@ -886,7 +887,7 @@ null (empty response body) Generate loyalty card -Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. +Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. ### Example @@ -1982,6 +1983,90 @@ Name | Type | Description | Notes | **404** | Not found | - | +## priceHistory + +> PriceHistoryResponse priceHistory(body) + +Get summary of price history + +Fetch the historical price data for a given SKU within a defined timeframe. + +### 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.IntegrationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: api_key_v1 + ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1"); + api_key_v1.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //api_key_v1.setApiKeyPrefix("Token"); + + // 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"); + + IntegrationApi apiInstance = new IntegrationApi(defaultClient); + PriceHistoryRequest body = new PriceHistoryRequest(); // PriceHistoryRequest | body + try { + PriceHistoryResponse result = apiInstance.priceHistory(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling IntegrationApi#priceHistory"); + 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** | [**PriceHistoryRequest**](PriceHistoryRequest.md)| body | + +### Return type cool + +[**PriceHistoryResponse**](PriceHistoryResponse.md) + +### Authorization + +[api_key_v1](../README.md#api_key_v1), [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 | - | + + ## reopenCustomerSession > ReopenSessionResponse reopenCustomerSession(customerSessionId) @@ -2213,7 +2298,7 @@ Name | Type | Description | Notes ## trackEventV2 -> TrackEventV2Response trackEventV2(body, silent, dry, forceCompleteEvaluation) +> IntegrationEventV2Response trackEventV2(body, silent, dry, forceCompleteEvaluation) Track event @@ -2247,7 +2332,7 @@ public class Example { Boolean dry = true; // Boolean | Indicates whether to persist the changes. Changes are ignored when `dry=true`. Boolean forceCompleteEvaluation = false; // Boolean | Forces evaluation for all matching campaigns regardless of the [campaign evaluation mode](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation#setting-campaign-evaluation-mode). Requires `dry=true`. try { - TrackEventV2Response result = apiInstance.trackEventV2(body, silent, dry, forceCompleteEvaluation); + IntegrationEventV2Response result = apiInstance.trackEventV2(body, silent, dry, forceCompleteEvaluation); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling IntegrationApi#trackEventV2"); @@ -2272,7 +2357,7 @@ Name | Type | Description | Notes ### Return type cool -[**TrackEventV2Response**](TrackEventV2Response.md) +[**IntegrationEventV2Response**](IntegrationEventV2Response.md) ### Authorization diff --git a/docs/IntegrationEventV2Request.md b/docs/IntegrationEventV2Request.md index e4bfef81..59c204ba 100644 --- a/docs/IntegrationEventV2Request.md +++ b/docs/IntegrationEventV2Request.md @@ -11,8 +11,8 @@ Name | Type | Description | Notes **evaluableCampaignIds** | **List<Long>** | 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] **type** | **String** | A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. | **attributes** | [**Object**](.md) | Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). | [optional] -**loyaltyCards** | **List<String>** | Identifier of the loyalty card used during this event. | [optional] -**responseContent** | [**List<ResponseContentEnum>**](#List<ResponseContentEnum>) | Optional list of requested information to be present on the response related to the tracking custom event. | [optional] +**responseContent** | [**List<ResponseContentEnum>**](#List<ResponseContentEnum>) | Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. | [optional] +**loyaltyCards** | **List<String>** | Identifiers of the loyalty cards used during this event. | [optional] diff --git a/docs/IntegrationEventV2Response.md b/docs/IntegrationEventV2Response.md new file mode 100644 index 00000000..f2b86f5e --- /dev/null +++ b/docs/IntegrationEventV2Response.md @@ -0,0 +1,21 @@ + + +# IntegrationEventV2Response + +This is the response type returned by the trackEventV2 endpoint. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customerProfile** | [**CustomerProfile**](CustomerProfile.md) | | [optional] +**loyalty** | [**Loyalty**](Loyalty.md) | | [optional] +**triggeredCampaigns** | [**List<Campaign>**](Campaign.md) | The campaigns that were triggered as a result of processing the event. | [optional] +**effects** | [**List<Effect>**](Effect.md) | The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). | +**ruleFailureReasons** | [**List<RuleFailureReason>**](RuleFailureReason.md) | The reasons why certain rules were not triggered during the event processing. | [optional] +**createdCoupons** | [**List<Coupon>**](Coupon.md) | The coupons that were created during the event processing. | +**createdReferrals** | [**List<Referral>**](Referral.md) | The referrals that were created during the event processing. | +**awardedGiveaways** | [**List<Giveaway>**](Giveaway.md) | The giveaways that were awarded during the event processing. | [optional] +**event** | [**Event**](Event.md) | | [optional] + + + diff --git a/docs/IntegrationEventV3Request.md b/docs/IntegrationEventV3Request.md index fc0fd486..0934c639 100644 --- a/docs/IntegrationEventV3Request.md +++ b/docs/IntegrationEventV3Request.md @@ -26,7 +26,7 @@ Name | Value CUSTOMERPROFILE | "customerProfile" TRIGGEREDCAMPAIGNS | "triggeredCampaigns" LOYALTY | "loyalty" -EVENT | "event" +ADVANCEDEVENT | "advancedEvent" AWARDEDGIVEAWAYS | "awardedGiveaways" RULEFAILUREREASONS | "ruleFailureReasons" diff --git a/docs/IntegrationEventV3Response.md b/docs/IntegrationEventV3Response.md index e3bfb448..7ccb7dd9 100644 --- a/docs/IntegrationEventV3Response.md +++ b/docs/IntegrationEventV3Response.md @@ -8,14 +8,14 @@ This is the response type returned by the trackEventV3 endpoint. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **customerProfile** | [**CustomerProfile**](CustomerProfile.md) | | [optional] -**event** | [**EventV3**](EventV3.md) | | [optional] **loyalty** | [**Loyalty**](Loyalty.md) | | [optional] -**triggeredCampaigns** | [**List<Campaign>**](Campaign.md) | | [optional] -**ruleFailureReasons** | [**List<RuleFailureReason>**](RuleFailureReason.md) | | [optional] -**awardedGiveaways** | [**List<Giveaway>**](Giveaway.md) | | [optional] +**triggeredCampaigns** | [**List<Campaign>**](Campaign.md) | The campaigns that were triggered as a result of processing the event. | [optional] **effects** | [**List<Effect>**](Effect.md) | The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). | -**createdCoupons** | [**List<Coupon>**](Coupon.md) | | -**createdReferrals** | [**List<Referral>**](Referral.md) | | +**ruleFailureReasons** | [**List<RuleFailureReason>**](RuleFailureReason.md) | The reasons why certain rules were not triggered during the event processing. | [optional] +**createdCoupons** | [**List<Coupon>**](Coupon.md) | The coupons that were created during the event processing. | +**createdReferrals** | [**List<Referral>**](Referral.md) | The referrals that were created during the event processing. | +**awardedGiveaways** | [**List<Giveaway>**](Giveaway.md) | The giveaways that were awarded during the event processing. | [optional] +**advancedEvent** | [**EventV3**](EventV3.md) | | [optional] diff --git a/docs/IntegrationResponse.md b/docs/IntegrationResponse.md new file mode 100644 index 00000000..802f9948 --- /dev/null +++ b/docs/IntegrationResponse.md @@ -0,0 +1,20 @@ + + +# IntegrationResponse + +Contains entities that might be valuable in Talon.One integrations. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customerProfile** | [**CustomerProfile**](CustomerProfile.md) | | [optional] +**loyalty** | [**Loyalty**](Loyalty.md) | | [optional] +**triggeredCampaigns** | [**List<Campaign>**](Campaign.md) | The campaigns that were triggered as a result of processing the event. | [optional] +**effects** | [**List<Effect>**](Effect.md) | The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). | +**ruleFailureReasons** | [**List<RuleFailureReason>**](RuleFailureReason.md) | The reasons why certain rules were not triggered during the event processing. | [optional] +**createdCoupons** | [**List<Coupon>**](Coupon.md) | The coupons that were created during the event processing. | +**createdReferrals** | [**List<Referral>**](Referral.md) | The referrals that were created during the event processing. | +**awardedGiveaways** | [**List<Giveaway>**](Giveaway.md) | The giveaways that were awarded during the event processing. | [optional] + + + diff --git a/docs/IntegrationStateV2.md b/docs/IntegrationStateV2.md index 5c10d906..d8c09895 100644 --- a/docs/IntegrationStateV2.md +++ b/docs/IntegrationStateV2.md @@ -7,20 +7,21 @@ Contains all entities that might interest Talon.One integrations. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**customerSession** | [**CustomerSessionV2**](CustomerSessionV2.md) | | [optional] **customerProfile** | [**CustomerProfile**](CustomerProfile.md) | | [optional] -**event** | [**Event**](Event.md) | | [optional] **loyalty** | [**Loyalty**](Loyalty.md) | | [optional] -**referral** | [**InventoryReferral**](InventoryReferral.md) | | [optional] -**coupons** | [**List<IntegrationCoupon>**](IntegrationCoupon.md) | | [optional] -**triggeredCampaigns** | [**List<Campaign>**](Campaign.md) | | [optional] +**triggeredCampaigns** | [**List<Campaign>**](Campaign.md) | The campaigns that were triggered as a result of processing the event. | [optional] **effects** | [**List<Effect>**](Effect.md) | The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). | -**ruleFailureReasons** | [**List<RuleFailureReason>**](RuleFailureReason.md) | | [optional] -**createdCoupons** | [**List<Coupon>**](Coupon.md) | | -**createdReferrals** | [**List<Referral>**](Referral.md) | | -**awardedGiveaways** | [**List<Giveaway>**](Giveaway.md) | | [optional] +**ruleFailureReasons** | [**List<RuleFailureReason>**](RuleFailureReason.md) | The reasons why certain rules were not triggered during the event processing. | [optional] +**createdCoupons** | [**List<Coupon>**](Coupon.md) | The coupons that were created during the event processing. | +**createdReferrals** | [**List<Referral>**](Referral.md) | The referrals that were created during the event processing. | +**awardedGiveaways** | [**List<Giveaway>**](Giveaway.md) | The giveaways that were awarded during the event processing. | [optional] +**referral** | [**InventoryReferral**](InventoryReferral.md) | | [optional] +**coupons** | [**List<IntegrationCoupon>**](IntegrationCoupon.md) | The coupons that were processed. | [optional] +**event** | [**Event**](Event.md) | | [optional] +**advancedEvent** | [**EventV3**](EventV3.md) | | [optional] +**customerSession** | [**CustomerSessionV2**](CustomerSessionV2.md) | | [optional] **_return** | [**ModelReturn**](ModelReturn.md) | | [optional] -**previousReturns** | [**List<ModelReturn>**](ModelReturn.md) | | [optional] +**previousReturns** | [**List<ModelReturn>**](ModelReturn.md) | The previous returns associated with the event. | [optional] diff --git a/docs/ManagementApi.md b/docs/ManagementApi.md index 004852a8..3c6f79d5 100644 --- a/docs/ManagementApi.md +++ b/docs/ManagementApi.md @@ -56,6 +56,7 @@ Method | HTTP request | Description [**exportLoyaltyCardBalances**](ManagementApi.md#exportLoyaltyCardBalances) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/export_card_balances | Export all card transaction logs [**exportLoyaltyCardLedger**](ManagementApi.md#exportLoyaltyCardLedger) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/export_log | Export card's ledger log [**exportLoyaltyCards**](ManagementApi.md#exportLoyaltyCards) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/cards/export | Export loyalty cards +[**exportLoyaltyJoinDates**](ManagementApi.md#exportLoyaltyJoinDates) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/export_join_dates | Export customers' loyalty program join dates [**exportLoyaltyLedger**](ManagementApi.md#exportLoyaltyLedger) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/export_log | Export customer's transaction logs [**exportPoolGiveaways**](ManagementApi.md#exportPoolGiveaways) | **GET** /v1/giveaways/pools/{poolId}/export | Export giveaway codes of a giveaway pool [**exportReferrals**](ManagementApi.md#exportReferrals) | **GET** /v1/applications/{applicationId}/export_referrals | Export referrals @@ -103,6 +104,7 @@ Method | HTTP request | Description [**getCustomersByAttributes**](ManagementApi.md#getCustomersByAttributes) | **POST** /v1/customer_search/no_total | List customer profiles matching the given attributes [**getDashboardStatistics**](ManagementApi.md#getDashboardStatistics) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/dashboard | Get statistics for loyalty dashboard [**getEventTypes**](ManagementApi.md#getEventTypes) | **GET** /v1/event_types | List event types +[**getExperiment**](ManagementApi.md#getExperiment) | **GET** /v1/applications/{applicationId}/experiments/{experimentId} | Get experiment in Application [**getExports**](ManagementApi.md#getExports) | **GET** /v1/exports | Get exports [**getLoyaltyCard**](ManagementApi.md#getLoyaltyCard) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Get loyalty card [**getLoyaltyCardTransactionLogs**](ManagementApi.md#getLoyaltyCardTransactionLogs) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/logs | List card's transactions @@ -144,6 +146,7 @@ Method | HTTP request | Description [**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 +[**listExperiments**](ManagementApi.md#listExperiments) | **GET** /v1/applications/{applicationId}/experiments | List experiments [**listStores**](ManagementApi.md#listStores) | **GET** /v1/applications/{applicationId}/stores | List stores [**oktaEventHandlerChallenge**](ManagementApi.md#oktaEventHandlerChallenge) | **GET** /v1/provisioning/okta | Validate Okta API ownership [**removeLoyaltyPoints**](ManagementApi.md#removeLoyaltyPoints) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/deduct_points | Deduct points from customer profile @@ -175,7 +178,7 @@ Method | HTTP request | Description [**updateCollection**](ManagementApi.md#updateCollection) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Update campaign-level collection's description [**updateCoupon**](ManagementApi.md#updateCoupon) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} | Update coupon [**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 +[**updateLoyaltyCard**](ManagementApi.md#updateLoyaltyCard) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Update loyalty card [**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 @@ -4788,6 +4791,92 @@ Name | Type | Description | Notes | **401** | Unauthorized | - | +## exportLoyaltyJoinDates + +> String exportLoyaltyJoinDates(loyaltyProgramId) + +Export customers' loyalty program join dates + +Download a CSV file containing the join dates of all customers 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. - `profileIntegrationID`: The integration ID of the customer profile. - `joinDate`: The customer's loyalty program join date in RFC3339 format. + +### 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: api_key_v1 + ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1"); + api_key_v1.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //api_key_v1.setApiKeyPrefix("Token"); + + // 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 of the loyalty program. + try { + String result = apiInstance.exportLoyaltyJoinDates(loyaltyProgramId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#exportLoyaltyJoinDates"); + 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 of the loyalty program. | + +### Return type cool + +**String** + +### Authorization + +[api_key_v1](../README.md#api_key_v1), [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 | - | + + ## exportLoyaltyLedger > String exportLoyaltyLedger(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat) @@ -5069,7 +5158,7 @@ Name | Type | Description | Notes ## generateCouponRejections -> InlineResponse20050 generateCouponRejections(sessionIntegrationId, applicationId, language, couponCode) +> InlineResponse20051 generateCouponRejections(sessionIntegrationId, applicationId, language, couponCode) Summarize coupon redemption failures in session @@ -5115,7 +5204,7 @@ public class Example { String language = "language_example"; // String | The [ISO-639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) code of the language in which the summary will be generated. String couponCode = "couponCode_example"; // String | The coupon code for which to get the rejection reason. try { - InlineResponse20050 result = apiInstance.generateCouponRejections(sessionIntegrationId, applicationId, language, couponCode); + InlineResponse20051 result = apiInstance.generateCouponRejections(sessionIntegrationId, applicationId, language, couponCode); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#generateCouponRejections"); @@ -5140,7 +5229,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20050**](InlineResponse20050.md) +[**InlineResponse20051**](InlineResponse20051.md) ### Authorization @@ -5159,7 +5248,7 @@ Name | Type | Description | Notes ## getAccessLogsWithoutTotalCount -> InlineResponse20022 getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort) +> InlineResponse20023 getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort) Get access logs for Application @@ -5210,7 +5299,7 @@ public class Example { Long skip = 56L; // Long | 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:** You may not be able to use all fields for sorting. This is due to performance limitations. try { - InlineResponse20022 result = apiInstance.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); + InlineResponse20023 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#getAccessLogsWithoutTotalCount"); @@ -5240,7 +5329,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20022**](InlineResponse20022.md) +[**InlineResponse20023**](InlineResponse20023.md) ### Authorization @@ -5686,7 +5775,7 @@ Name | Type | Description | Notes ## getAdditionalCosts -> InlineResponse20038 getAdditionalCosts(pageSize, skip, sort) +> InlineResponse20039 getAdditionalCosts(pageSize, skip, sort) List additional costs @@ -5731,7 +5820,7 @@ public class Example { Long skip = 56L; // Long | 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:** You may not be able to use all fields for sorting. This is due to performance limitations. try { - InlineResponse20038 result = apiInstance.getAdditionalCosts(pageSize, skip, sort); + InlineResponse20039 result = apiInstance.getAdditionalCosts(pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getAdditionalCosts"); @@ -5755,7 +5844,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20038**](InlineResponse20038.md) +[**InlineResponse20039**](InlineResponse20039.md) ### Authorization @@ -6028,7 +6117,7 @@ Name | Type | Description | Notes ## getApplicationCustomerFriends -> InlineResponse20035 getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize) +> InlineResponse20036 getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize) List friends referred by customer profile @@ -6076,7 +6165,7 @@ public class Example { 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:** You may not be able to use all fields for sorting. This is due to performance limitations. 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 { - InlineResponse20035 result = apiInstance.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); + InlineResponse20036 result = apiInstance.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getApplicationCustomerFriends"); @@ -6103,7 +6192,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20035**](InlineResponse20035.md) +[**InlineResponse20036**](InlineResponse20036.md) ### Authorization @@ -6122,7 +6211,7 @@ Name | Type | Description | Notes ## getApplicationCustomers -> InlineResponse20024 getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize) +> InlineResponse20025 getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize) List application's customers @@ -6169,7 +6258,7 @@ public class Example { Long skip = 56L; // Long | 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 { - InlineResponse20024 result = apiInstance.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize); + InlineResponse20025 result = apiInstance.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getApplicationCustomers"); @@ -6195,7 +6284,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20024**](InlineResponse20024.md) +[**InlineResponse20025**](InlineResponse20025.md) ### Authorization @@ -6214,7 +6303,7 @@ Name | Type | Description | Notes ## getApplicationCustomersByAttributes -> InlineResponse20025 getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize) +> InlineResponse20026 getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize) List application customers matching the given attributes @@ -6261,7 +6350,7 @@ public class Example { Long skip = 56L; // Long | 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 { - InlineResponse20025 result = apiInstance.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize); + InlineResponse20026 result = apiInstance.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getApplicationCustomersByAttributes"); @@ -6287,7 +6376,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20025**](InlineResponse20025.md) +[**InlineResponse20026**](InlineResponse20026.md) ### Authorization @@ -6306,7 +6395,7 @@ Name | Type | Description | Notes ## getApplicationEventTypes -> InlineResponse20031 getApplicationEventTypes(applicationId, pageSize, skip, sort) +> InlineResponse20032 getApplicationEventTypes(applicationId, pageSize, skip, sort) List Applications event types @@ -6352,7 +6441,7 @@ public class Example { Long skip = 56L; // Long | 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:** You may not be able to use all fields for sorting. This is due to performance limitations. try { - InlineResponse20031 result = apiInstance.getApplicationEventTypes(applicationId, pageSize, skip, sort); + InlineResponse20032 result = apiInstance.getApplicationEventTypes(applicationId, pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getApplicationEventTypes"); @@ -6377,7 +6466,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20031**](InlineResponse20031.md) +[**InlineResponse20032**](InlineResponse20032.md) ### Authorization @@ -6396,7 +6485,7 @@ Name | Type | Description | Notes ## getApplicationEventsWithoutTotalCount -> InlineResponse20030 getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, effectType) +> InlineResponse20031 getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, effectType) List Applications events @@ -6454,7 +6543,7 @@ public class Example { String campaignQuery = "campaignQuery_example"; // String | Campaign name filter for events String effectType = "effectType_example"; // String | The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). try { - InlineResponse20030 result = apiInstance.getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, effectType); + InlineResponse20031 result = apiInstance.getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, effectType); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getApplicationEventsWithoutTotalCount"); @@ -6491,7 +6580,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20030**](InlineResponse20030.md) +[**InlineResponse20031**](InlineResponse20031.md) ### Authorization @@ -6596,7 +6685,7 @@ Name | Type | Description | Notes ## getApplicationSessions -> InlineResponse20029 getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId) +> InlineResponse20030 getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId) List Application sessions @@ -6650,7 +6739,7 @@ public class Example { String integrationId = "integrationId_example"; // String | Filter by sessions with this integration ID. 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 { - InlineResponse20029 result = apiInstance.getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId); + InlineResponse20030 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#getApplicationSessions"); @@ -6683,7 +6772,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20029**](InlineResponse20029.md) +[**InlineResponse20030**](InlineResponse20030.md) ### Authorization @@ -6874,7 +6963,7 @@ Name | Type | Description | Notes ## getAttributes -> InlineResponse20036 getAttributes(pageSize, skip, sort, entity, applicationIds, type, kind, search) +> InlineResponse20037 getAttributes(pageSize, skip, sort, entity, applicationIds, type, kind, search) List custom attributes @@ -6924,7 +7013,7 @@ public class Example { String kind = "kind_example"; // String | Returned attributes will be filtered by supplied kind (builtin or custom) String search = "search_example"; // String | Returned attributes will be filtered by searching case insensitive through Attribute name, description and type try { - InlineResponse20036 result = apiInstance.getAttributes(pageSize, skip, sort, entity, applicationIds, type, kind, search); + InlineResponse20037 result = apiInstance.getAttributes(pageSize, skip, sort, entity, applicationIds, type, kind, search); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getAttributes"); @@ -6953,7 +7042,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20036**](InlineResponse20036.md) +[**InlineResponse20037**](InlineResponse20037.md) ### Authorization @@ -6972,7 +7061,7 @@ Name | Type | Description | Notes ## getAudienceMemberships -> InlineResponse20034 getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery) +> InlineResponse20035 getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery) List audience members @@ -7019,7 +7108,7 @@ public class Example { 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:** You may not be able to use all fields for sorting. This is due to performance limitations. String profileQuery = "profileQuery_example"; // String | The filter to select a profile. try { - InlineResponse20034 result = apiInstance.getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery); + InlineResponse20035 result = apiInstance.getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getAudienceMemberships"); @@ -7045,7 +7134,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20034**](InlineResponse20034.md) +[**InlineResponse20035**](InlineResponse20035.md) ### Authorization @@ -7065,7 +7154,7 @@ Name | Type | Description | Notes ## getAudiences -> InlineResponse20032 getAudiences(pageSize, skip, sort, withTotalResultSize) +> InlineResponse20033 getAudiences(pageSize, skip, sort, withTotalResultSize) List audiences @@ -7111,7 +7200,7 @@ public class Example { 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:** You may not be able to use all fields for sorting. This is due to performance limitations. 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 { - InlineResponse20032 result = apiInstance.getAudiences(pageSize, skip, sort, withTotalResultSize); + InlineResponse20033 result = apiInstance.getAudiences(pageSize, skip, sort, withTotalResultSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getAudiences"); @@ -7136,7 +7225,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20032**](InlineResponse20032.md) +[**InlineResponse20033**](InlineResponse20033.md) ### Authorization @@ -7155,7 +7244,7 @@ Name | Type | Description | Notes ## getAudiencesAnalytics -> InlineResponse20033 getAudiencesAnalytics(audienceIds, sort) +> InlineResponse20034 getAudiencesAnalytics(audienceIds, sort) List audience analytics @@ -7199,7 +7288,7 @@ public class Example { 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:** You may not be able to use all fields for sorting. This is due to performance limitations. try { - InlineResponse20033 result = apiInstance.getAudiencesAnalytics(audienceIds, sort); + InlineResponse20034 result = apiInstance.getAudiencesAnalytics(audienceIds, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getAudiencesAnalytics"); @@ -7222,7 +7311,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20033**](InlineResponse20033.md) +[**InlineResponse20034**](InlineResponse20034.md) ### Authorization @@ -7327,7 +7416,7 @@ Name | Type | Description | Notes ## getCampaignAnalytics -> InlineResponse20023 getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity) +> InlineResponse20024 getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity) Get analytics of campaigns @@ -7374,7 +7463,7 @@ public class Example { 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 { - InlineResponse20023 result = apiInstance.getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity); + InlineResponse20024 result = apiInstance.getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getCampaignAnalytics"); @@ -7400,7 +7489,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20023**](InlineResponse20023.md) +[**InlineResponse20024**](InlineResponse20024.md) ### Authorization @@ -7896,7 +7985,7 @@ Name | Type | Description | Notes ## getChanges -> InlineResponse20042 getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld) +> InlineResponse20043 getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld) Get audit logs for an account @@ -7949,7 +8038,7 @@ public class Example { Long managementKeyId = 56L; // Long | 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 { - InlineResponse20042 result = apiInstance.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); + InlineResponse20043 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"); @@ -7981,7 +8070,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20042**](InlineResponse20042.md) +[**InlineResponse20043**](InlineResponse20043.md) ### Authorization @@ -8089,7 +8178,7 @@ Name | Type | Description | Notes ## getCollectionItems -> InlineResponse20021 getCollectionItems(collectionId, pageSize, skip) +> InlineResponse20022 getCollectionItems(collectionId, pageSize, skip) Get collection items @@ -8134,7 +8223,7 @@ public class Example { Long pageSize = 1000lL; // Long | The number of items in the response. Long skip = 56L; // Long | The number of items to skip when paging through large result sets. try { - InlineResponse20021 result = apiInstance.getCollectionItems(collectionId, pageSize, skip); + InlineResponse20022 result = apiInstance.getCollectionItems(collectionId, pageSize, skip); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getCollectionItems"); @@ -8158,7 +8247,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20021**](InlineResponse20021.md) +[**InlineResponse20022**](InlineResponse20022.md) ### Authorization @@ -8394,7 +8483,7 @@ Name | Type | Description | Notes ## getCustomerActivityReportsWithoutTotalCount -> InlineResponse20028 getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName) +> InlineResponse20029 getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName) Get Activity Reports for Application Customers @@ -8446,7 +8535,7 @@ public class Example { String campaignName = "campaignName_example"; // String | Only return reports matching the campaign name. String advocateName = "advocateName_example"; // String | Only return reports matching the current customer referrer name. try { - InlineResponse20028 result = apiInstance.getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName); + InlineResponse20029 result = apiInstance.getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getCustomerActivityReportsWithoutTotalCount"); @@ -8477,7 +8566,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20028**](InlineResponse20028.md) +[**InlineResponse20029**](InlineResponse20029.md) ### Authorization @@ -8672,7 +8761,7 @@ Name | Type | Description | Notes ## getCustomerProfileAchievementProgress -> InlineResponse20049 getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title) +> InlineResponse20050 getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title) List customer achievements @@ -8720,7 +8809,7 @@ public class Example { Long achievementId = 56L; // Long | 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 { - InlineResponse20049 result = apiInstance.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); + InlineResponse20050 result = apiInstance.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getCustomerProfileAchievementProgress"); @@ -8747,7 +8836,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20049**](InlineResponse20049.md) +[**InlineResponse20050**](InlineResponse20050.md) ### Authorization @@ -8768,7 +8857,7 @@ Name | Type | Description | Notes ## getCustomerProfiles -> InlineResponse20027 getCustomerProfiles(pageSize, skip, sandbox) +> InlineResponse20028 getCustomerProfiles(pageSize, skip, sandbox) List customer profiles @@ -8813,7 +8902,7 @@ public class Example { Long skip = 56L; // Long | 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 { - InlineResponse20027 result = apiInstance.getCustomerProfiles(pageSize, skip, sandbox); + InlineResponse20028 result = apiInstance.getCustomerProfiles(pageSize, skip, sandbox); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getCustomerProfiles"); @@ -8837,7 +8926,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20027**](InlineResponse20027.md) +[**InlineResponse20028**](InlineResponse20028.md) ### Authorization @@ -8856,7 +8945,7 @@ Name | Type | Description | Notes ## getCustomersByAttributes -> InlineResponse20026 getCustomersByAttributes(body, pageSize, skip, sandbox) +> InlineResponse20027 getCustomersByAttributes(body, pageSize, skip, sandbox) List customer profiles matching the given attributes @@ -8902,7 +8991,7 @@ public class Example { Long skip = 56L; // Long | 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 { - InlineResponse20026 result = apiInstance.getCustomersByAttributes(body, pageSize, skip, sandbox); + InlineResponse20027 result = apiInstance.getCustomersByAttributes(body, pageSize, skip, sandbox); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getCustomersByAttributes"); @@ -8927,7 +9016,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20026**](InlineResponse20026.md) +[**InlineResponse20027**](InlineResponse20027.md) ### Authorization @@ -8946,7 +9035,7 @@ Name | Type | Description | Notes ## getDashboardStatistics -> InlineResponse20016 getDashboardStatistics(loyaltyProgramId, rangeStart, rangeEnd, subledgerId) +> InlineResponse20017 getDashboardStatistics(loyaltyProgramId, rangeStart, rangeEnd, subledgerId) Get statistics for loyalty dashboard @@ -8992,7 +9081,7 @@ public class Example { 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 subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. try { - InlineResponse20016 result = apiInstance.getDashboardStatistics(loyaltyProgramId, rangeStart, rangeEnd, subledgerId); + InlineResponse20017 result = apiInstance.getDashboardStatistics(loyaltyProgramId, rangeStart, rangeEnd, subledgerId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getDashboardStatistics"); @@ -9017,7 +9106,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20016**](InlineResponse20016.md) +[**InlineResponse20017**](InlineResponse20017.md) ### Authorization @@ -9036,7 +9125,7 @@ Name | Type | Description | Notes ## getEventTypes -> InlineResponse20040 getEventTypes(name, includeOldVersions, pageSize, skip, sort) +> InlineResponse20041 getEventTypes(name, includeOldVersions, pageSize, skip, sort) List event types @@ -9083,7 +9172,7 @@ public class Example { Long skip = 56L; // Long | 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:** You may not be able to use all fields for sorting. This is due to performance limitations. try { - InlineResponse20040 result = apiInstance.getEventTypes(name, includeOldVersions, pageSize, skip, sort); + InlineResponse20041 result = apiInstance.getEventTypes(name, includeOldVersions, pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getEventTypes"); @@ -9109,7 +9198,93 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20040**](InlineResponse20040.md) +[**InlineResponse20041**](InlineResponse20041.md) + +### Authorization + +[api_key_v1](../README.md#api_key_v1), [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 | - | + + +## getExperiment + +> Experiment getExperiment(applicationId, experimentId) + +Get experiment in Application + +Retrieve a given experiment associated with an Application. + +### 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: api_key_v1 + ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1"); + api_key_v1.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //api_key_v1.setApiKeyPrefix("Token"); + + // 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); + Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long experimentId = 56L; // Long | The ID of the experiment. + try { + Experiment result = apiInstance.getExperiment(applicationId, experimentId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#getExperiment"); + 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** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **experimentId** | **Long**| The ID of the experiment. | + +### Return type cool + +[**Experiment**](Experiment.md) ### Authorization @@ -9128,7 +9303,7 @@ Name | Type | Description | Notes ## getExports -> InlineResponse20043 getExports(pageSize, skip, applicationId, campaignId, entity) +> InlineResponse20044 getExports(pageSize, skip, applicationId, campaignId, entity) Get exports @@ -9175,7 +9350,7 @@ public class Example { Long campaignId = 56L; // Long | 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 { - InlineResponse20043 result = apiInstance.getExports(pageSize, skip, applicationId, campaignId, entity); + InlineResponse20044 result = apiInstance.getExports(pageSize, skip, applicationId, campaignId, entity); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getExports"); @@ -9201,7 +9376,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20043**](InlineResponse20043.md) +[**InlineResponse20044**](InlineResponse20044.md) ### Authorization @@ -9309,7 +9484,7 @@ Name | Type | Description | Notes ## getLoyaltyCardTransactionLogs -> InlineResponse20019 getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs) +> InlineResponse20020 getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs) List card's transactions @@ -9360,7 +9535,7 @@ public class Example { List customerSessionIDs = Arrays.asList(); // List | Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. List transactionUUIDs = Arrays.asList(); // List | Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. try { - InlineResponse20019 result = apiInstance.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs); + InlineResponse20020 result = apiInstance.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getLoyaltyCardTransactionLogs"); @@ -9390,7 +9565,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20019**](InlineResponse20019.md) +[**InlineResponse20020**](InlineResponse20020.md) ### Authorization @@ -9411,7 +9586,7 @@ Name | Type | Description | Notes ## getLoyaltyCards -> InlineResponse20018 getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId) +> InlineResponse20019 getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId) List loyalty cards @@ -9460,7 +9635,7 @@ public class Example { Long profileId = 56L; // Long | Filter results by customer profile ID. String batchId = "batchId_example"; // String | Filter results by loyalty card batch ID. try { - InlineResponse20018 result = apiInstance.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); + InlineResponse20019 result = apiInstance.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getLoyaltyCards"); @@ -9488,7 +9663,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20018**](InlineResponse20018.md) +[**InlineResponse20019**](InlineResponse20019.md) ### Authorization @@ -9883,7 +10058,7 @@ Name | Type | Description | Notes ## getLoyaltyProgramTransactions -> InlineResponse20017 getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, awaitsActivation) +> InlineResponse20018 getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, awaitsActivation) List loyalty program transactions @@ -9935,7 +10110,7 @@ public class Example { Long skip = 56L; // Long | The number of items to skip when paging through large result sets. Boolean awaitsActivation = true; // Boolean | If `true`: Filters results to include only point transactions that have action-based activation and have not expired. If `false`: Returns a `400` response. try { - InlineResponse20017 result = apiInstance.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, awaitsActivation); + InlineResponse20018 result = apiInstance.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, awaitsActivation); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getLoyaltyProgramTransactions"); @@ -9966,7 +10141,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20017**](InlineResponse20017.md) +[**InlineResponse20018**](InlineResponse20018.md) ### Authorization @@ -9988,7 +10163,7 @@ Name | Type | Description | Notes ## getLoyaltyPrograms -> InlineResponse20015 getLoyaltyPrograms() +> InlineResponse20016 getLoyaltyPrograms() List loyalty programs @@ -10030,7 +10205,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); try { - InlineResponse20015 result = apiInstance.getLoyaltyPrograms(); + InlineResponse20016 result = apiInstance.getLoyaltyPrograms(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getLoyaltyPrograms"); @@ -10049,7 +10224,7 @@ This endpoint does not need any parameter. ### Return type cool -[**InlineResponse20015**](InlineResponse20015.md) +[**InlineResponse20016**](InlineResponse20016.md) ### Authorization @@ -10801,7 +10976,7 @@ Name | Type | Description | Notes ## getUsers -> InlineResponse20041 getUsers(pageSize, skip, sort) +> InlineResponse20042 getUsers(pageSize, skip, sort) List users in account @@ -10846,7 +11021,7 @@ public class Example { Long skip = 56L; // Long | 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:** You may not be able to use all fields for sorting. This is due to performance limitations. try { - InlineResponse20041 result = apiInstance.getUsers(pageSize, skip, sort); + InlineResponse20042 result = apiInstance.getUsers(pageSize, skip, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getUsers"); @@ -10870,7 +11045,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20041**](InlineResponse20041.md) +[**InlineResponse20042**](InlineResponse20042.md) ### Authorization @@ -10973,7 +11148,7 @@ Name | Type | Description | Notes ## getWebhooks -> InlineResponse20039 getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title) +> InlineResponse20040 getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title) List webhooks @@ -11023,7 +11198,7 @@ public class Example { Long outgoingIntegrationsTypeId = 56L; // Long | Filter results by outgoing integration type ID. String title = "title_example"; // String | Filter results performing case-insensitive matching against the webhook title. try { - InlineResponse20039 result = apiInstance.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); + InlineResponse20040 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"); @@ -11052,7 +11227,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20039**](InlineResponse20039.md) +[**InlineResponse20040**](InlineResponse20040.md) ### Authorization @@ -11616,7 +11791,7 @@ Name | Type | Description | Notes Import coupons -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 recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `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). +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. Must be at least 3 characters long. We recommend using alphanumeric characters. There is no maximum length but limiting the code to 30 characters ensures it is fully readable in the Campaign Manager. The code should be unique unless you set `skipDuplicates` to `true`. - `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 recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `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). ### Example @@ -11706,7 +11881,7 @@ Name | Type | Description | Notes 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. The identifiers should be separated with a semicolon (;). **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` +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. The identifiers should be separated with a semicolon (;). - `attributes` (optional): A JSON object that contains the loyalty card's custom attributes and their values. These attributes must be created and connected to this loyalty program before they can be assigned to the cards through this endpoint. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids,attributes 123-456-789AT,active,Alexa001;UserA,\"{\"\"my_attribute\"\": \"\"10_off\"\"}\" ``` ### Example @@ -12224,7 +12399,7 @@ null (empty response body) ## listAccountCollections -> InlineResponse20020 listAccountCollections(pageSize, skip, sort, withTotalResultSize, name) +> InlineResponse20021 listAccountCollections(pageSize, skip, sort, withTotalResultSize, name) List collections in account @@ -12271,7 +12446,7 @@ public class Example { 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 { - InlineResponse20020 result = apiInstance.listAccountCollections(pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20021 result = apiInstance.listAccountCollections(pageSize, skip, sort, withTotalResultSize, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#listAccountCollections"); @@ -12297,7 +12472,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20020**](InlineResponse20020.md) +[**InlineResponse20021**](InlineResponse20021.md) ### Authorization @@ -12319,7 +12494,7 @@ Name | Type | Description | Notes ## listAchievements -> InlineResponse20048 listAchievements(applicationId, campaignId, pageSize, skip, title) +> InlineResponse20049 listAchievements(applicationId, campaignId, pageSize, skip, title) List achievements @@ -12366,7 +12541,7 @@ public class Example { Long skip = 56L; // Long | The number of items to skip when paging through large result sets. 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 { - InlineResponse20048 result = apiInstance.listAchievements(applicationId, campaignId, pageSize, skip, title); + InlineResponse20049 result = apiInstance.listAchievements(applicationId, campaignId, pageSize, skip, title); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#listAchievements"); @@ -12392,7 +12567,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20048**](InlineResponse20048.md) +[**InlineResponse20049**](InlineResponse20049.md) ### Authorization @@ -12411,7 +12586,7 @@ Name | Type | Description | Notes ## listAllRolesV2 -> InlineResponse20044 listAllRolesV2() +> InlineResponse20045 listAllRolesV2() List roles @@ -12453,7 +12628,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); try { - InlineResponse20044 result = apiInstance.listAllRolesV2(); + InlineResponse20045 result = apiInstance.listAllRolesV2(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#listAllRolesV2"); @@ -12472,7 +12647,7 @@ This endpoint does not need any parameter. ### Return type cool -[**InlineResponse20044**](InlineResponse20044.md) +[**InlineResponse20045**](InlineResponse20045.md) ### Authorization @@ -12491,7 +12666,7 @@ This endpoint does not need any parameter. ## listCampaignStoreBudgetLimits -> InlineResponse20046 listCampaignStoreBudgetLimits(applicationId, campaignId, action, period) +> InlineResponse20047 listCampaignStoreBudgetLimits(applicationId, campaignId, action, period) List campaign store budget limits @@ -12537,7 +12712,7 @@ public class Example { String action = "action_example"; // String | The action that this budget is limiting. String period = "period_example"; // String | The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. try { - InlineResponse20046 result = apiInstance.listCampaignStoreBudgetLimits(applicationId, campaignId, action, period); + InlineResponse20047 result = apiInstance.listCampaignStoreBudgetLimits(applicationId, campaignId, action, period); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#listCampaignStoreBudgetLimits"); @@ -12562,7 +12737,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20046**](InlineResponse20046.md) +[**InlineResponse20047**](InlineResponse20047.md) ### Authorization @@ -12584,7 +12759,7 @@ Name | Type | Description | Notes ## listCatalogItems -> InlineResponse20037 listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames) +> InlineResponse20038 listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames) List items in a catalog @@ -12632,7 +12807,7 @@ public class Example { 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 { - InlineResponse20037 result = apiInstance.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); + InlineResponse20038 result = apiInstance.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#listCatalogItems"); @@ -12659,7 +12834,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20037**](InlineResponse20037.md) +[**InlineResponse20038**](InlineResponse20038.md) ### Authorization @@ -12678,7 +12853,7 @@ Name | Type | Description | Notes ## listCollections -> InlineResponse20020 listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name) +> InlineResponse20021 listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name) List collections in campaign @@ -12727,7 +12902,7 @@ public class Example { 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 { - InlineResponse20020 result = apiInstance.listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20021 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"); @@ -12755,7 +12930,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20020**](InlineResponse20020.md) +[**InlineResponse20021**](InlineResponse20021.md) ### Authorization @@ -12775,7 +12950,7 @@ Name | Type | Description | Notes ## listCollectionsInApplication -> InlineResponse20020 listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name) +> InlineResponse20021 listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name) List collections in Application @@ -12823,7 +12998,7 @@ public class Example { 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 { - InlineResponse20020 result = apiInstance.listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20021 result = apiInstance.listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#listCollectionsInApplication"); @@ -12850,7 +13025,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20020**](InlineResponse20020.md) +[**InlineResponse20021**](InlineResponse20021.md) ### Authorization @@ -12868,9 +13043,99 @@ Name | Type | Description | Notes | **404** | Not found | - | +## listExperiments + +> InlineResponse20015 listExperiments(applicationId, pageSize, skip, sort) + +List experiments + +Get a list of experiments per application. + +### 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: api_key_v1 + ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1"); + api_key_v1.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //api_key_v1.setApiKeyPrefix("Token"); + + // 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); + Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000lL; // Long | The number of items in the response. + Long skip = 56L; // Long | 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:** You may not be able to use all fields for sorting. This is due to performance limitations. + try { + InlineResponse20015 result = apiInstance.listExperiments(applicationId, pageSize, skip, sort); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#listExperiments"); + 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** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] + **skip** | **Long**| 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:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] + +### Return type cool + +[**InlineResponse20015**](InlineResponse20015.md) + +### Authorization + +[api_key_v1](../README.md#api_key_v1), [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 | - | + + ## listStores -> InlineResponse20045 listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query) +> InlineResponse20046 listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query) List stores @@ -12921,7 +13186,7 @@ public class Example { String integrationId = "integrationId_example"; // String | The integration ID of the store. String query = "query_example"; // String | Filter results by `name` or `integrationId`. try { - InlineResponse20045 result = apiInstance.listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query); + InlineResponse20046 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"); @@ -12951,7 +13216,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20045**](InlineResponse20045.md) +[**InlineResponse20046**](InlineResponse20046.md) ### Authorization @@ -14693,7 +14958,7 @@ Name | Type | Description | Notes ## summarizeCampaignStoreBudget -> InlineResponse20047 summarizeCampaignStoreBudget(applicationId, campaignId) +> InlineResponse20048 summarizeCampaignStoreBudget(applicationId, campaignId) Get summary of campaign store budgets @@ -14737,7 +15002,7 @@ public class Example { Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. try { - InlineResponse20047 result = apiInstance.summarizeCampaignStoreBudget(applicationId, campaignId); + InlineResponse20048 result = apiInstance.summarizeCampaignStoreBudget(applicationId, campaignId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#summarizeCampaignStoreBudget"); @@ -14760,7 +15025,7 @@ Name | Type | Description | Notes ### Return type cool -[**InlineResponse20047**](InlineResponse20047.md) +[**InlineResponse20048**](InlineResponse20048.md) ### Authorization @@ -15584,9 +15849,9 @@ null (empty response body) > LoyaltyCard updateLoyaltyCard(loyaltyProgramId, loyaltyCardId, body) -Update loyalty card status +Update loyalty card -Update the status of the given loyalty card. A card can be _active_ or _inactive_. +Update the details of a specific loyalty card. You can set the card's status to `active` or `inactive` through this endpoint. At least one of `status` or `attributes` must be provided. ### Example @@ -15625,7 +15890,7 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); Long loyaltyProgramId = 56L; // Long | 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. - UpdateLoyaltyCard body = new UpdateLoyaltyCard(); // UpdateLoyaltyCard | body + UpdateLoyaltyCardRequest body = new UpdateLoyaltyCardRequest(); // UpdateLoyaltyCardRequest | body try { LoyaltyCard result = apiInstance.updateLoyaltyCard(loyaltyProgramId, loyaltyCardId, body); System.out.println(result); @@ -15647,7 +15912,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **loyaltyProgramId** | **Long**| 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** | [**UpdateLoyaltyCard**](UpdateLoyaltyCard.md)| body | + **body** | [**UpdateLoyaltyCardRequest**](UpdateLoyaltyCardRequest.md)| body | ### Return type cool diff --git a/docs/NewAttribute.md b/docs/NewAttribute.md index 6273b232..ac6d7036 100644 --- a/docs/NewAttribute.md +++ b/docs/NewAttribute.md @@ -34,6 +34,7 @@ CARTITEM | "CartItem" COUPON | "Coupon" EVENT | "Event" GIVEAWAY | "Giveaway" +LOYALTYCARD | "LoyaltyCard" REFERRAL | "Referral" STORE | "Store" diff --git a/docs/NewBlueprint.md b/docs/NewBlueprint.md new file mode 100644 index 00000000..27c572cf --- /dev/null +++ b/docs/NewBlueprint.md @@ -0,0 +1,27 @@ + + +# NewBlueprint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The display name for the blueprint. | +**description** | **String** | A longer, more detailed description of the blueprint. | [optional] +**category** | [**CategoryEnum**](#CategoryEnum) | Category used to group blueprints. | [optional] +**rules** | [**List<CatalogRule>**](CatalogRule.md) | Array of rules to store in this blueprint. Rules should only contain title (no description, as description is at the blueprint level). At least one rule or cart item filter is required. | [optional] +**cartItemFilters** | [**List<CartItemFilterTemplate>**](CartItemFilterTemplate.md) | Array of cart item filters to store in this blueprint. If not provided, will be extracted from the rules. Cart item filters should only contain name (no description, as description is at the blueprint level). | [optional] + + + +## Enum: CategoryEnum + +Name | Value +---- | ----- +PROMOTIONS | "promotions" +PRICING | "pricing" +LOYALTY | "loyalty" +CUSTOM | "custom" + + + diff --git a/docs/NewExperiment.md b/docs/NewExperiment.md index 3830c67e..d1a681a9 100644 --- a/docs/NewExperiment.md +++ b/docs/NewExperiment.md @@ -6,19 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isVariantAssignmentExternal** | **Boolean** | The source of the assignment. - false - The assignment to the variant is handled internally by the Talon.Oneandled internally by the Talon.One. - true - The assignment to the variant handled externally. | -**activated** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time the experiment was activated. | [optional] -**state** | [**StateEnum**](#StateEnum) | A disabled experiment is not evaluated for rules or coupons. | [optional] +**isVariantAssignmentExternal** | **Boolean** | The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. | **campaign** | [**NewCampaign**](NewCampaign.md) | | -## Enum: StateEnum - -Name | Value ----- | ----- -ENABLED | "enabled" -DISABLED | "disabled" - - - diff --git a/docs/NewExperimentVariant.md b/docs/NewExperimentVariant.md index f3e52371..17b0fdbc 100644 --- a/docs/NewExperimentVariant.md +++ b/docs/NewExperimentVariant.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of this variant. | -**weight** | **Long** | | [optional] +**weight** | **Long** | The percentage split of this variant. The sum of all variant percentages must be 100. | **ruleset** | [**NewRuleset**](NewRuleset.md) | | **isPrimary** | **Boolean** | | diff --git a/docs/PlaceholderDetails.md b/docs/PlaceholderDetails.md new file mode 100644 index 00000000..d8334485 --- /dev/null +++ b/docs/PlaceholderDetails.md @@ -0,0 +1,14 @@ + + +# PlaceholderDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the placeholder. | +**type** | **String** | The type of the value assigned to the placeholder. | +**value** | **List<Object>** | The current value of the placeholder. | + + + diff --git a/docs/PriceHistoryRequest.md b/docs/PriceHistoryRequest.md new file mode 100644 index 00000000..daf6b9f5 --- /dev/null +++ b/docs/PriceHistoryRequest.md @@ -0,0 +1,14 @@ + + +# PriceHistoryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sku** | **String** | The SKU of the item for which the historical prices are being retrieved. | +**startDate** | [**OffsetDateTime**](OffsetDateTime.md) | The start date of the period for which historical prices should be retrieved. | +**endDate** | [**OffsetDateTime**](OffsetDateTime.md) | The end date of the period for which historical prices should be retrieved. | + + + diff --git a/docs/PriceHistoryResponse.md b/docs/PriceHistoryResponse.md new file mode 100644 index 00000000..7ab187f1 --- /dev/null +++ b/docs/PriceHistoryResponse.md @@ -0,0 +1,13 @@ + + +# PriceHistoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sku** | **String** | The SKU of the item for which historical prices should be retrieved. | +**history** | [**List<History>**](History.md) | | + + + diff --git a/docs/PrismaticEventPayloadCouponBasedNotifications.md b/docs/PrismaticEventPayloadCouponBasedNotifications.md index 90570f40..1dda7cc6 100644 --- a/docs/PrismaticEventPayloadCouponBasedNotifications.md +++ b/docs/PrismaticEventPayloadCouponBasedNotifications.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **batchId** | **String** | | [optional] **attributes** | [**Object**](.md) | | [optional] **limits** | [**List<PrismaticEventPayloadCouponBasedNotificationsLimits>**](PrismaticEventPayloadCouponBasedNotificationsLimits.md) | | [optional] +**publishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the event was published. | **sourceOfEvent** | **String** | | **employeeName** | **String** | | diff --git a/docs/PrismaticEventPayloadLoyaltyProfileBasedNotification.md b/docs/PrismaticEventPayloadLoyaltyProfileBasedNotification.md new file mode 100644 index 00000000..1345006a --- /dev/null +++ b/docs/PrismaticEventPayloadLoyaltyProfileBasedNotification.md @@ -0,0 +1,26 @@ + + +# PrismaticEventPayloadLoyaltyProfileBasedNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profileIntegrationID** | **String** | | +**loyaltyProgramID** | **Long** | | +**subledgerID** | **String** | | +**sourceOfEvent** | **String** | | +**employeeName** | **String** | | [optional] +**userID** | **Long** | | [optional] +**currentPoints** | **Float** | | +**actions** | [**List<PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction>**](PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.md) | | [optional] +**publishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the event was published. | +**currentTier** | **String** | | [optional] +**oldTier** | **String** | | [optional] +**tierExpirationDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**timestampOfTierChange** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**pointsRequiredToTheNextTier** | **Float** | | [optional] +**nextTier** | **String** | | [optional] + + + diff --git a/docs/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.md b/docs/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.md new file mode 100644 index 00000000..cc01eb29 --- /dev/null +++ b/docs/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.md @@ -0,0 +1,20 @@ + + +# PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profileIntegrationID** | **String** | | +**loyaltyProgramID** | **Long** | | +**subledgerID** | **String** | | +**sourceOfEvent** | **String** | | +**employeeName** | **String** | | [optional] +**userID** | **Long** | | [optional] +**currentPoints** | **Float** | | +**actions** | [**List<PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction>**](PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.md) | | [optional] +**publishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the event was published. | + + + diff --git a/docs/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.md b/docs/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.md new file mode 100644 index 00000000..0bcb9162 --- /dev/null +++ b/docs/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.md @@ -0,0 +1,25 @@ + + +# PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **Float** | | +**reason** | **String** | | [optional] +**operation** | [**OperationEnum**](#OperationEnum) | | +**startDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] + + + +## Enum: OperationEnum + +Name | Value +---- | ----- +ADDITION | "addition" +DEDUCTION | "deduction" + + + diff --git a/docs/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.md b/docs/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.md new file mode 100644 index 00000000..f3eabc71 --- /dev/null +++ b/docs/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.md @@ -0,0 +1,21 @@ + + +# PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profileIntegrationID** | **String** | | +**loyaltyProgramID** | **Long** | | +**subledgerID** | **String** | | +**sourceOfEvent** | **String** | | +**currentTier** | **String** | | [optional] +**currentPoints** | **Float** | | +**oldTier** | **String** | | [optional] +**tierExpirationDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**timestampOfTierChange** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**publishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the event was published. | + + + diff --git a/docs/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.md b/docs/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.md new file mode 100644 index 00000000..53fbdfa3 --- /dev/null +++ b/docs/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.md @@ -0,0 +1,23 @@ + + +# PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profileIntegrationID** | **String** | | +**loyaltyProgramID** | **Long** | | +**subledgerID** | **String** | | +**sourceOfEvent** | **String** | | +**currentTier** | **String** | | [optional] +**currentPoints** | **Float** | | +**oldTier** | **String** | | [optional] +**pointsRequiredToTheNextTier** | **Float** | | [optional] +**nextTier** | **String** | | [optional] +**tierExpirationDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**timestampOfTierChange** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**publishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the event was published. | + + + diff --git a/docs/PrismaticEventRecord.md b/docs/PrismaticEventRecord.md new file mode 100644 index 00000000..8019dadf --- /dev/null +++ b/docs/PrismaticEventRecord.md @@ -0,0 +1,19 @@ + + +# PrismaticEventRecord + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | +**flowId** | **Long** | | +**eventType** | **String** | | +**eventData** | [**Object**](.md) | | +**publishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | +**processedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**processAfter** | [**OffsetDateTime**](OffsetDateTime.md) | | +**retry** | **Long** | | + + + diff --git a/docs/PrismaticFlowConfigResponse.md b/docs/PrismaticFlowConfigResponse.md new file mode 100644 index 00000000..0a3e23b7 --- /dev/null +++ b/docs/PrismaticFlowConfigResponse.md @@ -0,0 +1,14 @@ + + +# PrismaticFlowConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**workerCount** | **Long** | Number of Prismatic workers to run in parallel for this flow (maximum 500). | [optional] +**maxEventsPerMessage** | **Long** | Maximum number of events to send in a single message to Prismatic. | [optional] +**maxRetries** | **Long** | Maximum number of retries for a Prismatic event before it is ignored. | [optional] + + + diff --git a/docs/PrismaticFlowResponse.md b/docs/PrismaticFlowResponse.md new file mode 100644 index 00000000..e97f5d14 --- /dev/null +++ b/docs/PrismaticFlowResponse.md @@ -0,0 +1,16 @@ + + +# PrismaticFlowResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | ID of the prismatic flow. | +**applicationID** | **Long** | ID of application the flow is registered for. | [optional] +**eventType** | **String** | The event type we want to register a flow for. | +**prismaticFlowUrl** | **String** | The URL of the prismatic flow that we want to trigger for the event. | +**config** | [**PrismaticFlowConfigResponse**](PrismaticFlowConfigResponse.md) | | + + + diff --git a/docs/PrismaticPaginatedEventPayload.md b/docs/PrismaticPaginatedEventPayload.md index 45595917..54eff973 100644 --- a/docs/PrismaticPaginatedEventPayload.md +++ b/docs/PrismaticPaginatedEventPayload.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalResultSize** | **Long** | | +**batchedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the batch was created. | [optional] **eventType** | [**EventTypeEnum**](#EventTypeEnum) | | **data** | **List<Object>** | | diff --git a/docs/PromoteExperiment.md b/docs/PromoteExperiment.md new file mode 100644 index 00000000..0e2e31ac --- /dev/null +++ b/docs/PromoteExperiment.md @@ -0,0 +1,15 @@ + + +# PromoteExperiment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**targetApplicationId** | **Long** | The ID of the Application to copy the experiment. It is displayed in your Talon.One deployment URL. | +**variantId** | **Long** | The ID of the Experiment Variant to build the new campaign. | +**disableExperiment** | **Boolean** | Force disable the experiment. | [optional] +**campaign** | [**ExperimentCampaignCopy**](ExperimentCampaignCopy.md) | | + + + diff --git a/docs/ResponseContentObject.md b/docs/ResponseContentObject.md new file mode 100644 index 00000000..21624fc5 --- /dev/null +++ b/docs/ResponseContentObject.md @@ -0,0 +1,25 @@ + + +# ResponseContentObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**responseContent** | [**List<ResponseContentEnum>**](#List<ResponseContentEnum>) | Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. | [optional] + + + +## Enum: List<ResponseContentEnum> + +Name | Value +---- | ----- +CUSTOMERPROFILE | "customerProfile" +TRIGGEREDCAMPAIGNS | "triggeredCampaigns" +LOYALTY | "loyalty" +EVENT | "event" +AWARDEDGIVEAWAYS | "awardedGiveaways" +RULEFAILUREREASONS | "ruleFailureReasons" + + + diff --git a/docs/TalangAttribute.md b/docs/TalangAttribute.md index 34fafdc6..5125f78e 100644 --- a/docs/TalangAttribute.md +++ b/docs/TalangAttribute.md @@ -35,6 +35,7 @@ CUSTOMERSESSION | "CustomerSession" EVENT | "Event" ITEM | "Item" LOYALTY | "Loyalty" +LOYALTYCARD | "LoyaltyCard" PROFILE | "Profile" GIVEAWAY | "Giveaway" REFERRAL | "Referral" diff --git a/docs/UpdateBlueprint.md b/docs/UpdateBlueprint.md new file mode 100644 index 00000000..b465f95a --- /dev/null +++ b/docs/UpdateBlueprint.md @@ -0,0 +1,27 @@ + + +# UpdateBlueprint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The display name for the blueprint. | [optional] +**description** | **String** | A longer, more detailed description of the blueprint. | [optional] +**category** | [**CategoryEnum**](#CategoryEnum) | Category used to group blueprints. | [optional] +**rules** | [**List<CatalogRule>**](CatalogRule.md) | Replaces the stored rules. Rules should only contain title (no description, as description is at the blueprint level). | [optional] +**cartItemFilters** | [**List<CartItemFilterTemplate>**](CartItemFilterTemplate.md) | Replaces the stored cart item filters. Cart item filters should only contain name (no description, as description is at the blueprint level). | [optional] + + + +## Enum: CategoryEnum + +Name | Value +---- | ----- +PROMOTIONS | "promotions" +PRICING | "pricing" +LOYALTY | "loyalty" +CUSTOM | "custom" + + + diff --git a/docs/UpdateExperiment.md b/docs/UpdateExperiment.md index 97ce33b8..b4fda975 100644 --- a/docs/UpdateExperiment.md +++ b/docs/UpdateExperiment.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isVariantAssignmentExternal** | **Boolean** | The source of the assignment. - false - The assignment to the variant is handled internally by the Talon.Oneandled internally by the Talon.One. - true - The assignment to the variant handled externally. | +**isVariantAssignmentExternal** | **Boolean** | The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. | **campaign** | [**UpdateCampaign**](UpdateCampaign.md) | | diff --git a/docs/UpdateExperimentVariant.md b/docs/UpdateExperimentVariant.md index a673bb1f..3d9104e6 100644 --- a/docs/UpdateExperimentVariant.md +++ b/docs/UpdateExperimentVariant.md @@ -7,9 +7,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Long** | | -**name** | **String** | | +**name** | **String** | The name of this variant. | **ruleset** | [**NewRuleset**](NewRuleset.md) | | -**weight** | **Long** | | +**weight** | **Long** | The percentage split of this variant. The sum of all variant percentages must be 100. | diff --git a/docs/UpdateExperimentVariantName.md b/docs/UpdateExperimentVariantName.md new file mode 100644 index 00000000..35e181d9 --- /dev/null +++ b/docs/UpdateExperimentVariantName.md @@ -0,0 +1,12 @@ + + +# UpdateExperimentVariantName + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the variant. | + + + diff --git a/docs/UpdateLoyaltyCardRequest.md b/docs/UpdateLoyaltyCardRequest.md new file mode 100644 index 00000000..f0fb2b7d --- /dev/null +++ b/docs/UpdateLoyaltyCardRequest.md @@ -0,0 +1,12 @@ + + +# UpdateLoyaltyCardRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | Status of the loyalty card. Can be `active` or `inactive`. | [optional] + + + diff --git a/pom.xml b/pom.xml index d80024d5..2cc4f421 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ talon-one-client jar talon-one-client - 14.2.0 + 14.3.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 aa1ae6fa..f469f706 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/14.2.0/java"); + setUserAgent("OpenAPI-Generator/14.3.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 ceb9b24d..4199a252 100644 --- a/src/main/java/one/talon/api/IntegrationApi.java +++ b/src/main/java/one/talon/api/IntegrationApi.java @@ -54,6 +54,7 @@ import one.talon.model.InlineResponse201; import one.talon.model.IntegrationCustomerSessionResponse; import one.talon.model.IntegrationEventV2Request; +import one.talon.model.IntegrationEventV2Response; import one.talon.model.IntegrationRequest; import one.talon.model.IntegrationStateV2; import one.talon.model.LoyaltyBalancesWithTiers; @@ -66,10 +67,11 @@ import one.talon.model.NewReferral; import one.talon.model.NewReferralsForMultipleAdvocates; import org.threeten.bp.OffsetDateTime; +import one.talon.model.PriceHistoryRequest; +import one.talon.model.PriceHistoryResponse; import one.talon.model.Referral; import one.talon.model.ReopenSessionResponse; import one.talon.model.ReturnIntegrationRequest; -import one.talon.model.TrackEventV2Response; import one.talon.model.UpdateAudience; import java.lang.reflect.Type; @@ -1522,7 +1524,7 @@ private okhttp3.Call generateLoyaltyCardValidateBeforeCall(Long loyaltyProgramId /** * Generate loyalty card - * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. + * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. * @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 body body (required) * @return LoyaltyCard @@ -1542,7 +1544,7 @@ public LoyaltyCard generateLoyaltyCard(Long loyaltyProgramId, GenerateLoyaltyCar /** * Generate loyalty card - * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. + * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. * @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 body body (required) * @return ApiResponse<LoyaltyCard> @@ -1563,7 +1565,7 @@ public ApiResponse generateLoyaltyCardWithHttpInfo(Long loyaltyProg /** * Generate loyalty card (asynchronously) - * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. + * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. * @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 body body (required) * @param _callback The callback to be executed when the API call finishes @@ -3581,6 +3583,116 @@ public okhttp3.Call linkLoyaltyCardToProfileAsync(Long loyaltyProgramId, String localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for priceHistory + * @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 priceHistoryCall(PriceHistoryRequest body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/best_prior_price_history"; + + 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[] { "api_key_v1", "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call priceHistoryValidateBeforeCall(PriceHistoryRequest 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 priceHistory(Async)"); + } + + + okhttp3.Call localVarCall = priceHistoryCall(body, _callback); + return localVarCall; + + } + + /** + * Get summary of price history + * Fetch the historical price data for a given SKU within a defined timeframe. + * @param body body (required) + * @return PriceHistoryResponse + * @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 PriceHistoryResponse priceHistory(PriceHistoryRequest body) throws ApiException { + ApiResponse localVarResp = priceHistoryWithHttpInfo(body); + return localVarResp.getData(); + } + + /** + * Get summary of price history + * Fetch the historical price data for a given SKU within a defined timeframe. + * @param body body (required) + * @return ApiResponse<PriceHistoryResponse> + * @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 priceHistoryWithHttpInfo(PriceHistoryRequest body) throws ApiException { + okhttp3.Call localVarCall = priceHistoryValidateBeforeCall(body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get summary of price history (asynchronously) + * Fetch the historical price data for a given SKU within a defined timeframe. + * @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 priceHistoryAsync(PriceHistoryRequest body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = priceHistoryValidateBeforeCall(body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for reopenCustomerSession * @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) @@ -4048,7 +4160,7 @@ private okhttp3.Call trackEventV2ValidateBeforeCall(IntegrationEventV2Request bo * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) * @param forceCompleteEvaluation Forces evaluation for all matching campaigns regardless of the [campaign evaluation mode](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation#setting-campaign-evaluation-mode). Requires `dry=true`. (optional, default to false) - * @return TrackEventV2Response + * @return IntegrationEventV2Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4059,8 +4171,8 @@ private okhttp3.Call trackEventV2ValidateBeforeCall(IntegrationEventV2Request bo
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 TrackEventV2Response trackEventV2(IntegrationEventV2Request body, String silent, Boolean dry, Boolean forceCompleteEvaluation) throws ApiException { - ApiResponse localVarResp = trackEventV2WithHttpInfo(body, silent, dry, forceCompleteEvaluation); + public IntegrationEventV2Response trackEventV2(IntegrationEventV2Request body, String silent, Boolean dry, Boolean forceCompleteEvaluation) throws ApiException { + ApiResponse localVarResp = trackEventV2WithHttpInfo(body, silent, dry, forceCompleteEvaluation); return localVarResp.getData(); } @@ -4071,7 +4183,7 @@ public TrackEventV2Response trackEventV2(IntegrationEventV2Request body, String * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) * @param forceCompleteEvaluation Forces evaluation for all matching campaigns regardless of the [campaign evaluation mode](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation#setting-campaign-evaluation-mode). Requires `dry=true`. (optional, default to false) - * @return ApiResponse<TrackEventV2Response> + * @return ApiResponse<IntegrationEventV2Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4082,9 +4194,9 @@ public TrackEventV2Response trackEventV2(IntegrationEventV2Request body, String
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 trackEventV2WithHttpInfo(IntegrationEventV2Request body, String silent, Boolean dry, Boolean forceCompleteEvaluation) throws ApiException { + public ApiResponse trackEventV2WithHttpInfo(IntegrationEventV2Request body, String silent, Boolean dry, Boolean forceCompleteEvaluation) throws ApiException { okhttp3.Call localVarCall = trackEventV2ValidateBeforeCall(body, silent, dry, forceCompleteEvaluation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4107,10 +4219,10 @@ public ApiResponse trackEventV2WithHttpInfo(IntegrationEve 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 trackEventV2Async(IntegrationEventV2Request body, String silent, Boolean dry, Boolean forceCompleteEvaluation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call trackEventV2Async(IntegrationEventV2Request body, String silent, Boolean dry, Boolean forceCompleteEvaluation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = trackEventV2ValidateBeforeCall(body, silent, dry, forceCompleteEvaluation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 f162281d..cf4e206f 100644 --- a/src/main/java/one/talon/api/ManagementApi.java +++ b/src/main/java/one/talon/api/ManagementApi.java @@ -57,6 +57,7 @@ import one.talon.model.DeleteUserRequest; import one.talon.model.ErrorResponse; import one.talon.model.ErrorResponseWithStatus; +import one.talon.model.Experiment; import one.talon.model.InlineResponse20010; import one.talon.model.InlineResponse20011; import one.talon.model.InlineResponse20012; @@ -99,6 +100,7 @@ import one.talon.model.InlineResponse20048; import one.talon.model.InlineResponse20049; import one.talon.model.InlineResponse20050; +import one.talon.model.InlineResponse20051; import one.talon.model.InlineResponse2007; import one.talon.model.InlineResponse2008; import one.talon.model.InlineResponse2009; @@ -151,7 +153,7 @@ import one.talon.model.UpdateCollection; import one.talon.model.UpdateCoupon; import one.talon.model.UpdateCouponBatch; -import one.talon.model.UpdateLoyaltyCard; +import one.talon.model.UpdateLoyaltyCardRequest; import one.talon.model.UpdateReferral; import one.talon.model.UpdateUser; import one.talon.model.User; @@ -6995,6 +6997,125 @@ public okhttp3.Call exportLoyaltyCardsAsync(Long loyaltyProgramId, String batchI localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for exportLoyaltyJoinDates + * @param loyaltyProgramId The identifier of the loyalty program. (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 -
+ */ + public okhttp3.Call exportLoyaltyJoinDatesCall(String loyaltyProgramId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/export_join_dates" + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.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/csv" + }; + 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[] { "api_key_v1", "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call exportLoyaltyJoinDatesValidateBeforeCall(String loyaltyProgramId, 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 exportLoyaltyJoinDates(Async)"); + } + + + okhttp3.Call localVarCall = exportLoyaltyJoinDatesCall(loyaltyProgramId, _callback); + return localVarCall; + + } + + /** + * Export customers' loyalty program join dates + * Download a CSV file containing the join dates of all customers 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. - `profileIntegrationID`: The integration ID of the customer profile. - `joinDate`: The customer's loyalty program join date in RFC3339 format. + * @param loyaltyProgramId The identifier of the loyalty program. (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 -
+ */ + public String exportLoyaltyJoinDates(String loyaltyProgramId) throws ApiException { + ApiResponse localVarResp = exportLoyaltyJoinDatesWithHttpInfo(loyaltyProgramId); + return localVarResp.getData(); + } + + /** + * Export customers' loyalty program join dates + * Download a CSV file containing the join dates of all customers 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. - `profileIntegrationID`: The integration ID of the customer profile. - `joinDate`: The customer's loyalty program join date in RFC3339 format. + * @param loyaltyProgramId The identifier of the loyalty program. (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 -
+ */ + public ApiResponse exportLoyaltyJoinDatesWithHttpInfo(String loyaltyProgramId) throws ApiException { + okhttp3.Call localVarCall = exportLoyaltyJoinDatesValidateBeforeCall(loyaltyProgramId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Export customers' loyalty program join dates (asynchronously) + * Download a CSV file containing the join dates of all customers 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. - `profileIntegrationID`: The integration ID of the customer profile. - `joinDate`: The customer's loyalty program join date in RFC3339 format. + * @param loyaltyProgramId The identifier of the loyalty program. (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 -
+ */ + public okhttp3.Call exportLoyaltyJoinDatesAsync(String loyaltyProgramId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportLoyaltyJoinDatesValidateBeforeCall(loyaltyProgramId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * 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) @@ -7529,7 +7650,7 @@ private okhttp3.Call generateCouponRejectionsValidateBeforeCall(String sessionIn * @param applicationId Filter results by Application ID. (optional) * @param language The [ISO-639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) code of the language in which the summary will be generated. (optional) * @param couponCode The coupon code for which to get the rejection reason. (optional) - * @return InlineResponse20050 + * @return InlineResponse20051 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7537,8 +7658,8 @@ private okhttp3.Call generateCouponRejectionsValidateBeforeCall(String sessionIn
200 OK -
*/ - public InlineResponse20050 generateCouponRejections(String sessionIntegrationId, BigDecimal applicationId, String language, String couponCode) throws ApiException { - ApiResponse localVarResp = generateCouponRejectionsWithHttpInfo(sessionIntegrationId, applicationId, language, couponCode); + public InlineResponse20051 generateCouponRejections(String sessionIntegrationId, BigDecimal applicationId, String language, String couponCode) throws ApiException { + ApiResponse localVarResp = generateCouponRejectionsWithHttpInfo(sessionIntegrationId, applicationId, language, couponCode); return localVarResp.getData(); } @@ -7549,7 +7670,7 @@ public InlineResponse20050 generateCouponRejections(String sessionIntegrationId, * @param applicationId Filter results by Application ID. (optional) * @param language The [ISO-639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) code of the language in which the summary will be generated. (optional) * @param couponCode The coupon code for which to get the rejection reason. (optional) - * @return ApiResponse<InlineResponse20050> + * @return ApiResponse<InlineResponse20051> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7557,9 +7678,9 @@ public InlineResponse20050 generateCouponRejections(String sessionIntegrationId,
200 OK -
*/ - public ApiResponse generateCouponRejectionsWithHttpInfo(String sessionIntegrationId, BigDecimal applicationId, String language, String couponCode) throws ApiException { + public ApiResponse generateCouponRejectionsWithHttpInfo(String sessionIntegrationId, BigDecimal applicationId, String language, String couponCode) throws ApiException { okhttp3.Call localVarCall = generateCouponRejectionsValidateBeforeCall(sessionIntegrationId, applicationId, language, couponCode, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -7579,10 +7700,10 @@ public ApiResponse generateCouponRejectionsWithHttpInfo(Str 200 OK - */ - public okhttp3.Call generateCouponRejectionsAsync(String sessionIntegrationId, BigDecimal applicationId, String language, String couponCode, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateCouponRejectionsAsync(String sessionIntegrationId, BigDecimal applicationId, String language, String couponCode, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = generateCouponRejectionsValidateBeforeCall(sessionIntegrationId, applicationId, language, couponCode, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7704,7 +7825,7 @@ private okhttp3.Call getAccessLogsWithoutTotalCountValidateBeforeCall(Long appli * @param pageSize The number of items in the response. (optional, default to 1000l) * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return InlineResponse20022 + * @return InlineResponse20023 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7712,8 +7833,8 @@ private okhttp3.Call getAccessLogsWithoutTotalCountValidateBeforeCall(Long appli
200 OK -
*/ - public InlineResponse20022 getAccessLogsWithoutTotalCount(Long applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort) throws ApiException { - ApiResponse localVarResp = getAccessLogsWithoutTotalCountWithHttpInfo(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); + public InlineResponse20023 getAccessLogsWithoutTotalCount(Long applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort) throws ApiException { + ApiResponse localVarResp = getAccessLogsWithoutTotalCountWithHttpInfo(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); return localVarResp.getData(); } @@ -7729,7 +7850,7 @@ public InlineResponse20022 getAccessLogsWithoutTotalCount(Long applicationId, Of * @param pageSize The number of items in the response. (optional, default to 1000l) * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return ApiResponse<InlineResponse20022> + * @return ApiResponse<InlineResponse20023> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7737,9 +7858,9 @@ public InlineResponse20022 getAccessLogsWithoutTotalCount(Long applicationId, Of
200 OK -
*/ - public ApiResponse getAccessLogsWithoutTotalCountWithHttpInfo(Long applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getAccessLogsWithoutTotalCountWithHttpInfo(Long applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort) throws ApiException { okhttp3.Call localVarCall = getAccessLogsWithoutTotalCountValidateBeforeCall(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -7764,10 +7885,10 @@ public ApiResponse getAccessLogsWithoutTotalCountWithHttpIn 200 OK - */ - public okhttp3.Call getAccessLogsWithoutTotalCountAsync(Long applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAccessLogsWithoutTotalCountAsync(Long applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAccessLogsWithoutTotalCountValidateBeforeCall(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8428,7 +8549,7 @@ private okhttp3.Call getAdditionalCostsValidateBeforeCall(Long pageSize, Long sk * @param pageSize The number of items in the response. (optional, default to 1000l) * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return InlineResponse20038 + * @return InlineResponse20039 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8436,8 +8557,8 @@ private okhttp3.Call getAdditionalCostsValidateBeforeCall(Long pageSize, Long sk
200 OK -
*/ - public InlineResponse20038 getAdditionalCosts(Long pageSize, Long skip, String sort) throws ApiException { - ApiResponse localVarResp = getAdditionalCostsWithHttpInfo(pageSize, skip, sort); + public InlineResponse20039 getAdditionalCosts(Long pageSize, Long skip, String sort) throws ApiException { + ApiResponse localVarResp = getAdditionalCostsWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } @@ -8447,7 +8568,7 @@ public InlineResponse20038 getAdditionalCosts(Long pageSize, Long skip, String s * @param pageSize The number of items in the response. (optional, default to 1000l) * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return ApiResponse<InlineResponse20038> + * @return ApiResponse<InlineResponse20039> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8455,9 +8576,9 @@ public InlineResponse20038 getAdditionalCosts(Long pageSize, Long skip, String s
200 OK -
*/ - public ApiResponse getAdditionalCostsWithHttpInfo(Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getAdditionalCostsWithHttpInfo(Long pageSize, Long 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); } @@ -8476,10 +8597,10 @@ public ApiResponse getAdditionalCostsWithHttpInfo(Long page 200 OK - */ - public okhttp3.Call getAdditionalCostsAsync(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdditionalCostsAsync(Long pageSize, Long 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; } @@ -8918,7 +9039,7 @@ private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Long applic * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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 InlineResponse20035 + * @return InlineResponse20036 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8926,8 +9047,8 @@ private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Long applic
200 OK -
*/ - public InlineResponse20035 getApplicationCustomerFriends(Long applicationId, String integrationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize) throws ApiException { - ApiResponse localVarResp = getApplicationCustomerFriendsWithHttpInfo(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); + public InlineResponse20036 getApplicationCustomerFriends(Long applicationId, String integrationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize) throws ApiException { + ApiResponse localVarResp = getApplicationCustomerFriendsWithHttpInfo(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); return localVarResp.getData(); } @@ -8940,7 +9061,7 @@ public InlineResponse20035 getApplicationCustomerFriends(Long applicationId, Str * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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<InlineResponse20035> + * @return ApiResponse<InlineResponse20036> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8948,9 +9069,9 @@ public InlineResponse20035 getApplicationCustomerFriends(Long applicationId, Str
200 OK -
*/ - public ApiResponse getApplicationCustomerFriendsWithHttpInfo(Long applicationId, String integrationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize) throws ApiException { + public ApiResponse getApplicationCustomerFriendsWithHttpInfo(Long applicationId, String integrationId, Long pageSize, Long 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); } @@ -8972,10 +9093,10 @@ public ApiResponse getApplicationCustomerFriendsWithHttpInf 200 OK - */ - public okhttp3.Call getApplicationCustomerFriendsAsync(Long applicationId, String integrationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomerFriendsAsync(Long applicationId, String integrationId, Long pageSize, Long 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; } @@ -9063,7 +9184,7 @@ private okhttp3.Call getApplicationCustomersValidateBeforeCall(Long applicationI * @param pageSize The number of items in the response. (optional, default to 1000l) * @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 InlineResponse20024 + * @return InlineResponse20025 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9071,8 +9192,8 @@ private okhttp3.Call getApplicationCustomersValidateBeforeCall(Long applicationI
200 OK -
*/ - public InlineResponse20024 getApplicationCustomers(Long applicationId, String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { - ApiResponse localVarResp = getApplicationCustomersWithHttpInfo(applicationId, integrationId, pageSize, skip, withTotalResultSize); + public InlineResponse20025 getApplicationCustomers(Long applicationId, String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { + ApiResponse localVarResp = getApplicationCustomersWithHttpInfo(applicationId, integrationId, pageSize, skip, withTotalResultSize); return localVarResp.getData(); } @@ -9084,7 +9205,7 @@ public InlineResponse20024 getApplicationCustomers(Long applicationId, String in * @param pageSize The number of items in the response. (optional, default to 1000l) * @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<InlineResponse20024> + * @return ApiResponse<InlineResponse20025> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9092,9 +9213,9 @@ public InlineResponse20024 getApplicationCustomers(Long applicationId, String in
200 OK -
*/ - public ApiResponse getApplicationCustomersWithHttpInfo(Long applicationId, String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { + public ApiResponse getApplicationCustomersWithHttpInfo(Long applicationId, String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomersValidateBeforeCall(applicationId, integrationId, pageSize, skip, withTotalResultSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -9115,10 +9236,10 @@ public ApiResponse getApplicationCustomersWithHttpInfo(Long 200 OK - */ - public okhttp3.Call getApplicationCustomersAsync(Long applicationId, String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomersAsync(Long applicationId, String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomersValidateBeforeCall(applicationId, integrationId, pageSize, skip, withTotalResultSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9207,7 +9328,7 @@ private okhttp3.Call getApplicationCustomersByAttributesValidateBeforeCall(Long * @param pageSize The number of items in the response. (optional, default to 1000l) * @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 InlineResponse20025 + * @return InlineResponse20026 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9215,8 +9336,8 @@ private okhttp3.Call getApplicationCustomersByAttributesValidateBeforeCall(Long
200 OK -
*/ - public InlineResponse20025 getApplicationCustomersByAttributes(Long applicationId, CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { - ApiResponse localVarResp = getApplicationCustomersByAttributesWithHttpInfo(applicationId, body, pageSize, skip, withTotalResultSize); + public InlineResponse20026 getApplicationCustomersByAttributes(Long applicationId, CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { + ApiResponse localVarResp = getApplicationCustomersByAttributesWithHttpInfo(applicationId, body, pageSize, skip, withTotalResultSize); return localVarResp.getData(); } @@ -9228,7 +9349,7 @@ public InlineResponse20025 getApplicationCustomersByAttributes(Long applicationI * @param pageSize The number of items in the response. (optional, default to 1000l) * @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<InlineResponse20025> + * @return ApiResponse<InlineResponse20026> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9236,9 +9357,9 @@ public InlineResponse20025 getApplicationCustomersByAttributes(Long applicationI
200 OK -
*/ - public ApiResponse getApplicationCustomersByAttributesWithHttpInfo(Long applicationId, CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { + public ApiResponse getApplicationCustomersByAttributesWithHttpInfo(Long applicationId, CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomersByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, withTotalResultSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -9259,10 +9380,10 @@ public ApiResponse getApplicationCustomersByAttributesWithH 200 OK - */ - public okhttp3.Call getApplicationCustomersByAttributesAsync(Long applicationId, CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomersByAttributesAsync(Long applicationId, CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomersByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, withTotalResultSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9344,7 +9465,7 @@ private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Long application * @param pageSize The number of items in the response. (optional, default to 1000l) * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return InlineResponse20031 + * @return InlineResponse20032 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9352,8 +9473,8 @@ private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Long application
200 OK -
*/ - public InlineResponse20031 getApplicationEventTypes(Long applicationId, Long pageSize, Long skip, String sort) throws ApiException { - ApiResponse localVarResp = getApplicationEventTypesWithHttpInfo(applicationId, pageSize, skip, sort); + public InlineResponse20032 getApplicationEventTypes(Long applicationId, Long pageSize, Long skip, String sort) throws ApiException { + ApiResponse localVarResp = getApplicationEventTypesWithHttpInfo(applicationId, pageSize, skip, sort); return localVarResp.getData(); } @@ -9364,7 +9485,7 @@ public InlineResponse20031 getApplicationEventTypes(Long applicationId, Long pag * @param pageSize The number of items in the response. (optional, default to 1000l) * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return ApiResponse<InlineResponse20031> + * @return ApiResponse<InlineResponse20032> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9372,9 +9493,9 @@ public InlineResponse20031 getApplicationEventTypes(Long applicationId, Long pag
200 OK -
*/ - public ApiResponse getApplicationEventTypesWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getApplicationEventTypesWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort) throws ApiException { okhttp3.Call localVarCall = getApplicationEventTypesValidateBeforeCall(applicationId, pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -9394,10 +9515,10 @@ public ApiResponse getApplicationEventTypesWithHttpInfo(Lon 200 OK - */ - public okhttp3.Call getApplicationEventTypesAsync(Long applicationId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationEventTypesAsync(Long applicationId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationEventTypesValidateBeforeCall(applicationId, pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9551,7 +9672,7 @@ private okhttp3.Call getApplicationEventsWithoutTotalCountValidateBeforeCall(Lon * @param ruleQuery Rule name filter for events (optional) * @param campaignQuery Campaign name filter for events (optional) * @param effectType The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). (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 @@ -9559,8 +9680,8 @@ private okhttp3.Call getApplicationEventsWithoutTotalCountValidateBeforeCall(Lon
200 OK -
*/ - public InlineResponse20030 getApplicationEventsWithoutTotalCount(Long applicationId, Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, String effectType) throws ApiException { - ApiResponse localVarResp = getApplicationEventsWithoutTotalCountWithHttpInfo(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, effectType); + public InlineResponse20031 getApplicationEventsWithoutTotalCount(Long applicationId, Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, String effectType) throws ApiException { + ApiResponse localVarResp = getApplicationEventsWithoutTotalCountWithHttpInfo(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, effectType); return localVarResp.getData(); } @@ -9583,7 +9704,7 @@ public InlineResponse20030 getApplicationEventsWithoutTotalCount(Long applicatio * @param ruleQuery Rule name filter for events (optional) * @param campaignQuery Campaign name filter for events (optional) * @param effectType The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). (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 @@ -9591,9 +9712,9 @@ public InlineResponse20030 getApplicationEventsWithoutTotalCount(Long applicatio
200 OK -
*/ - public ApiResponse getApplicationEventsWithoutTotalCountWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, String effectType) throws ApiException { + public ApiResponse getApplicationEventsWithoutTotalCountWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, String effectType) throws ApiException { okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountValidateBeforeCall(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, effectType, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -9625,10 +9746,10 @@ public ApiResponse getApplicationEventsWithoutTotalCountWit 200 OK - */ - public okhttp3.Call getApplicationEventsWithoutTotalCountAsync(Long applicationId, Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, String effectType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationEventsWithoutTotalCountAsync(Long applicationId, Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, String effectType, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountValidateBeforeCall(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, effectType, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9879,7 +10000,7 @@ private okhttp3.Call getApplicationSessionsValidateBeforeCall(Long applicationId * @param referral Filter by sessions with this referral. Must be exact match. (optional) * @param integrationId Filter by sessions with this integration ID. Must be exact match. (optional) * @param storeIntegrationId The integration ID of the store. You choose this ID when you create a store. (optional) - * @return InlineResponse20029 + * @return InlineResponse20030 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9887,8 +10008,8 @@ private okhttp3.Call getApplicationSessionsValidateBeforeCall(Long applicationId
200 OK -
*/ - public InlineResponse20029 getApplicationSessions(Long applicationId, Long pageSize, Long 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); + public InlineResponse20030 getApplicationSessions(Long applicationId, Long pageSize, Long 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(); } @@ -9907,7 +10028,7 @@ public InlineResponse20029 getApplicationSessions(Long applicationId, Long pageS * @param referral Filter by sessions with this referral. Must be exact match. (optional) * @param integrationId Filter by sessions with this integration ID. 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<InlineResponse20029> + * @return ApiResponse<InlineResponse20030> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9915,9 +10036,9 @@ public InlineResponse20029 getApplicationSessions(Long applicationId, Long pageS
200 OK -
*/ - public ApiResponse getApplicationSessionsWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException { + public ApiResponse getApplicationSessionsWithHttpInfo(Long applicationId, Long pageSize, Long 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -9945,10 +10066,10 @@ public ApiResponse getApplicationSessionsWithHttpInfo(Long 200 OK - */ - public okhttp3.Call getApplicationSessionsAsync(Long applicationId, Long pageSize, Long skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationSessionsAsync(Long applicationId, Long pageSize, Long 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, storeIntegrationId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -10288,7 +10409,7 @@ private okhttp3.Call getAttributesValidateBeforeCall(Long pageSize, Long skip, S * @param type Returned attributes will be filtered by supplied type (optional) * @param kind Returned attributes will be filtered by supplied kind (builtin or custom) (optional) * @param search Returned attributes will be filtered by searching case insensitive through Attribute name, description and type (optional) - * @return InlineResponse20036 + * @return InlineResponse20037 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10296,8 +10417,8 @@ private okhttp3.Call getAttributesValidateBeforeCall(Long pageSize, Long skip, S
200 OK -
*/ - public InlineResponse20036 getAttributes(Long pageSize, Long skip, String sort, String entity, String applicationIds, String type, String kind, String search) throws ApiException { - ApiResponse localVarResp = getAttributesWithHttpInfo(pageSize, skip, sort, entity, applicationIds, type, kind, search); + public InlineResponse20037 getAttributes(Long pageSize, Long skip, String sort, String entity, String applicationIds, String type, String kind, String search) throws ApiException { + ApiResponse localVarResp = getAttributesWithHttpInfo(pageSize, skip, sort, entity, applicationIds, type, kind, search); return localVarResp.getData(); } @@ -10312,7 +10433,7 @@ public InlineResponse20036 getAttributes(Long pageSize, Long skip, String sort, * @param type Returned attributes will be filtered by supplied type (optional) * @param kind Returned attributes will be filtered by supplied kind (builtin or custom) (optional) * @param search Returned attributes will be filtered by searching case insensitive through Attribute name, description and type (optional) - * @return ApiResponse<InlineResponse20036> + * @return ApiResponse<InlineResponse20037> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10320,9 +10441,9 @@ public InlineResponse20036 getAttributes(Long pageSize, Long skip, String sort,
200 OK -
*/ - public ApiResponse getAttributesWithHttpInfo(Long pageSize, Long skip, String sort, String entity, String applicationIds, String type, String kind, String search) throws ApiException { + public ApiResponse getAttributesWithHttpInfo(Long pageSize, Long skip, String sort, String entity, String applicationIds, String type, String kind, String search) throws ApiException { okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, applicationIds, type, kind, search, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -10346,10 +10467,10 @@ public ApiResponse getAttributesWithHttpInfo(Long pageSize, 200 OK - */ - public okhttp3.Call getAttributesAsync(Long pageSize, Long skip, String sort, String entity, String applicationIds, String type, String kind, String search, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAttributesAsync(Long pageSize, Long skip, String sort, String entity, String applicationIds, String type, String kind, String search, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, applicationIds, type, kind, search, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -10438,7 +10559,7 @@ private okhttp3.Call getAudienceMembershipsValidateBeforeCall(Long audienceId, L * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param profileQuery The filter to select a profile. (optional) - * @return InlineResponse20034 + * @return InlineResponse20035 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10447,8 +10568,8 @@ private okhttp3.Call getAudienceMembershipsValidateBeforeCall(Long audienceId, L
404 Not found -
*/ - public InlineResponse20034 getAudienceMemberships(Long audienceId, Long pageSize, Long skip, String sort, String profileQuery) throws ApiException { - ApiResponse localVarResp = getAudienceMembershipsWithHttpInfo(audienceId, pageSize, skip, sort, profileQuery); + public InlineResponse20035 getAudienceMemberships(Long audienceId, Long pageSize, Long skip, String sort, String profileQuery) throws ApiException { + ApiResponse localVarResp = getAudienceMembershipsWithHttpInfo(audienceId, pageSize, skip, sort, profileQuery); return localVarResp.getData(); } @@ -10460,7 +10581,7 @@ public InlineResponse20034 getAudienceMemberships(Long audienceId, Long pageSize * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param profileQuery The filter to select a profile. (optional) - * @return ApiResponse<InlineResponse20034> + * @return ApiResponse<InlineResponse20035> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10469,9 +10590,9 @@ public InlineResponse20034 getAudienceMemberships(Long audienceId, Long pageSize
404 Not found -
*/ - public ApiResponse getAudienceMembershipsWithHttpInfo(Long audienceId, Long pageSize, Long skip, String sort, String profileQuery) throws ApiException { + public ApiResponse getAudienceMembershipsWithHttpInfo(Long audienceId, Long pageSize, Long skip, String sort, String profileQuery) throws ApiException { okhttp3.Call localVarCall = getAudienceMembershipsValidateBeforeCall(audienceId, pageSize, skip, sort, profileQuery, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -10493,10 +10614,10 @@ public ApiResponse getAudienceMembershipsWithHttpInfo(Long 404 Not found - */ - public okhttp3.Call getAudienceMembershipsAsync(Long audienceId, Long pageSize, Long skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudienceMembershipsAsync(Long audienceId, Long pageSize, Long 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -10576,7 +10697,7 @@ private okhttp3.Call getAudiencesValidateBeforeCall(Long pageSize, Long skip, St * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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 InlineResponse20032 + * @return InlineResponse20033 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10584,8 +10705,8 @@ private okhttp3.Call getAudiencesValidateBeforeCall(Long pageSize, Long skip, St
200 OK -
*/ - public InlineResponse20032 getAudiences(Long pageSize, Long skip, String sort, Boolean withTotalResultSize) throws ApiException { - ApiResponse localVarResp = getAudiencesWithHttpInfo(pageSize, skip, sort, withTotalResultSize); + public InlineResponse20033 getAudiences(Long pageSize, Long skip, String sort, Boolean withTotalResultSize) throws ApiException { + ApiResponse localVarResp = getAudiencesWithHttpInfo(pageSize, skip, sort, withTotalResultSize); return localVarResp.getData(); } @@ -10596,7 +10717,7 @@ public InlineResponse20032 getAudiences(Long pageSize, Long skip, String sort, B * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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<InlineResponse20032> + * @return ApiResponse<InlineResponse20033> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10604,9 +10725,9 @@ public InlineResponse20032 getAudiences(Long pageSize, Long skip, String sort, B
200 OK -
*/ - public ApiResponse getAudiencesWithHttpInfo(Long pageSize, Long skip, String sort, Boolean withTotalResultSize) throws ApiException { + public ApiResponse getAudiencesWithHttpInfo(Long pageSize, Long skip, String sort, Boolean withTotalResultSize) throws ApiException { okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -10626,10 +10747,10 @@ public ApiResponse getAudiencesWithHttpInfo(Long pageSize, 200 OK - */ - public okhttp3.Call getAudiencesAsync(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudiencesAsync(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -10702,7 +10823,7 @@ private okhttp3.Call getAudiencesAnalyticsValidateBeforeCall(String audienceIds, * 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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return InlineResponse20033 + * @return InlineResponse20034 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10710,8 +10831,8 @@ private okhttp3.Call getAudiencesAnalyticsValidateBeforeCall(String audienceIds,
200 OK -
*/ - public InlineResponse20033 getAudiencesAnalytics(String audienceIds, String sort) throws ApiException { - ApiResponse localVarResp = getAudiencesAnalyticsWithHttpInfo(audienceIds, sort); + public InlineResponse20034 getAudiencesAnalytics(String audienceIds, String sort) throws ApiException { + ApiResponse localVarResp = getAudiencesAnalyticsWithHttpInfo(audienceIds, sort); return localVarResp.getData(); } @@ -10720,7 +10841,7 @@ public InlineResponse20033 getAudiencesAnalytics(String audienceIds, String sort * 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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return ApiResponse<InlineResponse20033> + * @return ApiResponse<InlineResponse20034> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10728,9 +10849,9 @@ public InlineResponse20033 getAudiencesAnalytics(String audienceIds, String sort
200 OK -
*/ - public ApiResponse getAudiencesAnalyticsWithHttpInfo(String audienceIds, String sort) throws ApiException { + public ApiResponse getAudiencesAnalyticsWithHttpInfo(String audienceIds, String sort) throws ApiException { okhttp3.Call localVarCall = getAudiencesAnalyticsValidateBeforeCall(audienceIds, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -10748,10 +10869,10 @@ public ApiResponse getAudiencesAnalyticsWithHttpInfo(String 200 OK - */ - public okhttp3.Call getAudiencesAnalyticsAsync(String audienceIds, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudiencesAnalyticsAsync(String audienceIds, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAudiencesAnalyticsValidateBeforeCall(audienceIds, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -10972,7 +11093,7 @@ private okhttp3.Call getCampaignAnalyticsValidateBeforeCall(Long applicationId, * @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 granularity The time interval between the results in the returned time-series. (optional) - * @return InlineResponse20023 + * @return InlineResponse20024 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10980,8 +11101,8 @@ private okhttp3.Call getCampaignAnalyticsValidateBeforeCall(Long applicationId,
200 OK -
*/ - public InlineResponse20023 getCampaignAnalytics(Long applicationId, Long campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException { - ApiResponse localVarResp = getCampaignAnalyticsWithHttpInfo(applicationId, campaignId, rangeStart, rangeEnd, granularity); + public InlineResponse20024 getCampaignAnalytics(Long applicationId, Long campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException { + ApiResponse localVarResp = getCampaignAnalyticsWithHttpInfo(applicationId, campaignId, rangeStart, rangeEnd, granularity); return localVarResp.getData(); } @@ -10993,7 +11114,7 @@ public InlineResponse20023 getCampaignAnalytics(Long applicationId, Long campaig * @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 granularity The time interval between the results in the returned time-series. (optional) - * @return ApiResponse<InlineResponse20023> + * @return ApiResponse<InlineResponse20024> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11001,9 +11122,9 @@ public InlineResponse20023 getCampaignAnalytics(Long applicationId, Long campaig
200 OK -
*/ - public ApiResponse getCampaignAnalyticsWithHttpInfo(Long applicationId, Long campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException { + public ApiResponse getCampaignAnalyticsWithHttpInfo(Long applicationId, Long campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException { okhttp3.Call localVarCall = getCampaignAnalyticsValidateBeforeCall(applicationId, campaignId, rangeStart, rangeEnd, granularity, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -11024,10 +11145,10 @@ public ApiResponse getCampaignAnalyticsWithHttpInfo(Long ap 200 OK - */ - public okhttp3.Call getCampaignAnalyticsAsync(Long applicationId, Long campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignAnalyticsAsync(Long applicationId, Long campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignAnalyticsValidateBeforeCall(applicationId, campaignId, rangeStart, rangeEnd, granularity, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -11929,7 +12050,7 @@ private okhttp3.Call getChangesValidateBeforeCall(Long pageSize, Long skip, Stri * @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 InlineResponse20042 + * @return InlineResponse20043 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11937,8 +12058,8 @@ private okhttp3.Call getChangesValidateBeforeCall(Long pageSize, Long skip, Stri
200 OK -
*/ - public InlineResponse20042 getChanges(Long pageSize, Long skip, String sort, BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld) throws ApiException { - ApiResponse localVarResp = getChangesWithHttpInfo(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); + public InlineResponse20043 getChanges(Long pageSize, Long skip, String sort, BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld) throws ApiException { + ApiResponse localVarResp = getChangesWithHttpInfo(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); return localVarResp.getData(); } @@ -11956,7 +12077,7 @@ public InlineResponse20042 getChanges(Long pageSize, Long skip, String sort, Big * @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<InlineResponse20042> + * @return ApiResponse<InlineResponse20043> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11964,9 +12085,9 @@ public InlineResponse20042 getChanges(Long pageSize, Long skip, String sort, Big
200 OK -
*/ - public ApiResponse getChangesWithHttpInfo(Long pageSize, Long skip, String sort, BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld) throws ApiException { + public ApiResponse getChangesWithHttpInfo(Long pageSize, Long skip, String sort, BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Long 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); } @@ -11993,10 +12114,10 @@ public ApiResponse getChangesWithHttpInfo(Long pageSize, Lo 200 OK - */ - public okhttp3.Call getChangesAsync(Long pageSize, Long skip, String sort, BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getChangesAsync(Long pageSize, Long skip, String sort, BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Long 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; } @@ -12208,7 +12329,7 @@ private okhttp3.Call getCollectionItemsValidateBeforeCall(Long collectionId, Lon * @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 the response. (optional, default to 1000l) * @param skip The number of items to skip when paging through large result sets. (optional) - * @return InlineResponse20021 + * @return InlineResponse20022 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -12217,8 +12338,8 @@ private okhttp3.Call getCollectionItemsValidateBeforeCall(Long collectionId, Lon
404 Not found -
*/ - public InlineResponse20021 getCollectionItems(Long collectionId, Long pageSize, Long skip) throws ApiException { - ApiResponse localVarResp = getCollectionItemsWithHttpInfo(collectionId, pageSize, skip); + public InlineResponse20022 getCollectionItems(Long collectionId, Long pageSize, Long skip) throws ApiException { + ApiResponse localVarResp = getCollectionItemsWithHttpInfo(collectionId, pageSize, skip); return localVarResp.getData(); } @@ -12228,7 +12349,7 @@ public InlineResponse20021 getCollectionItems(Long collectionId, Long pageSize, * @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 the response. (optional, default to 1000l) * @param skip The number of items to skip when paging through large result sets. (optional) - * @return ApiResponse<InlineResponse20021> + * @return ApiResponse<InlineResponse20022> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -12237,9 +12358,9 @@ public InlineResponse20021 getCollectionItems(Long collectionId, Long pageSize,
404 Not found -
*/ - public ApiResponse getCollectionItemsWithHttpInfo(Long collectionId, Long pageSize, Long skip) throws ApiException { + public ApiResponse getCollectionItemsWithHttpInfo(Long collectionId, Long pageSize, Long 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); } @@ -12259,10 +12380,10 @@ public ApiResponse getCollectionItemsWithHttpInfo(Long coll 404 Not found - */ - public okhttp3.Call getCollectionItemsAsync(Long collectionId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCollectionItemsAsync(Long collectionId, Long pageSize, Long 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; } @@ -12818,7 +12939,7 @@ private okhttp3.Call getCustomerActivityReportsWithoutTotalCountValidateBeforeCa * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) * @param campaignName Only return reports matching the campaign name. (optional) * @param advocateName Only return reports matching the current customer referrer name. (optional) - * @return InlineResponse20028 + * @return InlineResponse20029 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -12826,8 +12947,8 @@ private okhttp3.Call getCustomerActivityReportsWithoutTotalCountValidateBeforeCa
200 OK -
*/ - public InlineResponse20028 getCustomerActivityReportsWithoutTotalCount(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException { - ApiResponse localVarResp = getCustomerActivityReportsWithoutTotalCountWithHttpInfo(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName); + public InlineResponse20029 getCustomerActivityReportsWithoutTotalCount(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException { + ApiResponse localVarResp = getCustomerActivityReportsWithoutTotalCountWithHttpInfo(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName); return localVarResp.getData(); } @@ -12844,7 +12965,7 @@ public InlineResponse20028 getCustomerActivityReportsWithoutTotalCount(OffsetDat * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) * @param campaignName Only return reports matching the campaign name. (optional) * @param advocateName Only return reports matching the current customer referrer name. (optional) - * @return ApiResponse<InlineResponse20028> + * @return ApiResponse<InlineResponse20029> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -12852,9 +12973,9 @@ public InlineResponse20028 getCustomerActivityReportsWithoutTotalCount(OffsetDat
200 OK -
*/ - public ApiResponse getCustomerActivityReportsWithoutTotalCountWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException { + public ApiResponse getCustomerActivityReportsWithoutTotalCountWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException { okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -12880,10 +13001,10 @@ public ApiResponse getCustomerActivityReportsWithoutTotalCo 200 OK - */ - public okhttp3.Call getCustomerActivityReportsWithoutTotalCountAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerActivityReportsWithoutTotalCountAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -13237,7 +13358,7 @@ private okhttp3.Call getCustomerProfileAchievementProgressValidateBeforeCall(Lon * @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 InlineResponse20049 + * @return InlineResponse20050 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13247,8 +13368,8 @@ private okhttp3.Call getCustomerProfileAchievementProgressValidateBeforeCall(Lon
401 Unauthorized -
*/ - public InlineResponse20049 getCustomerProfileAchievementProgress(Long applicationId, String integrationId, Long pageSize, Long skip, Long achievementId, String title) throws ApiException { - ApiResponse localVarResp = getCustomerProfileAchievementProgressWithHttpInfo(applicationId, integrationId, pageSize, skip, achievementId, title); + public InlineResponse20050 getCustomerProfileAchievementProgress(Long applicationId, String integrationId, Long pageSize, Long skip, Long achievementId, String title) throws ApiException { + ApiResponse localVarResp = getCustomerProfileAchievementProgressWithHttpInfo(applicationId, integrationId, pageSize, skip, achievementId, title); return localVarResp.getData(); } @@ -13261,7 +13382,7 @@ public InlineResponse20049 getCustomerProfileAchievementProgress(Long applicatio * @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<InlineResponse20049> + * @return ApiResponse<InlineResponse20050> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13271,9 +13392,9 @@ public InlineResponse20049 getCustomerProfileAchievementProgress(Long applicatio
401 Unauthorized -
*/ - public ApiResponse getCustomerProfileAchievementProgressWithHttpInfo(Long applicationId, String integrationId, Long pageSize, Long skip, Long achievementId, String title) throws ApiException { + public ApiResponse getCustomerProfileAchievementProgressWithHttpInfo(Long applicationId, String integrationId, Long pageSize, Long skip, Long achievementId, String title) throws ApiException { okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, integrationId, pageSize, skip, achievementId, title, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13297,10 +13418,10 @@ public ApiResponse getCustomerProfileAchievementProgressWit 401 Unauthorized - */ - public okhttp3.Call getCustomerProfileAchievementProgressAsync(Long applicationId, String integrationId, Long pageSize, Long skip, Long achievementId, String title, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerProfileAchievementProgressAsync(Long applicationId, String integrationId, Long pageSize, Long skip, Long achievementId, String title, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, integrationId, pageSize, skip, achievementId, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -13374,7 +13495,7 @@ private okhttp3.Call getCustomerProfilesValidateBeforeCall(Long pageSize, Long s * @param pageSize The number of items in the response. (optional, default to 1000l) * @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 InlineResponse20027 + * @return InlineResponse20028 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13382,8 +13503,8 @@ private okhttp3.Call getCustomerProfilesValidateBeforeCall(Long pageSize, Long s
200 OK -
*/ - public InlineResponse20027 getCustomerProfiles(Long pageSize, Long skip, Boolean sandbox) throws ApiException { - ApiResponse localVarResp = getCustomerProfilesWithHttpInfo(pageSize, skip, sandbox); + public InlineResponse20028 getCustomerProfiles(Long pageSize, Long skip, Boolean sandbox) throws ApiException { + ApiResponse localVarResp = getCustomerProfilesWithHttpInfo(pageSize, skip, sandbox); return localVarResp.getData(); } @@ -13393,7 +13514,7 @@ public InlineResponse20027 getCustomerProfiles(Long pageSize, Long skip, Boolean * @param pageSize The number of items in the response. (optional, default to 1000l) * @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<InlineResponse20027> + * @return ApiResponse<InlineResponse20028> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13401,9 +13522,9 @@ public InlineResponse20027 getCustomerProfiles(Long pageSize, Long skip, Boolean
200 OK -
*/ - public ApiResponse getCustomerProfilesWithHttpInfo(Long pageSize, Long skip, Boolean sandbox) throws ApiException { + public ApiResponse getCustomerProfilesWithHttpInfo(Long pageSize, Long skip, Boolean sandbox) throws ApiException { okhttp3.Call localVarCall = getCustomerProfilesValidateBeforeCall(pageSize, skip, sandbox, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13422,10 +13543,10 @@ public ApiResponse getCustomerProfilesWithHttpInfo(Long pag 200 OK - */ - public okhttp3.Call getCustomerProfilesAsync(Long pageSize, Long skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerProfilesAsync(Long pageSize, Long skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerProfilesValidateBeforeCall(pageSize, skip, sandbox, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -13506,7 +13627,7 @@ private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileS * @param pageSize The number of items in the response. (optional, default to 1000l) * @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 InlineResponse20026 + * @return InlineResponse20027 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13514,8 +13635,8 @@ private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileS
200 OK -
*/ - public InlineResponse20026 getCustomersByAttributes(CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean sandbox) throws ApiException { - ApiResponse localVarResp = getCustomersByAttributesWithHttpInfo(body, pageSize, skip, sandbox); + public InlineResponse20027 getCustomersByAttributes(CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean sandbox) throws ApiException { + ApiResponse localVarResp = getCustomersByAttributesWithHttpInfo(body, pageSize, skip, sandbox); return localVarResp.getData(); } @@ -13526,7 +13647,7 @@ public InlineResponse20026 getCustomersByAttributes(CustomerProfileSearchQuery b * @param pageSize The number of items in the response. (optional, default to 1000l) * @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<InlineResponse20026> + * @return ApiResponse<InlineResponse20027> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13534,9 +13655,9 @@ public InlineResponse20026 getCustomersByAttributes(CustomerProfileSearchQuery b
200 OK -
*/ - public ApiResponse getCustomersByAttributesWithHttpInfo(CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean sandbox) throws ApiException { + public ApiResponse getCustomersByAttributesWithHttpInfo(CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean sandbox) throws ApiException { okhttp3.Call localVarCall = getCustomersByAttributesValidateBeforeCall(body, pageSize, skip, sandbox, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13556,10 +13677,10 @@ public ApiResponse getCustomersByAttributesWithHttpInfo(Cus 200 OK - */ - public okhttp3.Call getCustomersByAttributesAsync(CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomersByAttributesAsync(CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomersByAttributesValidateBeforeCall(body, pageSize, skip, sandbox, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -13651,7 +13772,7 @@ private okhttp3.Call getDashboardStatisticsValidateBeforeCall(Long loyaltyProgra * @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 subledgerId The ID of the subledger by which we filter the data. (optional) - * @return InlineResponse20016 + * @return InlineResponse20017 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13659,8 +13780,8 @@ private okhttp3.Call getDashboardStatisticsValidateBeforeCall(Long loyaltyProgra
200 OK -
*/ - public InlineResponse20016 getDashboardStatistics(Long loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId) throws ApiException { - ApiResponse localVarResp = getDashboardStatisticsWithHttpInfo(loyaltyProgramId, rangeStart, rangeEnd, subledgerId); + public InlineResponse20017 getDashboardStatistics(Long loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId) throws ApiException { + ApiResponse localVarResp = getDashboardStatisticsWithHttpInfo(loyaltyProgramId, rangeStart, rangeEnd, subledgerId); return localVarResp.getData(); } @@ -13671,7 +13792,7 @@ public InlineResponse20016 getDashboardStatistics(Long loyaltyProgramId, OffsetD * @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 subledgerId The ID of the subledger by which we filter the data. (optional) - * @return ApiResponse<InlineResponse20016> + * @return ApiResponse<InlineResponse20017> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13679,9 +13800,9 @@ public InlineResponse20016 getDashboardStatistics(Long loyaltyProgramId, OffsetD
200 OK -
*/ - public ApiResponse getDashboardStatisticsWithHttpInfo(Long loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId) throws ApiException { + public ApiResponse getDashboardStatisticsWithHttpInfo(Long loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId) throws ApiException { okhttp3.Call localVarCall = getDashboardStatisticsValidateBeforeCall(loyaltyProgramId, rangeStart, rangeEnd, subledgerId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13701,10 +13822,10 @@ public ApiResponse getDashboardStatisticsWithHttpInfo(Long 200 OK - */ - public okhttp3.Call getDashboardStatisticsAsync(Long loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getDashboardStatisticsAsync(Long loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getDashboardStatisticsValidateBeforeCall(loyaltyProgramId, rangeStart, rangeEnd, subledgerId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -13790,7 +13911,7 @@ private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includ * @param pageSize The number of items in the response. (optional, default to 1000l) * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return InlineResponse20040 + * @return InlineResponse20041 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13798,8 +13919,8 @@ private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includ
200 OK -
*/ - public InlineResponse20040 getEventTypes(String name, Boolean includeOldVersions, Long pageSize, Long skip, String sort) throws ApiException { - ApiResponse localVarResp = getEventTypesWithHttpInfo(name, includeOldVersions, pageSize, skip, sort); + public InlineResponse20041 getEventTypes(String name, Boolean includeOldVersions, Long pageSize, Long skip, String sort) throws ApiException { + ApiResponse localVarResp = getEventTypesWithHttpInfo(name, includeOldVersions, pageSize, skip, sort); return localVarResp.getData(); } @@ -13811,7 +13932,7 @@ public InlineResponse20040 getEventTypes(String name, Boolean includeOldVersions * @param pageSize The number of items in the response. (optional, default to 1000l) * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return ApiResponse<InlineResponse20040> + * @return ApiResponse<InlineResponse20041> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13819,20 +13940,141 @@ public InlineResponse20040 getEventTypes(String name, Boolean includeOldVersions
200 OK -
*/ - public ApiResponse getEventTypesWithHttpInfo(String name, Boolean includeOldVersions, Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getEventTypesWithHttpInfo(String name, Boolean includeOldVersions, Long pageSize, Long 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); + } + + /** + * List event types (asynchronously) + * 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 the response. (optional, default to 1000l) + * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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 getEventTypesAsync(String name, Boolean includeOldVersions, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getExperiment + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param experimentId The ID of the experiment. (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 getExperimentCall(Long applicationId, Long experimentId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/experiments/{experimentId}" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "experimentId" + "\\}", localVarApiClient.escapeString(experimentId.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[] { "api_key_v1", "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getExperimentValidateBeforeCall(Long applicationId, Long experimentId, 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 getExperiment(Async)"); + } + + // verify the required parameter 'experimentId' is set + if (experimentId == null) { + throw new ApiException("Missing the required parameter 'experimentId' when calling getExperiment(Async)"); + } + + + okhttp3.Call localVarCall = getExperimentCall(applicationId, experimentId, _callback); + return localVarCall; + + } + + /** + * Get experiment in Application + * Retrieve a given experiment associated with an Application. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param experimentId The ID of the experiment. (required) + * @return Experiment + * @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 Experiment getExperiment(Long applicationId, Long experimentId) throws ApiException { + ApiResponse localVarResp = getExperimentWithHttpInfo(applicationId, experimentId); + return localVarResp.getData(); + } + + /** + * Get experiment in Application + * Retrieve a given experiment associated with an Application. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param experimentId The ID of the experiment. (required) + * @return ApiResponse<Experiment> + * @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 getExperimentWithHttpInfo(Long applicationId, Long experimentId) throws ApiException { + okhttp3.Call localVarCall = getExperimentValidateBeforeCall(applicationId, experimentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * List event types (asynchronously) - * 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 the response. (optional, default to 1000l) - * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Get experiment in Application (asynchronously) + * Retrieve a given experiment associated with an Application. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param experimentId The ID of the experiment. (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 @@ -13842,10 +14084,10 @@ public ApiResponse getEventTypesWithHttpInfo(String name, B 200 OK - */ - public okhttp3.Call getEventTypesAsync(String name, Boolean includeOldVersions, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getExperimentAsync(Long applicationId, Long experimentId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getExperimentValidateBeforeCall(applicationId, experimentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -13931,7 +14173,7 @@ private okhttp3.Call getExportsValidateBeforeCall(Long pageSize, Long skip, BigD * @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 InlineResponse20043 + * @return InlineResponse20044 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13939,8 +14181,8 @@ private okhttp3.Call getExportsValidateBeforeCall(Long pageSize, Long skip, BigD
200 OK -
*/ - public InlineResponse20043 getExports(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, String entity) throws ApiException { - ApiResponse localVarResp = getExportsWithHttpInfo(pageSize, skip, applicationId, campaignId, entity); + public InlineResponse20044 getExports(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, String entity) throws ApiException { + ApiResponse localVarResp = getExportsWithHttpInfo(pageSize, skip, applicationId, campaignId, entity); return localVarResp.getData(); } @@ -13952,7 +14194,7 @@ public InlineResponse20043 getExports(Long pageSize, Long skip, BigDecimal appli * @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<InlineResponse20043> + * @return ApiResponse<InlineResponse20044> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13960,9 +14202,9 @@ public InlineResponse20043 getExports(Long pageSize, Long skip, BigDecimal appli
200 OK -
*/ - public ApiResponse getExportsWithHttpInfo(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, String entity) throws ApiException { + public ApiResponse getExportsWithHttpInfo(Long pageSize, Long skip, BigDecimal applicationId, Long 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); } @@ -13983,10 +14225,10 @@ public ApiResponse getExportsWithHttpInfo(Long pageSize, Lo 200 OK - */ - public okhttp3.Call getExportsAsync(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, String entity, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getExportsAsync(Long pageSize, Long skip, BigDecimal applicationId, Long 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; } @@ -14235,7 +14477,7 @@ private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Long loyalt * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) - * @return InlineResponse20019 + * @return InlineResponse20020 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14245,8 +14487,8 @@ private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Long loyalt
404 Not found -
*/ - public InlineResponse20019 getLoyaltyCardTransactionLogs(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, List customerSessionIDs, List transactionUUIDs) throws ApiException { - ApiResponse localVarResp = getLoyaltyCardTransactionLogsWithHttpInfo(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs); + public InlineResponse20020 getLoyaltyCardTransactionLogs(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, List customerSessionIDs, List transactionUUIDs) throws ApiException { + ApiResponse localVarResp = getLoyaltyCardTransactionLogsWithHttpInfo(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs); return localVarResp.getData(); } @@ -14262,7 +14504,7 @@ public InlineResponse20019 getLoyaltyCardTransactionLogs(Long loyaltyProgramId, * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param customerSessionIDs Filter the results by a list of customer session IDs. To include multiple IDs, repeat the parameter for each one, for example, `?customerSessionIDs=id1&customerSessionIDs=id2`. The response contains only data associated with the specified sessions. (optional) * @param transactionUUIDs Filter the results by a list of transaction UUIDs. To include multiple IDs, repeat the parameter for each one, for example, `?transactionUUIDs=uuid1&transactionUUIDs=uuid2`. The response contains only data associated with the specified transactions. (optional) - * @return ApiResponse<InlineResponse20019> + * @return ApiResponse<InlineResponse20020> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14272,9 +14514,9 @@ public InlineResponse20019 getLoyaltyCardTransactionLogs(Long loyaltyProgramId,
404 Not found -
*/ - public ApiResponse getLoyaltyCardTransactionLogsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, List customerSessionIDs, List transactionUUIDs) throws ApiException { + public ApiResponse getLoyaltyCardTransactionLogsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, List customerSessionIDs, List transactionUUIDs) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14301,10 +14543,10 @@ public ApiResponse getLoyaltyCardTransactionLogsWithHttpInf 404 Not found - */ - public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, List customerSessionIDs, List transactionUUIDs, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, List customerSessionIDs, List transactionUUIDs, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -14406,7 +14648,7 @@ private okhttp3.Call getLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, Lo * @param identifier The card code by which to filter loyalty cards in the response. (optional) * @param profileId Filter results by customer profile ID. (optional) * @param batchId Filter results by loyalty card batch ID. (optional) - * @return InlineResponse20018 + * @return InlineResponse20019 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14416,8 +14658,8 @@ private okhttp3.Call getLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, Lo
401 Unauthorized -
*/ - public InlineResponse20018 getLoyaltyCards(Long loyaltyProgramId, Long pageSize, Long skip, String sort, String identifier, Long profileId, String batchId) throws ApiException { - ApiResponse localVarResp = getLoyaltyCardsWithHttpInfo(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); + public InlineResponse20019 getLoyaltyCards(Long loyaltyProgramId, Long pageSize, Long skip, String sort, String identifier, Long profileId, String batchId) throws ApiException { + ApiResponse localVarResp = getLoyaltyCardsWithHttpInfo(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); return localVarResp.getData(); } @@ -14431,7 +14673,7 @@ public InlineResponse20018 getLoyaltyCards(Long loyaltyProgramId, Long pageSize, * @param identifier The card code by which to filter loyalty cards in the response. (optional) * @param profileId Filter results by customer profile ID. (optional) * @param batchId Filter results by loyalty card batch ID. (optional) - * @return ApiResponse<InlineResponse20018> + * @return ApiResponse<InlineResponse20019> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -14441,9 +14683,9 @@ public InlineResponse20018 getLoyaltyCards(Long loyaltyProgramId, Long pageSize,
401 Unauthorized -
*/ - public ApiResponse getLoyaltyCardsWithHttpInfo(Long loyaltyProgramId, Long pageSize, Long skip, String sort, String identifier, Long profileId, String batchId) throws ApiException { + public ApiResponse getLoyaltyCardsWithHttpInfo(Long loyaltyProgramId, Long pageSize, Long skip, String sort, String identifier, Long profileId, String batchId) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardsValidateBeforeCall(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14468,10 +14710,10 @@ public ApiResponse getLoyaltyCardsWithHttpInfo(Long loyalty 401 Unauthorized - */ - public okhttp3.Call getLoyaltyCardsAsync(Long loyaltyProgramId, Long pageSize, Long skip, String sort, String identifier, Long profileId, String batchId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardsAsync(Long loyaltyProgramId, Long pageSize, Long skip, String sort, String identifier, Long profileId, String batchId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardsValidateBeforeCall(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -15203,7 +15445,7 @@ private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Long loyalt * @param pageSize The number of items in the response. (optional, default to 50l) * @param skip The number of items to skip when paging through large result sets. (optional) * @param awaitsActivation If `true`: Filters results to include only point transactions that have action-based activation and have not expired. If `false`: Returns a `400` response. (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 @@ -15214,8 +15456,8 @@ private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Long loyalt
404 Not found -
*/ - public InlineResponse20017 getLoyaltyProgramTransactions(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, List customerSessionIDs, List transactionUUIDs, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, Boolean awaitsActivation) throws ApiException { - ApiResponse localVarResp = getLoyaltyProgramTransactionsWithHttpInfo(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, awaitsActivation); + public InlineResponse20018 getLoyaltyProgramTransactions(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, List customerSessionIDs, List transactionUUIDs, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, Boolean awaitsActivation) throws ApiException { + ApiResponse localVarResp = getLoyaltyProgramTransactionsWithHttpInfo(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, awaitsActivation); return localVarResp.getData(); } @@ -15232,7 +15474,7 @@ public InlineResponse20017 getLoyaltyProgramTransactions(Long loyaltyProgramId, * @param pageSize The number of items in the response. (optional, default to 50l) * @param skip The number of items to skip when paging through large result sets. (optional) * @param awaitsActivation If `true`: Filters results to include only point transactions that have action-based activation and have not expired. If `false`: Returns a `400` response. (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 @@ -15243,9 +15485,9 @@ public InlineResponse20017 getLoyaltyProgramTransactions(Long loyaltyProgramId,
404 Not found -
*/ - public ApiResponse getLoyaltyProgramTransactionsWithHttpInfo(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, List customerSessionIDs, List transactionUUIDs, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, Boolean awaitsActivation) throws ApiException { + public ApiResponse getLoyaltyProgramTransactionsWithHttpInfo(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, List customerSessionIDs, List transactionUUIDs, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, Boolean awaitsActivation) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, awaitsActivation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -15274,10 +15516,10 @@ public ApiResponse getLoyaltyProgramTransactionsWithHttpInf 404 Not found - */ - public okhttp3.Call getLoyaltyProgramTransactionsAsync(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, List customerSessionIDs, List transactionUUIDs, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, Boolean awaitsActivation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramTransactionsAsync(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, List customerSessionIDs, List transactionUUIDs, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, Boolean awaitsActivation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, awaitsActivation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -15333,7 +15575,7 @@ private okhttp3.Call getLoyaltyProgramsValidateBeforeCall(final ApiCallback _cal /** * List loyalty programs * List the loyalty programs of the account. - * @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 @@ -15341,15 +15583,15 @@ private okhttp3.Call getLoyaltyProgramsValidateBeforeCall(final ApiCallback _cal
200 OK -
*/ - public InlineResponse20015 getLoyaltyPrograms() throws ApiException { - ApiResponse localVarResp = getLoyaltyProgramsWithHttpInfo(); + public InlineResponse20016 getLoyaltyPrograms() throws ApiException { + ApiResponse localVarResp = getLoyaltyProgramsWithHttpInfo(); return localVarResp.getData(); } /** * List loyalty programs * List the loyalty programs of the account. - * @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 @@ -15357,9 +15599,9 @@ public InlineResponse20015 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); } @@ -15375,10 +15617,10 @@ 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; } @@ -16606,7 +16848,7 @@ private okhttp3.Call getUsersValidateBeforeCall(Long pageSize, Long skip, String * @param pageSize The number of items in the response. (optional, default to 1000l) * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return InlineResponse20041 + * @return InlineResponse20042 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -16614,8 +16856,8 @@ private okhttp3.Call getUsersValidateBeforeCall(Long pageSize, Long skip, String
200 OK -
*/ - public InlineResponse20041 getUsers(Long pageSize, Long skip, String sort) throws ApiException { - ApiResponse localVarResp = getUsersWithHttpInfo(pageSize, skip, sort); + public InlineResponse20042 getUsers(Long pageSize, Long skip, String sort) throws ApiException { + ApiResponse localVarResp = getUsersWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } @@ -16625,7 +16867,7 @@ public InlineResponse20041 getUsers(Long pageSize, Long skip, String sort) throw * @param pageSize The number of items in the response. (optional, default to 1000l) * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @return ApiResponse<InlineResponse20041> + * @return ApiResponse<InlineResponse20042> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -16633,9 +16875,9 @@ public InlineResponse20041 getUsers(Long pageSize, Long skip, String sort) throw
200 OK -
*/ - public ApiResponse getUsersWithHttpInfo(Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getUsersWithHttpInfo(Long pageSize, Long 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); } @@ -16654,10 +16896,10 @@ public ApiResponse getUsersWithHttpInfo(Long pageSize, Long 200 OK - */ - public okhttp3.Call getUsersAsync(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUsersAsync(Long pageSize, Long 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; } @@ -16872,7 +17114,7 @@ private okhttp3.Call getWebhooksValidateBeforeCall(String applicationIds, String * @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 InlineResponse20039 + * @return InlineResponse20040 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -16880,8 +17122,8 @@ private okhttp3.Call getWebhooksValidateBeforeCall(String applicationIds, String
200 OK -
*/ - public InlineResponse20039 getWebhooks(String applicationIds, String sort, Long pageSize, Long skip, String creationType, String visibility, Long outgoingIntegrationsTypeId, String title) throws ApiException { - ApiResponse localVarResp = getWebhooksWithHttpInfo(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); + public InlineResponse20040 getWebhooks(String applicationIds, String sort, Long pageSize, Long skip, String creationType, String visibility, Long outgoingIntegrationsTypeId, String title) throws ApiException { + ApiResponse localVarResp = getWebhooksWithHttpInfo(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); return localVarResp.getData(); } @@ -16896,7 +17138,7 @@ public InlineResponse20039 getWebhooks(String applicationIds, String sort, Long * @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<InlineResponse20039> + * @return ApiResponse<InlineResponse20040> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -16904,9 +17146,9 @@ public InlineResponse20039 getWebhooks(String applicationIds, String sort, Long
200 OK -
*/ - public ApiResponse getWebhooksWithHttpInfo(String applicationIds, String sort, Long pageSize, Long skip, String creationType, String visibility, Long outgoingIntegrationsTypeId, String title) throws ApiException { + public ApiResponse getWebhooksWithHttpInfo(String applicationIds, String sort, Long pageSize, Long skip, String creationType, String visibility, Long 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); } @@ -16930,10 +17172,10 @@ public ApiResponse getWebhooksWithHttpInfo(String applicati 200 OK - */ - public okhttp3.Call getWebhooksAsync(String applicationIds, String sort, Long pageSize, Long skip, String creationType, String visibility, Long outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhooksAsync(String applicationIds, String sort, Long pageSize, Long skip, String creationType, String visibility, Long 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; } @@ -17834,7 +18076,7 @@ private okhttp3.Call importCouponsValidateBeforeCall(Long applicationId, Long ca /** * Import coupons - * 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 recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `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). + * 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. Must be at least 3 characters long. We recommend using alphanumeric characters. There is no maximum length but limiting the code to 30 characters ensures it is fully readable in the Campaign Manager. The code should be unique unless you set `skipDuplicates` to `true`. - `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 recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `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 skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) @@ -17854,7 +18096,7 @@ public ModelImport importCoupons(Long applicationId, Long campaignId, Boolean sk /** * Import coupons - * 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 recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `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). + * 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. Must be at least 3 characters long. We recommend using alphanumeric characters. There is no maximum length but limiting the code to 30 characters ensures it is fully readable in the Campaign Manager. The code should be unique unless you set `skipDuplicates` to `true`. - `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 recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `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 skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) @@ -17875,7 +18117,7 @@ public ApiResponse importCouponsWithHttpInfo(Long applicationId, Lo /** * Import coupons (asynchronously) - * 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 recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `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). + * 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. Must be at least 3 characters long. We recommend using alphanumeric characters. There is no maximum length but limiting the code to 30 characters ensures it is fully readable in the Campaign Manager. The code should be unique unless you set `skipDuplicates` to `true`. - `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 recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `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 skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) @@ -17961,7 +18203,7 @@ private okhttp3.Call importLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, /** * 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. The identifiers should be separated with a semicolon (;). **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` + * 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. The identifiers should be separated with a semicolon (;). - `attributes` (optional): A JSON object that contains the loyalty card's custom attributes and their values. These attributes must be created and connected to this loyalty program before they can be assigned to the cards through this endpoint. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids,attributes 123-456-789AT,active,Alexa001;UserA,\"{\"\"my_attribute\"\": \"\"10_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 upFile The file containing the data that is being imported. (optional) * @return ModelImport @@ -17981,7 +18223,7 @@ public ModelImport importLoyaltyCards(Long loyaltyProgramId, String upFile) thro /** * 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. The identifiers should be separated with a semicolon (;). **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` + * 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. The identifiers should be separated with a semicolon (;). - `attributes` (optional): A JSON object that contains the loyalty card's custom attributes and their values. These attributes must be created and connected to this loyalty program before they can be assigned to the cards through this endpoint. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids,attributes 123-456-789AT,active,Alexa001;UserA,\"{\"\"my_attribute\"\": \"\"10_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 upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> @@ -18002,7 +18244,7 @@ public ApiResponse importLoyaltyCardsWithHttpInfo(Long loyaltyProgr /** * 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. The identifiers should be separated with a semicolon (;). **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` + * 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. The identifiers should be separated with a semicolon (;). - `attributes` (optional): A JSON object that contains the loyalty card's custom attributes and their values. These attributes must be created and connected to this loyalty program before they can be assigned to the cards through this endpoint. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids,attributes 123-456-789AT,active,Alexa001;UserA,\"{\"\"my_attribute\"\": \"\"10_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 upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes @@ -18720,7 +18962,7 @@ private okhttp3.Call listAccountCollectionsValidateBeforeCall(Long pageSize, Lon * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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 InlineResponse20020 + * @return InlineResponse20021 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -18731,8 +18973,8 @@ private okhttp3.Call listAccountCollectionsValidateBeforeCall(Long pageSize, Lon
404 Not found -
*/ - public InlineResponse20020 listAccountCollections(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - ApiResponse localVarResp = listAccountCollectionsWithHttpInfo(pageSize, skip, sort, withTotalResultSize, name); + public InlineResponse20021 listAccountCollections(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + ApiResponse localVarResp = listAccountCollectionsWithHttpInfo(pageSize, skip, sort, withTotalResultSize, name); return localVarResp.getData(); } @@ -18744,7 +18986,7 @@ public InlineResponse20020 listAccountCollections(Long pageSize, Long skip, Stri * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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<InlineResponse20020> + * @return ApiResponse<InlineResponse20021> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -18755,9 +18997,9 @@ public InlineResponse20020 listAccountCollections(Long pageSize, Long skip, Stri
404 Not found -
*/ - public ApiResponse listAccountCollectionsWithHttpInfo(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + public ApiResponse listAccountCollectionsWithHttpInfo(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, name, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -18781,10 +19023,10 @@ public ApiResponse listAccountCollectionsWithHttpInfo(Long 404 Not found - */ - public okhttp3.Call listAccountCollectionsAsync(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAccountCollectionsAsync(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, name, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -18874,7 +19116,7 @@ private okhttp3.Call listAchievementsValidateBeforeCall(Long applicationId, Long * @param pageSize The number of items in the response. (optional, default to 50l) * @param skip The number of items to skip when paging through large result sets. (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) - * @return InlineResponse20048 + * @return InlineResponse20049 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -18882,8 +19124,8 @@ private okhttp3.Call listAchievementsValidateBeforeCall(Long applicationId, Long
200 OK -
*/ - public InlineResponse20048 listAchievements(Long applicationId, Long campaignId, Long pageSize, Long skip, String title) throws ApiException { - ApiResponse localVarResp = listAchievementsWithHttpInfo(applicationId, campaignId, pageSize, skip, title); + public InlineResponse20049 listAchievements(Long applicationId, Long campaignId, Long pageSize, Long skip, String title) throws ApiException { + ApiResponse localVarResp = listAchievementsWithHttpInfo(applicationId, campaignId, pageSize, skip, title); return localVarResp.getData(); } @@ -18895,7 +19137,7 @@ public InlineResponse20048 listAchievements(Long applicationId, Long campaignId, * @param pageSize The number of items in the response. (optional, default to 50l) * @param skip The number of items to skip when paging through large result sets. (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) - * @return ApiResponse<InlineResponse20048> + * @return ApiResponse<InlineResponse20049> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -18903,9 +19145,9 @@ public InlineResponse20048 listAchievements(Long applicationId, Long campaignId,
200 OK -
*/ - public ApiResponse listAchievementsWithHttpInfo(Long applicationId, Long campaignId, Long pageSize, Long skip, String title) throws ApiException { + public ApiResponse listAchievementsWithHttpInfo(Long applicationId, Long campaignId, Long pageSize, Long skip, String title) throws ApiException { okhttp3.Call localVarCall = listAchievementsValidateBeforeCall(applicationId, campaignId, pageSize, skip, title, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -18926,10 +19168,10 @@ public ApiResponse listAchievementsWithHttpInfo(Long applic 200 OK - */ - public okhttp3.Call listAchievementsAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, String title, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAchievementsAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, String title, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listAchievementsValidateBeforeCall(applicationId, campaignId, pageSize, skip, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -18985,7 +19227,7 @@ private okhttp3.Call listAllRolesV2ValidateBeforeCall(final ApiCallback _callbac /** * List roles * List all roles. - * @return InlineResponse20044 + * @return InlineResponse20045 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -18993,15 +19235,15 @@ private okhttp3.Call listAllRolesV2ValidateBeforeCall(final ApiCallback _callbac
200 OK -
*/ - public InlineResponse20044 listAllRolesV2() throws ApiException { - ApiResponse localVarResp = listAllRolesV2WithHttpInfo(); + public InlineResponse20045 listAllRolesV2() throws ApiException { + ApiResponse localVarResp = listAllRolesV2WithHttpInfo(); return localVarResp.getData(); } /** * List roles * List all roles. - * @return ApiResponse<InlineResponse20044> + * @return ApiResponse<InlineResponse20045> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19009,9 +19251,9 @@ public InlineResponse20044 listAllRolesV2() throws ApiException {
200 OK -
*/ - public ApiResponse listAllRolesV2WithHttpInfo() throws ApiException { + public ApiResponse listAllRolesV2WithHttpInfo() throws ApiException { okhttp3.Call localVarCall = listAllRolesV2ValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -19027,10 +19269,10 @@ public ApiResponse listAllRolesV2WithHttpInfo() throws ApiE 200 OK - */ - public okhttp3.Call listAllRolesV2Async(final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAllRolesV2Async(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listAllRolesV2ValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -19117,7 +19359,7 @@ private okhttp3.Call listCampaignStoreBudgetLimitsValidateBeforeCall(Long applic * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param action The action that this budget is limiting. (optional) * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) - * @return InlineResponse20046 + * @return InlineResponse20047 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19128,8 +19370,8 @@ private okhttp3.Call listCampaignStoreBudgetLimitsValidateBeforeCall(Long applic
404 Not found -
*/ - public InlineResponse20046 listCampaignStoreBudgetLimits(Long applicationId, Long campaignId, String action, String period) throws ApiException { - ApiResponse localVarResp = listCampaignStoreBudgetLimitsWithHttpInfo(applicationId, campaignId, action, period); + public InlineResponse20047 listCampaignStoreBudgetLimits(Long applicationId, Long campaignId, String action, String period) throws ApiException { + ApiResponse localVarResp = listCampaignStoreBudgetLimitsWithHttpInfo(applicationId, campaignId, action, period); return localVarResp.getData(); } @@ -19140,7 +19382,7 @@ public InlineResponse20046 listCampaignStoreBudgetLimits(Long applicationId, Lon * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param action The action that this budget is limiting. (optional) * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) - * @return ApiResponse<InlineResponse20046> + * @return ApiResponse<InlineResponse20047> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19151,9 +19393,9 @@ public InlineResponse20046 listCampaignStoreBudgetLimits(Long applicationId, Lon
404 Not found -
*/ - public ApiResponse listCampaignStoreBudgetLimitsWithHttpInfo(Long applicationId, Long campaignId, String action, String period) throws ApiException { + public ApiResponse listCampaignStoreBudgetLimitsWithHttpInfo(Long applicationId, Long campaignId, String action, String period) throws ApiException { okhttp3.Call localVarCall = listCampaignStoreBudgetLimitsValidateBeforeCall(applicationId, campaignId, action, period, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -19176,10 +19418,10 @@ public ApiResponse listCampaignStoreBudgetLimitsWithHttpInf 404 Not found - */ - public okhttp3.Call listCampaignStoreBudgetLimitsAsync(Long applicationId, Long campaignId, String action, String period, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCampaignStoreBudgetLimitsAsync(Long applicationId, Long campaignId, String action, String period, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCampaignStoreBudgetLimitsValidateBeforeCall(applicationId, campaignId, action, period, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -19273,7 +19515,7 @@ private okhttp3.Call listCatalogItemsValidateBeforeCall(Long catalogId, Long pag * @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 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 InlineResponse20037 + * @return InlineResponse20038 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19281,8 +19523,8 @@ private okhttp3.Call listCatalogItemsValidateBeforeCall(Long catalogId, Long pag
200 OK -
*/ - public InlineResponse20037 listCatalogItems(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, List sku, List productNames) throws ApiException { - ApiResponse localVarResp = listCatalogItemsWithHttpInfo(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); + public InlineResponse20038 listCatalogItems(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, List sku, List productNames) throws ApiException { + ApiResponse localVarResp = listCatalogItemsWithHttpInfo(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); return localVarResp.getData(); } @@ -19295,7 +19537,7 @@ public InlineResponse20037 listCatalogItems(Long catalogId, Long pageSize, Long * @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 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<InlineResponse20037> + * @return ApiResponse<InlineResponse20038> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19303,9 +19545,9 @@ public InlineResponse20037 listCatalogItems(Long catalogId, Long pageSize, Long
200 OK -
*/ - public ApiResponse listCatalogItemsWithHttpInfo(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, List sku, List productNames) throws ApiException { + public ApiResponse listCatalogItemsWithHttpInfo(Long catalogId, Long pageSize, Long 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -19327,10 +19569,10 @@ public ApiResponse listCatalogItemsWithHttpInfo(Long catalo 200 OK - */ - public okhttp3.Call listCatalogItemsAsync(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCatalogItemsAsync(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -19433,7 +19675,7 @@ private okhttp3.Call listCollectionsValidateBeforeCall(Long applicationId, Long * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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 InlineResponse20020 + * @return InlineResponse20021 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19442,8 +19684,8 @@ private okhttp3.Call listCollectionsValidateBeforeCall(Long applicationId, Long
404 Not found -
*/ - public InlineResponse20020 listCollections(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - ApiResponse localVarResp = listCollectionsWithHttpInfo(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); + public InlineResponse20021 listCollections(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + ApiResponse localVarResp = listCollectionsWithHttpInfo(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); return localVarResp.getData(); } @@ -19457,7 +19699,7 @@ public InlineResponse20020 listCollections(Long applicationId, Long campaignId, * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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<InlineResponse20020> + * @return ApiResponse<InlineResponse20021> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19466,9 +19708,9 @@ public InlineResponse20020 listCollections(Long applicationId, Long campaignId,
404 Not found -
*/ - public ApiResponse listCollectionsWithHttpInfo(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + public ApiResponse listCollectionsWithHttpInfo(Long applicationId, Long campaignId, Long pageSize, Long 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); } @@ -19492,10 +19734,10 @@ public ApiResponse listCollectionsWithHttpInfo(Long applica 404 Not found - */ - public okhttp3.Call listCollectionsAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCollectionsAsync(Long applicationId, Long campaignId, Long pageSize, Long 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; } @@ -19590,7 +19832,7 @@ private okhttp3.Call listCollectionsInApplicationValidateBeforeCall(Long applica * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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 InlineResponse20020 + * @return InlineResponse20021 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19599,8 +19841,8 @@ private okhttp3.Call listCollectionsInApplicationValidateBeforeCall(Long applica
404 Not found -
*/ - public InlineResponse20020 listCollectionsInApplication(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - ApiResponse localVarResp = listCollectionsInApplicationWithHttpInfo(applicationId, pageSize, skip, sort, withTotalResultSize, name); + public InlineResponse20021 listCollectionsInApplication(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + ApiResponse localVarResp = listCollectionsInApplicationWithHttpInfo(applicationId, pageSize, skip, sort, withTotalResultSize, name); return localVarResp.getData(); } @@ -19613,7 +19855,7 @@ public InlineResponse20020 listCollectionsInApplication(Long applicationId, Long * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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<InlineResponse20020> + * @return ApiResponse<InlineResponse20021> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19622,9 +19864,9 @@ public InlineResponse20020 listCollectionsInApplication(Long applicationId, Long
404 Not found -
*/ - public ApiResponse listCollectionsInApplicationWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + public ApiResponse listCollectionsInApplicationWithHttpInfo(Long applicationId, Long pageSize, Long 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); } @@ -19647,10 +19889,145 @@ public ApiResponse listCollectionsInApplicationWithHttpInfo 404 Not found - */ - public okhttp3.Call listCollectionsInApplicationAsync(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCollectionsInApplicationAsync(Long applicationId, Long pageSize, Long 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 listExperiments + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default to 1000l) + * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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 listExperimentsCall(Long applicationId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/experiments" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.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)); + } + + 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[] { "api_key_v1", "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listExperimentsValidateBeforeCall(Long applicationId, Long pageSize, Long skip, String sort, 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 listExperiments(Async)"); + } + + + okhttp3.Call localVarCall = listExperimentsCall(applicationId, pageSize, skip, sort, _callback); + return localVarCall; + + } + + /** + * List experiments + * Get a list of experiments per 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 the response. (optional, default to 1000l) + * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * @return InlineResponse20015 + * @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 InlineResponse20015 listExperiments(Long applicationId, Long pageSize, Long skip, String sort) throws ApiException { + ApiResponse localVarResp = listExperimentsWithHttpInfo(applicationId, pageSize, skip, sort); + return localVarResp.getData(); + } + + /** + * List experiments + * Get a list of experiments per 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 the response. (optional, default to 1000l) + * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * @return ApiResponse<InlineResponse20015> + * @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 listExperimentsWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort) throws ApiException { + okhttp3.Call localVarCall = listExperimentsValidateBeforeCall(applicationId, pageSize, skip, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List experiments (asynchronously) + * Get a list of experiments per 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 the response. (optional, default to 1000l) + * @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:** You may not be able to use all fields for sorting. This is due to performance limitations. (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 listExperimentsAsync(Long applicationId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listExperimentsValidateBeforeCall(applicationId, pageSize, skip, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -19762,7 +20139,7 @@ private okhttp3.Call listStoresValidateBeforeCall(Long applicationId, Long pageS * @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) - * @return InlineResponse20045 + * @return InlineResponse20046 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19770,8 +20147,8 @@ private okhttp3.Call listStoresValidateBeforeCall(Long applicationId, Long pageS
200 OK -
*/ - public InlineResponse20045 listStores(Long applicationId, Long pageSize, Long 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); + public InlineResponse20046 listStores(Long applicationId, Long pageSize, Long 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(); } @@ -19787,7 +20164,7 @@ public InlineResponse20045 listStores(Long applicationId, Long pageSize, Long sk * @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) - * @return ApiResponse<InlineResponse20045> + * @return ApiResponse<InlineResponse20046> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19795,9 +20172,9 @@ public InlineResponse20045 listStores(Long applicationId, Long pageSize, Long sk
200 OK -
*/ - public ApiResponse listStoresWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query) throws ApiException { + public ApiResponse listStoresWithHttpInfo(Long applicationId, Long pageSize, Long 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -19822,10 +20199,10 @@ public ApiResponse listStoresWithHttpInfo(Long applicationI 200 OK - */ - public okhttp3.Call listStoresAsync(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listStoresAsync(Long applicationId, Long pageSize, Long 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, query, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -22336,7 +22713,7 @@ private okhttp3.Call summarizeCampaignStoreBudgetValidateBeforeCall(Long applica * Fetch a summary of all store budget information for 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) - * @return InlineResponse20047 + * @return InlineResponse20048 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -22347,8 +22724,8 @@ private okhttp3.Call summarizeCampaignStoreBudgetValidateBeforeCall(Long applica
404 Not found -
*/ - public InlineResponse20047 summarizeCampaignStoreBudget(Long applicationId, Long campaignId) throws ApiException { - ApiResponse localVarResp = summarizeCampaignStoreBudgetWithHttpInfo(applicationId, campaignId); + public InlineResponse20048 summarizeCampaignStoreBudget(Long applicationId, Long campaignId) throws ApiException { + ApiResponse localVarResp = summarizeCampaignStoreBudgetWithHttpInfo(applicationId, campaignId); return localVarResp.getData(); } @@ -22357,7 +22734,7 @@ public InlineResponse20047 summarizeCampaignStoreBudget(Long applicationId, Long * Fetch a summary of all store budget information for 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) - * @return ApiResponse<InlineResponse20047> + * @return ApiResponse<InlineResponse20048> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -22368,9 +22745,9 @@ public InlineResponse20047 summarizeCampaignStoreBudget(Long applicationId, Long
404 Not found -
*/ - public ApiResponse summarizeCampaignStoreBudgetWithHttpInfo(Long applicationId, Long campaignId) throws ApiException { + public ApiResponse summarizeCampaignStoreBudgetWithHttpInfo(Long applicationId, Long campaignId) throws ApiException { okhttp3.Call localVarCall = summarizeCampaignStoreBudgetValidateBeforeCall(applicationId, campaignId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -22391,10 +22768,10 @@ public ApiResponse summarizeCampaignStoreBudgetWithHttpInfo 404 Not found - */ - public okhttp3.Call summarizeCampaignStoreBudgetAsync(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call summarizeCampaignStoreBudgetAsync(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = summarizeCampaignStoreBudgetValidateBeforeCall(applicationId, campaignId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -23617,7 +23994,7 @@ public okhttp3.Call updateCouponBatchAsync(Long applicationId, Long campaignId, 404 Not found - */ - public okhttp3.Call updateLoyaltyCardCall(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateLoyaltyCardCall(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCardRequest body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -23649,7 +24026,7 @@ public okhttp3.Call updateLoyaltyCardCall(Long loyaltyProgramId, String loyaltyC } @SuppressWarnings("rawtypes") - private okhttp3.Call updateLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCardRequest body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -23673,8 +24050,8 @@ private okhttp3.Call updateLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, } /** - * Update loyalty card status - * Update the status of the given loyalty card. A card can be _active_ or _inactive_. + * Update loyalty card + * Update the details of a specific loyalty card. You can set the card's status to `active` or `inactive` through this endpoint. At least one of `status` or `attributes` must be provided. * @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) @@ -23689,14 +24066,14 @@ private okhttp3.Call updateLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, 404 Not found - */ - public LoyaltyCard updateLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body) throws ApiException { + public LoyaltyCard updateLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCardRequest body) throws ApiException { ApiResponse localVarResp = updateLoyaltyCardWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); return localVarResp.getData(); } /** - * Update loyalty card status - * Update the status of the given loyalty card. A card can be _active_ or _inactive_. + * Update loyalty card + * Update the details of a specific loyalty card. You can set the card's status to `active` or `inactive` through this endpoint. At least one of `status` or `attributes` must be provided. * @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) @@ -23711,15 +24088,15 @@ public LoyaltyCard updateLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId 404 Not found - */ - public ApiResponse updateLoyaltyCardWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body) throws ApiException { + public ApiResponse updateLoyaltyCardWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCardRequest body) throws ApiException { okhttp3.Call localVarCall = updateLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Update loyalty card status (asynchronously) - * Update the status of the given loyalty card. A card can be _active_ or _inactive_. + * Update loyalty card (asynchronously) + * Update the details of a specific loyalty card. You can set the card's status to `active` or `inactive` through this endpoint. At least one of `status` or `attributes` must be provided. * @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) @@ -23735,7 +24112,7 @@ public ApiResponse updateLoyaltyCardWithHttpInfo(Long loyaltyProgra 404 Not found - */ - public okhttp3.Call updateLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCardRequest body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/one/talon/model/Attribute.java b/src/main/java/one/talon/model/Attribute.java index 8a560885..50b1c051 100644 --- a/src/main/java/one/talon/model/Attribute.java +++ b/src/main/java/one/talon/model/Attribute.java @@ -65,6 +65,8 @@ public enum EntityEnum { GIVEAWAY("Giveaway"), + LOYALTYCARD("LoyaltyCard"), + REFERRAL("Referral"), STORE("Store"); diff --git a/src/main/java/one/talon/model/BestPriorPrice.java b/src/main/java/one/talon/model/BestPriorPrice.java index 88bbc4be..b9716eba 100644 --- a/src/main/java/one/talon/model/BestPriorPrice.java +++ b/src/main/java/one/talon/model/BestPriorPrice.java @@ -32,6 +32,10 @@ */ public class BestPriorPrice { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + public static final String SERIALIZED_NAME_SKU = "sku"; @SerializedName(SERIALIZED_NAME_SKU) private String sku; @@ -57,6 +61,28 @@ public class BestPriorPrice { private Object target; + public BestPriorPrice id(Long id) { + + this.id = id; + return this; + } + + /** + * The ID of the historical price. + * @return id + **/ + @ApiModelProperty(example = "1", required = true, value = "The ID of the historical price.") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + public BestPriorPrice sku(String sku) { this.sku = sku; @@ -86,10 +112,10 @@ public BestPriorPrice observedAt(OffsetDateTime observedAt) { } /** - * The date and time when the best price was observed. + * The date and time when the price was observed. * @return observedAt **/ - @ApiModelProperty(example = "2020-11-10T23:00Z", required = true, value = "The date and time when the best price was observed.") + @ApiModelProperty(example = "2020-11-10T23:00Z", required = true, value = "The date and time when the price was observed.") public OffsetDateTime getObservedAt() { return observedAt; @@ -111,7 +137,7 @@ public BestPriorPrice contextId(String contextId) { * The context ID of the context active at the time of observation. * @return contextId **/ - @ApiModelProperty(example = "Summer Sale 2007", required = true, value = "The context ID of the context active at the time of observation. ") + @ApiModelProperty(example = "Summer Sale 2025", required = true, value = "The context ID of the context active at the time of observation. ") public String getContextId() { return contextId; @@ -198,7 +224,8 @@ public boolean equals(java.lang.Object o) { return false; } BestPriorPrice bestPriorPrice = (BestPriorPrice) o; - return Objects.equals(this.sku, bestPriorPrice.sku) && + return Objects.equals(this.id, bestPriorPrice.id) && + Objects.equals(this.sku, bestPriorPrice.sku) && Objects.equals(this.observedAt, bestPriorPrice.observedAt) && Objects.equals(this.contextId, bestPriorPrice.contextId) && Objects.equals(this.price, bestPriorPrice.price) && @@ -208,7 +235,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(sku, observedAt, contextId, price, metadata, target); + return Objects.hash(id, sku, observedAt, contextId, price, metadata, target); } @@ -216,6 +243,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BestPriorPrice {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" sku: ").append(toIndentedString(sku)).append("\n"); sb.append(" observedAt: ").append(toIndentedString(observedAt)).append("\n"); sb.append(" contextId: ").append(toIndentedString(contextId)).append("\n"); diff --git a/src/main/java/one/talon/model/BestPriorPriceRequest.java b/src/main/java/one/talon/model/BestPriorPriceRequest.java index 00d2b9d0..dba75508 100644 --- a/src/main/java/one/talon/model/BestPriorPriceRequest.java +++ b/src/main/java/one/talon/model/BestPriorPriceRequest.java @@ -49,6 +49,59 @@ public class BestPriorPriceRequest { @SerializedName(SERIALIZED_NAME_STRICT_END_DATE) private Boolean strictEndDate; + /** + * Sets the timeframe for retrieving historical pricing data. Can be one of the following values: - `strict`: The timeframe ends at the `timeframeEndDate` value. - `price`: The timeframe ends at the start of the current `contextId` with the current price value. Identical price records are merged. If there is no `contextId` for the most recent price, the most recent timestamp for the price is used. - `sale`: The timeframe ends at the start of current `contextId` and takes the prices prior to the start of the `contextId` into account. + */ + @JsonAdapter(TimeframeEndDateTypeEnum.Adapter.class) + public enum TimeframeEndDateTypeEnum { + STRICT("strict"), + + PRICE("price"), + + SALE("sale"); + + private String value; + + TimeframeEndDateTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TimeframeEndDateTypeEnum fromValue(String value) { + for (TimeframeEndDateTypeEnum b : TimeframeEndDateTypeEnum.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 TimeframeEndDateTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TimeframeEndDateTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TimeframeEndDateTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TIMEFRAME_END_DATE_TYPE = "timeframeEndDateType"; + @SerializedName(SERIALIZED_NAME_TIMEFRAME_END_DATE_TYPE) + private TimeframeEndDateTypeEnum timeframeEndDateType; + public static final String SERIALIZED_NAME_TARGET = "target"; @SerializedName(SERIALIZED_NAME_TARGET) private BestPriorTarget target; @@ -132,10 +185,10 @@ public BestPriorPriceRequest strictEndDate(Boolean strictEndDate) { } /** - * Indicates whether the timeframe includes the start of the current sale. - When `false`, the timeframe includes the start date of the current sale. - When `true`, the timeframe striclty uses the number of days specified in `timeframe`. + * This property is **deprecated**. Use `timeframeEndDateType` instead. Indicates whether the timeframe includes the start of the current sale. - When `false`, the timeframe includes the start date of the current sale. - When `true`, the timeframe strictly uses the number of days specified in `timeframe`. * @return strictEndDate **/ - @ApiModelProperty(example = "true", required = true, value = "Indicates whether the timeframe includes the start of the current sale. - When `false`, the timeframe includes the start date of the current sale. - When `true`, the timeframe striclty uses the number of days specified in `timeframe`. ") + @ApiModelProperty(example = "true", required = true, value = "This property is **deprecated**. Use `timeframeEndDateType` instead. Indicates whether the timeframe includes the start of the current sale. - When `false`, the timeframe includes the start date of the current sale. - When `true`, the timeframe strictly uses the number of days specified in `timeframe`. ") public Boolean getStrictEndDate() { return strictEndDate; @@ -147,6 +200,29 @@ public void setStrictEndDate(Boolean strictEndDate) { } + public BestPriorPriceRequest timeframeEndDateType(TimeframeEndDateTypeEnum timeframeEndDateType) { + + this.timeframeEndDateType = timeframeEndDateType; + return this; + } + + /** + * Sets the timeframe for retrieving historical pricing data. Can be one of the following values: - `strict`: The timeframe ends at the `timeframeEndDate` value. - `price`: The timeframe ends at the start of the current `contextId` with the current price value. Identical price records are merged. If there is no `contextId` for the most recent price, the most recent timestamp for the price is used. - `sale`: The timeframe ends at the start of current `contextId` and takes the prices prior to the start of the `contextId` into account. + * @return timeframeEndDateType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "sale", value = "Sets the timeframe for retrieving historical pricing data. Can be one of the following values: - `strict`: The timeframe ends at the `timeframeEndDate` value. - `price`: The timeframe ends at the start of the current `contextId` with the current price value. Identical price records are merged. If there is no `contextId` for the most recent price, the most recent timestamp for the price is used. - `sale`: The timeframe ends at the start of current `contextId` and takes the prices prior to the start of the `contextId` into account. ") + + public TimeframeEndDateTypeEnum getTimeframeEndDateType() { + return timeframeEndDateType; + } + + + public void setTimeframeEndDateType(TimeframeEndDateTypeEnum timeframeEndDateType) { + this.timeframeEndDateType = timeframeEndDateType; + } + + public BestPriorPriceRequest target(BestPriorTarget target) { this.target = target; @@ -183,12 +259,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.timeframeEndDate, bestPriorPriceRequest.timeframeEndDate) && Objects.equals(this.timeframe, bestPriorPriceRequest.timeframe) && Objects.equals(this.strictEndDate, bestPriorPriceRequest.strictEndDate) && + Objects.equals(this.timeframeEndDateType, bestPriorPriceRequest.timeframeEndDateType) && Objects.equals(this.target, bestPriorPriceRequest.target); } @Override public int hashCode() { - return Objects.hash(skus, timeframeEndDate, timeframe, strictEndDate, target); + return Objects.hash(skus, timeframeEndDate, timeframe, strictEndDate, timeframeEndDateType, target); } @@ -200,6 +277,7 @@ public String toString() { sb.append(" timeframeEndDate: ").append(toIndentedString(timeframeEndDate)).append("\n"); sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); sb.append(" strictEndDate: ").append(toIndentedString(strictEndDate)).append("\n"); + sb.append(" timeframeEndDateType: ").append(toIndentedString(timeframeEndDateType)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/Blueprint.java b/src/main/java/one/talon/model/Blueprint.java new file mode 100644 index 00000000..79ed3e9b --- /dev/null +++ b/src/main/java/one/talon/model/Blueprint.java @@ -0,0 +1,550 @@ +/* + * 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.CartItemFilterTemplate; +import one.talon.model.CatalogRule; +import org.threeten.bp.OffsetDateTime; + +/** + * Blueprint + */ + +public class Blueprint { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; + @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + private Long accountId; + + public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; + @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + private Long applicationId; + + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + /** + * Category used to group blueprints. + */ + @JsonAdapter(CategoryEnum.Adapter.class) + public enum CategoryEnum { + PROMOTIONS("promotions"), + + PRICING("pricing"), + + LOYALTY("loyalty"), + + CUSTOM("custom"); + + private String value; + + CategoryEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CategoryEnum fromValue(String value) { + for (CategoryEnum b : CategoryEnum.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 CategoryEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CategoryEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CategoryEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) + private CategoryEnum category; + + /** + * Indicates whether the blueprint is custom or shipped by Talon.One. + */ + @JsonAdapter(SourceEnum.Adapter.class) + public enum SourceEnum { + CUSTOM("custom"), + + DEFAULT("default"); + + private String value; + + SourceEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SourceEnum fromValue(String value) { + for (SourceEnum b : SourceEnum.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 SourceEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SourceEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SourceEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_SOURCE = "source"; + @SerializedName(SERIALIZED_NAME_SOURCE) + private SourceEnum source; + + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) + private List rules = new ArrayList(); + + public static final String SERIALIZED_NAME_CART_ITEM_FILTERS = "cartItemFilters"; + @SerializedName(SERIALIZED_NAME_CART_ITEM_FILTERS) + private List cartItemFilters = new ArrayList(); + + public static final String SERIALIZED_NAME_CREATED = "created"; + @SerializedName(SERIALIZED_NAME_CREATED) + private OffsetDateTime created; + + public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; + @SerializedName(SERIALIZED_NAME_CREATED_BY) + private Long createdBy; + + public static final String SERIALIZED_NAME_MODIFIED = "modified"; + @SerializedName(SERIALIZED_NAME_MODIFIED) + private OffsetDateTime modified; + + public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; + @SerializedName(SERIALIZED_NAME_MODIFIED_BY) + private Long modifiedBy; + + + public Blueprint id(Long id) { + + this.id = id; + return this; + } + + /** + * The internal ID of this blueprint. + * @return id + **/ + @ApiModelProperty(required = true, value = "The internal ID of this blueprint.") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public Blueprint accountId(Long accountId) { + + this.accountId = accountId; + return this; + } + + /** + * The ID of the account that owns this blueprint. + * @return accountId + **/ + @ApiModelProperty(required = true, value = "The ID of the account that owns this blueprint.") + + public Long getAccountId() { + return accountId; + } + + + public void setAccountId(Long accountId) { + this.accountId = accountId; + } + + + public Blueprint applicationId(Long applicationId) { + + this.applicationId = applicationId; + return this; + } + + /** + * The ID of the Application that owns this blueprint. + * @return applicationId + **/ + @ApiModelProperty(required = true, value = "The ID of the Application that owns this blueprint.") + + public Long getApplicationId() { + return applicationId; + } + + + public void setApplicationId(Long applicationId) { + this.applicationId = applicationId; + } + + + public Blueprint title(String title) { + + this.title = title; + return this; + } + + /** + * A short description of the blueprint. + * @return title + **/ + @ApiModelProperty(example = "High value cart discount", required = true, value = "A short description of the blueprint.") + + public String getTitle() { + return title; + } + + + public void setTitle(String title) { + this.title = title; + } + + + public Blueprint description(String description) { + + this.description = description; + return this; + } + + /** + * A longer, more detailed description of the blueprint. + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A longer, more detailed description of the blueprint.") + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + public Blueprint category(CategoryEnum category) { + + this.category = category; + return this; + } + + /** + * Category used to group blueprints. + * @return category + **/ + @ApiModelProperty(required = true, value = "Category used to group blueprints.") + + public CategoryEnum getCategory() { + return category; + } + + + public void setCategory(CategoryEnum category) { + this.category = category; + } + + + public Blueprint source(SourceEnum source) { + + this.source = source; + return this; + } + + /** + * Indicates whether the blueprint is custom or shipped by Talon.One. + * @return source + **/ + @ApiModelProperty(required = true, value = "Indicates whether the blueprint is custom or shipped by Talon.One.") + + public SourceEnum getSource() { + return source; + } + + + public void setSource(SourceEnum source) { + this.source = source; + } + + + public Blueprint rules(List rules) { + + this.rules = rules; + return this; + } + + public Blueprint addRulesItem(CatalogRule rulesItem) { + this.rules.add(rulesItem); + return this; + } + + /** + * Array of rule templates in this blueprint. Rules only contain title (no description, as description is at the blueprint level). + * @return rules + **/ + @ApiModelProperty(required = true, value = "Array of rule templates in this blueprint. Rules only contain title (no description, as description is at the blueprint level).") + + public List getRules() { + return rules; + } + + + public void setRules(List rules) { + this.rules = rules; + } + + + public Blueprint cartItemFilters(List cartItemFilters) { + + this.cartItemFilters = cartItemFilters; + return this; + } + + public Blueprint addCartItemFiltersItem(CartItemFilterTemplate cartItemFiltersItem) { + this.cartItemFilters.add(cartItemFiltersItem); + return this; + } + + /** + * Array of cart item filter templates in this blueprint. Cart item filters only contain name (no description, as description is at the blueprint level). + * @return cartItemFilters + **/ + @ApiModelProperty(required = true, value = "Array of cart item filter templates in this blueprint. Cart item filters only contain name (no description, as description is at the blueprint level).") + + public List getCartItemFilters() { + return cartItemFilters; + } + + + public void setCartItemFilters(List cartItemFilters) { + this.cartItemFilters = cartItemFilters; + } + + + public Blueprint created(OffsetDateTime created) { + + this.created = created; + return this; + } + + /** + * Timestamp when the blueprint was created. + * @return created + **/ + @ApiModelProperty(required = true, value = "Timestamp when the blueprint was created.") + + public OffsetDateTime getCreated() { + return created; + } + + + public void setCreated(OffsetDateTime created) { + this.created = created; + } + + + public Blueprint createdBy(Long createdBy) { + + this.createdBy = createdBy; + return this; + } + + /** + * ID of the user who created the blueprint. + * @return createdBy + **/ + @ApiModelProperty(required = true, value = "ID of the user who created the blueprint.") + + public Long getCreatedBy() { + return createdBy; + } + + + public void setCreatedBy(Long createdBy) { + this.createdBy = createdBy; + } + + + public Blueprint modified(OffsetDateTime modified) { + + this.modified = modified; + return this; + } + + /** + * Timestamp when the blueprint was last updated. + * @return modified + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Timestamp when the blueprint was last updated.") + + public OffsetDateTime getModified() { + return modified; + } + + + public void setModified(OffsetDateTime modified) { + this.modified = modified; + } + + + public Blueprint modifiedBy(Long modifiedBy) { + + this.modifiedBy = modifiedBy; + return this; + } + + /** + * ID of the user who last updated the blueprint. + * @return modifiedBy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "ID of the user who last updated the blueprint.") + + public Long getModifiedBy() { + return modifiedBy; + } + + + public void setModifiedBy(Long modifiedBy) { + this.modifiedBy = modifiedBy; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Blueprint blueprint = (Blueprint) o; + return Objects.equals(this.id, blueprint.id) && + Objects.equals(this.accountId, blueprint.accountId) && + Objects.equals(this.applicationId, blueprint.applicationId) && + Objects.equals(this.title, blueprint.title) && + Objects.equals(this.description, blueprint.description) && + Objects.equals(this.category, blueprint.category) && + Objects.equals(this.source, blueprint.source) && + Objects.equals(this.rules, blueprint.rules) && + Objects.equals(this.cartItemFilters, blueprint.cartItemFilters) && + Objects.equals(this.created, blueprint.created) && + Objects.equals(this.createdBy, blueprint.createdBy) && + Objects.equals(this.modified, blueprint.modified) && + Objects.equals(this.modifiedBy, blueprint.modifiedBy); + } + + @Override + public int hashCode() { + return Objects.hash(id, accountId, applicationId, title, description, category, source, rules, cartItemFilters, created, createdBy, modified, modifiedBy); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Blueprint {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append(" cartItemFilters: ").append(toIndentedString(cartItemFilters)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); + sb.append(" modifiedBy: ").append(toIndentedString(modifiedBy)).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/CampaignCollectionEditedNotificationItem.java b/src/main/java/one/talon/model/CampaignCollectionEditedNotificationItem.java index f55a524a..a6e92e9f 100644 --- a/src/main/java/one/talon/model/CampaignCollectionEditedNotificationItem.java +++ b/src/main/java/one/talon/model/CampaignCollectionEditedNotificationItem.java @@ -23,8 +23,11 @@ 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.Campaign; import one.talon.model.CollectionWithoutPayload; +import one.talon.model.PlaceholderDetails; import one.talon.model.Ruleset; /** @@ -45,6 +48,10 @@ public class CampaignCollectionEditedNotificationItem { @SerializedName(SERIALIZED_NAME_RULESET) private Ruleset ruleset; + public static final String SERIALIZED_NAME_PLACEHOLDERS = "placeholders"; + @SerializedName(SERIALIZED_NAME_PLACEHOLDERS) + private List placeholders = null; + public static final String SERIALIZED_NAME_COLLECTION = "collection"; @SerializedName(SERIALIZED_NAME_COLLECTION) private CollectionWithoutPayload collection; @@ -117,6 +124,37 @@ public void setRuleset(Ruleset ruleset) { } + public CampaignCollectionEditedNotificationItem placeholders(List placeholders) { + + this.placeholders = placeholders; + return this; + } + + public CampaignCollectionEditedNotificationItem addPlaceholdersItem(PlaceholderDetails placeholdersItem) { + if (this.placeholders == null) { + this.placeholders = new ArrayList(); + } + this.placeholders.add(placeholdersItem); + return this; + } + + /** + * The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign. + * @return placeholders + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign.") + + public List getPlaceholders() { + return placeholders; + } + + + public void setPlaceholders(List placeholders) { + this.placeholders = placeholders; + } + + public CampaignCollectionEditedNotificationItem collection(CollectionWithoutPayload collection) { this.collection = collection; @@ -151,12 +189,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.event, campaignCollectionEditedNotificationItem.event) && Objects.equals(this.campaign, campaignCollectionEditedNotificationItem.campaign) && Objects.equals(this.ruleset, campaignCollectionEditedNotificationItem.ruleset) && + Objects.equals(this.placeholders, campaignCollectionEditedNotificationItem.placeholders) && Objects.equals(this.collection, campaignCollectionEditedNotificationItem.collection); } @Override public int hashCode() { - return Objects.hash(event, campaign, ruleset, collection); + return Objects.hash(event, campaign, ruleset, placeholders, collection); } @@ -167,6 +206,7 @@ public String toString() { sb.append(" event: ").append(toIndentedString(event)).append("\n"); sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); sb.append(" ruleset: ").append(toIndentedString(ruleset)).append("\n"); + sb.append(" placeholders: ").append(toIndentedString(placeholders)).append("\n"); sb.append(" collection: ").append(toIndentedString(collection)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/CampaignCreatedNotificationItem.java b/src/main/java/one/talon/model/CampaignCreatedNotificationItem.java index 62942a68..21d265a3 100644 --- a/src/main/java/one/talon/model/CampaignCreatedNotificationItem.java +++ b/src/main/java/one/talon/model/CampaignCreatedNotificationItem.java @@ -23,8 +23,11 @@ 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.Campaign; import one.talon.model.CampaignEvaluationPosition; +import one.talon.model.PlaceholderDetails; import one.talon.model.Ruleset; /** @@ -45,6 +48,10 @@ public class CampaignCreatedNotificationItem { @SerializedName(SERIALIZED_NAME_RULESET) private Ruleset ruleset; + public static final String SERIALIZED_NAME_PLACEHOLDERS = "placeholders"; + @SerializedName(SERIALIZED_NAME_PLACEHOLDERS) + private List placeholders = null; + public static final String SERIALIZED_NAME_EVALUATION_POSITION = "evaluationPosition"; @SerializedName(SERIALIZED_NAME_EVALUATION_POSITION) private CampaignEvaluationPosition evaluationPosition; @@ -117,6 +124,37 @@ public void setRuleset(Ruleset ruleset) { } + public CampaignCreatedNotificationItem placeholders(List placeholders) { + + this.placeholders = placeholders; + return this; + } + + public CampaignCreatedNotificationItem addPlaceholdersItem(PlaceholderDetails placeholdersItem) { + if (this.placeholders == null) { + this.placeholders = new ArrayList(); + } + this.placeholders.add(placeholdersItem); + return this; + } + + /** + * The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign. + * @return placeholders + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign.") + + public List getPlaceholders() { + return placeholders; + } + + + public void setPlaceholders(List placeholders) { + this.placeholders = placeholders; + } + + public CampaignCreatedNotificationItem evaluationPosition(CampaignEvaluationPosition evaluationPosition) { this.evaluationPosition = evaluationPosition; @@ -151,12 +189,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.event, campaignCreatedNotificationItem.event) && Objects.equals(this.campaign, campaignCreatedNotificationItem.campaign) && Objects.equals(this.ruleset, campaignCreatedNotificationItem.ruleset) && + Objects.equals(this.placeholders, campaignCreatedNotificationItem.placeholders) && Objects.equals(this.evaluationPosition, campaignCreatedNotificationItem.evaluationPosition); } @Override public int hashCode() { - return Objects.hash(event, campaign, ruleset, evaluationPosition); + return Objects.hash(event, campaign, ruleset, placeholders, evaluationPosition); } @@ -167,6 +206,7 @@ public String toString() { sb.append(" event: ").append(toIndentedString(event)).append("\n"); sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); sb.append(" ruleset: ").append(toIndentedString(ruleset)).append("\n"); + sb.append(" placeholders: ").append(toIndentedString(placeholders)).append("\n"); sb.append(" evaluationPosition: ").append(toIndentedString(evaluationPosition)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/CampaignEditedNotificationItem.java b/src/main/java/one/talon/model/CampaignEditedNotificationItem.java index da8cc6ed..73b592f1 100644 --- a/src/main/java/one/talon/model/CampaignEditedNotificationItem.java +++ b/src/main/java/one/talon/model/CampaignEditedNotificationItem.java @@ -23,7 +23,10 @@ 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.Campaign; +import one.talon.model.PlaceholderDetails; import one.talon.model.Ruleset; /** @@ -48,6 +51,10 @@ public class CampaignEditedNotificationItem { @SerializedName(SERIALIZED_NAME_RULESET) private Ruleset ruleset; + public static final String SERIALIZED_NAME_PLACEHOLDERS = "placeholders"; + @SerializedName(SERIALIZED_NAME_PLACEHOLDERS) + private List placeholders = null; + public CampaignEditedNotificationItem event(String event) { @@ -138,6 +145,37 @@ public void setRuleset(Ruleset ruleset) { } + public CampaignEditedNotificationItem placeholders(List placeholders) { + + this.placeholders = placeholders; + return this; + } + + public CampaignEditedNotificationItem addPlaceholdersItem(PlaceholderDetails placeholdersItem) { + if (this.placeholders == null) { + this.placeholders = new ArrayList(); + } + this.placeholders.add(placeholdersItem); + return this; + } + + /** + * The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign. + * @return placeholders + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign.") + + public List getPlaceholders() { + return placeholders; + } + + + public void setPlaceholders(List placeholders) { + this.placeholders = placeholders; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -150,12 +188,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.event, campaignEditedNotificationItem.event) && Objects.equals(this.campaign, campaignEditedNotificationItem.campaign) && Objects.equals(this.oldCampaign, campaignEditedNotificationItem.oldCampaign) && - Objects.equals(this.ruleset, campaignEditedNotificationItem.ruleset); + Objects.equals(this.ruleset, campaignEditedNotificationItem.ruleset) && + Objects.equals(this.placeholders, campaignEditedNotificationItem.placeholders); } @Override public int hashCode() { - return Objects.hash(event, campaign, oldCampaign, ruleset); + return Objects.hash(event, campaign, oldCampaign, ruleset, placeholders); } @@ -167,6 +206,7 @@ public String toString() { sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); sb.append(" oldCampaign: ").append(toIndentedString(oldCampaign)).append("\n"); sb.append(" ruleset: ").append(toIndentedString(ruleset)).append("\n"); + sb.append(" placeholders: ").append(toIndentedString(placeholders)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/CampaignRulesetChangedNotificationItem.java b/src/main/java/one/talon/model/CampaignRulesetChangedNotificationItem.java index 0a9ba4a2..ef4e69d3 100644 --- a/src/main/java/one/talon/model/CampaignRulesetChangedNotificationItem.java +++ b/src/main/java/one/talon/model/CampaignRulesetChangedNotificationItem.java @@ -23,7 +23,10 @@ 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.Campaign; +import one.talon.model.PlaceholderDetails; import one.talon.model.Ruleset; /** @@ -44,10 +47,18 @@ public class CampaignRulesetChangedNotificationItem { @SerializedName(SERIALIZED_NAME_OLD_RULESET) private Ruleset oldRuleset; + public static final String SERIALIZED_NAME_OLD_PLACEHOLDERS = "oldPlaceholders"; + @SerializedName(SERIALIZED_NAME_OLD_PLACEHOLDERS) + private List oldPlaceholders = null; + public static final String SERIALIZED_NAME_RULESET = "ruleset"; @SerializedName(SERIALIZED_NAME_RULESET) private Ruleset ruleset; + public static final String SERIALIZED_NAME_PLACEHOLDERS = "placeholders"; + @SerializedName(SERIALIZED_NAME_PLACEHOLDERS) + private List placeholders = null; + public CampaignRulesetChangedNotificationItem event(String event) { @@ -116,6 +127,37 @@ public void setOldRuleset(Ruleset oldRuleset) { } + public CampaignRulesetChangedNotificationItem oldPlaceholders(List oldPlaceholders) { + + this.oldPlaceholders = oldPlaceholders; + return this; + } + + public CampaignRulesetChangedNotificationItem addOldPlaceholdersItem(PlaceholderDetails oldPlaceholdersItem) { + if (this.oldPlaceholders == null) { + this.oldPlaceholders = new ArrayList(); + } + this.oldPlaceholders.add(oldPlaceholdersItem); + return this; + } + + /** + * The previous details of the placeholders before the ruleset was changed. + * @return oldPlaceholders + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The previous details of the placeholders before the ruleset was changed.") + + public List getOldPlaceholders() { + return oldPlaceholders; + } + + + public void setOldPlaceholders(List oldPlaceholders) { + this.oldPlaceholders = oldPlaceholders; + } + + public CampaignRulesetChangedNotificationItem ruleset(Ruleset ruleset) { this.ruleset = ruleset; @@ -139,6 +181,37 @@ public void setRuleset(Ruleset ruleset) { } + public CampaignRulesetChangedNotificationItem placeholders(List placeholders) { + + this.placeholders = placeholders; + return this; + } + + public CampaignRulesetChangedNotificationItem addPlaceholdersItem(PlaceholderDetails placeholdersItem) { + if (this.placeholders == null) { + this.placeholders = new ArrayList(); + } + this.placeholders.add(placeholdersItem); + return this; + } + + /** + * The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign. + * @return placeholders + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign.") + + public List getPlaceholders() { + return placeholders; + } + + + public void setPlaceholders(List placeholders) { + this.placeholders = placeholders; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -151,12 +224,14 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.event, campaignRulesetChangedNotificationItem.event) && Objects.equals(this.campaign, campaignRulesetChangedNotificationItem.campaign) && Objects.equals(this.oldRuleset, campaignRulesetChangedNotificationItem.oldRuleset) && - Objects.equals(this.ruleset, campaignRulesetChangedNotificationItem.ruleset); + Objects.equals(this.oldPlaceholders, campaignRulesetChangedNotificationItem.oldPlaceholders) && + Objects.equals(this.ruleset, campaignRulesetChangedNotificationItem.ruleset) && + Objects.equals(this.placeholders, campaignRulesetChangedNotificationItem.placeholders); } @Override public int hashCode() { - return Objects.hash(event, campaign, oldRuleset, ruleset); + return Objects.hash(event, campaign, oldRuleset, oldPlaceholders, ruleset, placeholders); } @@ -167,7 +242,9 @@ public String toString() { sb.append(" event: ").append(toIndentedString(event)).append("\n"); sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); sb.append(" oldRuleset: ").append(toIndentedString(oldRuleset)).append("\n"); + sb.append(" oldPlaceholders: ").append(toIndentedString(oldPlaceholders)).append("\n"); sb.append(" ruleset: ").append(toIndentedString(ruleset)).append("\n"); + sb.append(" placeholders: ").append(toIndentedString(placeholders)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/CampaignStateChangedNotificationItem.java b/src/main/java/one/talon/model/CampaignStateChangedNotificationItem.java index 1314b239..602912cf 100644 --- a/src/main/java/one/talon/model/CampaignStateChangedNotificationItem.java +++ b/src/main/java/one/talon/model/CampaignStateChangedNotificationItem.java @@ -23,7 +23,10 @@ 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.Campaign; +import one.talon.model.PlaceholderDetails; import one.talon.model.Ruleset; /** @@ -52,6 +55,10 @@ public class CampaignStateChangedNotificationItem { @SerializedName(SERIALIZED_NAME_RULESET) private Ruleset ruleset; + public static final String SERIALIZED_NAME_PLACEHOLDERS = "placeholders"; + @SerializedName(SERIALIZED_NAME_PLACEHOLDERS) + private List placeholders = null; + public CampaignStateChangedNotificationItem event(String event) { @@ -164,6 +171,37 @@ public void setRuleset(Ruleset ruleset) { } + public CampaignStateChangedNotificationItem placeholders(List placeholders) { + + this.placeholders = placeholders; + return this; + } + + public CampaignStateChangedNotificationItem addPlaceholdersItem(PlaceholderDetails placeholdersItem) { + if (this.placeholders == null) { + this.placeholders = new ArrayList(); + } + this.placeholders.add(placeholdersItem); + return this; + } + + /** + * The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign. + * @return placeholders + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The current details of the [placeholders](https://docs.talon.one/docs/product/campaigns/templates/create-templates#use-placeholders) in the campaign.") + + public List getPlaceholders() { + return placeholders; + } + + + public void setPlaceholders(List placeholders) { + this.placeholders = placeholders; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -177,12 +215,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.campaign, campaignStateChangedNotificationItem.campaign) && Objects.equals(this.oldState, campaignStateChangedNotificationItem.oldState) && Objects.equals(this.newState, campaignStateChangedNotificationItem.newState) && - Objects.equals(this.ruleset, campaignStateChangedNotificationItem.ruleset); + Objects.equals(this.ruleset, campaignStateChangedNotificationItem.ruleset) && + Objects.equals(this.placeholders, campaignStateChangedNotificationItem.placeholders); } @Override public int hashCode() { - return Objects.hash(event, campaign, oldState, newState, ruleset); + return Objects.hash(event, campaign, oldState, newState, ruleset, placeholders); } @@ -195,6 +234,7 @@ public String toString() { sb.append(" oldState: ").append(toIndentedString(oldState)).append("\n"); sb.append(" newState: ").append(toIndentedString(newState)).append("\n"); sb.append(" ruleset: ").append(toIndentedString(ruleset)).append("\n"); + sb.append(" placeholders: ").append(toIndentedString(placeholders)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/CouponWithApplication.java b/src/main/java/one/talon/model/CouponWithApplication.java new file mode 100644 index 00000000..0484f1d2 --- /dev/null +++ b/src/main/java/one/talon/model/CouponWithApplication.java @@ -0,0 +1,777 @@ +/* + * 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 java.util.ArrayList; +import java.util.List; +import one.talon.model.LimitConfig; +import org.threeten.bp.OffsetDateTime; + +/** + * CouponWithApplication + */ + +public class CouponWithApplication { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_CREATED = "created"; + @SerializedName(SERIALIZED_NAME_CREATED) + private OffsetDateTime created; + + public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) + private Long campaignId; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; + + public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; + @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) + private Long usageLimit; + + public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; + @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) + private BigDecimal discountLimit; + + public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; + @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) + private Long reservationLimit; + + public static final String SERIALIZED_NAME_START_DATE = "startDate"; + @SerializedName(SERIALIZED_NAME_START_DATE) + private OffsetDateTime startDate; + + public static final String SERIALIZED_NAME_EXPIRY_DATE = "expiryDate"; + @SerializedName(SERIALIZED_NAME_EXPIRY_DATE) + private OffsetDateTime expiryDate; + + public static final String SERIALIZED_NAME_LIMITS = "limits"; + @SerializedName(SERIALIZED_NAME_LIMITS) + private List limits = null; + + public static final String SERIALIZED_NAME_USAGE_COUNTER = "usageCounter"; + @SerializedName(SERIALIZED_NAME_USAGE_COUNTER) + private Long usageCounter; + + public static final String SERIALIZED_NAME_DISCOUNT_COUNTER = "discountCounter"; + @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNTER) + private BigDecimal discountCounter; + + public static final String SERIALIZED_NAME_DISCOUNT_REMAINDER = "discountRemainder"; + @SerializedName(SERIALIZED_NAME_DISCOUNT_REMAINDER) + private BigDecimal discountRemainder; + + public static final String SERIALIZED_NAME_RESERVATION_COUNTER = "reservationCounter"; + @SerializedName(SERIALIZED_NAME_RESERVATION_COUNTER) + private BigDecimal reservationCounter; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private Object attributes; + + public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; + @SerializedName(SERIALIZED_NAME_REFERRAL_ID) + private Long referralId; + + public static final String SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID = "recipientIntegrationId"; + @SerializedName(SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID) + private String recipientIntegrationId; + + public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; + @SerializedName(SERIALIZED_NAME_IMPORT_ID) + private Long importId; + + public static final String SERIALIZED_NAME_RESERVATION = "reservation"; + @SerializedName(SERIALIZED_NAME_RESERVATION) + private Boolean reservation = true; + + public static final String SERIALIZED_NAME_BATCH_ID = "batchId"; + @SerializedName(SERIALIZED_NAME_BATCH_ID) + private String batchId; + + public static final String SERIALIZED_NAME_IS_RESERVATION_MANDATORY = "isReservationMandatory"; + @SerializedName(SERIALIZED_NAME_IS_RESERVATION_MANDATORY) + private Boolean isReservationMandatory = false; + + public static final String SERIALIZED_NAME_IMPLICITLY_RESERVED = "implicitlyReserved"; + @SerializedName(SERIALIZED_NAME_IMPLICITLY_RESERVED) + private Boolean implicitlyReserved; + + public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; + @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + private Long applicationId; + + public static final String SERIALIZED_NAME_APPLICATION_NAME = "applicationName"; + @SerializedName(SERIALIZED_NAME_APPLICATION_NAME) + private String applicationName; + + + public CouponWithApplication id(Long id) { + + this.id = id; + return this; + } + + /** + * The internal ID of the coupon. + * @return id + **/ + @ApiModelProperty(example = "6", required = true, value = "The internal ID of the coupon.") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public CouponWithApplication created(OffsetDateTime created) { + + this.created = created; + return this; + } + + /** + * The time the coupon was created. + * @return created + **/ + @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time the coupon was created.") + + public OffsetDateTime getCreated() { + return created; + } + + + public void setCreated(OffsetDateTime created) { + this.created = created; + } + + + public CouponWithApplication campaignId(Long campaignId) { + + this.campaignId = campaignId; + return this; + } + + /** + * The ID of the campaign that owns this entity. + * @return campaignId + **/ + @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") + + public Long getCampaignId() { + return campaignId; + } + + + public void setCampaignId(Long campaignId) { + this.campaignId = campaignId; + } + + + public CouponWithApplication value(String value) { + + this.value = value; + return this; + } + + /** + * The coupon code. + * @return value + **/ + @ApiModelProperty(example = "XMAS-20-2021", required = true, value = "The coupon code.") + + public String getValue() { + return value; + } + + + public void setValue(String value) { + this.value = value; + } + + + public CouponWithApplication usageLimit(Long usageLimit) { + + this.usageLimit = usageLimit; + return this; + } + + /** + * The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + * minimum: 0 + * maximum: 999999 + * @return usageLimit + **/ + @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") + + public Long getUsageLimit() { + return usageLimit; + } + + + public void setUsageLimit(Long usageLimit) { + this.usageLimit = usageLimit; + } + + + public CouponWithApplication discountLimit(BigDecimal discountLimit) { + + this.discountLimit = discountLimit; + return this; + } + + /** + * The total discount value that the code can give. Typically used to represent a gift card value. + * minimum: 0 + * maximum: 1E+15 + * @return discountLimit + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "30.0", value = "The total discount value that the code can give. Typically used to represent a gift card value. ") + + public BigDecimal getDiscountLimit() { + return discountLimit; + } + + + public void setDiscountLimit(BigDecimal discountLimit) { + this.discountLimit = discountLimit; + } + + + public CouponWithApplication reservationLimit(Long reservationLimit) { + + this.reservationLimit = reservationLimit; + return this; + } + + /** + * The number of reservations that can be made with this coupon code. + * minimum: 0 + * maximum: 999999 + * @return reservationLimit + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") + + public Long getReservationLimit() { + return reservationLimit; + } + + + public void setReservationLimit(Long reservationLimit) { + this.reservationLimit = reservationLimit; + } + + + public CouponWithApplication startDate(OffsetDateTime startDate) { + + this.startDate = startDate; + return this; + } + + /** + * Timestamp at which point the coupon becomes valid. + * @return startDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2020-01-24T14:15:22Z", value = "Timestamp at which point the coupon becomes valid.") + + public OffsetDateTime getStartDate() { + return startDate; + } + + + public void setStartDate(OffsetDateTime startDate) { + this.startDate = startDate; + } + + + public CouponWithApplication expiryDate(OffsetDateTime expiryDate) { + + this.expiryDate = expiryDate; + return this; + } + + /** + * Expiration date of the coupon. Coupon never expires if this is omitted. + * @return expiryDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2023-08-24T14:15:22Z", value = "Expiration date of the coupon. Coupon never expires if this is omitted.") + + public OffsetDateTime getExpiryDate() { + return expiryDate; + } + + + public void setExpiryDate(OffsetDateTime expiryDate) { + this.expiryDate = expiryDate; + } + + + public CouponWithApplication limits(List limits) { + + this.limits = limits; + return this; + } + + public CouponWithApplication addLimitsItem(LimitConfig limitsItem) { + if (this.limits == null) { + this.limits = new ArrayList(); + } + this.limits.add(limitsItem); + return this; + } + + /** + * Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. + * @return limits + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. ") + + public List getLimits() { + return limits; + } + + + public void setLimits(List limits) { + this.limits = limits; + } + + + public CouponWithApplication usageCounter(Long usageCounter) { + + this.usageCounter = usageCounter; + return this; + } + + /** + * The number of times the coupon has been successfully redeemed. + * @return usageCounter + **/ + @ApiModelProperty(example = "10", required = true, value = "The number of times the coupon has been successfully redeemed.") + + public Long getUsageCounter() { + return usageCounter; + } + + + public void setUsageCounter(Long usageCounter) { + this.usageCounter = usageCounter; + } + + + public CouponWithApplication discountCounter(BigDecimal discountCounter) { + + this.discountCounter = discountCounter; + return this; + } + + /** + * The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. + * @return discountCounter + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "10.0", value = "The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon.") + + public BigDecimal getDiscountCounter() { + return discountCounter; + } + + + public void setDiscountCounter(BigDecimal discountCounter) { + this.discountCounter = discountCounter; + } + + + public CouponWithApplication discountRemainder(BigDecimal discountRemainder) { + + this.discountRemainder = discountRemainder; + return this; + } + + /** + * The remaining discount this coupon can give. + * @return discountRemainder + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "5.0", value = "The remaining discount this coupon can give.") + + public BigDecimal getDiscountRemainder() { + return discountRemainder; + } + + + public void setDiscountRemainder(BigDecimal discountRemainder) { + this.discountRemainder = discountRemainder; + } + + + public CouponWithApplication reservationCounter(BigDecimal reservationCounter) { + + this.reservationCounter = reservationCounter; + return this; + } + + /** + * The number of times this coupon has been reserved. + * @return reservationCounter + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1.0", value = "The number of times this coupon has been reserved.") + + public BigDecimal getReservationCounter() { + return reservationCounter; + } + + + public void setReservationCounter(BigDecimal reservationCounter) { + this.reservationCounter = reservationCounter; + } + + + public CouponWithApplication attributes(Object attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Custom attributes associated with this coupon. + * @return attributes + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Custom attributes associated with this coupon.") + + public Object getAttributes() { + return attributes; + } + + + public void setAttributes(Object attributes) { + this.attributes = attributes; + } + + + public CouponWithApplication referralId(Long referralId) { + + this.referralId = referralId; + return this; + } + + /** + * The integration ID of the referring customer (if any) for whom this coupon was created as an effect. + * @return referralId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "326632952", value = "The integration ID of the referring customer (if any) for whom this coupon was created as an effect.") + + public Long getReferralId() { + return referralId; + } + + + public void setReferralId(Long referralId) { + this.referralId = referralId; + } + + + public CouponWithApplication recipientIntegrationId(String recipientIntegrationId) { + + this.recipientIntegrationId = recipientIntegrationId; + return this; + } + + /** + * The Integration ID of the customer that is allowed to redeem this coupon. + * @return recipientIntegrationId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "URNGV8294NV", value = "The Integration ID of the customer that is allowed to redeem this coupon.") + + public String getRecipientIntegrationId() { + return recipientIntegrationId; + } + + + public void setRecipientIntegrationId(String recipientIntegrationId) { + this.recipientIntegrationId = recipientIntegrationId; + } + + + public CouponWithApplication importId(Long importId) { + + this.importId = importId; + return this; + } + + /** + * The ID of the Import which created this coupon. + * @return importId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "4", value = "The ID of the Import which created this coupon.") + + public Long getImportId() { + return importId; + } + + + public void setImportId(Long importId) { + this.importId = importId; + } + + + public CouponWithApplication reservation(Boolean reservation) { + + this.reservation = reservation; + return this; + } + + /** + * Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. + * @return reservation + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. ") + + public Boolean getReservation() { + return reservation; + } + + + public void setReservation(Boolean reservation) { + this.reservation = reservation; + } + + + public CouponWithApplication batchId(String batchId) { + + this.batchId = batchId; + return this; + } + + /** + * The id of the batch the coupon belongs to. + * @return batchId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "32535-43255", value = "The id of the batch the coupon belongs to.") + + public String getBatchId() { + return batchId; + } + + + public void setBatchId(String batchId) { + this.batchId = batchId; + } + + + public CouponWithApplication isReservationMandatory(Boolean isReservationMandatory) { + + this.isReservationMandatory = isReservationMandatory; + return this; + } + + /** + * An indication of whether the code can be redeemed only if it has been reserved first. + * @return isReservationMandatory + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "An indication of whether the code can be redeemed only if it has been reserved first.") + + public Boolean getIsReservationMandatory() { + return isReservationMandatory; + } + + + public void setIsReservationMandatory(Boolean isReservationMandatory) { + this.isReservationMandatory = isReservationMandatory; + } + + + public CouponWithApplication implicitlyReserved(Boolean implicitlyReserved) { + + this.implicitlyReserved = implicitlyReserved; + return this; + } + + /** + * An indication of whether the coupon is implicitly reserved for all customers. + * @return implicitlyReserved + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "An indication of whether the coupon is implicitly reserved for all customers.") + + public Boolean getImplicitlyReserved() { + return implicitlyReserved; + } + + + public void setImplicitlyReserved(Boolean implicitlyReserved) { + this.implicitlyReserved = implicitlyReserved; + } + + + public CouponWithApplication applicationId(Long applicationId) { + + this.applicationId = applicationId; + return this; + } + + /** + * The ID of the application. + * @return applicationId + **/ + @ApiModelProperty(example = "123", required = true, value = "The ID of the application.") + + public Long getApplicationId() { + return applicationId; + } + + + public void setApplicationId(Long applicationId) { + this.applicationId = applicationId; + } + + + public CouponWithApplication applicationName(String applicationName) { + + this.applicationName = applicationName; + return this; + } + + /** + * Name of the Application that is connected to the coupon. + * @return applicationName + **/ + @ApiModelProperty(example = "Test Application", required = true, value = "Name of the Application that is connected to the coupon.") + + public String getApplicationName() { + return applicationName; + } + + + public void setApplicationName(String applicationName) { + this.applicationName = applicationName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CouponWithApplication couponWithApplication = (CouponWithApplication) o; + return Objects.equals(this.id, couponWithApplication.id) && + Objects.equals(this.created, couponWithApplication.created) && + Objects.equals(this.campaignId, couponWithApplication.campaignId) && + Objects.equals(this.value, couponWithApplication.value) && + Objects.equals(this.usageLimit, couponWithApplication.usageLimit) && + Objects.equals(this.discountLimit, couponWithApplication.discountLimit) && + Objects.equals(this.reservationLimit, couponWithApplication.reservationLimit) && + Objects.equals(this.startDate, couponWithApplication.startDate) && + Objects.equals(this.expiryDate, couponWithApplication.expiryDate) && + Objects.equals(this.limits, couponWithApplication.limits) && + Objects.equals(this.usageCounter, couponWithApplication.usageCounter) && + Objects.equals(this.discountCounter, couponWithApplication.discountCounter) && + Objects.equals(this.discountRemainder, couponWithApplication.discountRemainder) && + Objects.equals(this.reservationCounter, couponWithApplication.reservationCounter) && + Objects.equals(this.attributes, couponWithApplication.attributes) && + Objects.equals(this.referralId, couponWithApplication.referralId) && + Objects.equals(this.recipientIntegrationId, couponWithApplication.recipientIntegrationId) && + Objects.equals(this.importId, couponWithApplication.importId) && + Objects.equals(this.reservation, couponWithApplication.reservation) && + Objects.equals(this.batchId, couponWithApplication.batchId) && + Objects.equals(this.isReservationMandatory, couponWithApplication.isReservationMandatory) && + Objects.equals(this.implicitlyReserved, couponWithApplication.implicitlyReserved) && + Objects.equals(this.applicationId, couponWithApplication.applicationId) && + Objects.equals(this.applicationName, couponWithApplication.applicationName); + } + + @Override + public int hashCode() { + return Objects.hash(id, created, campaignId, value, usageLimit, discountLimit, reservationLimit, startDate, expiryDate, limits, usageCounter, discountCounter, discountRemainder, reservationCounter, attributes, referralId, recipientIntegrationId, importId, reservation, batchId, isReservationMandatory, implicitlyReserved, applicationId, applicationName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CouponWithApplication {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).append("\n"); + sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" usageLimit: ").append(toIndentedString(usageLimit)).append("\n"); + sb.append(" discountLimit: ").append(toIndentedString(discountLimit)).append("\n"); + sb.append(" reservationLimit: ").append(toIndentedString(reservationLimit)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n"); + sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); + sb.append(" usageCounter: ").append(toIndentedString(usageCounter)).append("\n"); + sb.append(" discountCounter: ").append(toIndentedString(discountCounter)).append("\n"); + sb.append(" discountRemainder: ").append(toIndentedString(discountRemainder)).append("\n"); + sb.append(" reservationCounter: ").append(toIndentedString(reservationCounter)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" referralId: ").append(toIndentedString(referralId)).append("\n"); + sb.append(" recipientIntegrationId: ").append(toIndentedString(recipientIntegrationId)).append("\n"); + sb.append(" importId: ").append(toIndentedString(importId)).append("\n"); + sb.append(" reservation: ").append(toIndentedString(reservation)).append("\n"); + sb.append(" batchId: ").append(toIndentedString(batchId)).append("\n"); + sb.append(" isReservationMandatory: ").append(toIndentedString(isReservationMandatory)).append("\n"); + sb.append(" implicitlyReserved: ").append(toIndentedString(implicitlyReserved)).append("\n"); + sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); + sb.append(" applicationName: ").append(toIndentedString(applicationName)).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/CustomerProfileIntegrationRequestV2.java b/src/main/java/one/talon/model/CustomerProfileIntegrationRequestV2.java index 1d61ba85..c95831f9 100644 --- a/src/main/java/one/talon/model/CustomerProfileIntegrationRequestV2.java +++ b/src/main/java/one/talon/model/CustomerProfileIntegrationRequestV2.java @@ -41,10 +41,6 @@ public class CustomerProfileIntegrationRequestV2 { @SerializedName(SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS) private List evaluableCampaignIds = null; - public static final String SERIALIZED_NAME_AUDIENCES_CHANGES = "audiencesChanges"; - @SerializedName(SERIALIZED_NAME_AUDIENCES_CHANGES) - private ProfileAudiencesChanges audiencesChanges; - /** * Gets or Sets responseContent */ @@ -104,6 +100,10 @@ public ResponseContentEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_RESPONSE_CONTENT) private List responseContent = null; + public static final String SERIALIZED_NAME_AUDIENCES_CHANGES = "audiencesChanges"; + @SerializedName(SERIALIZED_NAME_AUDIENCES_CHANGES) + private ProfileAudiencesChanges audiencesChanges; + public CustomerProfileIntegrationRequestV2 attributes(Object attributes) { @@ -159,29 +159,6 @@ public void setEvaluableCampaignIds(List evaluableCampaignIds) { } - public CustomerProfileIntegrationRequestV2 audiencesChanges(ProfileAudiencesChanges audiencesChanges) { - - this.audiencesChanges = audiencesChanges; - return this; - } - - /** - * Get audiencesChanges - * @return audiencesChanges - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public ProfileAudiencesChanges getAudiencesChanges() { - return audiencesChanges; - } - - - public void setAudiencesChanges(ProfileAudiencesChanges audiencesChanges) { - this.audiencesChanges = audiencesChanges; - } - - public CustomerProfileIntegrationRequestV2 responseContent(List responseContent) { this.responseContent = responseContent; @@ -197,11 +174,11 @@ public CustomerProfileIntegrationRequestV2 addResponseContentItem(ResponseConten } /** - * Extends the response with the chosen data entities. Use this property to get as much data as you need in one _Update customer profile_ request instead of sending extra requests to other endpoints. + * Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. * @return responseContent **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[triggeredCampaigns, customerProfile]", value = "Extends the response with the chosen data entities. Use this property to get as much data as you need in one _Update customer profile_ request instead of sending extra requests to other endpoints. ") + @ApiModelProperty(example = "[triggeredCampaigns, customerProfile]", value = "Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. ") public List getResponseContent() { return responseContent; @@ -213,6 +190,29 @@ public void setResponseContent(List responseContent) { } + public CustomerProfileIntegrationRequestV2 audiencesChanges(ProfileAudiencesChanges audiencesChanges) { + + this.audiencesChanges = audiencesChanges; + return this; + } + + /** + * Get audiencesChanges + * @return audiencesChanges + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ProfileAudiencesChanges getAudiencesChanges() { + return audiencesChanges; + } + + + public void setAudiencesChanges(ProfileAudiencesChanges audiencesChanges) { + this.audiencesChanges = audiencesChanges; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -224,13 +224,13 @@ public boolean equals(java.lang.Object o) { CustomerProfileIntegrationRequestV2 customerProfileIntegrationRequestV2 = (CustomerProfileIntegrationRequestV2) o; return Objects.equals(this.attributes, customerProfileIntegrationRequestV2.attributes) && Objects.equals(this.evaluableCampaignIds, customerProfileIntegrationRequestV2.evaluableCampaignIds) && - Objects.equals(this.audiencesChanges, customerProfileIntegrationRequestV2.audiencesChanges) && - Objects.equals(this.responseContent, customerProfileIntegrationRequestV2.responseContent); + Objects.equals(this.responseContent, customerProfileIntegrationRequestV2.responseContent) && + Objects.equals(this.audiencesChanges, customerProfileIntegrationRequestV2.audiencesChanges); } @Override public int hashCode() { - return Objects.hash(attributes, evaluableCampaignIds, audiencesChanges, responseContent); + return Objects.hash(attributes, evaluableCampaignIds, responseContent, audiencesChanges); } @@ -240,8 +240,8 @@ public String toString() { sb.append("class CustomerProfileIntegrationRequestV2 {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" evaluableCampaignIds: ").append(toIndentedString(evaluableCampaignIds)).append("\n"); - sb.append(" audiencesChanges: ").append(toIndentedString(audiencesChanges)).append("\n"); sb.append(" responseContent: ").append(toIndentedString(responseContent)).append("\n"); + sb.append(" audiencesChanges: ").append(toIndentedString(audiencesChanges)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/EventAttributesEntity.java b/src/main/java/one/talon/model/EventAttributesEntity.java new file mode 100644 index 00000000..6ca9414e --- /dev/null +++ b/src/main/java/one/talon/model/EventAttributesEntity.java @@ -0,0 +1,127 @@ +/* + * 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; + +/** + * EventAttributesEntity + */ + +public class EventAttributesEntity { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private Object attributes; + + + public EventAttributesEntity type(String type) { + + this.type = type; + return this; + } + + /** + * A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. + * @return type + **/ + @ApiModelProperty(example = "pageViewed", required = true, value = "A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. ") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public EventAttributesEntity attributes(Object attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). + * @return attributes + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "{\"myAttribute\":\"myValue\"}", value = "Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute).") + + public Object getAttributes() { + return attributes; + } + + + public void setAttributes(Object attributes) { + this.attributes = attributes; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventAttributesEntity eventAttributesEntity = (EventAttributesEntity) o; + return Objects.equals(this.type, eventAttributesEntity.type) && + Objects.equals(this.attributes, eventAttributesEntity.attributes); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventAttributesEntity {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).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/Experiment.java b/src/main/java/one/talon/model/Experiment.java index 058b3520..ad0ae4d5 100644 --- a/src/main/java/one/talon/model/Experiment.java +++ b/src/main/java/one/talon/model/Experiment.java @@ -65,7 +65,9 @@ public class Experiment { public enum StateEnum { ENABLED("enabled"), - DISABLED("disabled"); + DISABLED("disabled"), + + ARCHIVED("archived"); private String value; @@ -191,11 +193,11 @@ public Experiment isVariantAssignmentExternal(Boolean isVariantAssignmentExterna } /** - * The source of the assignment. - false - The assignment to the variant is handled internally by the Talon.Oneandled internally by the Talon.One. - true - The assignment to the variant handled externally. + * The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. * @return isVariantAssignmentExternal **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The source of the assignment. - false - The assignment to the variant is handled internally by the Talon.Oneandled internally by the Talon.One. - true - The assignment to the variant handled externally. ") + @ApiModelProperty(value = "The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. ") public Boolean getIsVariantAssignmentExternal() { return isVariantAssignmentExternal; @@ -263,8 +265,7 @@ public Experiment state(StateEnum state) { * A disabled experiment is not evaluated for rules or coupons. * @return state **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "enabled", value = "A disabled experiment is not evaluated for rules or coupons. ") + @ApiModelProperty(example = "enabled", required = true, value = "A disabled experiment is not evaluated for rules or coupons. ") public StateEnum getState() { return state; diff --git a/src/main/java/one/talon/model/ExperimentCampaignCopy.java b/src/main/java/one/talon/model/ExperimentCampaignCopy.java new file mode 100644 index 00000000..5b13c224 --- /dev/null +++ b/src/main/java/one/talon/model/ExperimentCampaignCopy.java @@ -0,0 +1,255 @@ +/* + * 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 org.threeten.bp.OffsetDateTime; + +/** + * ExperimentCampaignCopy + */ + +public class ExperimentCampaignCopy { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + 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_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) + private List tags = null; + + public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; + @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) + private Long evaluationGroupId; + + + public ExperimentCampaignCopy name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the copied campaign (Defaults to \"Copy of original campaign name\"). + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Copy of Summer promotions", value = "Name of the copied campaign (Defaults to \"Copy of original campaign name\").") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public ExperimentCampaignCopy description(String description) { + + this.description = description; + return this; + } + + /** + * A detailed description of the campaign. + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Campaign for all summer 2021 promotions", value = "A detailed description of the campaign.") + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + public ExperimentCampaignCopy startTime(OffsetDateTime startTime) { + + this.startTime = startTime; + return this; + } + + /** + * Timestamp when the campaign will become active. + * @return startTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-06-01T09:00:27.993483Z", value = "Timestamp when the campaign will become active.") + + public OffsetDateTime getStartTime() { + return startTime; + } + + + public void setStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + } + + + public ExperimentCampaignCopy endTime(OffsetDateTime endTime) { + + this.endTime = endTime; + return this; + } + + /** + * Timestamp when the campaign will become inactive. + * @return endTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-09-10T01:00:00.993483Z", value = "Timestamp when the campaign will become inactive.") + + public OffsetDateTime getEndTime() { + return endTime; + } + + + public void setEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + } + + + public ExperimentCampaignCopy tags(List tags) { + + this.tags = tags; + return this; + } + + public ExperimentCampaignCopy addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * A list of tags for the campaign. + * @return tags + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[Summer, Shoes]", value = "A list of tags for the campaign.") + + public List getTags() { + return tags; + } + + + public void setTags(List tags) { + this.tags = tags; + } + + + public ExperimentCampaignCopy evaluationGroupId(Long 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 Long getEvaluationGroupId() { + return evaluationGroupId; + } + + + public void setEvaluationGroupId(Long evaluationGroupId) { + this.evaluationGroupId = evaluationGroupId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExperimentCampaignCopy experimentCampaignCopy = (ExperimentCampaignCopy) o; + return Objects.equals(this.name, experimentCampaignCopy.name) && + Objects.equals(this.description, experimentCampaignCopy.description) && + Objects.equals(this.startTime, experimentCampaignCopy.startTime) && + Objects.equals(this.endTime, experimentCampaignCopy.endTime) && + Objects.equals(this.tags, experimentCampaignCopy.tags) && + Objects.equals(this.evaluationGroupId, experimentCampaignCopy.evaluationGroupId); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, startTime, endTime, tags, evaluationGroupId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExperimentCampaignCopy {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" evaluationGroupId: ").append(toIndentedString(evaluationGroupId)).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/ExperimentCopy.java b/src/main/java/one/talon/model/ExperimentCopy.java new file mode 100644 index 00000000..bfddd236 --- /dev/null +++ b/src/main/java/one/talon/model/ExperimentCopy.java @@ -0,0 +1,127 @@ +/* + * 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.ExperimentCopyExperiment; + +/** + * ExperimentCopy + */ + +public class ExperimentCopy { + public static final String SERIALIZED_NAME_TARGET_APPLICATION_ID = "targetApplicationId"; + @SerializedName(SERIALIZED_NAME_TARGET_APPLICATION_ID) + private Long targetApplicationId; + + public static final String SERIALIZED_NAME_EXPERIMENT = "experiment"; + @SerializedName(SERIALIZED_NAME_EXPERIMENT) + private ExperimentCopyExperiment experiment; + + + public ExperimentCopy targetApplicationId(Long targetApplicationId) { + + this.targetApplicationId = targetApplicationId; + return this; + } + + /** + * The ID of the Application to copy the experiment. It is displayed in your Talon.One deployment URL. + * @return targetApplicationId + **/ + @ApiModelProperty(required = true, value = "The ID of the Application to copy the experiment. It is displayed in your Talon.One deployment URL. ") + + public Long getTargetApplicationId() { + return targetApplicationId; + } + + + public void setTargetApplicationId(Long targetApplicationId) { + this.targetApplicationId = targetApplicationId; + } + + + public ExperimentCopy experiment(ExperimentCopyExperiment experiment) { + + this.experiment = experiment; + return this; + } + + /** + * Get experiment + * @return experiment + **/ + @ApiModelProperty(required = true, value = "") + + public ExperimentCopyExperiment getExperiment() { + return experiment; + } + + + public void setExperiment(ExperimentCopyExperiment experiment) { + this.experiment = experiment; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExperimentCopy experimentCopy = (ExperimentCopy) o; + return Objects.equals(this.targetApplicationId, experimentCopy.targetApplicationId) && + Objects.equals(this.experiment, experimentCopy.experiment); + } + + @Override + public int hashCode() { + return Objects.hash(targetApplicationId, experiment); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExperimentCopy {\n"); + sb.append(" targetApplicationId: ").append(toIndentedString(targetApplicationId)).append("\n"); + sb.append(" experiment: ").append(toIndentedString(experiment)).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/ExperimentCopyExperiment.java b/src/main/java/one/talon/model/ExperimentCopyExperiment.java new file mode 100644 index 00000000..abf17b67 --- /dev/null +++ b/src/main/java/one/talon/model/ExperimentCopyExperiment.java @@ -0,0 +1,127 @@ +/* + * 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.ExperimentCampaignCopy; + +/** + * ExperimentCopyExperiment + */ + +public class ExperimentCopyExperiment { + public static final String SERIALIZED_NAME_IS_VARIANT_ASSIGNMENT_EXTERNAL = "isVariantAssignmentExternal"; + @SerializedName(SERIALIZED_NAME_IS_VARIANT_ASSIGNMENT_EXTERNAL) + private Boolean isVariantAssignmentExternal; + + public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN) + private ExperimentCampaignCopy campaign; + + + public ExperimentCopyExperiment isVariantAssignmentExternal(Boolean isVariantAssignmentExternal) { + + this.isVariantAssignmentExternal = isVariantAssignmentExternal; + return this; + } + + /** + * The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. + * @return isVariantAssignmentExternal + **/ + @ApiModelProperty(required = true, value = "The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. ") + + public Boolean getIsVariantAssignmentExternal() { + return isVariantAssignmentExternal; + } + + + public void setIsVariantAssignmentExternal(Boolean isVariantAssignmentExternal) { + this.isVariantAssignmentExternal = isVariantAssignmentExternal; + } + + + public ExperimentCopyExperiment campaign(ExperimentCampaignCopy campaign) { + + this.campaign = campaign; + return this; + } + + /** + * Get campaign + * @return campaign + **/ + @ApiModelProperty(required = true, value = "") + + public ExperimentCampaignCopy getCampaign() { + return campaign; + } + + + public void setCampaign(ExperimentCampaignCopy campaign) { + this.campaign = campaign; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExperimentCopyExperiment experimentCopyExperiment = (ExperimentCopyExperiment) o; + return Objects.equals(this.isVariantAssignmentExternal, experimentCopyExperiment.isVariantAssignmentExternal) && + Objects.equals(this.campaign, experimentCopyExperiment.campaign); + } + + @Override + public int hashCode() { + return Objects.hash(isVariantAssignmentExternal, campaign); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExperimentCopyExperiment {\n"); + sb.append(" isVariantAssignmentExternal: ").append(toIndentedString(isVariantAssignmentExternal)).append("\n"); + sb.append(" campaign: ").append(toIndentedString(campaign)).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/History.java b/src/main/java/one/talon/model/History.java new file mode 100644 index 00000000..56607509 --- /dev/null +++ b/src/main/java/one/talon/model/History.java @@ -0,0 +1,241 @@ +/* + * 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.BestPriorPriceMetadata; +import org.threeten.bp.OffsetDateTime; + +/** + * History + */ + +public class History { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_OBSERVED_AT = "observedAt"; + @SerializedName(SERIALIZED_NAME_OBSERVED_AT) + private OffsetDateTime observedAt; + + public static final String SERIALIZED_NAME_CONTEXT_ID = "contextId"; + @SerializedName(SERIALIZED_NAME_CONTEXT_ID) + private String contextId; + + public static final String SERIALIZED_NAME_PRICE = "price"; + @SerializedName(SERIALIZED_NAME_PRICE) + private BigDecimal price; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private BestPriorPriceMetadata metadata; + + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + private Object target; + + + public History id(Long id) { + + this.id = id; + return this; + } + + /** + * The ID of the historical price. + * @return id + **/ + @ApiModelProperty(example = "1", required = true, value = "The ID of the historical price.") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public History observedAt(OffsetDateTime observedAt) { + + this.observedAt = observedAt; + return this; + } + + /** + * The date and time when the price was observed. + * @return observedAt + **/ + @ApiModelProperty(example = "2020-11-10T23:00Z", required = true, value = "The date and time when the price was observed.") + + public OffsetDateTime getObservedAt() { + return observedAt; + } + + + public void setObservedAt(OffsetDateTime observedAt) { + this.observedAt = observedAt; + } + + + public History contextId(String contextId) { + + this.contextId = contextId; + return this; + } + + /** + * Identifier of the relevant context at the time the price was observed (e.g. summer sale). + * @return contextId + **/ + @ApiModelProperty(example = "Summer Sale 2025", required = true, value = "Identifier of the relevant context at the time the price was observed (e.g. summer sale). ") + + public String getContextId() { + return contextId; + } + + + public void setContextId(String contextId) { + this.contextId = contextId; + } + + + public History price(BigDecimal price) { + + this.price = price; + return this; + } + + /** + * Price of the item. + * @return price + **/ + @ApiModelProperty(example = "99.99", required = true, value = "Price of the item.") + + public BigDecimal getPrice() { + return price; + } + + + public void setPrice(BigDecimal price) { + this.price = price; + } + + + public History metadata(BestPriorPriceMetadata metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @ApiModelProperty(required = true, value = "") + + public BestPriorPriceMetadata getMetadata() { + return metadata; + } + + + public void setMetadata(BestPriorPriceMetadata metadata) { + this.metadata = metadata; + } + + + public History target(Object target) { + + this.target = target; + return this; + } + + /** + * Get target + * @return target + **/ + @ApiModelProperty(required = true, value = "") + + public Object getTarget() { + return target; + } + + + public void setTarget(Object target) { + this.target = target; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + History history = (History) o; + return Objects.equals(this.id, history.id) && + Objects.equals(this.observedAt, history.observedAt) && + Objects.equals(this.contextId, history.contextId) && + Objects.equals(this.price, history.price) && + Objects.equals(this.metadata, history.metadata) && + Objects.equals(this.target, history.target); + } + + @Override + public int hashCode() { + return Objects.hash(id, observedAt, contextId, price, metadata, target); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class History {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" observedAt: ").append(toIndentedString(observedAt)).append("\n"); + sb.append(" contextId: ").append(toIndentedString(contextId)).append("\n"); + sb.append(" price: ").append(toIndentedString(price)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" target: ").append(toIndentedString(target)).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/InlineResponse20015.java b/src/main/java/one/talon/model/InlineResponse20015.java index d6387ea7..1eabe5b2 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.LoyaltyProgram; +import one.talon.model.Experiment; /** * 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 totalResultSize(Long totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20015 data(List data) { + public InlineResponse20015 data(List data) { this.data = data; return this; } - public InlineResponse20015 addDataItem(LoyaltyProgram dataItem) { + public InlineResponse20015 addDataItem(Experiment dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20015 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; } diff --git a/src/main/java/one/talon/model/InlineResponse20016.java b/src/main/java/one/talon/model/InlineResponse20016.java index fc7e4655..4cca201e 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.LoyaltyDashboardData; +import one.talon.model.LoyaltyProgram; /** * InlineResponse20016 @@ -38,7 +38,7 @@ public class InlineResponse20016 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20016 totalResultSize(Long totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20016 data(List data) { + public InlineResponse20016 data(List data) { this.data = data; return this; } - public InlineResponse20016 addDataItem(LoyaltyDashboardData dataItem) { + public InlineResponse20016 addDataItem(LoyaltyProgram dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20016 addDataItem(LoyaltyDashboardData 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/InlineResponse20017.java b/src/main/java/one/talon/model/InlineResponse20017.java index 8a30071d..2734ede3 100644 --- a/src/main/java/one/talon/model/InlineResponse20017.java +++ b/src/main/java/one/talon/model/InlineResponse20017.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.LoyaltyDashboardData; /** * InlineResponse20017 */ public class InlineResponse20017 { - 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 Long 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) { + public InlineResponse20017 totalResultSize(Long 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 Long getTotalResultSize() { + return totalResultSize; } - public void setHasMore(Boolean hasMore) { - this.hasMore = hasMore; + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; } - public InlineResponse20017 data(List data) { + public InlineResponse20017 data(List data) { this.data = data; return this; } - public InlineResponse20017 addDataItem(LoyaltyProgramTransaction dataItem) { + public InlineResponse20017 addDataItem(LoyaltyDashboardData dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20017 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; } InlineResponse20017 inlineResponse20017 = (InlineResponse20017) o; - return Objects.equals(this.hasMore, inlineResponse20017.hasMore) && + return Objects.equals(this.totalResultSize, inlineResponse20017.totalResultSize) && Objects.equals(this.data, inlineResponse20017.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 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 65f0e067..3e4db61e 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.LoyaltyCard; +import one.talon.model.LoyaltyProgramTransaction; /** * InlineResponse20018 @@ -38,7 +38,7 @@ public class InlineResponse20018 { 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) { @@ -63,13 +63,13 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20018 data(List data) { + public InlineResponse20018 data(List data) { this.data = data; return this; } - public InlineResponse20018 addDataItem(LoyaltyCard dataItem) { + public InlineResponse20018 addDataItem(LoyaltyProgramTransaction dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20018 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/InlineResponse20019.java b/src/main/java/one/talon/model/InlineResponse20019.java index 2be2c4c7..55864015 100644 --- a/src/main/java/one/talon/model/InlineResponse20019.java +++ b/src/main/java/one/talon/model/InlineResponse20019.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; /** * InlineResponse20019 @@ -38,7 +38,7 @@ public class InlineResponse20019 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20019 hasMore(Boolean hasMore) { @@ -48,10 +48,10 @@ public InlineResponse20019 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 InlineResponse20019 data(List data) { + public InlineResponse20019 data(List data) { this.data = data; return this; } - public InlineResponse20019 addDataItem(CardLedgerTransactionLogEntry dataItem) { + public InlineResponse20019 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/InlineResponse20020.java b/src/main/java/one/talon/model/InlineResponse20020.java index 36378ffc..58f0918c 100644 --- a/src/main/java/one/talon/model/InlineResponse20020.java +++ b/src/main/java/one/talon/model/InlineResponse20020.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; /** * InlineResponse20020 @@ -36,13 +36,9 @@ public class InlineResponse20020 { @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 Long totalResultSize; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20020 hasMore(Boolean hasMore) { @@ -52,11 +48,10 @@ public InlineResponse20020 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 InlineResponse20020 totalResultSize(Long totalResultSize) { - - this.totalResultSize = totalResultSize; - return this; - } - - /** - * Get totalResultSize - * @return totalResultSize - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") - - public Long getTotalResultSize() { - return totalResultSize; - } - - - public void setTotalResultSize(Long totalResultSize) { - this.totalResultSize = totalResultSize; - } - - - public InlineResponse20020 data(List data) { + public InlineResponse20020 data(List data) { this.data = data; return this; } - public InlineResponse20020 addDataItem(CollectionWithoutPayload dataItem) { + public InlineResponse20020 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) { } InlineResponse20020 inlineResponse20020 = (InlineResponse20020) o; return Objects.equals(this.hasMore, inlineResponse20020.hasMore) && - Objects.equals(this.totalResultSize, inlineResponse20020.totalResultSize) && Objects.equals(this.data, inlineResponse20020.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 InlineResponse20020 {\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/InlineResponse20021.java b/src/main/java/one/talon/model/InlineResponse20021.java index 6281e5b5..ca3a180d 100644 --- a/src/main/java/one/talon/model/InlineResponse20021.java +++ b/src/main/java/one/talon/model/InlineResponse20021.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; /** * InlineResponse20021 @@ -36,9 +36,13 @@ public class InlineResponse20021 { @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 Long totalResultSize; + public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20021 hasMore(Boolean hasMore) { @@ -51,7 +55,8 @@ public InlineResponse20021 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 InlineResponse20021 data(List data) { + public InlineResponse20021 totalResultSize(Long totalResultSize) { + + this.totalResultSize = totalResultSize; + return this; + } + + /** + * Get totalResultSize + * @return totalResultSize + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") + + public Long getTotalResultSize() { + return totalResultSize; + } + + + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; + } + + + public InlineResponse20021 data(List data) { this.data = data; return this; } - public InlineResponse20021 addDataItem(CollectionItem dataItem) { + public InlineResponse20021 addDataItem(CollectionWithoutPayload dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +108,12 @@ public InlineResponse20021 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) { } InlineResponse20021 inlineResponse20021 = (InlineResponse20021) o; return Objects.equals(this.hasMore, inlineResponse20021.hasMore) && + Objects.equals(this.totalResultSize, inlineResponse20021.totalResultSize) && Objects.equals(this.data, inlineResponse20021.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 InlineResponse20021 {\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/InlineResponse20022.java b/src/main/java/one/talon/model/InlineResponse20022.java index 0ac34e32..81ce1424 100644 --- a/src/main/java/one/talon/model/InlineResponse20022.java +++ b/src/main/java/one/talon/model/InlineResponse20022.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AccessLogEntry; +import one.talon.model.CollectionItem; /** * InlineResponse20022 @@ -38,7 +38,7 @@ public class InlineResponse20022 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20022 hasMore(Boolean hasMore) { @@ -63,13 +63,13 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20022 data(List data) { + public InlineResponse20022 data(List data) { this.data = data; return this; } - public InlineResponse20022 addDataItem(AccessLogEntry dataItem) { + public InlineResponse20022 addDataItem(CollectionItem dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20022 addDataItem(AccessLogEntry 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/InlineResponse20023.java b/src/main/java/one/talon/model/InlineResponse20023.java index ff6215c9..2cbeb2ee 100644 --- a/src/main/java/one/talon/model/InlineResponse20023.java +++ b/src/main/java/one/talon/model/InlineResponse20023.java @@ -25,51 +25,51 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CampaignAnalytics; +import one.talon.model.AccessLogEntry; /** * InlineResponse20023 */ public class InlineResponse20023 { - public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; - @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long 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 InlineResponse20023 totalResultSize(Long totalResultSize) { + public InlineResponse20023 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(required = true, value = "") - public Long getTotalResultSize() { - return totalResultSize; + public Boolean getHasMore() { + return hasMore; } - public void setTotalResultSize(Long totalResultSize) { - this.totalResultSize = totalResultSize; + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; } - public InlineResponse20023 data(List data) { + public InlineResponse20023 data(List data) { this.data = data; return this; } - public InlineResponse20023 addDataItem(CampaignAnalytics dataItem) { + public InlineResponse20023 addDataItem(AccessLogEntry dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20023 addDataItem(CampaignAnalytics 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; } InlineResponse20023 inlineResponse20023 = (InlineResponse20023) o; - return Objects.equals(this.totalResultSize, inlineResponse20023.totalResultSize) && + return Objects.equals(this.hasMore, inlineResponse20023.hasMore) && Objects.equals(this.data, inlineResponse20023.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 InlineResponse20023 {\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/InlineResponse20024.java b/src/main/java/one/talon/model/InlineResponse20024.java index cca3e170..08f6aba1 100644 --- a/src/main/java/one/talon/model/InlineResponse20024.java +++ b/src/main/java/one/talon/model/InlineResponse20024.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.ApplicationCustomer; +import one.talon.model.CampaignAnalytics; /** * InlineResponse20024 @@ -36,13 +36,9 @@ public class InlineResponse20024 { @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) private Long 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 InlineResponse20024 totalResultSize(Long totalResultSize) { @@ -55,8 +51,7 @@ public InlineResponse20024 totalResultSize(Long totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") + @ApiModelProperty(example = "1", required = true, value = "") public Long getTotalResultSize() { return totalResultSize; @@ -68,36 +63,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20024 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 InlineResponse20024 data(List data) { + public InlineResponse20024 data(List data) { this.data = data; return this; } - public InlineResponse20024 addDataItem(ApplicationCustomer dataItem) { + public InlineResponse20024 addDataItem(CampaignAnalytics dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +80,12 @@ public InlineResponse20024 addDataItem(ApplicationCustomer 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) { } InlineResponse20024 inlineResponse20024 = (InlineResponse20024) o; return Objects.equals(this.totalResultSize, inlineResponse20024.totalResultSize) && - Objects.equals(this.hasMore, inlineResponse20024.hasMore) && Objects.equals(this.data, inlineResponse20024.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 InlineResponse20024 {\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/InlineResponse20025.java b/src/main/java/one/talon/model/InlineResponse20025.java index f2f24ae4..b691c18b 100644 --- a/src/main/java/one/talon/model/InlineResponse20025.java +++ b/src/main/java/one/talon/model/InlineResponse20025.java @@ -32,62 +32,62 @@ */ public class InlineResponse20025 { - 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 Long 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(); - public InlineResponse20025 hasMore(Boolean hasMore) { + public InlineResponse20025 totalResultSize(Long totalResultSize) { - this.hasMore = hasMore; + this.totalResultSize = totalResultSize; return this; } /** - * Get hasMore - * @return hasMore + * Get totalResultSize + * @return totalResultSize **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(example = "1", value = "") - public Boolean getHasMore() { - return hasMore; + public Long getTotalResultSize() { + return totalResultSize; } - public void setHasMore(Boolean hasMore) { - this.hasMore = hasMore; + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; } - public InlineResponse20025 totalResultSize(Long totalResultSize) { + public InlineResponse20025 hasMore(Boolean hasMore) { - this.totalResultSize = totalResultSize; + this.hasMore = hasMore; return this; } /** - * Get totalResultSize - * @return totalResultSize + * Get hasMore + * @return hasMore **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Long getTotalResultSize() { - return totalResultSize; + public Boolean getHasMore() { + return hasMore; } - public void setTotalResultSize(Long totalResultSize) { - this.totalResultSize = totalResultSize; + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; } @@ -127,14 +127,14 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20025 inlineResponse20025 = (InlineResponse20025) o; - return Objects.equals(this.hasMore, inlineResponse20025.hasMore) && - Objects.equals(this.totalResultSize, inlineResponse20025.totalResultSize) && + return Objects.equals(this.totalResultSize, inlineResponse20025.totalResultSize) && + Objects.equals(this.hasMore, inlineResponse20025.hasMore) && Objects.equals(this.data, inlineResponse20025.data); } @Override public int hashCode() { - return Objects.hash(hasMore, totalResultSize, data); + return Objects.hash(totalResultSize, hasMore, data); } @@ -142,8 +142,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20025 {\n"); - sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\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/InlineResponse20026.java b/src/main/java/one/talon/model/InlineResponse20026.java index fc7e8077..65f121d2 100644 --- a/src/main/java/one/talon/model/InlineResponse20026.java +++ b/src/main/java/one/talon/model/InlineResponse20026.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CustomerProfile; +import one.talon.model.ApplicationCustomer; /** * InlineResponse20026 @@ -42,7 +42,7 @@ public class InlineResponse20026 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20026 hasMore(Boolean hasMore) { @@ -91,13 +91,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20026 data(List data) { + public InlineResponse20026 data(List data) { this.data = data; return this; } - public InlineResponse20026 addDataItem(CustomerProfile dataItem) { + public InlineResponse20026 addDataItem(ApplicationCustomer dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +108,12 @@ public InlineResponse20026 addDataItem(CustomerProfile 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/InlineResponse20027.java b/src/main/java/one/talon/model/InlineResponse20027.java index 26eff173..667a7ee5 100644 --- a/src/main/java/one/talon/model/InlineResponse20027.java +++ b/src/main/java/one/talon/model/InlineResponse20027.java @@ -36,6 +36,10 @@ public class InlineResponse20027 { @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 Long totalResultSize; + public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); @@ -51,7 +55,8 @@ public InlineResponse20027 hasMore(Boolean hasMore) { * Get hasMore * @return hasMore **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public Boolean getHasMore() { return hasMore; @@ -63,6 +68,29 @@ public void setHasMore(Boolean hasMore) { } + public InlineResponse20027 totalResultSize(Long totalResultSize) { + + this.totalResultSize = totalResultSize; + return this; + } + + /** + * Get totalResultSize + * @return totalResultSize + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getTotalResultSize() { + return totalResultSize; + } + + + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; + } + + public InlineResponse20027 data(List data) { this.data = data; @@ -100,12 +128,13 @@ public boolean equals(java.lang.Object o) { } InlineResponse20027 inlineResponse20027 = (InlineResponse20027) o; return Objects.equals(this.hasMore, inlineResponse20027.hasMore) && + Objects.equals(this.totalResultSize, inlineResponse20027.totalResultSize) && Objects.equals(this.data, inlineResponse20027.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 InlineResponse20027 {\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/InlineResponse20028.java b/src/main/java/one/talon/model/InlineResponse20028.java index 6ef41086..d94233ff 100644 --- a/src/main/java/one/talon/model/InlineResponse20028.java +++ b/src/main/java/one/talon/model/InlineResponse20028.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CustomerActivityReport; +import one.talon.model.CustomerProfile; /** * InlineResponse20028 @@ -38,7 +38,7 @@ public class InlineResponse20028 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20028 hasMore(Boolean hasMore) { @@ -63,13 +63,13 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20028 data(List data) { + public InlineResponse20028 data(List data) { this.data = data; return this; } - public InlineResponse20028 addDataItem(CustomerActivityReport dataItem) { + public InlineResponse20028 addDataItem(CustomerProfile dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20028 addDataItem(CustomerActivityReport 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/InlineResponse20029.java b/src/main/java/one/talon/model/InlineResponse20029.java index 53997279..8f67477f 100644 --- a/src/main/java/one/talon/model/InlineResponse20029.java +++ b/src/main/java/one/talon/model/InlineResponse20029.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.ApplicationSession; +import one.talon.model.CustomerActivityReport; /** * InlineResponse20029 @@ -38,7 +38,7 @@ public class InlineResponse20029 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20029 hasMore(Boolean hasMore) { @@ -51,8 +51,7 @@ public InlineResponse20029 hasMore(Boolean hasMore) { * Get hasMore * @return hasMore **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "") public Boolean getHasMore() { return hasMore; @@ -64,13 +63,13 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20029 data(List data) { + public InlineResponse20029 data(List data) { this.data = data; return this; } - public InlineResponse20029 addDataItem(ApplicationSession dataItem) { + public InlineResponse20029 addDataItem(CustomerActivityReport dataItem) { this.data.add(dataItem); return this; } @@ -81,12 +80,12 @@ public InlineResponse20029 addDataItem(ApplicationSession 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/InlineResponse20030.java b/src/main/java/one/talon/model/InlineResponse20030.java index d815a9d2..063640cb 100644 --- a/src/main/java/one/talon/model/InlineResponse20030.java +++ b/src/main/java/one/talon/model/InlineResponse20030.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.ApplicationEvent; +import one.talon.model.ApplicationSession; /** * InlineResponse20030 @@ -38,7 +38,7 @@ public class InlineResponse20030 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20030 hasMore(Boolean hasMore) { @@ -51,7 +51,8 @@ public InlineResponse20030 hasMore(Boolean hasMore) { * Get hasMore * @return hasMore **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public Boolean getHasMore() { return hasMore; @@ -63,13 +64,13 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20030 data(List data) { + public InlineResponse20030 data(List data) { this.data = data; return this; } - public InlineResponse20030 addDataItem(ApplicationEvent dataItem) { + public InlineResponse20030 addDataItem(ApplicationSession dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +81,12 @@ public InlineResponse20030 addDataItem(ApplicationEvent 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/InlineResponse20031.java b/src/main/java/one/talon/model/InlineResponse20031.java index 0c6570fa..dca0938a 100644 --- a/src/main/java/one/talon/model/InlineResponse20031.java +++ b/src/main/java/one/talon/model/InlineResponse20031.java @@ -25,50 +25,51 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import one.talon.model.ApplicationEvent; /** * InlineResponse20031 */ public class InlineResponse20031 { - public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; - @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long 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 InlineResponse20031 totalResultSize(Long totalResultSize) { + public InlineResponse20031 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(required = true, value = "") - public Long getTotalResultSize() { - return totalResultSize; + public Boolean getHasMore() { + return hasMore; } - public void setTotalResultSize(Long totalResultSize) { - this.totalResultSize = totalResultSize; + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; } - public InlineResponse20031 data(List data) { + public InlineResponse20031 data(List data) { this.data = data; return this; } - public InlineResponse20031 addDataItem(String dataItem) { + public InlineResponse20031 addDataItem(ApplicationEvent dataItem) { this.data.add(dataItem); return this; } @@ -79,12 +80,12 @@ public InlineResponse20031 addDataItem(String 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; } @@ -98,13 +99,13 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20031 inlineResponse20031 = (InlineResponse20031) o; - return Objects.equals(this.totalResultSize, inlineResponse20031.totalResultSize) && + return Objects.equals(this.hasMore, inlineResponse20031.hasMore) && Objects.equals(this.data, inlineResponse20031.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, data); + return Objects.hash(hasMore, data); } @@ -112,7 +113,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20031 {\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/InlineResponse20032.java b/src/main/java/one/talon/model/InlineResponse20032.java index 5cc598f0..abc86f0e 100644 --- a/src/main/java/one/talon/model/InlineResponse20032.java +++ b/src/main/java/one/talon/model/InlineResponse20032.java @@ -25,47 +25,19 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Audience; /** * InlineResponse20032 */ public class InlineResponse20032 { - 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 Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); - - - public InlineResponse20032 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 InlineResponse20032 totalResultSize(Long totalResultSize) { @@ -78,8 +50,7 @@ public InlineResponse20032 totalResultSize(Long totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") + @ApiModelProperty(example = "1", required = true, value = "") public Long getTotalResultSize() { return totalResultSize; @@ -91,13 +62,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20032 data(List data) { + public InlineResponse20032 data(List data) { this.data = data; return this; } - public InlineResponse20032 addDataItem(Audience dataItem) { + public InlineResponse20032 addDataItem(String dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +79,12 @@ public InlineResponse20032 addDataItem(Audience 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 +98,13 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20032 inlineResponse20032 = (InlineResponse20032) o; - return Objects.equals(this.hasMore, inlineResponse20032.hasMore) && - Objects.equals(this.totalResultSize, inlineResponse20032.totalResultSize) && + return Objects.equals(this.totalResultSize, inlineResponse20032.totalResultSize) && Objects.equals(this.data, inlineResponse20032.data); } @Override public int hashCode() { - return Objects.hash(hasMore, totalResultSize, data); + return Objects.hash(totalResultSize, data); } @@ -142,7 +112,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20032 {\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/InlineResponse20033.java b/src/main/java/one/talon/model/InlineResponse20033.java index 8effc90d..f3fc4202 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.AudienceAnalytics; +import one.talon.model.Audience; /** * InlineResponse20033 @@ -36,9 +36,13 @@ public class InlineResponse20033 { @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 Long totalResultSize; + 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) { @@ -64,13 +68,36 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20033 data(List data) { + public InlineResponse20033 totalResultSize(Long totalResultSize) { + + this.totalResultSize = totalResultSize; + return this; + } + + /** + * Get totalResultSize + * @return totalResultSize + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") + + public Long getTotalResultSize() { + return totalResultSize; + } + + + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; + } + + + public InlineResponse20033 data(List data) { this.data = data; return this; } - public InlineResponse20033 addDataItem(AudienceAnalytics dataItem) { + public InlineResponse20033 addDataItem(Audience dataItem) { this.data.add(dataItem); return this; } @@ -81,12 +108,12 @@ public InlineResponse20033 addDataItem(AudienceAnalytics 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; } @@ -101,12 +128,13 @@ public boolean equals(java.lang.Object o) { } InlineResponse20033 inlineResponse20033 = (InlineResponse20033) o; return Objects.equals(this.hasMore, inlineResponse20033.hasMore) && + Objects.equals(this.totalResultSize, inlineResponse20033.totalResultSize) && Objects.equals(this.data, inlineResponse20033.data); } @Override public int hashCode() { - return Objects.hash(hasMore, data); + return Objects.hash(hasMore, totalResultSize, data); } @@ -115,6 +143,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20033 {\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/InlineResponse20034.java b/src/main/java/one/talon/model/InlineResponse20034.java index ab3860af..8c7bc1f1 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.CustomerProfile; +import one.talon.model.AudienceAnalytics; /** * 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 hasMore(Boolean hasMore) { @@ -64,13 +64,13 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20034 data(List data) { + public InlineResponse20034 data(List data) { this.data = data; return this; } - public InlineResponse20034 addDataItem(CustomerProfile dataItem) { + public InlineResponse20034 addDataItem(AudienceAnalytics dataItem) { this.data.add(dataItem); return this; } @@ -81,12 +81,12 @@ public InlineResponse20034 addDataItem(CustomerProfile 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 57f04f45..da7e0517 100644 --- a/src/main/java/one/talon/model/InlineResponse20035.java +++ b/src/main/java/one/talon/model/InlineResponse20035.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.CustomerProfile; /** * InlineResponse20035 @@ -36,13 +36,9 @@ public class InlineResponse20035 { @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 Long 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) { @@ -68,36 +64,13 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20035 totalResultSize(Long totalResultSize) { - - this.totalResultSize = totalResultSize; - return this; - } - - /** - * Get totalResultSize - * @return totalResultSize - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") - - public Long getTotalResultSize() { - return totalResultSize; - } - - - public void setTotalResultSize(Long totalResultSize) { - this.totalResultSize = totalResultSize; - } - - - public InlineResponse20035 data(List data) { + public InlineResponse20035 data(List data) { this.data = data; return this; } - public InlineResponse20035 addDataItem(ApplicationReferee dataItem) { + public InlineResponse20035 addDataItem(CustomerProfile dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +81,12 @@ public InlineResponse20035 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) { } InlineResponse20035 inlineResponse20035 = (InlineResponse20035) o; 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(hasMore, totalResultSize, data); + return Objects.hash(hasMore, data); } @@ -143,7 +115,6 @@ 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("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20036.java b/src/main/java/one/talon/model/InlineResponse20036.java index 99e86f74..c4ccade7 100644 --- a/src/main/java/one/talon/model/InlineResponse20036.java +++ b/src/main/java/one/talon/model/InlineResponse20036.java @@ -25,20 +25,47 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Attribute; +import one.talon.model.ApplicationReferee; /** * InlineResponse20036 */ public class InlineResponse20036 { + 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 Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); + + + public InlineResponse20036 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 InlineResponse20036 totalResultSize(Long totalResultSize) { @@ -51,7 +78,8 @@ public InlineResponse20036 totalResultSize(Long totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @ApiModelProperty(example = "1", required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") public Long getTotalResultSize() { return totalResultSize; @@ -63,13 +91,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20036 data(List data) { + public InlineResponse20036 data(List data) { this.data = data; return this; } - public InlineResponse20036 addDataItem(Attribute dataItem) { + public InlineResponse20036 addDataItem(ApplicationReferee dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +108,12 @@ public InlineResponse20036 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 +127,14 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20036 inlineResponse20036 = (InlineResponse20036) o; - return Objects.equals(this.totalResultSize, inlineResponse20036.totalResultSize) && + return Objects.equals(this.hasMore, inlineResponse20036.hasMore) && + Objects.equals(this.totalResultSize, inlineResponse20036.totalResultSize) && Objects.equals(this.data, inlineResponse20036.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 InlineResponse20036 {\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/InlineResponse20037.java b/src/main/java/one/talon/model/InlineResponse20037.java index 0503e4a1..410129ad 100644 --- a/src/main/java/one/talon/model/InlineResponse20037.java +++ b/src/main/java/one/talon/model/InlineResponse20037.java @@ -25,47 +25,20 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CatalogItem; +import one.talon.model.Attribute; /** * InlineResponse20037 */ public class InlineResponse20037 { - 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 Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); - - - public InlineResponse20037 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 InlineResponse20037 totalResultSize(Long totalResultSize) { @@ -78,8 +51,7 @@ public InlineResponse20037 totalResultSize(Long totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") + @ApiModelProperty(example = "1", required = true, value = "") public Long getTotalResultSize() { return totalResultSize; @@ -91,13 +63,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20037 data(List data) { + public InlineResponse20037 data(List data) { this.data = data; return this; } - public InlineResponse20037 addDataItem(CatalogItem dataItem) { + public InlineResponse20037 addDataItem(Attribute dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +80,12 @@ public InlineResponse20037 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; } @@ -127,14 +99,13 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20037 inlineResponse20037 = (InlineResponse20037) o; - return Objects.equals(this.hasMore, inlineResponse20037.hasMore) && - Objects.equals(this.totalResultSize, inlineResponse20037.totalResultSize) && + return Objects.equals(this.totalResultSize, inlineResponse20037.totalResultSize) && Objects.equals(this.data, inlineResponse20037.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 InlineResponse20037 {\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/InlineResponse20038.java b/src/main/java/one/talon/model/InlineResponse20038.java index b18da9fa..f7f1aefa 100644 --- a/src/main/java/one/talon/model/InlineResponse20038.java +++ b/src/main/java/one/talon/model/InlineResponse20038.java @@ -25,20 +25,47 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AccountAdditionalCost; +import one.talon.model.CatalogItem; /** * InlineResponse20038 */ public class InlineResponse20038 { + 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 Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); + + + public InlineResponse20038 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 InlineResponse20038 totalResultSize(Long totalResultSize) { @@ -51,7 +78,8 @@ public InlineResponse20038 totalResultSize(Long totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @ApiModelProperty(example = "1", required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") public Long getTotalResultSize() { return totalResultSize; @@ -63,13 +91,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20038 data(List data) { + public InlineResponse20038 data(List data) { this.data = data; return this; } - public InlineResponse20038 addDataItem(AccountAdditionalCost dataItem) { + public InlineResponse20038 addDataItem(CatalogItem dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +108,12 @@ public InlineResponse20038 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; } @@ -99,13 +127,14 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20038 inlineResponse20038 = (InlineResponse20038) o; - return Objects.equals(this.totalResultSize, inlineResponse20038.totalResultSize) && + return Objects.equals(this.hasMore, inlineResponse20038.hasMore) && + Objects.equals(this.totalResultSize, inlineResponse20038.totalResultSize) && Objects.equals(this.data, inlineResponse20038.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 InlineResponse20038 {\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/InlineResponse20039.java b/src/main/java/one/talon/model/InlineResponse20039.java index 62983873..8d9aa444 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.WebhookWithOutgoingIntegrationDetails; +import one.talon.model.AccountAdditionalCost; /** * 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(Long totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20039 data(List data) { + public InlineResponse20039 data(List data) { this.data = data; return this; } - public InlineResponse20039 addDataItem(WebhookWithOutgoingIntegrationDetails dataItem) { + public InlineResponse20039 addDataItem(AccountAdditionalCost dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20039 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; } diff --git a/src/main/java/one/talon/model/InlineResponse20040.java b/src/main/java/one/talon/model/InlineResponse20040.java index 3bc5660f..aaa7a9c9 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.EventType; +import one.talon.model.WebhookWithOutgoingIntegrationDetails; /** * InlineResponse20040 @@ -38,7 +38,7 @@ public class InlineResponse20040 { 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(Long totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20040 data(List data) { + public InlineResponse20040 data(List data) { this.data = data; return this; } - public InlineResponse20040 addDataItem(EventType dataItem) { + public InlineResponse20040 addDataItem(WebhookWithOutgoingIntegrationDetails dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20040 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/InlineResponse20041.java b/src/main/java/one/talon/model/InlineResponse20041.java index 69a356e2..7cc6260d 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.User; +import one.talon.model.EventType; /** * 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(Long totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20041 data(List data) { + public InlineResponse20041 data(List data) { this.data = data; return this; } - public InlineResponse20041 addDataItem(User dataItem) { + public InlineResponse20041 addDataItem(EventType dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20041 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/InlineResponse20042.java b/src/main/java/one/talon/model/InlineResponse20042.java index a01f5c25..6e6cf2f8 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.Change; +import one.talon.model.User; /** * InlineResponse20042 @@ -36,13 +36,9 @@ public class InlineResponse20042 { @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) private Long 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(Long totalResultSize) { @@ -55,8 +51,7 @@ public InlineResponse20042 totalResultSize(Long totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") + @ApiModelProperty(example = "1", required = true, value = "") public Long getTotalResultSize() { return totalResultSize; @@ -68,36 +63,13 @@ public void setTotalResultSize(Long totalResultSize) { } - 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) { + public InlineResponse20042 data(List data) { this.data = data; return this; } - public InlineResponse20042 addDataItem(Change dataItem) { + public InlineResponse20042 addDataItem(User dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +80,12 @@ public InlineResponse20042 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) { } 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, hasMore, data); + return Objects.hash(totalResultSize, data); } @@ -143,7 +114,6 @@ 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 889ac412..59f32489 100644 --- a/src/main/java/one/talon/model/InlineResponse20043.java +++ b/src/main/java/one/talon/model/InlineResponse20043.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.Change; /** * InlineResponse20043 @@ -36,9 +36,13 @@ public class InlineResponse20043 { @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) private Long 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 InlineResponse20043 totalResultSize(Long totalResultSize) { @@ -51,7 +55,8 @@ public InlineResponse20043 totalResultSize(Long totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @ApiModelProperty(example = "1", required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") public Long getTotalResultSize() { return totalResultSize; @@ -63,13 +68,36 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20043 data(List data) { + 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; + } + + + public InlineResponse20043 data(List data) { this.data = data; return this; } - public InlineResponse20043 addDataItem(Export dataItem) { + public InlineResponse20043 addDataItem(Change dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +108,12 @@ public InlineResponse20043 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; } @@ -100,12 +128,13 @@ public boolean equals(java.lang.Object o) { } InlineResponse20043 inlineResponse20043 = (InlineResponse20043) o; return Objects.equals(this.totalResultSize, inlineResponse20043.totalResultSize) && + Objects.equals(this.hasMore, inlineResponse20043.hasMore) && Objects.equals(this.data, inlineResponse20043.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 InlineResponse20043 {\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/InlineResponse20044.java b/src/main/java/one/talon/model/InlineResponse20044.java index 5ec00945..943e4e01 100644 --- a/src/main/java/one/talon/model/InlineResponse20044.java +++ b/src/main/java/one/talon/model/InlineResponse20044.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.RoleV2; +import one.talon.model.Export; /** * InlineResponse20044 @@ -38,7 +38,7 @@ public class InlineResponse20044 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20044 totalResultSize(Long totalResultSize) { @@ -63,13 +63,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20044 data(List data) { + public InlineResponse20044 data(List data) { this.data = data; return this; } - public InlineResponse20044 addDataItem(RoleV2 dataItem) { + public InlineResponse20044 addDataItem(Export dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +80,12 @@ public InlineResponse20044 addDataItem(RoleV2 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/InlineResponse20045.java b/src/main/java/one/talon/model/InlineResponse20045.java index 2d5b00a0..c6653760 100644 --- a/src/main/java/one/talon/model/InlineResponse20045.java +++ b/src/main/java/one/talon/model/InlineResponse20045.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.RoleV2; /** * 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 Long 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; - } + private List data = new ArrayList(); public InlineResponse20045 totalResultSize(Long totalResultSize) { @@ -78,8 +51,7 @@ public InlineResponse20045 totalResultSize(Long totalResultSize) { * Get totalResultSize * @return totalResultSize **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") + @ApiModelProperty(example = "1", required = true, value = "") public Long getTotalResultSize() { return totalResultSize; @@ -91,13 +63,13 @@ public void setTotalResultSize(Long totalResultSize) { } - public InlineResponse20045 data(List data) { + public InlineResponse20045 data(List data) { this.data = data; return this; } - public InlineResponse20045 addDataItem(Store dataItem) { + public InlineResponse20045 addDataItem(RoleV2 dataItem) { this.data.add(dataItem); return this; } @@ -108,12 +80,12 @@ public InlineResponse20045 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; } InlineResponse20045 inlineResponse20045 = (InlineResponse20045) o; - return Objects.equals(this.hasMore, inlineResponse20045.hasMore) && - Objects.equals(this.totalResultSize, inlineResponse20045.totalResultSize) && + return Objects.equals(this.totalResultSize, inlineResponse20045.totalResultSize) && Objects.equals(this.data, inlineResponse20045.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 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("}"); diff --git a/src/main/java/one/talon/model/InlineResponse20046.java b/src/main/java/one/talon/model/InlineResponse20046.java index d4a8d911..c653ba8d 100644 --- a/src/main/java/one/talon/model/InlineResponse20046.java +++ b/src/main/java/one/talon/model/InlineResponse20046.java @@ -25,28 +25,79 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.ListCampaignStoreBudgets; +import one.talon.model.Store; /** * 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_TOTAL_RESULT_SIZE = "totalResultSize"; + @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) + private Long totalResultSize; + public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + 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) { + public InlineResponse20046 totalResultSize(Long totalResultSize) { + + this.totalResultSize = totalResultSize; + return this; + } + + /** + * Get totalResultSize + * @return totalResultSize + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") + + public Long getTotalResultSize() { + return totalResultSize; + } + + + public void setTotalResultSize(Long totalResultSize) { + this.totalResultSize = totalResultSize; + } + + + public InlineResponse20046 data(List data) { this.data = data; return this; } - public InlineResponse20046 addDataItem(ListCampaignStoreBudgets dataItem) { - if (this.data == null) { - this.data = new ArrayList(); - } + public InlineResponse20046 addDataItem(Store dataItem) { this.data.add(dataItem); return this; } @@ -55,15 +106,14 @@ public InlineResponse20046 addDataItem(ListCampaignStoreBudgets dataItem) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @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; } @@ -77,12 +127,14 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20046 inlineResponse20046 = (InlineResponse20046) o; - return Objects.equals(this.data, inlineResponse20046.data); + return Objects.equals(this.hasMore, inlineResponse20046.hasMore) && + Objects.equals(this.totalResultSize, inlineResponse20046.totalResultSize) && + Objects.equals(this.data, inlineResponse20046.data); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(hasMore, totalResultSize, data); } @@ -90,6 +142,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20046 {\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/InlineResponse20047.java b/src/main/java/one/talon/model/InlineResponse20047.java index 9cec80d3..027586c3 100644 --- a/src/main/java/one/talon/model/InlineResponse20047.java +++ b/src/main/java/one/talon/model/InlineResponse20047.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.SummaryCampaignStoreBudget; +import one.talon.model.ListCampaignStoreBudgets; /** * InlineResponse20047 @@ -34,18 +34,18 @@ public class InlineResponse20047 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; - public InlineResponse20047 data(List data) { + public InlineResponse20047 data(List data) { this.data = data; return this; } - public InlineResponse20047 addDataItem(SummaryCampaignStoreBudget dataItem) { + public InlineResponse20047 addDataItem(ListCampaignStoreBudgets dataItem) { if (this.data == null) { - this.data = new ArrayList(); + this.data = new ArrayList(); } this.data.add(dataItem); return this; @@ -58,12 +58,12 @@ public InlineResponse20047 addDataItem(SummaryCampaignStoreBudget dataItem) { @javax.annotation.Nullable @ApiModelProperty(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/InlineResponse20048.java b/src/main/java/one/talon/model/InlineResponse20048.java index f132c4bf..52b6e263 100644 --- a/src/main/java/one/talon/model/InlineResponse20048.java +++ b/src/main/java/one/talon/model/InlineResponse20048.java @@ -25,52 +25,28 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Achievement; +import one.talon.model.SummaryCampaignStoreBudget; /** * InlineResponse20048 */ public class InlineResponse20048 { - 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 = null; - public InlineResponse20048 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 InlineResponse20048 data(List data) { + public InlineResponse20048 data(List data) { this.data = data; return this; } - public InlineResponse20048 addDataItem(Achievement dataItem) { + public InlineResponse20048 addDataItem(SummaryCampaignStoreBudget dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } this.data.add(dataItem); return this; } @@ -79,14 +55,15 @@ public InlineResponse20048 addDataItem(Achievement dataItem) { * Get data * @return data **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -100,13 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20048 inlineResponse20048 = (InlineResponse20048) o; - return Objects.equals(this.hasMore, inlineResponse20048.hasMore) && - Objects.equals(this.data, inlineResponse20048.data); + return Objects.equals(this.data, inlineResponse20048.data); } @Override public int hashCode() { - return Objects.hash(hasMore, data); + return Objects.hash(data); } @@ -114,7 +90,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20048 {\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/InlineResponse20049.java b/src/main/java/one/talon/model/InlineResponse20049.java index 87f8b55e..c2fc78dc 100644 --- a/src/main/java/one/talon/model/InlineResponse20049.java +++ b/src/main/java/one/talon/model/InlineResponse20049.java @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AchievementProgressWithDefinition; +import one.talon.model.Achievement; /** * InlineResponse20049 @@ -38,7 +38,7 @@ public class InlineResponse20049 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = new ArrayList(); public InlineResponse20049 hasMore(Boolean hasMore) { @@ -51,7 +51,8 @@ public InlineResponse20049 hasMore(Boolean hasMore) { * Get hasMore * @return hasMore **/ - @ApiModelProperty(example = "true", required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public Boolean getHasMore() { return hasMore; @@ -63,13 +64,13 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20049 data(List data) { + public InlineResponse20049 data(List data) { this.data = data; return this; } - public InlineResponse20049 addDataItem(AchievementProgressWithDefinition dataItem) { + public InlineResponse20049 addDataItem(Achievement dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +81,12 @@ public InlineResponse20049 addDataItem(AchievementProgressWithDefinition dataIte **/ @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/InlineResponse20050.java b/src/main/java/one/talon/model/InlineResponse20050.java index 4bdecf22..5e9e5e7c 100644 --- a/src/main/java/one/talon/model/InlineResponse20050.java +++ b/src/main/java/one/talon/model/InlineResponse20050.java @@ -25,25 +25,51 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CouponFailureSummary; +import one.talon.model.AchievementProgressWithDefinition; /** * InlineResponse20050 */ public class InlineResponse20050 { + 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 InlineResponse20050 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 InlineResponse20050 data(List data) { + public InlineResponse20050 data(List data) { this.data = data; return this; } - public InlineResponse20050 addDataItem(CouponFailureSummary dataItem) { + public InlineResponse20050 addDataItem(AchievementProgressWithDefinition dataItem) { this.data.add(dataItem); return this; } @@ -54,12 +80,12 @@ public InlineResponse20050 addDataItem(CouponFailureSummary 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; } @@ -73,12 +99,13 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20050 inlineResponse20050 = (InlineResponse20050) o; - return Objects.equals(this.data, inlineResponse20050.data); + return Objects.equals(this.hasMore, inlineResponse20050.hasMore) && + Objects.equals(this.data, inlineResponse20050.data); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(hasMore, data); } @@ -86,6 +113,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20050 {\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/InlineResponse20051.java b/src/main/java/one/talon/model/InlineResponse20051.java index 07f15787..aff08ecb 100644 --- a/src/main/java/one/talon/model/InlineResponse20051.java +++ b/src/main/java/one/talon/model/InlineResponse20051.java @@ -25,51 +25,25 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AchievementProgressWithDefinition; +import one.talon.model.CouponFailureSummary; /** * InlineResponse20051 */ public class InlineResponse20051 { - 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 InlineResponse20051 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; - } + private List data = new ArrayList(); - public InlineResponse20051 data(List data) { + public InlineResponse20051 data(List data) { this.data = data; return this; } - public InlineResponse20051 addDataItem(AchievementProgressWithDefinition dataItem) { + public InlineResponse20051 addDataItem(CouponFailureSummary dataItem) { this.data.add(dataItem); return this; } @@ -80,12 +54,12 @@ public InlineResponse20051 addDataItem(AchievementProgressWithDefinition dataIte **/ @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 +73,12 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20051 inlineResponse20051 = (InlineResponse20051) o; - return Objects.equals(this.hasMore, inlineResponse20051.hasMore) && - Objects.equals(this.data, inlineResponse20051.data); + return Objects.equals(this.data, inlineResponse20051.data); } @Override public int hashCode() { - return Objects.hash(hasMore, data); + return Objects.hash(data); } @@ -113,7 +86,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20051 {\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/IntegrationEventV2Request.java b/src/main/java/one/talon/model/IntegrationEventV2Request.java index 6b2f221a..a202d2e6 100644 --- a/src/main/java/one/talon/model/IntegrationEventV2Request.java +++ b/src/main/java/one/talon/model/IntegrationEventV2Request.java @@ -51,10 +51,6 @@ public class IntegrationEventV2Request { @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private Object attributes; - public static final String SERIALIZED_NAME_LOYALTY_CARDS = "loyaltyCards"; - @SerializedName(SERIALIZED_NAME_LOYALTY_CARDS) - private List loyaltyCards = null; - /** * Gets or Sets responseContent */ @@ -114,6 +110,10 @@ public ResponseContentEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_RESPONSE_CONTENT) private List responseContent = null; + public static final String SERIALIZED_NAME_LOYALTY_CARDS = "loyaltyCards"; + @SerializedName(SERIALIZED_NAME_LOYALTY_CARDS) + private List loyaltyCards = null; + public IntegrationEventV2Request profileId(String profileId) { @@ -237,65 +237,65 @@ public void setAttributes(Object attributes) { } - public IntegrationEventV2Request loyaltyCards(List loyaltyCards) { + public IntegrationEventV2Request responseContent(List responseContent) { - this.loyaltyCards = loyaltyCards; + this.responseContent = responseContent; return this; } - public IntegrationEventV2Request addLoyaltyCardsItem(String loyaltyCardsItem) { - if (this.loyaltyCards == null) { - this.loyaltyCards = new ArrayList(); + public IntegrationEventV2Request addResponseContentItem(ResponseContentEnum responseContentItem) { + if (this.responseContent == null) { + this.responseContent = new ArrayList(); } - this.loyaltyCards.add(loyaltyCardsItem); + this.responseContent.add(responseContentItem); return this; } /** - * Identifier of the loyalty card used during this event. - * @return loyaltyCards + * Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. + * @return responseContent **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[loyalty-card-1]", value = "Identifier of the loyalty card used during this event.") + @ApiModelProperty(example = "[triggeredCampaigns, customerProfile]", value = "Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. ") - public List getLoyaltyCards() { - return loyaltyCards; + public List getResponseContent() { + return responseContent; } - public void setLoyaltyCards(List loyaltyCards) { - this.loyaltyCards = loyaltyCards; + public void setResponseContent(List responseContent) { + this.responseContent = responseContent; } - public IntegrationEventV2Request responseContent(List responseContent) { + public IntegrationEventV2Request loyaltyCards(List loyaltyCards) { - this.responseContent = responseContent; + this.loyaltyCards = loyaltyCards; return this; } - public IntegrationEventV2Request addResponseContentItem(ResponseContentEnum responseContentItem) { - if (this.responseContent == null) { - this.responseContent = new ArrayList(); + public IntegrationEventV2Request addLoyaltyCardsItem(String loyaltyCardsItem) { + if (this.loyaltyCards == null) { + this.loyaltyCards = new ArrayList(); } - this.responseContent.add(responseContentItem); + this.loyaltyCards.add(loyaltyCardsItem); return this; } /** - * Optional list of requested information to be present on the response related to the tracking custom event. - * @return responseContent + * Identifiers of the loyalty cards used during this event. + * @return loyaltyCards **/ @javax.annotation.Nullable - @ApiModelProperty(example = "[triggeredCampaigns, customerProfile]", value = "Optional list of requested information to be present on the response related to the tracking custom event. ") + @ApiModelProperty(example = "[loyalty-card-1]", value = "Identifiers of the loyalty cards used during this event.") - public List getResponseContent() { - return responseContent; + public List getLoyaltyCards() { + return loyaltyCards; } - public void setResponseContent(List responseContent) { - this.responseContent = responseContent; + public void setLoyaltyCards(List loyaltyCards) { + this.loyaltyCards = loyaltyCards; } @@ -313,13 +313,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.evaluableCampaignIds, integrationEventV2Request.evaluableCampaignIds) && Objects.equals(this.type, integrationEventV2Request.type) && Objects.equals(this.attributes, integrationEventV2Request.attributes) && - Objects.equals(this.loyaltyCards, integrationEventV2Request.loyaltyCards) && - Objects.equals(this.responseContent, integrationEventV2Request.responseContent); + Objects.equals(this.responseContent, integrationEventV2Request.responseContent) && + Objects.equals(this.loyaltyCards, integrationEventV2Request.loyaltyCards); } @Override public int hashCode() { - return Objects.hash(profileId, storeIntegrationId, evaluableCampaignIds, type, attributes, loyaltyCards, responseContent); + return Objects.hash(profileId, storeIntegrationId, evaluableCampaignIds, type, attributes, responseContent, loyaltyCards); } @@ -332,8 +332,8 @@ public String toString() { sb.append(" evaluableCampaignIds: ").append(toIndentedString(evaluableCampaignIds)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" loyaltyCards: ").append(toIndentedString(loyaltyCards)).append("\n"); sb.append(" responseContent: ").append(toIndentedString(responseContent)).append("\n"); + sb.append(" loyaltyCards: ").append(toIndentedString(loyaltyCards)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/IntegrationEventV2Response.java b/src/main/java/one/talon/model/IntegrationEventV2Response.java new file mode 100644 index 00000000..be09212e --- /dev/null +++ b/src/main/java/one/talon/model/IntegrationEventV2Response.java @@ -0,0 +1,379 @@ +/* + * 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.Campaign; +import one.talon.model.Coupon; +import one.talon.model.CustomerProfile; +import one.talon.model.Effect; +import one.talon.model.Event; +import one.talon.model.Giveaway; +import one.talon.model.Loyalty; +import one.talon.model.Referral; +import one.talon.model.RuleFailureReason; + +/** + * This is the response type returned by the trackEventV2 endpoint. + */ +@ApiModel(description = "This is the response type returned by the trackEventV2 endpoint. ") + +public class IntegrationEventV2Response { + public static final String SERIALIZED_NAME_CUSTOMER_PROFILE = "customerProfile"; + @SerializedName(SERIALIZED_NAME_CUSTOMER_PROFILE) + private CustomerProfile customerProfile; + + public static final String SERIALIZED_NAME_LOYALTY = "loyalty"; + @SerializedName(SERIALIZED_NAME_LOYALTY) + private Loyalty loyalty; + + public static final String SERIALIZED_NAME_TRIGGERED_CAMPAIGNS = "triggeredCampaigns"; + @SerializedName(SERIALIZED_NAME_TRIGGERED_CAMPAIGNS) + private List triggeredCampaigns = null; + + public static final String SERIALIZED_NAME_EFFECTS = "effects"; + @SerializedName(SERIALIZED_NAME_EFFECTS) + private List effects = new ArrayList(); + + public static final String SERIALIZED_NAME_RULE_FAILURE_REASONS = "ruleFailureReasons"; + @SerializedName(SERIALIZED_NAME_RULE_FAILURE_REASONS) + private List ruleFailureReasons = null; + + public static final String SERIALIZED_NAME_CREATED_COUPONS = "createdCoupons"; + @SerializedName(SERIALIZED_NAME_CREATED_COUPONS) + private List createdCoupons = new ArrayList(); + + public static final String SERIALIZED_NAME_CREATED_REFERRALS = "createdReferrals"; + @SerializedName(SERIALIZED_NAME_CREATED_REFERRALS) + private List createdReferrals = new ArrayList(); + + public static final String SERIALIZED_NAME_AWARDED_GIVEAWAYS = "awardedGiveaways"; + @SerializedName(SERIALIZED_NAME_AWARDED_GIVEAWAYS) + private List awardedGiveaways = null; + + public static final String SERIALIZED_NAME_EVENT = "event"; + @SerializedName(SERIALIZED_NAME_EVENT) + private Event event; + + + public IntegrationEventV2Response customerProfile(CustomerProfile customerProfile) { + + this.customerProfile = customerProfile; + return this; + } + + /** + * Get customerProfile + * @return customerProfile + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public CustomerProfile getCustomerProfile() { + return customerProfile; + } + + + public void setCustomerProfile(CustomerProfile customerProfile) { + this.customerProfile = customerProfile; + } + + + public IntegrationEventV2Response loyalty(Loyalty loyalty) { + + this.loyalty = loyalty; + return this; + } + + /** + * Get loyalty + * @return loyalty + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Loyalty getLoyalty() { + return loyalty; + } + + + public void setLoyalty(Loyalty loyalty) { + this.loyalty = loyalty; + } + + + public IntegrationEventV2Response triggeredCampaigns(List triggeredCampaigns) { + + this.triggeredCampaigns = triggeredCampaigns; + return this; + } + + public IntegrationEventV2Response addTriggeredCampaignsItem(Campaign triggeredCampaignsItem) { + if (this.triggeredCampaigns == null) { + this.triggeredCampaigns = new ArrayList(); + } + this.triggeredCampaigns.add(triggeredCampaignsItem); + return this; + } + + /** + * The campaigns that were triggered as a result of processing the event. + * @return triggeredCampaigns + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The campaigns that were triggered as a result of processing the event.") + + public List getTriggeredCampaigns() { + return triggeredCampaigns; + } + + + public void setTriggeredCampaigns(List triggeredCampaigns) { + this.triggeredCampaigns = triggeredCampaigns; + } + + + public IntegrationEventV2Response effects(List effects) { + + this.effects = effects; + return this; + } + + public IntegrationEventV2Response addEffectsItem(Effect effectsItem) { + this.effects.add(effectsItem); + return this; + } + + /** + * The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + * @return effects + **/ + @ApiModelProperty(required = true, value = "The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).") + + public List getEffects() { + return effects; + } + + + public void setEffects(List effects) { + this.effects = effects; + } + + + public IntegrationEventV2Response ruleFailureReasons(List ruleFailureReasons) { + + this.ruleFailureReasons = ruleFailureReasons; + return this; + } + + public IntegrationEventV2Response addRuleFailureReasonsItem(RuleFailureReason ruleFailureReasonsItem) { + if (this.ruleFailureReasons == null) { + this.ruleFailureReasons = new ArrayList(); + } + this.ruleFailureReasons.add(ruleFailureReasonsItem); + return this; + } + + /** + * The reasons why certain rules were not triggered during the event processing. + * @return ruleFailureReasons + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The reasons why certain rules were not triggered during the event processing. ") + + public List getRuleFailureReasons() { + return ruleFailureReasons; + } + + + public void setRuleFailureReasons(List ruleFailureReasons) { + this.ruleFailureReasons = ruleFailureReasons; + } + + + public IntegrationEventV2Response createdCoupons(List createdCoupons) { + + this.createdCoupons = createdCoupons; + return this; + } + + public IntegrationEventV2Response addCreatedCouponsItem(Coupon createdCouponsItem) { + this.createdCoupons.add(createdCouponsItem); + return this; + } + + /** + * The coupons that were created during the event processing. + * @return createdCoupons + **/ + @ApiModelProperty(required = true, value = "The coupons that were created during the event processing.") + + public List getCreatedCoupons() { + return createdCoupons; + } + + + public void setCreatedCoupons(List createdCoupons) { + this.createdCoupons = createdCoupons; + } + + + public IntegrationEventV2Response createdReferrals(List createdReferrals) { + + this.createdReferrals = createdReferrals; + return this; + } + + public IntegrationEventV2Response addCreatedReferralsItem(Referral createdReferralsItem) { + this.createdReferrals.add(createdReferralsItem); + return this; + } + + /** + * The referrals that were created during the event processing. + * @return createdReferrals + **/ + @ApiModelProperty(required = true, value = "The referrals that were created during the event processing.") + + public List getCreatedReferrals() { + return createdReferrals; + } + + + public void setCreatedReferrals(List createdReferrals) { + this.createdReferrals = createdReferrals; + } + + + public IntegrationEventV2Response awardedGiveaways(List awardedGiveaways) { + + this.awardedGiveaways = awardedGiveaways; + return this; + } + + public IntegrationEventV2Response addAwardedGiveawaysItem(Giveaway awardedGiveawaysItem) { + if (this.awardedGiveaways == null) { + this.awardedGiveaways = new ArrayList(); + } + this.awardedGiveaways.add(awardedGiveawaysItem); + return this; + } + + /** + * The giveaways that were awarded during the event processing. + * @return awardedGiveaways + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The giveaways that were awarded during the event processing.") + + public List getAwardedGiveaways() { + return awardedGiveaways; + } + + + public void setAwardedGiveaways(List awardedGiveaways) { + this.awardedGiveaways = awardedGiveaways; + } + + + public IntegrationEventV2Response event(Event event) { + + this.event = event; + return this; + } + + /** + * Get event + * @return event + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Event getEvent() { + return event; + } + + + public void setEvent(Event event) { + this.event = event; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IntegrationEventV2Response integrationEventV2Response = (IntegrationEventV2Response) o; + return Objects.equals(this.customerProfile, integrationEventV2Response.customerProfile) && + Objects.equals(this.loyalty, integrationEventV2Response.loyalty) && + Objects.equals(this.triggeredCampaigns, integrationEventV2Response.triggeredCampaigns) && + Objects.equals(this.effects, integrationEventV2Response.effects) && + Objects.equals(this.ruleFailureReasons, integrationEventV2Response.ruleFailureReasons) && + Objects.equals(this.createdCoupons, integrationEventV2Response.createdCoupons) && + Objects.equals(this.createdReferrals, integrationEventV2Response.createdReferrals) && + Objects.equals(this.awardedGiveaways, integrationEventV2Response.awardedGiveaways) && + Objects.equals(this.event, integrationEventV2Response.event); + } + + @Override + public int hashCode() { + return Objects.hash(customerProfile, loyalty, triggeredCampaigns, effects, ruleFailureReasons, createdCoupons, createdReferrals, awardedGiveaways, event); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IntegrationEventV2Response {\n"); + sb.append(" customerProfile: ").append(toIndentedString(customerProfile)).append("\n"); + sb.append(" loyalty: ").append(toIndentedString(loyalty)).append("\n"); + sb.append(" triggeredCampaigns: ").append(toIndentedString(triggeredCampaigns)).append("\n"); + sb.append(" effects: ").append(toIndentedString(effects)).append("\n"); + sb.append(" ruleFailureReasons: ").append(toIndentedString(ruleFailureReasons)).append("\n"); + sb.append(" createdCoupons: ").append(toIndentedString(createdCoupons)).append("\n"); + sb.append(" createdReferrals: ").append(toIndentedString(createdReferrals)).append("\n"); + sb.append(" awardedGiveaways: ").append(toIndentedString(awardedGiveaways)).append("\n"); + sb.append(" event: ").append(toIndentedString(event)).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/IntegrationEventV3Request.java b/src/main/java/one/talon/model/IntegrationEventV3Request.java index 76b27769..eb5239d4 100644 --- a/src/main/java/one/talon/model/IntegrationEventV3Request.java +++ b/src/main/java/one/talon/model/IntegrationEventV3Request.java @@ -78,7 +78,7 @@ public enum ResponseContentEnum { LOYALTY("loyalty"), - EVENT("event"), + ADVANCEDEVENT("advancedEvent"), AWARDEDGIVEAWAYS("awardedGiveaways"), diff --git a/src/main/java/one/talon/model/IntegrationEventV3Response.java b/src/main/java/one/talon/model/IntegrationEventV3Response.java index 1e40ab69..78c97795 100644 --- a/src/main/java/one/talon/model/IntegrationEventV3Response.java +++ b/src/main/java/one/talon/model/IntegrationEventV3Response.java @@ -45,10 +45,6 @@ public class IntegrationEventV3Response { @SerializedName(SERIALIZED_NAME_CUSTOMER_PROFILE) private CustomerProfile customerProfile; - public static final String SERIALIZED_NAME_EVENT = "event"; - @SerializedName(SERIALIZED_NAME_EVENT) - private EventV3 event; - public static final String SERIALIZED_NAME_LOYALTY = "loyalty"; @SerializedName(SERIALIZED_NAME_LOYALTY) private Loyalty loyalty; @@ -57,18 +53,14 @@ public class IntegrationEventV3Response { @SerializedName(SERIALIZED_NAME_TRIGGERED_CAMPAIGNS) private List triggeredCampaigns = null; - public static final String SERIALIZED_NAME_RULE_FAILURE_REASONS = "ruleFailureReasons"; - @SerializedName(SERIALIZED_NAME_RULE_FAILURE_REASONS) - private List ruleFailureReasons = null; - - public static final String SERIALIZED_NAME_AWARDED_GIVEAWAYS = "awardedGiveaways"; - @SerializedName(SERIALIZED_NAME_AWARDED_GIVEAWAYS) - private List awardedGiveaways = null; - public static final String SERIALIZED_NAME_EFFECTS = "effects"; @SerializedName(SERIALIZED_NAME_EFFECTS) private List effects = new ArrayList(); + public static final String SERIALIZED_NAME_RULE_FAILURE_REASONS = "ruleFailureReasons"; + @SerializedName(SERIALIZED_NAME_RULE_FAILURE_REASONS) + private List ruleFailureReasons = null; + public static final String SERIALIZED_NAME_CREATED_COUPONS = "createdCoupons"; @SerializedName(SERIALIZED_NAME_CREATED_COUPONS) private List createdCoupons = new ArrayList(); @@ -77,6 +69,14 @@ public class IntegrationEventV3Response { @SerializedName(SERIALIZED_NAME_CREATED_REFERRALS) private List createdReferrals = new ArrayList(); + public static final String SERIALIZED_NAME_AWARDED_GIVEAWAYS = "awardedGiveaways"; + @SerializedName(SERIALIZED_NAME_AWARDED_GIVEAWAYS) + private List awardedGiveaways = null; + + public static final String SERIALIZED_NAME_ADVANCED_EVENT = "advancedEvent"; + @SerializedName(SERIALIZED_NAME_ADVANCED_EVENT) + private EventV3 advancedEvent; + public IntegrationEventV3Response customerProfile(CustomerProfile customerProfile) { @@ -101,29 +101,6 @@ public void setCustomerProfile(CustomerProfile customerProfile) { } - public IntegrationEventV3Response event(EventV3 event) { - - this.event = event; - return this; - } - - /** - * Get event - * @return event - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public EventV3 getEvent() { - return event; - } - - - public void setEvent(EventV3 event) { - this.event = event; - } - - public IntegrationEventV3Response loyalty(Loyalty loyalty) { this.loyalty = loyalty; @@ -162,11 +139,11 @@ public IntegrationEventV3Response addTriggeredCampaignsItem(Campaign triggeredCa } /** - * Get triggeredCampaigns + * The campaigns that were triggered as a result of processing the event. * @return triggeredCampaigns **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The campaigns that were triggered as a result of processing the event.") public List getTriggeredCampaigns() { return triggeredCampaigns; @@ -178,6 +155,33 @@ public void setTriggeredCampaigns(List triggeredCampaigns) { } + public IntegrationEventV3Response effects(List effects) { + + this.effects = effects; + return this; + } + + public IntegrationEventV3Response addEffectsItem(Effect effectsItem) { + this.effects.add(effectsItem); + return this; + } + + /** + * The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + * @return effects + **/ + @ApiModelProperty(required = true, value = "The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).") + + public List getEffects() { + return effects; + } + + + public void setEffects(List effects) { + this.effects = effects; + } + + public IntegrationEventV3Response ruleFailureReasons(List ruleFailureReasons) { this.ruleFailureReasons = ruleFailureReasons; @@ -193,11 +197,11 @@ public IntegrationEventV3Response addRuleFailureReasonsItem(RuleFailureReason ru } /** - * Get ruleFailureReasons + * The reasons why certain rules were not triggered during the event processing. * @return ruleFailureReasons **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The reasons why certain rules were not triggered during the event processing. ") public List getRuleFailureReasons() { return ruleFailureReasons; @@ -209,115 +213,111 @@ public void setRuleFailureReasons(List ruleFailureReasons) { } - public IntegrationEventV3Response awardedGiveaways(List awardedGiveaways) { + public IntegrationEventV3Response createdCoupons(List createdCoupons) { - this.awardedGiveaways = awardedGiveaways; + this.createdCoupons = createdCoupons; return this; } - public IntegrationEventV3Response addAwardedGiveawaysItem(Giveaway awardedGiveawaysItem) { - if (this.awardedGiveaways == null) { - this.awardedGiveaways = new ArrayList(); - } - this.awardedGiveaways.add(awardedGiveawaysItem); + public IntegrationEventV3Response addCreatedCouponsItem(Coupon createdCouponsItem) { + this.createdCoupons.add(createdCouponsItem); return this; } /** - * Get awardedGiveaways - * @return awardedGiveaways + * The coupons that were created during the event processing. + * @return createdCoupons **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "The coupons that were created during the event processing.") - public List getAwardedGiveaways() { - return awardedGiveaways; + public List getCreatedCoupons() { + return createdCoupons; } - public void setAwardedGiveaways(List awardedGiveaways) { - this.awardedGiveaways = awardedGiveaways; + public void setCreatedCoupons(List createdCoupons) { + this.createdCoupons = createdCoupons; } - public IntegrationEventV3Response effects(List effects) { + public IntegrationEventV3Response createdReferrals(List createdReferrals) { - this.effects = effects; + this.createdReferrals = createdReferrals; return this; } - public IntegrationEventV3Response addEffectsItem(Effect effectsItem) { - this.effects.add(effectsItem); + public IntegrationEventV3Response addCreatedReferralsItem(Referral createdReferralsItem) { + this.createdReferrals.add(createdReferralsItem); return this; } /** - * The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). - * @return effects + * The referrals that were created during the event processing. + * @return createdReferrals **/ - @ApiModelProperty(required = true, value = "The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).") + @ApiModelProperty(required = true, value = "The referrals that were created during the event processing.") - public List getEffects() { - return effects; + public List getCreatedReferrals() { + return createdReferrals; } - public void setEffects(List effects) { - this.effects = effects; + public void setCreatedReferrals(List createdReferrals) { + this.createdReferrals = createdReferrals; } - public IntegrationEventV3Response createdCoupons(List createdCoupons) { + public IntegrationEventV3Response awardedGiveaways(List awardedGiveaways) { - this.createdCoupons = createdCoupons; + this.awardedGiveaways = awardedGiveaways; return this; } - public IntegrationEventV3Response addCreatedCouponsItem(Coupon createdCouponsItem) { - this.createdCoupons.add(createdCouponsItem); + public IntegrationEventV3Response addAwardedGiveawaysItem(Giveaway awardedGiveawaysItem) { + if (this.awardedGiveaways == null) { + this.awardedGiveaways = new ArrayList(); + } + this.awardedGiveaways.add(awardedGiveawaysItem); return this; } /** - * Get createdCoupons - * @return createdCoupons + * The giveaways that were awarded during the event processing. + * @return awardedGiveaways **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "The giveaways that were awarded during the event processing.") - public List getCreatedCoupons() { - return createdCoupons; + public List getAwardedGiveaways() { + return awardedGiveaways; } - public void setCreatedCoupons(List createdCoupons) { - this.createdCoupons = createdCoupons; + public void setAwardedGiveaways(List awardedGiveaways) { + this.awardedGiveaways = awardedGiveaways; } - public IntegrationEventV3Response createdReferrals(List createdReferrals) { + public IntegrationEventV3Response advancedEvent(EventV3 advancedEvent) { - this.createdReferrals = createdReferrals; - return this; - } - - public IntegrationEventV3Response addCreatedReferralsItem(Referral createdReferralsItem) { - this.createdReferrals.add(createdReferralsItem); + this.advancedEvent = advancedEvent; return this; } /** - * Get createdReferrals - * @return createdReferrals + * Get advancedEvent + * @return advancedEvent **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public List getCreatedReferrals() { - return createdReferrals; + public EventV3 getAdvancedEvent() { + return advancedEvent; } - public void setCreatedReferrals(List createdReferrals) { - this.createdReferrals = createdReferrals; + public void setAdvancedEvent(EventV3 advancedEvent) { + this.advancedEvent = advancedEvent; } @@ -331,19 +331,19 @@ public boolean equals(java.lang.Object o) { } IntegrationEventV3Response integrationEventV3Response = (IntegrationEventV3Response) o; return Objects.equals(this.customerProfile, integrationEventV3Response.customerProfile) && - Objects.equals(this.event, integrationEventV3Response.event) && Objects.equals(this.loyalty, integrationEventV3Response.loyalty) && Objects.equals(this.triggeredCampaigns, integrationEventV3Response.triggeredCampaigns) && - Objects.equals(this.ruleFailureReasons, integrationEventV3Response.ruleFailureReasons) && - Objects.equals(this.awardedGiveaways, integrationEventV3Response.awardedGiveaways) && Objects.equals(this.effects, integrationEventV3Response.effects) && + Objects.equals(this.ruleFailureReasons, integrationEventV3Response.ruleFailureReasons) && Objects.equals(this.createdCoupons, integrationEventV3Response.createdCoupons) && - Objects.equals(this.createdReferrals, integrationEventV3Response.createdReferrals); + Objects.equals(this.createdReferrals, integrationEventV3Response.createdReferrals) && + Objects.equals(this.awardedGiveaways, integrationEventV3Response.awardedGiveaways) && + Objects.equals(this.advancedEvent, integrationEventV3Response.advancedEvent); } @Override public int hashCode() { - return Objects.hash(customerProfile, event, loyalty, triggeredCampaigns, ruleFailureReasons, awardedGiveaways, effects, createdCoupons, createdReferrals); + return Objects.hash(customerProfile, loyalty, triggeredCampaigns, effects, ruleFailureReasons, createdCoupons, createdReferrals, awardedGiveaways, advancedEvent); } @@ -352,14 +352,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IntegrationEventV3Response {\n"); sb.append(" customerProfile: ").append(toIndentedString(customerProfile)).append("\n"); - sb.append(" event: ").append(toIndentedString(event)).append("\n"); sb.append(" loyalty: ").append(toIndentedString(loyalty)).append("\n"); sb.append(" triggeredCampaigns: ").append(toIndentedString(triggeredCampaigns)).append("\n"); - sb.append(" ruleFailureReasons: ").append(toIndentedString(ruleFailureReasons)).append("\n"); - sb.append(" awardedGiveaways: ").append(toIndentedString(awardedGiveaways)).append("\n"); sb.append(" effects: ").append(toIndentedString(effects)).append("\n"); + sb.append(" ruleFailureReasons: ").append(toIndentedString(ruleFailureReasons)).append("\n"); sb.append(" createdCoupons: ").append(toIndentedString(createdCoupons)).append("\n"); sb.append(" createdReferrals: ").append(toIndentedString(createdReferrals)).append("\n"); + sb.append(" awardedGiveaways: ").append(toIndentedString(awardedGiveaways)).append("\n"); + sb.append(" advancedEvent: ").append(toIndentedString(advancedEvent)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/IntegrationResponse.java b/src/main/java/one/talon/model/IntegrationResponse.java new file mode 100644 index 00000000..e08669bf --- /dev/null +++ b/src/main/java/one/talon/model/IntegrationResponse.java @@ -0,0 +1,349 @@ +/* + * 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.Campaign; +import one.talon.model.Coupon; +import one.talon.model.CustomerProfile; +import one.talon.model.Effect; +import one.talon.model.Giveaway; +import one.talon.model.Loyalty; +import one.talon.model.Referral; +import one.talon.model.RuleFailureReason; + +/** + * Contains entities that might be valuable in Talon.One integrations. + */ +@ApiModel(description = "Contains entities that might be valuable in Talon.One integrations. ") + +public class IntegrationResponse { + public static final String SERIALIZED_NAME_CUSTOMER_PROFILE = "customerProfile"; + @SerializedName(SERIALIZED_NAME_CUSTOMER_PROFILE) + private CustomerProfile customerProfile; + + public static final String SERIALIZED_NAME_LOYALTY = "loyalty"; + @SerializedName(SERIALIZED_NAME_LOYALTY) + private Loyalty loyalty; + + public static final String SERIALIZED_NAME_TRIGGERED_CAMPAIGNS = "triggeredCampaigns"; + @SerializedName(SERIALIZED_NAME_TRIGGERED_CAMPAIGNS) + private List triggeredCampaigns = null; + + public static final String SERIALIZED_NAME_EFFECTS = "effects"; + @SerializedName(SERIALIZED_NAME_EFFECTS) + private List effects = new ArrayList(); + + public static final String SERIALIZED_NAME_RULE_FAILURE_REASONS = "ruleFailureReasons"; + @SerializedName(SERIALIZED_NAME_RULE_FAILURE_REASONS) + private List ruleFailureReasons = null; + + public static final String SERIALIZED_NAME_CREATED_COUPONS = "createdCoupons"; + @SerializedName(SERIALIZED_NAME_CREATED_COUPONS) + private List createdCoupons = new ArrayList(); + + public static final String SERIALIZED_NAME_CREATED_REFERRALS = "createdReferrals"; + @SerializedName(SERIALIZED_NAME_CREATED_REFERRALS) + private List createdReferrals = new ArrayList(); + + public static final String SERIALIZED_NAME_AWARDED_GIVEAWAYS = "awardedGiveaways"; + @SerializedName(SERIALIZED_NAME_AWARDED_GIVEAWAYS) + private List awardedGiveaways = null; + + + public IntegrationResponse customerProfile(CustomerProfile customerProfile) { + + this.customerProfile = customerProfile; + return this; + } + + /** + * Get customerProfile + * @return customerProfile + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public CustomerProfile getCustomerProfile() { + return customerProfile; + } + + + public void setCustomerProfile(CustomerProfile customerProfile) { + this.customerProfile = customerProfile; + } + + + public IntegrationResponse loyalty(Loyalty loyalty) { + + this.loyalty = loyalty; + return this; + } + + /** + * Get loyalty + * @return loyalty + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Loyalty getLoyalty() { + return loyalty; + } + + + public void setLoyalty(Loyalty loyalty) { + this.loyalty = loyalty; + } + + + public IntegrationResponse triggeredCampaigns(List triggeredCampaigns) { + + this.triggeredCampaigns = triggeredCampaigns; + return this; + } + + public IntegrationResponse addTriggeredCampaignsItem(Campaign triggeredCampaignsItem) { + if (this.triggeredCampaigns == null) { + this.triggeredCampaigns = new ArrayList(); + } + this.triggeredCampaigns.add(triggeredCampaignsItem); + return this; + } + + /** + * The campaigns that were triggered as a result of processing the event. + * @return triggeredCampaigns + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The campaigns that were triggered as a result of processing the event.") + + public List getTriggeredCampaigns() { + return triggeredCampaigns; + } + + + public void setTriggeredCampaigns(List triggeredCampaigns) { + this.triggeredCampaigns = triggeredCampaigns; + } + + + public IntegrationResponse effects(List effects) { + + this.effects = effects; + return this; + } + + public IntegrationResponse addEffectsItem(Effect effectsItem) { + this.effects.add(effectsItem); + return this; + } + + /** + * The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + * @return effects + **/ + @ApiModelProperty(required = true, value = "The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).") + + public List getEffects() { + return effects; + } + + + public void setEffects(List effects) { + this.effects = effects; + } + + + public IntegrationResponse ruleFailureReasons(List ruleFailureReasons) { + + this.ruleFailureReasons = ruleFailureReasons; + return this; + } + + public IntegrationResponse addRuleFailureReasonsItem(RuleFailureReason ruleFailureReasonsItem) { + if (this.ruleFailureReasons == null) { + this.ruleFailureReasons = new ArrayList(); + } + this.ruleFailureReasons.add(ruleFailureReasonsItem); + return this; + } + + /** + * The reasons why certain rules were not triggered during the event processing. + * @return ruleFailureReasons + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The reasons why certain rules were not triggered during the event processing. ") + + public List getRuleFailureReasons() { + return ruleFailureReasons; + } + + + public void setRuleFailureReasons(List ruleFailureReasons) { + this.ruleFailureReasons = ruleFailureReasons; + } + + + public IntegrationResponse createdCoupons(List createdCoupons) { + + this.createdCoupons = createdCoupons; + return this; + } + + public IntegrationResponse addCreatedCouponsItem(Coupon createdCouponsItem) { + this.createdCoupons.add(createdCouponsItem); + return this; + } + + /** + * The coupons that were created during the event processing. + * @return createdCoupons + **/ + @ApiModelProperty(required = true, value = "The coupons that were created during the event processing.") + + public List getCreatedCoupons() { + return createdCoupons; + } + + + public void setCreatedCoupons(List createdCoupons) { + this.createdCoupons = createdCoupons; + } + + + public IntegrationResponse createdReferrals(List createdReferrals) { + + this.createdReferrals = createdReferrals; + return this; + } + + public IntegrationResponse addCreatedReferralsItem(Referral createdReferralsItem) { + this.createdReferrals.add(createdReferralsItem); + return this; + } + + /** + * The referrals that were created during the event processing. + * @return createdReferrals + **/ + @ApiModelProperty(required = true, value = "The referrals that were created during the event processing.") + + public List getCreatedReferrals() { + return createdReferrals; + } + + + public void setCreatedReferrals(List createdReferrals) { + this.createdReferrals = createdReferrals; + } + + + public IntegrationResponse awardedGiveaways(List awardedGiveaways) { + + this.awardedGiveaways = awardedGiveaways; + return this; + } + + public IntegrationResponse addAwardedGiveawaysItem(Giveaway awardedGiveawaysItem) { + if (this.awardedGiveaways == null) { + this.awardedGiveaways = new ArrayList(); + } + this.awardedGiveaways.add(awardedGiveawaysItem); + return this; + } + + /** + * The giveaways that were awarded during the event processing. + * @return awardedGiveaways + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The giveaways that were awarded during the event processing.") + + public List getAwardedGiveaways() { + return awardedGiveaways; + } + + + public void setAwardedGiveaways(List awardedGiveaways) { + this.awardedGiveaways = awardedGiveaways; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IntegrationResponse integrationResponse = (IntegrationResponse) o; + return Objects.equals(this.customerProfile, integrationResponse.customerProfile) && + Objects.equals(this.loyalty, integrationResponse.loyalty) && + Objects.equals(this.triggeredCampaigns, integrationResponse.triggeredCampaigns) && + Objects.equals(this.effects, integrationResponse.effects) && + Objects.equals(this.ruleFailureReasons, integrationResponse.ruleFailureReasons) && + Objects.equals(this.createdCoupons, integrationResponse.createdCoupons) && + Objects.equals(this.createdReferrals, integrationResponse.createdReferrals) && + Objects.equals(this.awardedGiveaways, integrationResponse.awardedGiveaways); + } + + @Override + public int hashCode() { + return Objects.hash(customerProfile, loyalty, triggeredCampaigns, effects, ruleFailureReasons, createdCoupons, createdReferrals, awardedGiveaways); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IntegrationResponse {\n"); + sb.append(" customerProfile: ").append(toIndentedString(customerProfile)).append("\n"); + sb.append(" loyalty: ").append(toIndentedString(loyalty)).append("\n"); + sb.append(" triggeredCampaigns: ").append(toIndentedString(triggeredCampaigns)).append("\n"); + sb.append(" effects: ").append(toIndentedString(effects)).append("\n"); + sb.append(" ruleFailureReasons: ").append(toIndentedString(ruleFailureReasons)).append("\n"); + sb.append(" createdCoupons: ").append(toIndentedString(createdCoupons)).append("\n"); + sb.append(" createdReferrals: ").append(toIndentedString(createdReferrals)).append("\n"); + sb.append(" awardedGiveaways: ").append(toIndentedString(awardedGiveaways)).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/IntegrationStateV2.java b/src/main/java/one/talon/model/IntegrationStateV2.java index 420ddf8d..3b00cb54 100644 --- a/src/main/java/one/talon/model/IntegrationStateV2.java +++ b/src/main/java/one/talon/model/IntegrationStateV2.java @@ -31,6 +31,7 @@ import one.talon.model.CustomerSessionV2; import one.talon.model.Effect; import one.talon.model.Event; +import one.talon.model.EventV3; import one.talon.model.Giveaway; import one.talon.model.IntegrationCoupon; import one.talon.model.InventoryReferral; @@ -45,30 +46,14 @@ @ApiModel(description = "Contains all entities that might interest Talon.One integrations. ") public class IntegrationStateV2 { - public static final String SERIALIZED_NAME_CUSTOMER_SESSION = "customerSession"; - @SerializedName(SERIALIZED_NAME_CUSTOMER_SESSION) - private CustomerSessionV2 customerSession; - public static final String SERIALIZED_NAME_CUSTOMER_PROFILE = "customerProfile"; @SerializedName(SERIALIZED_NAME_CUSTOMER_PROFILE) private CustomerProfile customerProfile; - public static final String SERIALIZED_NAME_EVENT = "event"; - @SerializedName(SERIALIZED_NAME_EVENT) - private Event event; - public static final String SERIALIZED_NAME_LOYALTY = "loyalty"; @SerializedName(SERIALIZED_NAME_LOYALTY) private Loyalty loyalty; - public static final String SERIALIZED_NAME_REFERRAL = "referral"; - @SerializedName(SERIALIZED_NAME_REFERRAL) - private InventoryReferral referral; - - public static final String SERIALIZED_NAME_COUPONS = "coupons"; - @SerializedName(SERIALIZED_NAME_COUPONS) - private List coupons = null; - public static final String SERIALIZED_NAME_TRIGGERED_CAMPAIGNS = "triggeredCampaigns"; @SerializedName(SERIALIZED_NAME_TRIGGERED_CAMPAIGNS) private List triggeredCampaigns = null; @@ -93,6 +78,26 @@ public class IntegrationStateV2 { @SerializedName(SERIALIZED_NAME_AWARDED_GIVEAWAYS) private List awardedGiveaways = null; + public static final String SERIALIZED_NAME_REFERRAL = "referral"; + @SerializedName(SERIALIZED_NAME_REFERRAL) + private InventoryReferral referral; + + public static final String SERIALIZED_NAME_COUPONS = "coupons"; + @SerializedName(SERIALIZED_NAME_COUPONS) + private List coupons = null; + + public static final String SERIALIZED_NAME_EVENT = "event"; + @SerializedName(SERIALIZED_NAME_EVENT) + private Event event; + + public static final String SERIALIZED_NAME_ADVANCED_EVENT = "advancedEvent"; + @SerializedName(SERIALIZED_NAME_ADVANCED_EVENT) + private EventV3 advancedEvent; + + public static final String SERIALIZED_NAME_CUSTOMER_SESSION = "customerSession"; + @SerializedName(SERIALIZED_NAME_CUSTOMER_SESSION) + private CustomerSessionV2 customerSession; + public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) private ModelReturn _return; @@ -102,29 +107,6 @@ public class IntegrationStateV2 { private List previousReturns = null; - public IntegrationStateV2 customerSession(CustomerSessionV2 customerSession) { - - this.customerSession = customerSession; - return this; - } - - /** - * Get customerSession - * @return customerSession - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public CustomerSessionV2 getCustomerSession() { - return customerSession; - } - - - public void setCustomerSession(CustomerSessionV2 customerSession) { - this.customerSession = customerSession; - } - - public IntegrationStateV2 customerProfile(CustomerProfile customerProfile) { this.customerProfile = customerProfile; @@ -148,29 +130,6 @@ public void setCustomerProfile(CustomerProfile customerProfile) { } - public IntegrationStateV2 event(Event event) { - - this.event = event; - return this; - } - - /** - * Get event - * @return event - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Event getEvent() { - return event; - } - - - public void setEvent(Event event) { - this.event = event; - } - - public IntegrationStateV2 loyalty(Loyalty loyalty) { this.loyalty = loyalty; @@ -194,60 +153,6 @@ public void setLoyalty(Loyalty loyalty) { } - public IntegrationStateV2 referral(InventoryReferral referral) { - - this.referral = referral; - return this; - } - - /** - * Get referral - * @return referral - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public InventoryReferral getReferral() { - return referral; - } - - - public void setReferral(InventoryReferral referral) { - this.referral = referral; - } - - - public IntegrationStateV2 coupons(List coupons) { - - this.coupons = coupons; - return this; - } - - public IntegrationStateV2 addCouponsItem(IntegrationCoupon couponsItem) { - if (this.coupons == null) { - this.coupons = new ArrayList(); - } - this.coupons.add(couponsItem); - return this; - } - - /** - * Get coupons - * @return coupons - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getCoupons() { - return coupons; - } - - - public void setCoupons(List coupons) { - this.coupons = coupons; - } - - public IntegrationStateV2 triggeredCampaigns(List triggeredCampaigns) { this.triggeredCampaigns = triggeredCampaigns; @@ -263,11 +168,11 @@ public IntegrationStateV2 addTriggeredCampaignsItem(Campaign triggeredCampaignsI } /** - * Get triggeredCampaigns + * The campaigns that were triggered as a result of processing the event. * @return triggeredCampaigns **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The campaigns that were triggered as a result of processing the event.") public List getTriggeredCampaigns() { return triggeredCampaigns; @@ -321,11 +226,11 @@ public IntegrationStateV2 addRuleFailureReasonsItem(RuleFailureReason ruleFailur } /** - * Get ruleFailureReasons + * The reasons why certain rules were not triggered during the event processing. * @return ruleFailureReasons **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The reasons why certain rules were not triggered during the event processing. ") public List getRuleFailureReasons() { return ruleFailureReasons; @@ -349,10 +254,10 @@ public IntegrationStateV2 addCreatedCouponsItem(Coupon createdCouponsItem) { } /** - * Get createdCoupons + * The coupons that were created during the event processing. * @return createdCoupons **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "The coupons that were created during the event processing.") public List getCreatedCoupons() { return createdCoupons; @@ -376,10 +281,10 @@ public IntegrationStateV2 addCreatedReferralsItem(Referral createdReferralsItem) } /** - * Get createdReferrals + * The referrals that were created during the event processing. * @return createdReferrals **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "The referrals that were created during the event processing.") public List getCreatedReferrals() { return createdReferrals; @@ -406,11 +311,11 @@ public IntegrationStateV2 addAwardedGiveawaysItem(Giveaway awardedGiveawaysItem) } /** - * Get awardedGiveaways + * The giveaways that were awarded during the event processing. * @return awardedGiveaways **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The giveaways that were awarded during the event processing.") public List getAwardedGiveaways() { return awardedGiveaways; @@ -422,6 +327,129 @@ public void setAwardedGiveaways(List awardedGiveaways) { } + public IntegrationStateV2 referral(InventoryReferral referral) { + + this.referral = referral; + return this; + } + + /** + * Get referral + * @return referral + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public InventoryReferral getReferral() { + return referral; + } + + + public void setReferral(InventoryReferral referral) { + this.referral = referral; + } + + + public IntegrationStateV2 coupons(List coupons) { + + this.coupons = coupons; + return this; + } + + public IntegrationStateV2 addCouponsItem(IntegrationCoupon couponsItem) { + if (this.coupons == null) { + this.coupons = new ArrayList(); + } + this.coupons.add(couponsItem); + return this; + } + + /** + * The coupons that were processed. + * @return coupons + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The coupons that were processed.") + + public List getCoupons() { + return coupons; + } + + + public void setCoupons(List coupons) { + this.coupons = coupons; + } + + + public IntegrationStateV2 event(Event event) { + + this.event = event; + return this; + } + + /** + * Get event + * @return event + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Event getEvent() { + return event; + } + + + public void setEvent(Event event) { + this.event = event; + } + + + public IntegrationStateV2 advancedEvent(EventV3 advancedEvent) { + + this.advancedEvent = advancedEvent; + return this; + } + + /** + * Get advancedEvent + * @return advancedEvent + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public EventV3 getAdvancedEvent() { + return advancedEvent; + } + + + public void setAdvancedEvent(EventV3 advancedEvent) { + this.advancedEvent = advancedEvent; + } + + + public IntegrationStateV2 customerSession(CustomerSessionV2 customerSession) { + + this.customerSession = customerSession; + return this; + } + + /** + * Get customerSession + * @return customerSession + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public CustomerSessionV2 getCustomerSession() { + return customerSession; + } + + + public void setCustomerSession(CustomerSessionV2 customerSession) { + this.customerSession = customerSession; + } + + public IntegrationStateV2 _return(ModelReturn _return) { this._return = _return; @@ -460,11 +488,11 @@ public IntegrationStateV2 addPreviousReturnsItem(ModelReturn previousReturnsItem } /** - * Get previousReturns + * The previous returns associated with the event. * @return previousReturns **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The previous returns associated with the event.") public List getPreviousReturns() { return previousReturns; @@ -485,25 +513,26 @@ public boolean equals(java.lang.Object o) { return false; } IntegrationStateV2 integrationStateV2 = (IntegrationStateV2) o; - return Objects.equals(this.customerSession, integrationStateV2.customerSession) && - Objects.equals(this.customerProfile, integrationStateV2.customerProfile) && - Objects.equals(this.event, integrationStateV2.event) && + return Objects.equals(this.customerProfile, integrationStateV2.customerProfile) && Objects.equals(this.loyalty, integrationStateV2.loyalty) && - Objects.equals(this.referral, integrationStateV2.referral) && - Objects.equals(this.coupons, integrationStateV2.coupons) && Objects.equals(this.triggeredCampaigns, integrationStateV2.triggeredCampaigns) && Objects.equals(this.effects, integrationStateV2.effects) && Objects.equals(this.ruleFailureReasons, integrationStateV2.ruleFailureReasons) && Objects.equals(this.createdCoupons, integrationStateV2.createdCoupons) && Objects.equals(this.createdReferrals, integrationStateV2.createdReferrals) && Objects.equals(this.awardedGiveaways, integrationStateV2.awardedGiveaways) && + Objects.equals(this.referral, integrationStateV2.referral) && + Objects.equals(this.coupons, integrationStateV2.coupons) && + Objects.equals(this.event, integrationStateV2.event) && + Objects.equals(this.advancedEvent, integrationStateV2.advancedEvent) && + Objects.equals(this.customerSession, integrationStateV2.customerSession) && Objects.equals(this._return, integrationStateV2._return) && Objects.equals(this.previousReturns, integrationStateV2.previousReturns); } @Override public int hashCode() { - return Objects.hash(customerSession, customerProfile, event, loyalty, referral, coupons, triggeredCampaigns, effects, ruleFailureReasons, createdCoupons, createdReferrals, awardedGiveaways, _return, previousReturns); + return Objects.hash(customerProfile, loyalty, triggeredCampaigns, effects, ruleFailureReasons, createdCoupons, createdReferrals, awardedGiveaways, referral, coupons, event, advancedEvent, customerSession, _return, previousReturns); } @@ -511,18 +540,19 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IntegrationStateV2 {\n"); - sb.append(" customerSession: ").append(toIndentedString(customerSession)).append("\n"); sb.append(" customerProfile: ").append(toIndentedString(customerProfile)).append("\n"); - sb.append(" event: ").append(toIndentedString(event)).append("\n"); sb.append(" loyalty: ").append(toIndentedString(loyalty)).append("\n"); - sb.append(" referral: ").append(toIndentedString(referral)).append("\n"); - sb.append(" coupons: ").append(toIndentedString(coupons)).append("\n"); sb.append(" triggeredCampaigns: ").append(toIndentedString(triggeredCampaigns)).append("\n"); sb.append(" effects: ").append(toIndentedString(effects)).append("\n"); sb.append(" ruleFailureReasons: ").append(toIndentedString(ruleFailureReasons)).append("\n"); sb.append(" createdCoupons: ").append(toIndentedString(createdCoupons)).append("\n"); sb.append(" createdReferrals: ").append(toIndentedString(createdReferrals)).append("\n"); sb.append(" awardedGiveaways: ").append(toIndentedString(awardedGiveaways)).append("\n"); + sb.append(" referral: ").append(toIndentedString(referral)).append("\n"); + sb.append(" coupons: ").append(toIndentedString(coupons)).append("\n"); + sb.append(" event: ").append(toIndentedString(event)).append("\n"); + sb.append(" advancedEvent: ").append(toIndentedString(advancedEvent)).append("\n"); + sb.append(" customerSession: ").append(toIndentedString(customerSession)).append("\n"); sb.append(" _return: ").append(toIndentedString(_return)).append("\n"); sb.append(" previousReturns: ").append(toIndentedString(previousReturns)).append("\n"); sb.append("}"); diff --git a/src/main/java/one/talon/model/NewAttribute.java b/src/main/java/one/talon/model/NewAttribute.java index af4c366b..979bc7b0 100644 --- a/src/main/java/one/talon/model/NewAttribute.java +++ b/src/main/java/one/talon/model/NewAttribute.java @@ -52,6 +52,8 @@ public enum EntityEnum { GIVEAWAY("Giveaway"), + LOYALTYCARD("LoyaltyCard"), + REFERRAL("Referral"), STORE("Store"); diff --git a/src/main/java/one/talon/model/NewBlueprint.java b/src/main/java/one/talon/model/NewBlueprint.java new file mode 100644 index 00000000..c4c00fc8 --- /dev/null +++ b/src/main/java/one/talon/model/NewBlueprint.java @@ -0,0 +1,285 @@ +/* + * 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.CartItemFilterTemplate; +import one.talon.model.CatalogRule; + +/** + * NewBlueprint + */ + +public class NewBlueprint { + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + /** + * Category used to group blueprints. + */ + @JsonAdapter(CategoryEnum.Adapter.class) + public enum CategoryEnum { + PROMOTIONS("promotions"), + + PRICING("pricing"), + + LOYALTY("loyalty"), + + CUSTOM("custom"); + + private String value; + + CategoryEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CategoryEnum fromValue(String value) { + for (CategoryEnum b : CategoryEnum.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 CategoryEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CategoryEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CategoryEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) + private CategoryEnum category = CategoryEnum.CUSTOM; + + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) + private List rules = null; + + public static final String SERIALIZED_NAME_CART_ITEM_FILTERS = "cartItemFilters"; + @SerializedName(SERIALIZED_NAME_CART_ITEM_FILTERS) + private List cartItemFilters = null; + + + public NewBlueprint title(String title) { + + this.title = title; + return this; + } + + /** + * The display name for the blueprint. + * @return title + **/ + @ApiModelProperty(example = "Customer loyalty boost", required = true, value = "The display name for the blueprint.") + + public String getTitle() { + return title; + } + + + public void setTitle(String title) { + this.title = title; + } + + + public NewBlueprint description(String description) { + + this.description = description; + return this; + } + + /** + * A longer, more detailed description of the blueprint. + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A longer, more detailed description of the blueprint.") + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + public NewBlueprint category(CategoryEnum category) { + + this.category = category; + return this; + } + + /** + * Category used to group blueprints. + * @return category + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Category used to group blueprints.") + + public CategoryEnum getCategory() { + return category; + } + + + public void setCategory(CategoryEnum category) { + this.category = category; + } + + + public NewBlueprint rules(List rules) { + + this.rules = rules; + return this; + } + + public NewBlueprint addRulesItem(CatalogRule rulesItem) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + this.rules.add(rulesItem); + return this; + } + + /** + * Array of rules to store in this blueprint. Rules should only contain title (no description, as description is at the blueprint level). At least one rule or cart item filter is required. + * @return rules + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Array of rules to store in this blueprint. Rules should only contain title (no description, as description is at the blueprint level). At least one rule or cart item filter is required.") + + public List getRules() { + return rules; + } + + + public void setRules(List rules) { + this.rules = rules; + } + + + public NewBlueprint cartItemFilters(List cartItemFilters) { + + this.cartItemFilters = cartItemFilters; + return this; + } + + public NewBlueprint addCartItemFiltersItem(CartItemFilterTemplate cartItemFiltersItem) { + if (this.cartItemFilters == null) { + this.cartItemFilters = new ArrayList(); + } + this.cartItemFilters.add(cartItemFiltersItem); + return this; + } + + /** + * Array of cart item filters to store in this blueprint. If not provided, will be extracted from the rules. Cart item filters should only contain name (no description, as description is at the blueprint level). + * @return cartItemFilters + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Array of cart item filters to store in this blueprint. If not provided, will be extracted from the rules. Cart item filters should only contain name (no description, as description is at the blueprint level).") + + public List getCartItemFilters() { + return cartItemFilters; + } + + + public void setCartItemFilters(List cartItemFilters) { + this.cartItemFilters = cartItemFilters; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NewBlueprint newBlueprint = (NewBlueprint) o; + return Objects.equals(this.title, newBlueprint.title) && + Objects.equals(this.description, newBlueprint.description) && + Objects.equals(this.category, newBlueprint.category) && + Objects.equals(this.rules, newBlueprint.rules) && + Objects.equals(this.cartItemFilters, newBlueprint.cartItemFilters); + } + + @Override + public int hashCode() { + return Objects.hash(title, description, category, rules, cartItemFilters); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NewBlueprint {\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append(" cartItemFilters: ").append(toIndentedString(cartItemFilters)).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/NewExperiment.java b/src/main/java/one/talon/model/NewExperiment.java index 01ae6c21..9284813f 100644 --- a/src/main/java/one/talon/model/NewExperiment.java +++ b/src/main/java/one/talon/model/NewExperiment.java @@ -24,7 +24,6 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import one.talon.model.NewCampaign; -import org.threeten.bp.OffsetDateTime; /** * NewExperiment @@ -35,61 +34,6 @@ public class NewExperiment { @SerializedName(SERIALIZED_NAME_IS_VARIANT_ASSIGNMENT_EXTERNAL) private Boolean isVariantAssignmentExternal; - public static final String SERIALIZED_NAME_ACTIVATED = "activated"; - @SerializedName(SERIALIZED_NAME_ACTIVATED) - private OffsetDateTime activated; - - /** - * A disabled experiment is not evaluated for rules or coupons. - */ - @JsonAdapter(StateEnum.Adapter.class) - public enum StateEnum { - ENABLED("enabled"), - - DISABLED("disabled"); - - private String value; - - StateEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static StateEnum fromValue(String value) { - for (StateEnum b : StateEnum.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 StateEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return StateEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_STATE = "state"; - @SerializedName(SERIALIZED_NAME_STATE) - private StateEnum state = StateEnum.DISABLED; - public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; @SerializedName(SERIALIZED_NAME_CAMPAIGN) private NewCampaign campaign; @@ -102,10 +46,10 @@ public NewExperiment isVariantAssignmentExternal(Boolean isVariantAssignmentExte } /** - * The source of the assignment. - false - The assignment to the variant is handled internally by the Talon.Oneandled internally by the Talon.One. - true - The assignment to the variant handled externally. + * The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. * @return isVariantAssignmentExternal **/ - @ApiModelProperty(required = true, value = "The source of the assignment. - false - The assignment to the variant is handled internally by the Talon.Oneandled internally by the Talon.One. - true - The assignment to the variant handled externally. ") + @ApiModelProperty(required = true, value = "The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. ") public Boolean getIsVariantAssignmentExternal() { return isVariantAssignmentExternal; @@ -117,52 +61,6 @@ public void setIsVariantAssignmentExternal(Boolean isVariantAssignmentExternal) } - public NewExperiment activated(OffsetDateTime activated) { - - this.activated = activated; - return this; - } - - /** - * The date and time the experiment was activated. - * @return activated - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The date and time the experiment was activated. ") - - public OffsetDateTime getActivated() { - return activated; - } - - - public void setActivated(OffsetDateTime activated) { - this.activated = activated; - } - - - public NewExperiment state(StateEnum state) { - - this.state = state; - return this; - } - - /** - * A disabled experiment is not evaluated for rules or coupons. - * @return state - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "enabled", value = "A disabled experiment is not evaluated for rules or coupons. ") - - public StateEnum getState() { - return state; - } - - - public void setState(StateEnum state) { - this.state = state; - } - - public NewExperiment campaign(NewCampaign campaign) { this.campaign = campaign; @@ -195,14 +93,12 @@ public boolean equals(java.lang.Object o) { } NewExperiment newExperiment = (NewExperiment) o; return Objects.equals(this.isVariantAssignmentExternal, newExperiment.isVariantAssignmentExternal) && - Objects.equals(this.activated, newExperiment.activated) && - Objects.equals(this.state, newExperiment.state) && Objects.equals(this.campaign, newExperiment.campaign); } @Override public int hashCode() { - return Objects.hash(isVariantAssignmentExternal, activated, state, campaign); + return Objects.hash(isVariantAssignmentExternal, campaign); } @@ -211,8 +107,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NewExperiment {\n"); sb.append(" isVariantAssignmentExternal: ").append(toIndentedString(isVariantAssignmentExternal)).append("\n"); - sb.append(" activated: ").append(toIndentedString(activated)).append("\n"); - sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/NewExperimentVariant.java b/src/main/java/one/talon/model/NewExperimentVariant.java index 9ca8069a..0230a938 100644 --- a/src/main/java/one/talon/model/NewExperimentVariant.java +++ b/src/main/java/one/talon/model/NewExperimentVariant.java @@ -57,7 +57,7 @@ public NewExperimentVariant name(String name) { * The name of this variant. * @return name **/ - @ApiModelProperty(required = true, value = "The name of this variant.") + @ApiModelProperty(example = "Variant A", required = true, value = "The name of this variant.") public String getName() { return name; @@ -76,11 +76,12 @@ public NewExperimentVariant weight(Long weight) { } /** - * Get weight + * The percentage split of this variant. The sum of all variant percentages must be 100. + * minimum: 1 + * maximum: 99 * @return weight **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "13", value = "") + @ApiModelProperty(example = "13", required = true, value = "The percentage split of this variant. The sum of all variant percentages must be 100.") public Long getWeight() { return weight; diff --git a/src/main/java/one/talon/model/PlaceholderDetails.java b/src/main/java/one/talon/model/PlaceholderDetails.java new file mode 100644 index 00000000..055c6d5d --- /dev/null +++ b/src/main/java/one/talon/model/PlaceholderDetails.java @@ -0,0 +1,161 @@ +/* + * 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; + +/** + * PlaceholderDetails + */ + +public class PlaceholderDetails { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private List value = new ArrayList(); + + + public PlaceholderDetails name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the placeholder. + * @return name + **/ + @ApiModelProperty(example = "my property", required = true, value = "The name of the placeholder.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public PlaceholderDetails type(String type) { + + this.type = type; + return this; + } + + /** + * The type of the value assigned to the placeholder. + * @return type + **/ + @ApiModelProperty(example = "list string", required = true, value = "The type of the value assigned to the placeholder.") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public PlaceholderDetails value(List value) { + + this.value = value; + return this; + } + + public PlaceholderDetails addValueItem(Object valueItem) { + this.value.add(valueItem); + return this; + } + + /** + * The current value of the placeholder. + * @return value + **/ + @ApiModelProperty(example = "[1, sku_value]", required = true, value = "The current value of the placeholder.") + + public List getValue() { + return value; + } + + + public void setValue(List value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlaceholderDetails placeholderDetails = (PlaceholderDetails) o; + return Objects.equals(this.name, placeholderDetails.name) && + Objects.equals(this.type, placeholderDetails.type) && + Objects.equals(this.value, placeholderDetails.value); + } + + @Override + public int hashCode() { + return Objects.hash(name, type, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PlaceholderDetails {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).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/PriceHistoryRequest.java b/src/main/java/one/talon/model/PriceHistoryRequest.java new file mode 100644 index 00000000..116be14d --- /dev/null +++ b/src/main/java/one/talon/model/PriceHistoryRequest.java @@ -0,0 +1,155 @@ +/* + * 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; + +/** + * PriceHistoryRequest + */ + +public class PriceHistoryRequest { + public static final String SERIALIZED_NAME_SKU = "sku"; + @SerializedName(SERIALIZED_NAME_SKU) + private String sku; + + public static final String SERIALIZED_NAME_START_DATE = "startDate"; + @SerializedName(SERIALIZED_NAME_START_DATE) + private OffsetDateTime startDate; + + public static final String SERIALIZED_NAME_END_DATE = "endDate"; + @SerializedName(SERIALIZED_NAME_END_DATE) + private OffsetDateTime endDate; + + + public PriceHistoryRequest sku(String sku) { + + this.sku = sku; + return this; + } + + /** + * The SKU of the item for which the historical prices are being retrieved. + * @return sku + **/ + @ApiModelProperty(example = "", required = true, value = "The SKU of the item for which the historical prices are being retrieved.") + + public String getSku() { + return sku; + } + + + public void setSku(String sku) { + this.sku = sku; + } + + + public PriceHistoryRequest startDate(OffsetDateTime startDate) { + + this.startDate = startDate; + return this; + } + + /** + * The start date of the period for which historical prices should be retrieved. + * @return startDate + **/ + @ApiModelProperty(example = "2020-11-10T23:00Z", required = true, value = "The start date of the period for which historical prices should be retrieved.") + + public OffsetDateTime getStartDate() { + return startDate; + } + + + public void setStartDate(OffsetDateTime startDate) { + this.startDate = startDate; + } + + + public PriceHistoryRequest endDate(OffsetDateTime endDate) { + + this.endDate = endDate; + return this; + } + + /** + * The end date of the period for which historical prices should be retrieved. + * @return endDate + **/ + @ApiModelProperty(example = "2020-12-10T23:00Z", required = true, value = "The end date of the period for which historical prices should be retrieved.") + + 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; + } + PriceHistoryRequest priceHistoryRequest = (PriceHistoryRequest) o; + return Objects.equals(this.sku, priceHistoryRequest.sku) && + Objects.equals(this.startDate, priceHistoryRequest.startDate) && + Objects.equals(this.endDate, priceHistoryRequest.endDate); + } + + @Override + public int hashCode() { + return Objects.hash(sku, startDate, endDate); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PriceHistoryRequest {\n"); + sb.append(" sku: ").append(toIndentedString(sku)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).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/PriceHistoryResponse.java b/src/main/java/one/talon/model/PriceHistoryResponse.java new file mode 100644 index 00000000..01db7a39 --- /dev/null +++ b/src/main/java/one/talon/model/PriceHistoryResponse.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.History; + +/** + * PriceHistoryResponse + */ + +public class PriceHistoryResponse { + public static final String SERIALIZED_NAME_SKU = "sku"; + @SerializedName(SERIALIZED_NAME_SKU) + private String sku; + + public static final String SERIALIZED_NAME_HISTORY = "history"; + @SerializedName(SERIALIZED_NAME_HISTORY) + private List history = new ArrayList(); + + + public PriceHistoryResponse sku(String sku) { + + this.sku = sku; + return this; + } + + /** + * The SKU of the item for which historical prices should be retrieved. + * @return sku + **/ + @ApiModelProperty(example = "", required = true, value = "The SKU of the item for which historical prices should be retrieved.") + + public String getSku() { + return sku; + } + + + public void setSku(String sku) { + this.sku = sku; + } + + + public PriceHistoryResponse history(List history) { + + this.history = history; + return this; + } + + public PriceHistoryResponse addHistoryItem(History historyItem) { + this.history.add(historyItem); + return this; + } + + /** + * Get history + * @return history + **/ + @ApiModelProperty(required = true, value = "") + + public List getHistory() { + return history; + } + + + public void setHistory(List history) { + this.history = history; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PriceHistoryResponse priceHistoryResponse = (PriceHistoryResponse) o; + return Objects.equals(this.sku, priceHistoryResponse.sku) && + Objects.equals(this.history, priceHistoryResponse.history); + } + + @Override + public int hashCode() { + return Objects.hash(sku, history); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PriceHistoryResponse {\n"); + sb.append(" sku: ").append(toIndentedString(sku)).append("\n"); + sb.append(" history: ").append(toIndentedString(history)).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/PrismaticEventPayloadCouponBasedNotifications.java b/src/main/java/one/talon/model/PrismaticEventPayloadCouponBasedNotifications.java index fcc09b93..7c2b912a 100644 --- a/src/main/java/one/talon/model/PrismaticEventPayloadCouponBasedNotifications.java +++ b/src/main/java/one/talon/model/PrismaticEventPayloadCouponBasedNotifications.java @@ -105,6 +105,10 @@ public class PrismaticEventPayloadCouponBasedNotifications { @SerializedName(SERIALIZED_NAME_LIMITS) private List limits = null; + public static final String SERIALIZED_NAME_PUBLISHED_AT = "PublishedAt"; + @SerializedName(SERIALIZED_NAME_PUBLISHED_AT) + private OffsetDateTime publishedAt; + public static final String SERIALIZED_NAME_SOURCE_OF_EVENT = "SourceOfEvent"; @SerializedName(SERIALIZED_NAME_SOURCE_OF_EVENT) private String sourceOfEvent; @@ -530,6 +534,28 @@ public void setLimits(List } + public PrismaticEventPayloadCouponBasedNotifications publishedAt(OffsetDateTime publishedAt) { + + this.publishedAt = publishedAt; + return this; + } + + /** + * Timestamp when the event was published. + * @return publishedAt + **/ + @ApiModelProperty(required = true, value = "Timestamp when the event was published.") + + public OffsetDateTime getPublishedAt() { + return publishedAt; + } + + + public void setPublishedAt(OffsetDateTime publishedAt) { + this.publishedAt = publishedAt; + } + + public PrismaticEventPayloadCouponBasedNotifications sourceOfEvent(String sourceOfEvent) { this.sourceOfEvent = sourceOfEvent; @@ -601,13 +627,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.batchId, prismaticEventPayloadCouponBasedNotifications.batchId) && Objects.equals(this.attributes, prismaticEventPayloadCouponBasedNotifications.attributes) && Objects.equals(this.limits, prismaticEventPayloadCouponBasedNotifications.limits) && + Objects.equals(this.publishedAt, prismaticEventPayloadCouponBasedNotifications.publishedAt) && Objects.equals(this.sourceOfEvent, prismaticEventPayloadCouponBasedNotifications.sourceOfEvent) && Objects.equals(this.employeeName, prismaticEventPayloadCouponBasedNotifications.employeeName); } @Override public int hashCode() { - return Objects.hash(id, created, campaignId, value, usageLimit, discountLimit, reservationLimit, startDate, expiryDate, usageCounter, discountCounter, discountRemainder, referralId, recipientIntegrationId, importId, batchId, attributes, limits, sourceOfEvent, employeeName); + return Objects.hash(id, created, campaignId, value, usageLimit, discountLimit, reservationLimit, startDate, expiryDate, usageCounter, discountCounter, discountRemainder, referralId, recipientIntegrationId, importId, batchId, attributes, limits, publishedAt, sourceOfEvent, employeeName); } @@ -633,6 +660,7 @@ public String toString() { sb.append(" batchId: ").append(toIndentedString(batchId)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); + sb.append(" publishedAt: ").append(toIndentedString(publishedAt)).append("\n"); sb.append(" sourceOfEvent: ").append(toIndentedString(sourceOfEvent)).append("\n"); sb.append(" employeeName: ").append(toIndentedString(employeeName)).append("\n"); sb.append("}"); diff --git a/src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedNotification.java b/src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedNotification.java new file mode 100644 index 00000000..9d07e03d --- /dev/null +++ b/src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedNotification.java @@ -0,0 +1,511 @@ +/* + * 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.PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction; +import org.threeten.bp.OffsetDateTime; + +/** + * PrismaticEventPayloadLoyaltyProfileBasedNotification + */ + +public class PrismaticEventPayloadLoyaltyProfileBasedNotification { + public static final String SERIALIZED_NAME_PROFILE_INTEGRATION_I_D = "ProfileIntegrationID"; + @SerializedName(SERIALIZED_NAME_PROFILE_INTEGRATION_I_D) + private String profileIntegrationID; + + public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_I_D = "LoyaltyProgramID"; + @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_I_D) + private Long loyaltyProgramID; + + public static final String SERIALIZED_NAME_SUBLEDGER_I_D = "SubledgerID"; + @SerializedName(SERIALIZED_NAME_SUBLEDGER_I_D) + private String subledgerID; + + public static final String SERIALIZED_NAME_SOURCE_OF_EVENT = "SourceOfEvent"; + @SerializedName(SERIALIZED_NAME_SOURCE_OF_EVENT) + private String sourceOfEvent; + + public static final String SERIALIZED_NAME_EMPLOYEE_NAME = "EmployeeName"; + @SerializedName(SERIALIZED_NAME_EMPLOYEE_NAME) + private String employeeName; + + public static final String SERIALIZED_NAME_USER_I_D = "UserID"; + @SerializedName(SERIALIZED_NAME_USER_I_D) + private Long userID; + + public static final String SERIALIZED_NAME_CURRENT_POINTS = "CurrentPoints"; + @SerializedName(SERIALIZED_NAME_CURRENT_POINTS) + private Float currentPoints; + + public static final String SERIALIZED_NAME_ACTIONS = "Actions"; + @SerializedName(SERIALIZED_NAME_ACTIONS) + private List actions = null; + + public static final String SERIALIZED_NAME_PUBLISHED_AT = "PublishedAt"; + @SerializedName(SERIALIZED_NAME_PUBLISHED_AT) + private OffsetDateTime publishedAt; + + public static final String SERIALIZED_NAME_CURRENT_TIER = "CurrentTier"; + @SerializedName(SERIALIZED_NAME_CURRENT_TIER) + private String currentTier; + + public static final String SERIALIZED_NAME_OLD_TIER = "OldTier"; + @SerializedName(SERIALIZED_NAME_OLD_TIER) + private String oldTier; + + public static final String SERIALIZED_NAME_TIER_EXPIRATION_DATE = "TierExpirationDate"; + @SerializedName(SERIALIZED_NAME_TIER_EXPIRATION_DATE) + private OffsetDateTime tierExpirationDate; + + public static final String SERIALIZED_NAME_TIMESTAMP_OF_TIER_CHANGE = "TimestampOfTierChange"; + @SerializedName(SERIALIZED_NAME_TIMESTAMP_OF_TIER_CHANGE) + private OffsetDateTime timestampOfTierChange; + + public static final String SERIALIZED_NAME_POINTS_REQUIRED_TO_THE_NEXT_TIER = "PointsRequiredToTheNextTier"; + @SerializedName(SERIALIZED_NAME_POINTS_REQUIRED_TO_THE_NEXT_TIER) + private Float pointsRequiredToTheNextTier; + + public static final String SERIALIZED_NAME_NEXT_TIER = "NextTier"; + @SerializedName(SERIALIZED_NAME_NEXT_TIER) + private String nextTier; + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification profileIntegrationID(String profileIntegrationID) { + + this.profileIntegrationID = profileIntegrationID; + return this; + } + + /** + * Get profileIntegrationID + * @return profileIntegrationID + **/ + @ApiModelProperty(required = true, value = "") + + public String getProfileIntegrationID() { + return profileIntegrationID; + } + + + public void setProfileIntegrationID(String profileIntegrationID) { + this.profileIntegrationID = profileIntegrationID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification loyaltyProgramID(Long loyaltyProgramID) { + + this.loyaltyProgramID = loyaltyProgramID; + return this; + } + + /** + * Get loyaltyProgramID + * @return loyaltyProgramID + **/ + @ApiModelProperty(required = true, value = "") + + public Long getLoyaltyProgramID() { + return loyaltyProgramID; + } + + + public void setLoyaltyProgramID(Long loyaltyProgramID) { + this.loyaltyProgramID = loyaltyProgramID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification subledgerID(String subledgerID) { + + this.subledgerID = subledgerID; + return this; + } + + /** + * Get subledgerID + * @return subledgerID + **/ + @ApiModelProperty(required = true, value = "") + + public String getSubledgerID() { + return subledgerID; + } + + + public void setSubledgerID(String subledgerID) { + this.subledgerID = subledgerID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification sourceOfEvent(String sourceOfEvent) { + + this.sourceOfEvent = sourceOfEvent; + return this; + } + + /** + * Get sourceOfEvent + * @return sourceOfEvent + **/ + @ApiModelProperty(required = true, value = "") + + public String getSourceOfEvent() { + return sourceOfEvent; + } + + + public void setSourceOfEvent(String sourceOfEvent) { + this.sourceOfEvent = sourceOfEvent; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification employeeName(String employeeName) { + + this.employeeName = employeeName; + return this; + } + + /** + * Get employeeName + * @return employeeName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getEmployeeName() { + return employeeName; + } + + + public void setEmployeeName(String employeeName) { + this.employeeName = employeeName; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification userID(Long userID) { + + this.userID = userID; + return this; + } + + /** + * Get userID + * @return userID + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getUserID() { + return userID; + } + + + public void setUserID(Long userID) { + this.userID = userID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification currentPoints(Float currentPoints) { + + this.currentPoints = currentPoints; + return this; + } + + /** + * Get currentPoints + * @return currentPoints + **/ + @ApiModelProperty(required = true, value = "") + + public Float getCurrentPoints() { + return currentPoints; + } + + + public void setCurrentPoints(Float currentPoints) { + this.currentPoints = currentPoints; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification actions(List actions) { + + this.actions = actions; + return this; + } + + public PrismaticEventPayloadLoyaltyProfileBasedNotification addActionsItem(PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList(); + } + this.actions.add(actionsItem); + return this; + } + + /** + * Get actions + * @return actions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getActions() { + return actions; + } + + + public void setActions(List actions) { + this.actions = actions; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification publishedAt(OffsetDateTime publishedAt) { + + this.publishedAt = publishedAt; + return this; + } + + /** + * Timestamp when the event was published. + * @return publishedAt + **/ + @ApiModelProperty(required = true, value = "Timestamp when the event was published.") + + public OffsetDateTime getPublishedAt() { + return publishedAt; + } + + + public void setPublishedAt(OffsetDateTime publishedAt) { + this.publishedAt = publishedAt; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification currentTier(String currentTier) { + + this.currentTier = currentTier; + return this; + } + + /** + * Get currentTier + * @return currentTier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCurrentTier() { + return currentTier; + } + + + public void setCurrentTier(String currentTier) { + this.currentTier = currentTier; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification oldTier(String oldTier) { + + this.oldTier = oldTier; + return this; + } + + /** + * Get oldTier + * @return oldTier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getOldTier() { + return oldTier; + } + + + public void setOldTier(String oldTier) { + this.oldTier = oldTier; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification tierExpirationDate(OffsetDateTime tierExpirationDate) { + + this.tierExpirationDate = tierExpirationDate; + return this; + } + + /** + * Get tierExpirationDate + * @return tierExpirationDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getTierExpirationDate() { + return tierExpirationDate; + } + + + public void setTierExpirationDate(OffsetDateTime tierExpirationDate) { + this.tierExpirationDate = tierExpirationDate; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification timestampOfTierChange(OffsetDateTime timestampOfTierChange) { + + this.timestampOfTierChange = timestampOfTierChange; + return this; + } + + /** + * Get timestampOfTierChange + * @return timestampOfTierChange + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getTimestampOfTierChange() { + return timestampOfTierChange; + } + + + public void setTimestampOfTierChange(OffsetDateTime timestampOfTierChange) { + this.timestampOfTierChange = timestampOfTierChange; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification pointsRequiredToTheNextTier(Float pointsRequiredToTheNextTier) { + + this.pointsRequiredToTheNextTier = pointsRequiredToTheNextTier; + return this; + } + + /** + * Get pointsRequiredToTheNextTier + * @return pointsRequiredToTheNextTier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Float getPointsRequiredToTheNextTier() { + return pointsRequiredToTheNextTier; + } + + + public void setPointsRequiredToTheNextTier(Float pointsRequiredToTheNextTier) { + this.pointsRequiredToTheNextTier = pointsRequiredToTheNextTier; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedNotification nextTier(String nextTier) { + + this.nextTier = nextTier; + return this; + } + + /** + * Get nextTier + * @return nextTier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getNextTier() { + return nextTier; + } + + + public void setNextTier(String nextTier) { + this.nextTier = nextTier; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PrismaticEventPayloadLoyaltyProfileBasedNotification prismaticEventPayloadLoyaltyProfileBasedNotification = (PrismaticEventPayloadLoyaltyProfileBasedNotification) o; + return Objects.equals(this.profileIntegrationID, prismaticEventPayloadLoyaltyProfileBasedNotification.profileIntegrationID) && + Objects.equals(this.loyaltyProgramID, prismaticEventPayloadLoyaltyProfileBasedNotification.loyaltyProgramID) && + Objects.equals(this.subledgerID, prismaticEventPayloadLoyaltyProfileBasedNotification.subledgerID) && + Objects.equals(this.sourceOfEvent, prismaticEventPayloadLoyaltyProfileBasedNotification.sourceOfEvent) && + Objects.equals(this.employeeName, prismaticEventPayloadLoyaltyProfileBasedNotification.employeeName) && + Objects.equals(this.userID, prismaticEventPayloadLoyaltyProfileBasedNotification.userID) && + Objects.equals(this.currentPoints, prismaticEventPayloadLoyaltyProfileBasedNotification.currentPoints) && + Objects.equals(this.actions, prismaticEventPayloadLoyaltyProfileBasedNotification.actions) && + Objects.equals(this.publishedAt, prismaticEventPayloadLoyaltyProfileBasedNotification.publishedAt) && + Objects.equals(this.currentTier, prismaticEventPayloadLoyaltyProfileBasedNotification.currentTier) && + Objects.equals(this.oldTier, prismaticEventPayloadLoyaltyProfileBasedNotification.oldTier) && + Objects.equals(this.tierExpirationDate, prismaticEventPayloadLoyaltyProfileBasedNotification.tierExpirationDate) && + Objects.equals(this.timestampOfTierChange, prismaticEventPayloadLoyaltyProfileBasedNotification.timestampOfTierChange) && + Objects.equals(this.pointsRequiredToTheNextTier, prismaticEventPayloadLoyaltyProfileBasedNotification.pointsRequiredToTheNextTier) && + Objects.equals(this.nextTier, prismaticEventPayloadLoyaltyProfileBasedNotification.nextTier); + } + + @Override + public int hashCode() { + return Objects.hash(profileIntegrationID, loyaltyProgramID, subledgerID, sourceOfEvent, employeeName, userID, currentPoints, actions, publishedAt, currentTier, oldTier, tierExpirationDate, timestampOfTierChange, pointsRequiredToTheNextTier, nextTier); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrismaticEventPayloadLoyaltyProfileBasedNotification {\n"); + sb.append(" profileIntegrationID: ").append(toIndentedString(profileIntegrationID)).append("\n"); + sb.append(" loyaltyProgramID: ").append(toIndentedString(loyaltyProgramID)).append("\n"); + sb.append(" subledgerID: ").append(toIndentedString(subledgerID)).append("\n"); + sb.append(" sourceOfEvent: ").append(toIndentedString(sourceOfEvent)).append("\n"); + sb.append(" employeeName: ").append(toIndentedString(employeeName)).append("\n"); + sb.append(" userID: ").append(toIndentedString(userID)).append("\n"); + sb.append(" currentPoints: ").append(toIndentedString(currentPoints)).append("\n"); + sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); + sb.append(" publishedAt: ").append(toIndentedString(publishedAt)).append("\n"); + sb.append(" currentTier: ").append(toIndentedString(currentTier)).append("\n"); + sb.append(" oldTier: ").append(toIndentedString(oldTier)).append("\n"); + sb.append(" tierExpirationDate: ").append(toIndentedString(tierExpirationDate)).append("\n"); + sb.append(" timestampOfTierChange: ").append(toIndentedString(timestampOfTierChange)).append("\n"); + sb.append(" pointsRequiredToTheNextTier: ").append(toIndentedString(pointsRequiredToTheNextTier)).append("\n"); + sb.append(" nextTier: ").append(toIndentedString(nextTier)).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/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.java b/src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.java new file mode 100644 index 00000000..849c4f9d --- /dev/null +++ b/src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.java @@ -0,0 +1,337 @@ +/* + * 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.PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction; +import org.threeten.bp.OffsetDateTime; + +/** + * PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification + */ + +public class PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification { + public static final String SERIALIZED_NAME_PROFILE_INTEGRATION_I_D = "ProfileIntegrationID"; + @SerializedName(SERIALIZED_NAME_PROFILE_INTEGRATION_I_D) + private String profileIntegrationID; + + public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_I_D = "LoyaltyProgramID"; + @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_I_D) + private Long loyaltyProgramID; + + public static final String SERIALIZED_NAME_SUBLEDGER_I_D = "SubledgerID"; + @SerializedName(SERIALIZED_NAME_SUBLEDGER_I_D) + private String subledgerID; + + public static final String SERIALIZED_NAME_SOURCE_OF_EVENT = "SourceOfEvent"; + @SerializedName(SERIALIZED_NAME_SOURCE_OF_EVENT) + private String sourceOfEvent; + + public static final String SERIALIZED_NAME_EMPLOYEE_NAME = "EmployeeName"; + @SerializedName(SERIALIZED_NAME_EMPLOYEE_NAME) + private String employeeName; + + public static final String SERIALIZED_NAME_USER_I_D = "UserID"; + @SerializedName(SERIALIZED_NAME_USER_I_D) + private Long userID; + + public static final String SERIALIZED_NAME_CURRENT_POINTS = "CurrentPoints"; + @SerializedName(SERIALIZED_NAME_CURRENT_POINTS) + private Float currentPoints; + + public static final String SERIALIZED_NAME_ACTIONS = "Actions"; + @SerializedName(SERIALIZED_NAME_ACTIONS) + private List actions = null; + + public static final String SERIALIZED_NAME_PUBLISHED_AT = "PublishedAt"; + @SerializedName(SERIALIZED_NAME_PUBLISHED_AT) + private OffsetDateTime publishedAt; + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification profileIntegrationID(String profileIntegrationID) { + + this.profileIntegrationID = profileIntegrationID; + return this; + } + + /** + * Get profileIntegrationID + * @return profileIntegrationID + **/ + @ApiModelProperty(required = true, value = "") + + public String getProfileIntegrationID() { + return profileIntegrationID; + } + + + public void setProfileIntegrationID(String profileIntegrationID) { + this.profileIntegrationID = profileIntegrationID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification loyaltyProgramID(Long loyaltyProgramID) { + + this.loyaltyProgramID = loyaltyProgramID; + return this; + } + + /** + * Get loyaltyProgramID + * @return loyaltyProgramID + **/ + @ApiModelProperty(required = true, value = "") + + public Long getLoyaltyProgramID() { + return loyaltyProgramID; + } + + + public void setLoyaltyProgramID(Long loyaltyProgramID) { + this.loyaltyProgramID = loyaltyProgramID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification subledgerID(String subledgerID) { + + this.subledgerID = subledgerID; + return this; + } + + /** + * Get subledgerID + * @return subledgerID + **/ + @ApiModelProperty(required = true, value = "") + + public String getSubledgerID() { + return subledgerID; + } + + + public void setSubledgerID(String subledgerID) { + this.subledgerID = subledgerID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification sourceOfEvent(String sourceOfEvent) { + + this.sourceOfEvent = sourceOfEvent; + return this; + } + + /** + * Get sourceOfEvent + * @return sourceOfEvent + **/ + @ApiModelProperty(required = true, value = "") + + public String getSourceOfEvent() { + return sourceOfEvent; + } + + + public void setSourceOfEvent(String sourceOfEvent) { + this.sourceOfEvent = sourceOfEvent; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification employeeName(String employeeName) { + + this.employeeName = employeeName; + return this; + } + + /** + * Get employeeName + * @return employeeName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getEmployeeName() { + return employeeName; + } + + + public void setEmployeeName(String employeeName) { + this.employeeName = employeeName; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification userID(Long userID) { + + this.userID = userID; + return this; + } + + /** + * Get userID + * @return userID + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getUserID() { + return userID; + } + + + public void setUserID(Long userID) { + this.userID = userID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification currentPoints(Float currentPoints) { + + this.currentPoints = currentPoints; + return this; + } + + /** + * Get currentPoints + * @return currentPoints + **/ + @ApiModelProperty(required = true, value = "") + + public Float getCurrentPoints() { + return currentPoints; + } + + + public void setCurrentPoints(Float currentPoints) { + this.currentPoints = currentPoints; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification actions(List actions) { + + this.actions = actions; + return this; + } + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification addActionsItem(PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList(); + } + this.actions.add(actionsItem); + return this; + } + + /** + * Get actions + * @return actions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getActions() { + return actions; + } + + + public void setActions(List actions) { + this.actions = actions; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification publishedAt(OffsetDateTime publishedAt) { + + this.publishedAt = publishedAt; + return this; + } + + /** + * Timestamp when the event was published. + * @return publishedAt + **/ + @ApiModelProperty(required = true, value = "Timestamp when the event was published.") + + public OffsetDateTime getPublishedAt() { + return publishedAt; + } + + + public void setPublishedAt(OffsetDateTime publishedAt) { + this.publishedAt = publishedAt; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification = (PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification) o; + return Objects.equals(this.profileIntegrationID, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.profileIntegrationID) && + Objects.equals(this.loyaltyProgramID, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.loyaltyProgramID) && + Objects.equals(this.subledgerID, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.subledgerID) && + Objects.equals(this.sourceOfEvent, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.sourceOfEvent) && + Objects.equals(this.employeeName, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.employeeName) && + Objects.equals(this.userID, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.userID) && + Objects.equals(this.currentPoints, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.currentPoints) && + Objects.equals(this.actions, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.actions) && + Objects.equals(this.publishedAt, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification.publishedAt); + } + + @Override + public int hashCode() { + return Objects.hash(profileIntegrationID, loyaltyProgramID, subledgerID, sourceOfEvent, employeeName, userID, currentPoints, actions, publishedAt); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification {\n"); + sb.append(" profileIntegrationID: ").append(toIndentedString(profileIntegrationID)).append("\n"); + sb.append(" loyaltyProgramID: ").append(toIndentedString(loyaltyProgramID)).append("\n"); + sb.append(" subledgerID: ").append(toIndentedString(subledgerID)).append("\n"); + sb.append(" sourceOfEvent: ").append(toIndentedString(sourceOfEvent)).append("\n"); + sb.append(" employeeName: ").append(toIndentedString(employeeName)).append("\n"); + sb.append(" userID: ").append(toIndentedString(userID)).append("\n"); + sb.append(" currentPoints: ").append(toIndentedString(currentPoints)).append("\n"); + sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); + sb.append(" publishedAt: ").append(toIndentedString(publishedAt)).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/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.java b/src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.java new file mode 100644 index 00000000..085daa30 --- /dev/null +++ b/src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.java @@ -0,0 +1,261 @@ +/* + * 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; + +/** + * PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction + */ + +public class PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction { + public static final String SERIALIZED_NAME_AMOUNT = "Amount"; + @SerializedName(SERIALIZED_NAME_AMOUNT) + private Float amount; + + public static final String SERIALIZED_NAME_REASON = "Reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; + + /** + * Gets or Sets operation + */ + @JsonAdapter(OperationEnum.Adapter.class) + public enum OperationEnum { + ADDITION("addition"), + + DEDUCTION("deduction"); + + private String value; + + OperationEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static OperationEnum fromValue(String value) { + for (OperationEnum b : OperationEnum.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 OperationEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public OperationEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return OperationEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_OPERATION = "Operation"; + @SerializedName(SERIALIZED_NAME_OPERATION) + private OperationEnum operation; + + public static final String SERIALIZED_NAME_START_DATE = "StartDate"; + @SerializedName(SERIALIZED_NAME_START_DATE) + private OffsetDateTime startDate; + + public static final String SERIALIZED_NAME_EXPIRY_DATE = "ExpiryDate"; + @SerializedName(SERIALIZED_NAME_EXPIRY_DATE) + private OffsetDateTime expiryDate; + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction amount(Float amount) { + + this.amount = amount; + return this; + } + + /** + * Get amount + * @return amount + **/ + @ApiModelProperty(required = true, value = "") + + public Float getAmount() { + return amount; + } + + + public void setAmount(Float amount) { + this.amount = amount; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction reason(String reason) { + + this.reason = reason; + return this; + } + + /** + * Get reason + * @return reason + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getReason() { + return reason; + } + + + public void setReason(String reason) { + this.reason = reason; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction operation(OperationEnum operation) { + + this.operation = operation; + return this; + } + + /** + * Get operation + * @return operation + **/ + @ApiModelProperty(required = true, value = "") + + public OperationEnum getOperation() { + return operation; + } + + + public void setOperation(OperationEnum operation) { + this.operation = operation; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction startDate(OffsetDateTime startDate) { + + this.startDate = startDate; + return this; + } + + /** + * Get startDate + * @return startDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getStartDate() { + return startDate; + } + + + public void setStartDate(OffsetDateTime startDate) { + this.startDate = startDate; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction expiryDate(OffsetDateTime expiryDate) { + + this.expiryDate = expiryDate; + return this; + } + + /** + * Get expiryDate + * @return expiryDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getExpiryDate() { + return expiryDate; + } + + + public void setExpiryDate(OffsetDateTime expiryDate) { + this.expiryDate = expiryDate; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction = (PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction) o; + return Objects.equals(this.amount, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.amount) && + Objects.equals(this.reason, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.reason) && + Objects.equals(this.operation, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.operation) && + Objects.equals(this.startDate, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.startDate) && + Objects.equals(this.expiryDate, prismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction.expiryDate); + } + + @Override + public int hashCode() { + return Objects.hash(amount, reason, operation, startDate, expiryDate); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction {\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" operation: ").append(toIndentedString(operation)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).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/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.java b/src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.java new file mode 100644 index 00000000..b603d815 --- /dev/null +++ b/src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.java @@ -0,0 +1,355 @@ +/* + * 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; + +/** + * PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification + */ + +public class PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification { + public static final String SERIALIZED_NAME_PROFILE_INTEGRATION_I_D = "ProfileIntegrationID"; + @SerializedName(SERIALIZED_NAME_PROFILE_INTEGRATION_I_D) + private String profileIntegrationID; + + public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_I_D = "LoyaltyProgramID"; + @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_I_D) + private Long loyaltyProgramID; + + public static final String SERIALIZED_NAME_SUBLEDGER_I_D = "SubledgerID"; + @SerializedName(SERIALIZED_NAME_SUBLEDGER_I_D) + private String subledgerID; + + public static final String SERIALIZED_NAME_SOURCE_OF_EVENT = "SourceOfEvent"; + @SerializedName(SERIALIZED_NAME_SOURCE_OF_EVENT) + private String sourceOfEvent; + + public static final String SERIALIZED_NAME_CURRENT_TIER = "CurrentTier"; + @SerializedName(SERIALIZED_NAME_CURRENT_TIER) + private String currentTier; + + public static final String SERIALIZED_NAME_CURRENT_POINTS = "CurrentPoints"; + @SerializedName(SERIALIZED_NAME_CURRENT_POINTS) + private Float currentPoints; + + public static final String SERIALIZED_NAME_OLD_TIER = "OldTier"; + @SerializedName(SERIALIZED_NAME_OLD_TIER) + private String oldTier; + + public static final String SERIALIZED_NAME_TIER_EXPIRATION_DATE = "TierExpirationDate"; + @SerializedName(SERIALIZED_NAME_TIER_EXPIRATION_DATE) + private OffsetDateTime tierExpirationDate; + + public static final String SERIALIZED_NAME_TIMESTAMP_OF_TIER_CHANGE = "TimestampOfTierChange"; + @SerializedName(SERIALIZED_NAME_TIMESTAMP_OF_TIER_CHANGE) + private OffsetDateTime timestampOfTierChange; + + public static final String SERIALIZED_NAME_PUBLISHED_AT = "PublishedAt"; + @SerializedName(SERIALIZED_NAME_PUBLISHED_AT) + private OffsetDateTime publishedAt; + + + public PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification profileIntegrationID(String profileIntegrationID) { + + this.profileIntegrationID = profileIntegrationID; + return this; + } + + /** + * Get profileIntegrationID + * @return profileIntegrationID + **/ + @ApiModelProperty(required = true, value = "") + + public String getProfileIntegrationID() { + return profileIntegrationID; + } + + + public void setProfileIntegrationID(String profileIntegrationID) { + this.profileIntegrationID = profileIntegrationID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification loyaltyProgramID(Long loyaltyProgramID) { + + this.loyaltyProgramID = loyaltyProgramID; + return this; + } + + /** + * Get loyaltyProgramID + * @return loyaltyProgramID + **/ + @ApiModelProperty(required = true, value = "") + + public Long getLoyaltyProgramID() { + return loyaltyProgramID; + } + + + public void setLoyaltyProgramID(Long loyaltyProgramID) { + this.loyaltyProgramID = loyaltyProgramID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification subledgerID(String subledgerID) { + + this.subledgerID = subledgerID; + return this; + } + + /** + * Get subledgerID + * @return subledgerID + **/ + @ApiModelProperty(required = true, value = "") + + public String getSubledgerID() { + return subledgerID; + } + + + public void setSubledgerID(String subledgerID) { + this.subledgerID = subledgerID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification sourceOfEvent(String sourceOfEvent) { + + this.sourceOfEvent = sourceOfEvent; + return this; + } + + /** + * Get sourceOfEvent + * @return sourceOfEvent + **/ + @ApiModelProperty(required = true, value = "") + + public String getSourceOfEvent() { + return sourceOfEvent; + } + + + public void setSourceOfEvent(String sourceOfEvent) { + this.sourceOfEvent = sourceOfEvent; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification currentTier(String currentTier) { + + this.currentTier = currentTier; + return this; + } + + /** + * Get currentTier + * @return currentTier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCurrentTier() { + return currentTier; + } + + + public void setCurrentTier(String currentTier) { + this.currentTier = currentTier; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification currentPoints(Float currentPoints) { + + this.currentPoints = currentPoints; + return this; + } + + /** + * Get currentPoints + * @return currentPoints + **/ + @ApiModelProperty(required = true, value = "") + + public Float getCurrentPoints() { + return currentPoints; + } + + + public void setCurrentPoints(Float currentPoints) { + this.currentPoints = currentPoints; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification oldTier(String oldTier) { + + this.oldTier = oldTier; + return this; + } + + /** + * Get oldTier + * @return oldTier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getOldTier() { + return oldTier; + } + + + public void setOldTier(String oldTier) { + this.oldTier = oldTier; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification tierExpirationDate(OffsetDateTime tierExpirationDate) { + + this.tierExpirationDate = tierExpirationDate; + return this; + } + + /** + * Get tierExpirationDate + * @return tierExpirationDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getTierExpirationDate() { + return tierExpirationDate; + } + + + public void setTierExpirationDate(OffsetDateTime tierExpirationDate) { + this.tierExpirationDate = tierExpirationDate; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification timestampOfTierChange(OffsetDateTime timestampOfTierChange) { + + this.timestampOfTierChange = timestampOfTierChange; + return this; + } + + /** + * Get timestampOfTierChange + * @return timestampOfTierChange + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getTimestampOfTierChange() { + return timestampOfTierChange; + } + + + public void setTimestampOfTierChange(OffsetDateTime timestampOfTierChange) { + this.timestampOfTierChange = timestampOfTierChange; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification publishedAt(OffsetDateTime publishedAt) { + + this.publishedAt = publishedAt; + return this; + } + + /** + * Timestamp when the event was published. + * @return publishedAt + **/ + @ApiModelProperty(required = true, value = "Timestamp when the event was published.") + + public OffsetDateTime getPublishedAt() { + return publishedAt; + } + + + public void setPublishedAt(OffsetDateTime publishedAt) { + this.publishedAt = publishedAt; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification prismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification = (PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification) o; + return Objects.equals(this.profileIntegrationID, prismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.profileIntegrationID) && + Objects.equals(this.loyaltyProgramID, prismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.loyaltyProgramID) && + Objects.equals(this.subledgerID, prismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.subledgerID) && + Objects.equals(this.sourceOfEvent, prismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.sourceOfEvent) && + Objects.equals(this.currentTier, prismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.currentTier) && + Objects.equals(this.currentPoints, prismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.currentPoints) && + Objects.equals(this.oldTier, prismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.oldTier) && + Objects.equals(this.tierExpirationDate, prismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.tierExpirationDate) && + Objects.equals(this.timestampOfTierChange, prismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.timestampOfTierChange) && + Objects.equals(this.publishedAt, prismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification.publishedAt); + } + + @Override + public int hashCode() { + return Objects.hash(profileIntegrationID, loyaltyProgramID, subledgerID, sourceOfEvent, currentTier, currentPoints, oldTier, tierExpirationDate, timestampOfTierChange, publishedAt); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification {\n"); + sb.append(" profileIntegrationID: ").append(toIndentedString(profileIntegrationID)).append("\n"); + sb.append(" loyaltyProgramID: ").append(toIndentedString(loyaltyProgramID)).append("\n"); + sb.append(" subledgerID: ").append(toIndentedString(subledgerID)).append("\n"); + sb.append(" sourceOfEvent: ").append(toIndentedString(sourceOfEvent)).append("\n"); + sb.append(" currentTier: ").append(toIndentedString(currentTier)).append("\n"); + sb.append(" currentPoints: ").append(toIndentedString(currentPoints)).append("\n"); + sb.append(" oldTier: ").append(toIndentedString(oldTier)).append("\n"); + sb.append(" tierExpirationDate: ").append(toIndentedString(tierExpirationDate)).append("\n"); + sb.append(" timestampOfTierChange: ").append(toIndentedString(timestampOfTierChange)).append("\n"); + sb.append(" publishedAt: ").append(toIndentedString(publishedAt)).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/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.java b/src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.java new file mode 100644 index 00000000..84baba20 --- /dev/null +++ b/src/main/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.java @@ -0,0 +1,413 @@ +/* + * 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; + +/** + * PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification + */ + +public class PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification { + public static final String SERIALIZED_NAME_PROFILE_INTEGRATION_I_D = "ProfileIntegrationID"; + @SerializedName(SERIALIZED_NAME_PROFILE_INTEGRATION_I_D) + private String profileIntegrationID; + + public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_I_D = "LoyaltyProgramID"; + @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_I_D) + private Long loyaltyProgramID; + + public static final String SERIALIZED_NAME_SUBLEDGER_I_D = "SubledgerID"; + @SerializedName(SERIALIZED_NAME_SUBLEDGER_I_D) + private String subledgerID; + + public static final String SERIALIZED_NAME_SOURCE_OF_EVENT = "SourceOfEvent"; + @SerializedName(SERIALIZED_NAME_SOURCE_OF_EVENT) + private String sourceOfEvent; + + public static final String SERIALIZED_NAME_CURRENT_TIER = "CurrentTier"; + @SerializedName(SERIALIZED_NAME_CURRENT_TIER) + private String currentTier; + + public static final String SERIALIZED_NAME_CURRENT_POINTS = "CurrentPoints"; + @SerializedName(SERIALIZED_NAME_CURRENT_POINTS) + private Float currentPoints; + + public static final String SERIALIZED_NAME_OLD_TIER = "OldTier"; + @SerializedName(SERIALIZED_NAME_OLD_TIER) + private String oldTier; + + public static final String SERIALIZED_NAME_POINTS_REQUIRED_TO_THE_NEXT_TIER = "PointsRequiredToTheNextTier"; + @SerializedName(SERIALIZED_NAME_POINTS_REQUIRED_TO_THE_NEXT_TIER) + private Float pointsRequiredToTheNextTier; + + public static final String SERIALIZED_NAME_NEXT_TIER = "NextTier"; + @SerializedName(SERIALIZED_NAME_NEXT_TIER) + private String nextTier; + + public static final String SERIALIZED_NAME_TIER_EXPIRATION_DATE = "TierExpirationDate"; + @SerializedName(SERIALIZED_NAME_TIER_EXPIRATION_DATE) + private OffsetDateTime tierExpirationDate; + + public static final String SERIALIZED_NAME_TIMESTAMP_OF_TIER_CHANGE = "TimestampOfTierChange"; + @SerializedName(SERIALIZED_NAME_TIMESTAMP_OF_TIER_CHANGE) + private OffsetDateTime timestampOfTierChange; + + public static final String SERIALIZED_NAME_PUBLISHED_AT = "PublishedAt"; + @SerializedName(SERIALIZED_NAME_PUBLISHED_AT) + private OffsetDateTime publishedAt; + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification profileIntegrationID(String profileIntegrationID) { + + this.profileIntegrationID = profileIntegrationID; + return this; + } + + /** + * Get profileIntegrationID + * @return profileIntegrationID + **/ + @ApiModelProperty(required = true, value = "") + + public String getProfileIntegrationID() { + return profileIntegrationID; + } + + + public void setProfileIntegrationID(String profileIntegrationID) { + this.profileIntegrationID = profileIntegrationID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification loyaltyProgramID(Long loyaltyProgramID) { + + this.loyaltyProgramID = loyaltyProgramID; + return this; + } + + /** + * Get loyaltyProgramID + * @return loyaltyProgramID + **/ + @ApiModelProperty(required = true, value = "") + + public Long getLoyaltyProgramID() { + return loyaltyProgramID; + } + + + public void setLoyaltyProgramID(Long loyaltyProgramID) { + this.loyaltyProgramID = loyaltyProgramID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification subledgerID(String subledgerID) { + + this.subledgerID = subledgerID; + return this; + } + + /** + * Get subledgerID + * @return subledgerID + **/ + @ApiModelProperty(required = true, value = "") + + public String getSubledgerID() { + return subledgerID; + } + + + public void setSubledgerID(String subledgerID) { + this.subledgerID = subledgerID; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification sourceOfEvent(String sourceOfEvent) { + + this.sourceOfEvent = sourceOfEvent; + return this; + } + + /** + * Get sourceOfEvent + * @return sourceOfEvent + **/ + @ApiModelProperty(required = true, value = "") + + public String getSourceOfEvent() { + return sourceOfEvent; + } + + + public void setSourceOfEvent(String sourceOfEvent) { + this.sourceOfEvent = sourceOfEvent; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification currentTier(String currentTier) { + + this.currentTier = currentTier; + return this; + } + + /** + * Get currentTier + * @return currentTier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCurrentTier() { + return currentTier; + } + + + public void setCurrentTier(String currentTier) { + this.currentTier = currentTier; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification currentPoints(Float currentPoints) { + + this.currentPoints = currentPoints; + return this; + } + + /** + * Get currentPoints + * @return currentPoints + **/ + @ApiModelProperty(required = true, value = "") + + public Float getCurrentPoints() { + return currentPoints; + } + + + public void setCurrentPoints(Float currentPoints) { + this.currentPoints = currentPoints; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification oldTier(String oldTier) { + + this.oldTier = oldTier; + return this; + } + + /** + * Get oldTier + * @return oldTier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getOldTier() { + return oldTier; + } + + + public void setOldTier(String oldTier) { + this.oldTier = oldTier; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification pointsRequiredToTheNextTier(Float pointsRequiredToTheNextTier) { + + this.pointsRequiredToTheNextTier = pointsRequiredToTheNextTier; + return this; + } + + /** + * Get pointsRequiredToTheNextTier + * @return pointsRequiredToTheNextTier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Float getPointsRequiredToTheNextTier() { + return pointsRequiredToTheNextTier; + } + + + public void setPointsRequiredToTheNextTier(Float pointsRequiredToTheNextTier) { + this.pointsRequiredToTheNextTier = pointsRequiredToTheNextTier; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification nextTier(String nextTier) { + + this.nextTier = nextTier; + return this; + } + + /** + * Get nextTier + * @return nextTier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getNextTier() { + return nextTier; + } + + + public void setNextTier(String nextTier) { + this.nextTier = nextTier; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification tierExpirationDate(OffsetDateTime tierExpirationDate) { + + this.tierExpirationDate = tierExpirationDate; + return this; + } + + /** + * Get tierExpirationDate + * @return tierExpirationDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getTierExpirationDate() { + return tierExpirationDate; + } + + + public void setTierExpirationDate(OffsetDateTime tierExpirationDate) { + this.tierExpirationDate = tierExpirationDate; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification timestampOfTierChange(OffsetDateTime timestampOfTierChange) { + + this.timestampOfTierChange = timestampOfTierChange; + return this; + } + + /** + * Get timestampOfTierChange + * @return timestampOfTierChange + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getTimestampOfTierChange() { + return timestampOfTierChange; + } + + + public void setTimestampOfTierChange(OffsetDateTime timestampOfTierChange) { + this.timestampOfTierChange = timestampOfTierChange; + } + + + public PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification publishedAt(OffsetDateTime publishedAt) { + + this.publishedAt = publishedAt; + return this; + } + + /** + * Timestamp when the event was published. + * @return publishedAt + **/ + @ApiModelProperty(required = true, value = "Timestamp when the event was published.") + + public OffsetDateTime getPublishedAt() { + return publishedAt; + } + + + public void setPublishedAt(OffsetDateTime publishedAt) { + this.publishedAt = publishedAt; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification = (PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification) o; + return Objects.equals(this.profileIntegrationID, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.profileIntegrationID) && + Objects.equals(this.loyaltyProgramID, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.loyaltyProgramID) && + Objects.equals(this.subledgerID, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.subledgerID) && + Objects.equals(this.sourceOfEvent, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.sourceOfEvent) && + Objects.equals(this.currentTier, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.currentTier) && + Objects.equals(this.currentPoints, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.currentPoints) && + Objects.equals(this.oldTier, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.oldTier) && + Objects.equals(this.pointsRequiredToTheNextTier, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.pointsRequiredToTheNextTier) && + Objects.equals(this.nextTier, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.nextTier) && + Objects.equals(this.tierExpirationDate, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.tierExpirationDate) && + Objects.equals(this.timestampOfTierChange, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.timestampOfTierChange) && + Objects.equals(this.publishedAt, prismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification.publishedAt); + } + + @Override + public int hashCode() { + return Objects.hash(profileIntegrationID, loyaltyProgramID, subledgerID, sourceOfEvent, currentTier, currentPoints, oldTier, pointsRequiredToTheNextTier, nextTier, tierExpirationDate, timestampOfTierChange, publishedAt); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification {\n"); + sb.append(" profileIntegrationID: ").append(toIndentedString(profileIntegrationID)).append("\n"); + sb.append(" loyaltyProgramID: ").append(toIndentedString(loyaltyProgramID)).append("\n"); + sb.append(" subledgerID: ").append(toIndentedString(subledgerID)).append("\n"); + sb.append(" sourceOfEvent: ").append(toIndentedString(sourceOfEvent)).append("\n"); + sb.append(" currentTier: ").append(toIndentedString(currentTier)).append("\n"); + sb.append(" currentPoints: ").append(toIndentedString(currentPoints)).append("\n"); + sb.append(" oldTier: ").append(toIndentedString(oldTier)).append("\n"); + sb.append(" pointsRequiredToTheNextTier: ").append(toIndentedString(pointsRequiredToTheNextTier)).append("\n"); + sb.append(" nextTier: ").append(toIndentedString(nextTier)).append("\n"); + sb.append(" tierExpirationDate: ").append(toIndentedString(tierExpirationDate)).append("\n"); + sb.append(" timestampOfTierChange: ").append(toIndentedString(timestampOfTierChange)).append("\n"); + sb.append(" publishedAt: ").append(toIndentedString(publishedAt)).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/PrismaticEventRecord.java b/src/main/java/one/talon/model/PrismaticEventRecord.java new file mode 100644 index 00000000..15fee52e --- /dev/null +++ b/src/main/java/one/talon/model/PrismaticEventRecord.java @@ -0,0 +1,296 @@ +/* + * 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; + +/** + * PrismaticEventRecord + */ + +public class PrismaticEventRecord { + public static final String SERIALIZED_NAME_ID = "Id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_FLOW_ID = "FlowId"; + @SerializedName(SERIALIZED_NAME_FLOW_ID) + private Long flowId; + + public static final String SERIALIZED_NAME_EVENT_TYPE = "EventType"; + @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + private String eventType; + + public static final String SERIALIZED_NAME_EVENT_DATA = "EventData"; + @SerializedName(SERIALIZED_NAME_EVENT_DATA) + private Object eventData; + + public static final String SERIALIZED_NAME_PUBLISHED_AT = "PublishedAt"; + @SerializedName(SERIALIZED_NAME_PUBLISHED_AT) + private OffsetDateTime publishedAt; + + public static final String SERIALIZED_NAME_PROCESSED_AT = "ProcessedAt"; + @SerializedName(SERIALIZED_NAME_PROCESSED_AT) + private OffsetDateTime processedAt; + + public static final String SERIALIZED_NAME_PROCESS_AFTER = "ProcessAfter"; + @SerializedName(SERIALIZED_NAME_PROCESS_AFTER) + private OffsetDateTime processAfter; + + public static final String SERIALIZED_NAME_RETRY = "Retry"; + @SerializedName(SERIALIZED_NAME_RETRY) + private Long retry; + + + public PrismaticEventRecord id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(required = true, value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public PrismaticEventRecord flowId(Long flowId) { + + this.flowId = flowId; + return this; + } + + /** + * Get flowId + * @return flowId + **/ + @ApiModelProperty(required = true, value = "") + + public Long getFlowId() { + return flowId; + } + + + public void setFlowId(Long flowId) { + this.flowId = flowId; + } + + + public PrismaticEventRecord eventType(String eventType) { + + this.eventType = eventType; + return this; + } + + /** + * Get eventType + * @return eventType + **/ + @ApiModelProperty(required = true, value = "") + + public String getEventType() { + return eventType; + } + + + public void setEventType(String eventType) { + this.eventType = eventType; + } + + + public PrismaticEventRecord eventData(Object eventData) { + + this.eventData = eventData; + return this; + } + + /** + * Get eventData + * @return eventData + **/ + @ApiModelProperty(required = true, value = "") + + public Object getEventData() { + return eventData; + } + + + public void setEventData(Object eventData) { + this.eventData = eventData; + } + + + public PrismaticEventRecord publishedAt(OffsetDateTime publishedAt) { + + this.publishedAt = publishedAt; + return this; + } + + /** + * Get publishedAt + * @return publishedAt + **/ + @ApiModelProperty(required = true, value = "") + + public OffsetDateTime getPublishedAt() { + return publishedAt; + } + + + public void setPublishedAt(OffsetDateTime publishedAt) { + this.publishedAt = publishedAt; + } + + + public PrismaticEventRecord processedAt(OffsetDateTime processedAt) { + + this.processedAt = processedAt; + return this; + } + + /** + * Get processedAt + * @return processedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getProcessedAt() { + return processedAt; + } + + + public void setProcessedAt(OffsetDateTime processedAt) { + this.processedAt = processedAt; + } + + + public PrismaticEventRecord processAfter(OffsetDateTime processAfter) { + + this.processAfter = processAfter; + return this; + } + + /** + * Get processAfter + * @return processAfter + **/ + @ApiModelProperty(required = true, value = "") + + public OffsetDateTime getProcessAfter() { + return processAfter; + } + + + public void setProcessAfter(OffsetDateTime processAfter) { + this.processAfter = processAfter; + } + + + public PrismaticEventRecord retry(Long retry) { + + this.retry = retry; + return this; + } + + /** + * Get retry + * @return retry + **/ + @ApiModelProperty(required = true, value = "") + + public Long getRetry() { + return retry; + } + + + public void setRetry(Long retry) { + this.retry = retry; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PrismaticEventRecord prismaticEventRecord = (PrismaticEventRecord) o; + return Objects.equals(this.id, prismaticEventRecord.id) && + Objects.equals(this.flowId, prismaticEventRecord.flowId) && + Objects.equals(this.eventType, prismaticEventRecord.eventType) && + Objects.equals(this.eventData, prismaticEventRecord.eventData) && + Objects.equals(this.publishedAt, prismaticEventRecord.publishedAt) && + Objects.equals(this.processedAt, prismaticEventRecord.processedAt) && + Objects.equals(this.processAfter, prismaticEventRecord.processAfter) && + Objects.equals(this.retry, prismaticEventRecord.retry); + } + + @Override + public int hashCode() { + return Objects.hash(id, flowId, eventType, eventData, publishedAt, processedAt, processAfter, retry); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrismaticEventRecord {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" flowId: ").append(toIndentedString(flowId)).append("\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" eventData: ").append(toIndentedString(eventData)).append("\n"); + sb.append(" publishedAt: ").append(toIndentedString(publishedAt)).append("\n"); + sb.append(" processedAt: ").append(toIndentedString(processedAt)).append("\n"); + sb.append(" processAfter: ").append(toIndentedString(processAfter)).append("\n"); + sb.append(" retry: ").append(toIndentedString(retry)).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/PrismaticFlowConfigResponse.java b/src/main/java/one/talon/model/PrismaticFlowConfigResponse.java new file mode 100644 index 00000000..b31dff0a --- /dev/null +++ b/src/main/java/one/talon/model/PrismaticFlowConfigResponse.java @@ -0,0 +1,161 @@ +/* + * 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; + +/** + * PrismaticFlowConfigResponse + */ + +public class PrismaticFlowConfigResponse { + public static final String SERIALIZED_NAME_WORKER_COUNT = "WorkerCount"; + @SerializedName(SERIALIZED_NAME_WORKER_COUNT) + private Long workerCount; + + public static final String SERIALIZED_NAME_MAX_EVENTS_PER_MESSAGE = "MaxEventsPerMessage"; + @SerializedName(SERIALIZED_NAME_MAX_EVENTS_PER_MESSAGE) + private Long maxEventsPerMessage; + + public static final String SERIALIZED_NAME_MAX_RETRIES = "MaxRetries"; + @SerializedName(SERIALIZED_NAME_MAX_RETRIES) + private Long maxRetries; + + + public PrismaticFlowConfigResponse workerCount(Long workerCount) { + + this.workerCount = workerCount; + return this; + } + + /** + * Number of Prismatic workers to run in parallel for this flow (maximum 500). + * minimum: 1 + * maximum: 500 + * @return workerCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of Prismatic workers to run in parallel for this flow (maximum 500).") + + public Long getWorkerCount() { + return workerCount; + } + + + public void setWorkerCount(Long workerCount) { + this.workerCount = workerCount; + } + + + public PrismaticFlowConfigResponse maxEventsPerMessage(Long maxEventsPerMessage) { + + this.maxEventsPerMessage = maxEventsPerMessage; + return this; + } + + /** + * Maximum number of events to send in a single message to Prismatic. + * minimum: 1 + * @return maxEventsPerMessage + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Maximum number of events to send in a single message to Prismatic.") + + public Long getMaxEventsPerMessage() { + return maxEventsPerMessage; + } + + + public void setMaxEventsPerMessage(Long maxEventsPerMessage) { + this.maxEventsPerMessage = maxEventsPerMessage; + } + + + public PrismaticFlowConfigResponse maxRetries(Long maxRetries) { + + this.maxRetries = maxRetries; + return this; + } + + /** + * Maximum number of retries for a Prismatic event before it is ignored. + * minimum: 0 + * @return maxRetries + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Maximum number of retries for a Prismatic event before it is ignored.") + + public Long getMaxRetries() { + return maxRetries; + } + + + public void setMaxRetries(Long maxRetries) { + this.maxRetries = maxRetries; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PrismaticFlowConfigResponse prismaticFlowConfigResponse = (PrismaticFlowConfigResponse) o; + return Objects.equals(this.workerCount, prismaticFlowConfigResponse.workerCount) && + Objects.equals(this.maxEventsPerMessage, prismaticFlowConfigResponse.maxEventsPerMessage) && + Objects.equals(this.maxRetries, prismaticFlowConfigResponse.maxRetries); + } + + @Override + public int hashCode() { + return Objects.hash(workerCount, maxEventsPerMessage, maxRetries); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrismaticFlowConfigResponse {\n"); + sb.append(" workerCount: ").append(toIndentedString(workerCount)).append("\n"); + sb.append(" maxEventsPerMessage: ").append(toIndentedString(maxEventsPerMessage)).append("\n"); + sb.append(" maxRetries: ").append(toIndentedString(maxRetries)).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/PrismaticFlowResponse.java b/src/main/java/one/talon/model/PrismaticFlowResponse.java new file mode 100644 index 00000000..1c85a20e --- /dev/null +++ b/src/main/java/one/talon/model/PrismaticFlowResponse.java @@ -0,0 +1,212 @@ +/* + * 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.PrismaticFlowConfigResponse; + +/** + * PrismaticFlowResponse + */ + +public class PrismaticFlowResponse { + public static final String SERIALIZED_NAME_ID = "Id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_APPLICATION_I_D = "ApplicationID"; + @SerializedName(SERIALIZED_NAME_APPLICATION_I_D) + private Long applicationID; + + public static final String SERIALIZED_NAME_EVENT_TYPE = "EventType"; + @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + private String eventType; + + public static final String SERIALIZED_NAME_PRISMATIC_FLOW_URL = "PrismaticFlowUrl"; + @SerializedName(SERIALIZED_NAME_PRISMATIC_FLOW_URL) + private String prismaticFlowUrl; + + public static final String SERIALIZED_NAME_CONFIG = "Config"; + @SerializedName(SERIALIZED_NAME_CONFIG) + private PrismaticFlowConfigResponse config; + + + public PrismaticFlowResponse id(Long id) { + + this.id = id; + return this; + } + + /** + * ID of the prismatic flow. + * @return id + **/ + @ApiModelProperty(required = true, value = "ID of the prismatic flow.") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public PrismaticFlowResponse applicationID(Long applicationID) { + + this.applicationID = applicationID; + return this; + } + + /** + * ID of application the flow is registered for. + * @return applicationID + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "54", value = "ID of application the flow is registered for.") + + public Long getApplicationID() { + return applicationID; + } + + + public void setApplicationID(Long applicationID) { + this.applicationID = applicationID; + } + + + public PrismaticFlowResponse eventType(String eventType) { + + this.eventType = eventType; + return this; + } + + /** + * The event type we want to register a flow for. + * @return eventType + **/ + @ApiModelProperty(required = true, value = "The event type we want to register a flow for.") + + public String getEventType() { + return eventType; + } + + + public void setEventType(String eventType) { + this.eventType = eventType; + } + + + public PrismaticFlowResponse prismaticFlowUrl(String prismaticFlowUrl) { + + this.prismaticFlowUrl = prismaticFlowUrl; + return this; + } + + /** + * The URL of the prismatic flow that we want to trigger for the event. + * @return prismaticFlowUrl + **/ + @ApiModelProperty(required = true, value = "The URL of the prismatic flow that we want to trigger for the event.") + + public String getPrismaticFlowUrl() { + return prismaticFlowUrl; + } + + + public void setPrismaticFlowUrl(String prismaticFlowUrl) { + this.prismaticFlowUrl = prismaticFlowUrl; + } + + + public PrismaticFlowResponse config(PrismaticFlowConfigResponse config) { + + this.config = config; + return this; + } + + /** + * Get config + * @return config + **/ + @ApiModelProperty(required = true, value = "") + + public PrismaticFlowConfigResponse getConfig() { + return config; + } + + + public void setConfig(PrismaticFlowConfigResponse config) { + this.config = config; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PrismaticFlowResponse prismaticFlowResponse = (PrismaticFlowResponse) o; + return Objects.equals(this.id, prismaticFlowResponse.id) && + Objects.equals(this.applicationID, prismaticFlowResponse.applicationID) && + Objects.equals(this.eventType, prismaticFlowResponse.eventType) && + Objects.equals(this.prismaticFlowUrl, prismaticFlowResponse.prismaticFlowUrl) && + Objects.equals(this.config, prismaticFlowResponse.config); + } + + @Override + public int hashCode() { + return Objects.hash(id, applicationID, eventType, prismaticFlowUrl, config); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrismaticFlowResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" applicationID: ").append(toIndentedString(applicationID)).append("\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" prismaticFlowUrl: ").append(toIndentedString(prismaticFlowUrl)).append("\n"); + sb.append(" config: ").append(toIndentedString(config)).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/PrismaticPaginatedEventPayload.java b/src/main/java/one/talon/model/PrismaticPaginatedEventPayload.java index b97a3199..31246814 100644 --- a/src/main/java/one/talon/model/PrismaticPaginatedEventPayload.java +++ b/src/main/java/one/talon/model/PrismaticPaginatedEventPayload.java @@ -25,6 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import org.threeten.bp.OffsetDateTime; /** * PrismaticPaginatedEventPayload @@ -35,6 +36,10 @@ public class PrismaticPaginatedEventPayload { @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) private Long totalResultSize; + public static final String SERIALIZED_NAME_BATCHED_AT = "BatchedAt"; + @SerializedName(SERIALIZED_NAME_BATCHED_AT) + private OffsetDateTime batchedAt; + /** * Gets or Sets eventType */ @@ -121,6 +126,29 @@ public void setTotalResultSize(Long totalResultSize) { } + public PrismaticPaginatedEventPayload batchedAt(OffsetDateTime batchedAt) { + + this.batchedAt = batchedAt; + return this; + } + + /** + * Timestamp when the batch was created. + * @return batchedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Timestamp when the batch was created.") + + public OffsetDateTime getBatchedAt() { + return batchedAt; + } + + + public void setBatchedAt(OffsetDateTime batchedAt) { + this.batchedAt = batchedAt; + } + + public PrismaticPaginatedEventPayload eventType(EventTypeEnum eventType) { this.eventType = eventType; @@ -180,13 +208,14 @@ public boolean equals(java.lang.Object o) { } PrismaticPaginatedEventPayload prismaticPaginatedEventPayload = (PrismaticPaginatedEventPayload) o; return Objects.equals(this.totalResultSize, prismaticPaginatedEventPayload.totalResultSize) && + Objects.equals(this.batchedAt, prismaticPaginatedEventPayload.batchedAt) && Objects.equals(this.eventType, prismaticPaginatedEventPayload.eventType) && Objects.equals(this.data, prismaticPaginatedEventPayload.data); } @Override public int hashCode() { - return Objects.hash(totalResultSize, eventType, data); + return Objects.hash(totalResultSize, batchedAt, eventType, data); } @@ -195,6 +224,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PrismaticPaginatedEventPayload {\n"); sb.append(" totalResultSize: ").append(toIndentedString(totalResultSize)).append("\n"); + sb.append(" batchedAt: ").append(toIndentedString(batchedAt)).append("\n"); sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); diff --git a/src/main/java/one/talon/model/PromoteExperiment.java b/src/main/java/one/talon/model/PromoteExperiment.java new file mode 100644 index 00000000..0c2f6f40 --- /dev/null +++ b/src/main/java/one/talon/model/PromoteExperiment.java @@ -0,0 +1,184 @@ +/* + * 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.ExperimentCampaignCopy; + +/** + * PromoteExperiment + */ + +public class PromoteExperiment { + public static final String SERIALIZED_NAME_TARGET_APPLICATION_ID = "targetApplicationId"; + @SerializedName(SERIALIZED_NAME_TARGET_APPLICATION_ID) + private Long targetApplicationId; + + public static final String SERIALIZED_NAME_VARIANT_ID = "variantId"; + @SerializedName(SERIALIZED_NAME_VARIANT_ID) + private Long variantId; + + public static final String SERIALIZED_NAME_DISABLE_EXPERIMENT = "disableExperiment"; + @SerializedName(SERIALIZED_NAME_DISABLE_EXPERIMENT) + private Boolean disableExperiment; + + public static final String SERIALIZED_NAME_CAMPAIGN = "campaign"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN) + private ExperimentCampaignCopy campaign; + + + public PromoteExperiment targetApplicationId(Long targetApplicationId) { + + this.targetApplicationId = targetApplicationId; + return this; + } + + /** + * The ID of the Application to copy the experiment. It is displayed in your Talon.One deployment URL. + * @return targetApplicationId + **/ + @ApiModelProperty(required = true, value = "The ID of the Application to copy the experiment. It is displayed in your Talon.One deployment URL. ") + + public Long getTargetApplicationId() { + return targetApplicationId; + } + + + public void setTargetApplicationId(Long targetApplicationId) { + this.targetApplicationId = targetApplicationId; + } + + + public PromoteExperiment variantId(Long variantId) { + + this.variantId = variantId; + return this; + } + + /** + * The ID of the Experiment Variant to build the new campaign. + * @return variantId + **/ + @ApiModelProperty(required = true, value = "The ID of the Experiment Variant to build the new campaign. ") + + public Long getVariantId() { + return variantId; + } + + + public void setVariantId(Long variantId) { + this.variantId = variantId; + } + + + public PromoteExperiment disableExperiment(Boolean disableExperiment) { + + this.disableExperiment = disableExperiment; + return this; + } + + /** + * Force disable the experiment. + * @return disableExperiment + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Force disable the experiment. ") + + public Boolean getDisableExperiment() { + return disableExperiment; + } + + + public void setDisableExperiment(Boolean disableExperiment) { + this.disableExperiment = disableExperiment; + } + + + public PromoteExperiment campaign(ExperimentCampaignCopy campaign) { + + this.campaign = campaign; + return this; + } + + /** + * Get campaign + * @return campaign + **/ + @ApiModelProperty(required = true, value = "") + + public ExperimentCampaignCopy getCampaign() { + return campaign; + } + + + public void setCampaign(ExperimentCampaignCopy campaign) { + this.campaign = campaign; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PromoteExperiment promoteExperiment = (PromoteExperiment) o; + return Objects.equals(this.targetApplicationId, promoteExperiment.targetApplicationId) && + Objects.equals(this.variantId, promoteExperiment.variantId) && + Objects.equals(this.disableExperiment, promoteExperiment.disableExperiment) && + Objects.equals(this.campaign, promoteExperiment.campaign); + } + + @Override + public int hashCode() { + return Objects.hash(targetApplicationId, variantId, disableExperiment, campaign); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PromoteExperiment {\n"); + sb.append(" targetApplicationId: ").append(toIndentedString(targetApplicationId)).append("\n"); + sb.append(" variantId: ").append(toIndentedString(variantId)).append("\n"); + sb.append(" disableExperiment: ").append(toIndentedString(disableExperiment)).append("\n"); + sb.append(" campaign: ").append(toIndentedString(campaign)).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/ResponseContentObject.java b/src/main/java/one/talon/model/ResponseContentObject.java new file mode 100644 index 00000000..150bd2c2 --- /dev/null +++ b/src/main/java/one/talon/model/ResponseContentObject.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; + +/** + * ResponseContentObject + */ + +public class ResponseContentObject { + /** + * Gets or Sets responseContent + */ + @JsonAdapter(ResponseContentEnum.Adapter.class) + public enum ResponseContentEnum { + CUSTOMERPROFILE("customerProfile"), + + TRIGGEREDCAMPAIGNS("triggeredCampaigns"), + + LOYALTY("loyalty"), + + EVENT("event"), + + AWARDEDGIVEAWAYS("awardedGiveaways"), + + RULEFAILUREREASONS("ruleFailureReasons"); + + private String value; + + ResponseContentEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ResponseContentEnum fromValue(String value) { + for (ResponseContentEnum b : ResponseContentEnum.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 ResponseContentEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ResponseContentEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ResponseContentEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_RESPONSE_CONTENT = "responseContent"; + @SerializedName(SERIALIZED_NAME_RESPONSE_CONTENT) + private List responseContent = null; + + + public ResponseContentObject responseContent(List responseContent) { + + this.responseContent = responseContent; + return this; + } + + public ResponseContentObject addResponseContentItem(ResponseContentEnum responseContentItem) { + if (this.responseContent == null) { + this.responseContent = new ArrayList(); + } + this.responseContent.add(responseContentItem); + return this; + } + + /** + * Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. + * @return responseContent + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[triggeredCampaigns, customerProfile]", value = "Extends the response with the chosen data entities. Use this property to get as much data back as needed from one request instead of sending extra requests to other endpoints. ") + + public List getResponseContent() { + return responseContent; + } + + + public void setResponseContent(List responseContent) { + this.responseContent = responseContent; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseContentObject responseContentObject = (ResponseContentObject) o; + return Objects.equals(this.responseContent, responseContentObject.responseContent); + } + + @Override + public int hashCode() { + return Objects.hash(responseContent); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseContentObject {\n"); + sb.append(" responseContent: ").append(toIndentedString(responseContent)).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/TalangAttribute.java b/src/main/java/one/talon/model/TalangAttribute.java index 1d20769f..070cb70c 100644 --- a/src/main/java/one/talon/model/TalangAttribute.java +++ b/src/main/java/one/talon/model/TalangAttribute.java @@ -62,6 +62,8 @@ public enum EntityEnum { LOYALTY("Loyalty"), + LOYALTYCARD("LoyaltyCard"), + PROFILE("Profile"), GIVEAWAY("Giveaway"), diff --git a/src/main/java/one/talon/model/UpdateBlueprint.java b/src/main/java/one/talon/model/UpdateBlueprint.java new file mode 100644 index 00000000..2e934fdd --- /dev/null +++ b/src/main/java/one/talon/model/UpdateBlueprint.java @@ -0,0 +1,286 @@ +/* + * 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.CartItemFilterTemplate; +import one.talon.model.CatalogRule; + +/** + * UpdateBlueprint + */ + +public class UpdateBlueprint { + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + /** + * Category used to group blueprints. + */ + @JsonAdapter(CategoryEnum.Adapter.class) + public enum CategoryEnum { + PROMOTIONS("promotions"), + + PRICING("pricing"), + + LOYALTY("loyalty"), + + CUSTOM("custom"); + + private String value; + + CategoryEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CategoryEnum fromValue(String value) { + for (CategoryEnum b : CategoryEnum.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 CategoryEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CategoryEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CategoryEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) + private CategoryEnum category; + + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) + private List rules = null; + + public static final String SERIALIZED_NAME_CART_ITEM_FILTERS = "cartItemFilters"; + @SerializedName(SERIALIZED_NAME_CART_ITEM_FILTERS) + private List cartItemFilters = null; + + + public UpdateBlueprint title(String title) { + + this.title = title; + return this; + } + + /** + * The display name for the blueprint. + * @return title + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The display name for the blueprint.") + + public String getTitle() { + return title; + } + + + public void setTitle(String title) { + this.title = title; + } + + + public UpdateBlueprint description(String description) { + + this.description = description; + return this; + } + + /** + * A longer, more detailed description of the blueprint. + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A longer, more detailed description of the blueprint.") + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + public UpdateBlueprint category(CategoryEnum category) { + + this.category = category; + return this; + } + + /** + * Category used to group blueprints. + * @return category + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Category used to group blueprints.") + + public CategoryEnum getCategory() { + return category; + } + + + public void setCategory(CategoryEnum category) { + this.category = category; + } + + + public UpdateBlueprint rules(List rules) { + + this.rules = rules; + return this; + } + + public UpdateBlueprint addRulesItem(CatalogRule rulesItem) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + this.rules.add(rulesItem); + return this; + } + + /** + * Replaces the stored rules. Rules should only contain title (no description, as description is at the blueprint level). + * @return rules + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Replaces the stored rules. Rules should only contain title (no description, as description is at the blueprint level).") + + public List getRules() { + return rules; + } + + + public void setRules(List rules) { + this.rules = rules; + } + + + public UpdateBlueprint cartItemFilters(List cartItemFilters) { + + this.cartItemFilters = cartItemFilters; + return this; + } + + public UpdateBlueprint addCartItemFiltersItem(CartItemFilterTemplate cartItemFiltersItem) { + if (this.cartItemFilters == null) { + this.cartItemFilters = new ArrayList(); + } + this.cartItemFilters.add(cartItemFiltersItem); + return this; + } + + /** + * Replaces the stored cart item filters. Cart item filters should only contain name (no description, as description is at the blueprint level). + * @return cartItemFilters + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Replaces the stored cart item filters. Cart item filters should only contain name (no description, as description is at the blueprint level).") + + public List getCartItemFilters() { + return cartItemFilters; + } + + + public void setCartItemFilters(List cartItemFilters) { + this.cartItemFilters = cartItemFilters; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateBlueprint updateBlueprint = (UpdateBlueprint) o; + return Objects.equals(this.title, updateBlueprint.title) && + Objects.equals(this.description, updateBlueprint.description) && + Objects.equals(this.category, updateBlueprint.category) && + Objects.equals(this.rules, updateBlueprint.rules) && + Objects.equals(this.cartItemFilters, updateBlueprint.cartItemFilters); + } + + @Override + public int hashCode() { + return Objects.hash(title, description, category, rules, cartItemFilters); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBlueprint {\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append(" cartItemFilters: ").append(toIndentedString(cartItemFilters)).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/UpdateExperiment.java b/src/main/java/one/talon/model/UpdateExperiment.java index 5cc42e0b..69d3c3d1 100644 --- a/src/main/java/one/talon/model/UpdateExperiment.java +++ b/src/main/java/one/talon/model/UpdateExperiment.java @@ -46,10 +46,10 @@ public UpdateExperiment isVariantAssignmentExternal(Boolean isVariantAssignmentE } /** - * The source of the assignment. - false - The assignment to the variant is handled internally by the Talon.Oneandled internally by the Talon.One. - true - The assignment to the variant handled externally. + * The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. * @return isVariantAssignmentExternal **/ - @ApiModelProperty(required = true, value = "The source of the assignment. - false - The assignment to the variant is handled internally by the Talon.Oneandled internally by the Talon.One. - true - The assignment to the variant handled externally. ") + @ApiModelProperty(required = true, value = "The source of the assignment. - false - The variant assignment is handled internally by Talon.One. - true - The variant assignment is handled externally. ") public Boolean getIsVariantAssignmentExternal() { return isVariantAssignmentExternal; diff --git a/src/main/java/one/talon/model/UpdateExperimentVariant.java b/src/main/java/one/talon/model/UpdateExperimentVariant.java index fec7e8dd..a9b71834 100644 --- a/src/main/java/one/talon/model/UpdateExperimentVariant.java +++ b/src/main/java/one/talon/model/UpdateExperimentVariant.java @@ -76,10 +76,10 @@ public UpdateExperimentVariant name(String name) { } /** - * Get name + * The name of this variant. * @return name **/ - @ApiModelProperty(example = "Variant A", required = true, value = "") + @ApiModelProperty(example = "Variant A", required = true, value = "The name of this variant.") public String getName() { return name; @@ -120,10 +120,12 @@ public UpdateExperimentVariant weight(Long weight) { } /** - * Get weight + * The percentage split of this variant. The sum of all variant percentages must be 100. + * minimum: 1 + * maximum: 99 * @return weight **/ - @ApiModelProperty(example = "12", required = true, value = "") + @ApiModelProperty(example = "13", required = true, value = "The percentage split of this variant. The sum of all variant percentages must be 100.") public Long getWeight() { return weight; diff --git a/src/main/java/one/talon/model/UpdateExperimentVariantName.java b/src/main/java/one/talon/model/UpdateExperimentVariantName.java new file mode 100644 index 00000000..35bb3350 --- /dev/null +++ b/src/main/java/one/talon/model/UpdateExperimentVariantName.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; + +/** + * UpdateExperimentVariantName + */ + +public class UpdateExperimentVariantName { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public UpdateExperimentVariantName name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the variant. + * @return name + **/ + @ApiModelProperty(example = "Variant A", required = true, value = "The name of the variant.") + + 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; + } + UpdateExperimentVariantName updateExperimentVariantName = (UpdateExperimentVariantName) o; + return Objects.equals(this.name, updateExperimentVariantName.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateExperimentVariantName {\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/UpdateLoyaltyCardRequest.java b/src/main/java/one/talon/model/UpdateLoyaltyCardRequest.java new file mode 100644 index 00000000..117847d8 --- /dev/null +++ b/src/main/java/one/talon/model/UpdateLoyaltyCardRequest.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; + +/** + * UpdateLoyaltyCardRequest + */ + +public class UpdateLoyaltyCardRequest { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; + + + public UpdateLoyaltyCardRequest status(String status) { + + this.status = status; + return this; + } + + /** + * Status of the loyalty card. Can be `active` or `inactive`. + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "active", value = "Status of the loyalty card. Can be `active` or `inactive`. ") + + public String getStatus() { + return status; + } + + + public void setStatus(String 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; + } + UpdateLoyaltyCardRequest updateLoyaltyCardRequest = (UpdateLoyaltyCardRequest) o; + return Objects.equals(this.status, updateLoyaltyCardRequest.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateLoyaltyCardRequest {\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/test/java/one/talon/api/IntegrationApiTest.java b/src/test/java/one/talon/api/IntegrationApiTest.java index c58f37e6..35349432 100644 --- a/src/test/java/one/talon/api/IntegrationApiTest.java +++ b/src/test/java/one/talon/api/IntegrationApiTest.java @@ -41,6 +41,7 @@ import one.talon.model.InlineResponse201; import one.talon.model.IntegrationCustomerSessionResponse; import one.talon.model.IntegrationEventV2Request; +import one.talon.model.IntegrationEventV2Response; import one.talon.model.IntegrationRequest; import one.talon.model.IntegrationStateV2; import one.talon.model.LoyaltyBalancesWithTiers; @@ -53,10 +54,11 @@ import one.talon.model.NewReferral; import one.talon.model.NewReferralsForMultipleAdvocates; import org.threeten.bp.OffsetDateTime; +import one.talon.model.PriceHistoryRequest; +import one.talon.model.PriceHistoryResponse; import one.talon.model.Referral; import one.talon.model.ReopenSessionResponse; import one.talon.model.ReturnIntegrationRequest; -import one.talon.model.TrackEventV2Response; import one.talon.model.UpdateAudience; import org.junit.Test; import org.junit.Ignore; @@ -260,7 +262,7 @@ public void deleteLoyaltyTransactionsFromLedgersTest() throws ApiException { /** * Generate loyalty card * - * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. + * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. * * @throws ApiException * if the Api call fails @@ -530,6 +532,22 @@ public void linkLoyaltyCardToProfileTest() throws ApiException { // TODO: test validations } + /** + * Get summary of price history + * + * Fetch the historical price data for a given SKU within a defined timeframe. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void priceHistoryTest() throws ApiException { + PriceHistoryRequest body = null; + PriceHistoryResponse response = api.priceHistory(body); + + // TODO: test validations + } + /** * Reopen customer session * @@ -595,7 +613,7 @@ public void trackEventV2Test() throws ApiException { String silent = null; Boolean dry = null; Boolean forceCompleteEvaluation = null; - TrackEventV2Response response = api.trackEventV2(body, silent, dry, forceCompleteEvaluation); + IntegrationEventV2Response response = api.trackEventV2(body, silent, dry, forceCompleteEvaluation); // TODO: test validations } diff --git a/src/test/java/one/talon/api/ManagementApiTest.java b/src/test/java/one/talon/api/ManagementApiTest.java index c1ccc4e3..3f0c7733 100644 --- a/src/test/java/one/talon/api/ManagementApiTest.java +++ b/src/test/java/one/talon/api/ManagementApiTest.java @@ -44,6 +44,7 @@ import one.talon.model.DeleteUserRequest; import one.talon.model.ErrorResponse; import one.talon.model.ErrorResponseWithStatus; +import one.talon.model.Experiment; import one.talon.model.InlineResponse20010; import one.talon.model.InlineResponse20011; import one.talon.model.InlineResponse20012; @@ -86,6 +87,7 @@ import one.talon.model.InlineResponse20048; import one.talon.model.InlineResponse20049; import one.talon.model.InlineResponse20050; +import one.talon.model.InlineResponse20051; import one.talon.model.InlineResponse2007; import one.talon.model.InlineResponse2008; import one.talon.model.InlineResponse2009; @@ -138,7 +140,7 @@ import one.talon.model.UpdateCollection; import one.talon.model.UpdateCoupon; import one.talon.model.UpdateCouponBatch; -import one.talon.model.UpdateLoyaltyCard; +import one.talon.model.UpdateLoyaltyCardRequest; import one.talon.model.UpdateReferral; import one.talon.model.UpdateUser; import one.talon.model.User; @@ -1091,6 +1093,22 @@ public void exportLoyaltyCardsTest() throws ApiException { // TODO: test validations } + /** + * Export customers' loyalty program join dates + * + * Download a CSV file containing the join dates of all customers 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. - `profileIntegrationID`: The integration ID of the customer profile. - `joinDate`: The customer's loyalty program join date in RFC3339 format. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void exportLoyaltyJoinDatesTest() throws ApiException { + String loyaltyProgramId = null; + String response = api.exportLoyaltyJoinDates(loyaltyProgramId); + + // TODO: test validations + } + /** * Export customer's transaction logs * @@ -1166,7 +1184,7 @@ public void generateCouponRejectionsTest() throws ApiException { BigDecimal applicationId = null; String language = null; String couponCode = null; - InlineResponse20050 response = api.generateCouponRejections(sessionIntegrationId, applicationId, language, couponCode); + InlineResponse20051 response = api.generateCouponRejections(sessionIntegrationId, applicationId, language, couponCode); // TODO: test validations } @@ -1190,7 +1208,7 @@ public void getAccessLogsWithoutTotalCountTest() throws ApiException { Long pageSize = null; Long skip = null; String sort = null; - InlineResponse20022 response = api.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); + InlineResponse20023 response = api.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); // TODO: test validations } @@ -1290,7 +1308,7 @@ public void getAdditionalCostsTest() throws ApiException { Long pageSize = null; Long skip = null; String sort = null; - InlineResponse20038 response = api.getAdditionalCosts(pageSize, skip, sort); + InlineResponse20039 response = api.getAdditionalCosts(pageSize, skip, sort); // TODO: test validations } @@ -1360,7 +1378,7 @@ public void getApplicationCustomerFriendsTest() throws ApiException { Long skip = null; String sort = null; Boolean withTotalResultSize = null; - InlineResponse20035 response = api.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); + InlineResponse20036 response = api.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); // TODO: test validations } @@ -1380,7 +1398,7 @@ public void getApplicationCustomersTest() throws ApiException { Long pageSize = null; Long skip = null; Boolean withTotalResultSize = null; - InlineResponse20024 response = api.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize); + InlineResponse20025 response = api.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize); // TODO: test validations } @@ -1400,7 +1418,7 @@ public void getApplicationCustomersByAttributesTest() throws ApiException { Long pageSize = null; Long skip = null; Boolean withTotalResultSize = null; - InlineResponse20025 response = api.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize); + InlineResponse20026 response = api.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize); // TODO: test validations } @@ -1419,7 +1437,7 @@ public void getApplicationEventTypesTest() throws ApiException { Long pageSize = null; Long skip = null; String sort = null; - InlineResponse20031 response = api.getApplicationEventTypes(applicationId, pageSize, skip, sort); + InlineResponse20032 response = api.getApplicationEventTypes(applicationId, pageSize, skip, sort); // TODO: test validations } @@ -1450,7 +1468,7 @@ public void getApplicationEventsWithoutTotalCountTest() throws ApiException { String ruleQuery = null; String campaignQuery = null; String effectType = null; - InlineResponse20030 response = api.getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, effectType); + InlineResponse20031 response = api.getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, effectType); // TODO: test validations } @@ -1494,7 +1512,7 @@ public void getApplicationSessionsTest() throws ApiException { String referral = null; String integrationId = null; String storeIntegrationId = null; - InlineResponse20029 response = api.getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId); + InlineResponse20030 response = api.getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId); // TODO: test validations } @@ -1551,7 +1569,7 @@ public void getAttributesTest() throws ApiException { String type = null; String kind = null; String search = null; - InlineResponse20036 response = api.getAttributes(pageSize, skip, sort, entity, applicationIds, type, kind, search); + InlineResponse20037 response = api.getAttributes(pageSize, skip, sort, entity, applicationIds, type, kind, search); // TODO: test validations } @@ -1571,7 +1589,7 @@ public void getAudienceMembershipsTest() throws ApiException { Long skip = null; String sort = null; String profileQuery = null; - InlineResponse20034 response = api.getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery); + InlineResponse20035 response = api.getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery); // TODO: test validations } @@ -1590,7 +1608,7 @@ public void getAudiencesTest() throws ApiException { Long skip = null; String sort = null; Boolean withTotalResultSize = null; - InlineResponse20032 response = api.getAudiences(pageSize, skip, sort, withTotalResultSize); + InlineResponse20033 response = api.getAudiences(pageSize, skip, sort, withTotalResultSize); // TODO: test validations } @@ -1607,7 +1625,7 @@ public void getAudiencesTest() throws ApiException { public void getAudiencesAnalyticsTest() throws ApiException { String audienceIds = null; String sort = null; - InlineResponse20033 response = api.getAudiencesAnalytics(audienceIds, sort); + InlineResponse20034 response = api.getAudiencesAnalytics(audienceIds, sort); // TODO: test validations } @@ -1644,7 +1662,7 @@ public void getCampaignAnalyticsTest() throws ApiException { OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; String granularity = null; - InlineResponse20023 response = api.getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity); + InlineResponse20024 response = api.getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity); // TODO: test validations } @@ -1778,7 +1796,7 @@ public void getChangesTest() throws ApiException { Boolean withTotalResultSize = null; Long managementKeyId = null; Boolean includeOld = null; - InlineResponse20042 response = api.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); + InlineResponse20043 response = api.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); // TODO: test validations } @@ -1814,7 +1832,7 @@ public void getCollectionItemsTest() throws ApiException { Long collectionId = null; Long pageSize = null; Long skip = null; - InlineResponse20021 response = api.getCollectionItems(collectionId, pageSize, skip); + InlineResponse20022 response = api.getCollectionItems(collectionId, pageSize, skip); // TODO: test validations } @@ -1895,7 +1913,7 @@ public void getCustomerActivityReportsWithoutTotalCountTest() throws ApiExceptio String integrationId = null; String campaignName = null; String advocateName = null; - InlineResponse20028 response = api.getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName); + InlineResponse20029 response = api.getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName); // TODO: test validations } @@ -1952,7 +1970,7 @@ public void getCustomerProfileAchievementProgressTest() throws ApiException { Long skip = null; Long achievementId = null; String title = null; - InlineResponse20049 response = api.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); + InlineResponse20050 response = api.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); // TODO: test validations } @@ -1970,7 +1988,7 @@ public void getCustomerProfilesTest() throws ApiException { Long pageSize = null; Long skip = null; Boolean sandbox = null; - InlineResponse20027 response = api.getCustomerProfiles(pageSize, skip, sandbox); + InlineResponse20028 response = api.getCustomerProfiles(pageSize, skip, sandbox); // TODO: test validations } @@ -1989,7 +2007,7 @@ public void getCustomersByAttributesTest() throws ApiException { Long pageSize = null; Long skip = null; Boolean sandbox = null; - InlineResponse20026 response = api.getCustomersByAttributes(body, pageSize, skip, sandbox); + InlineResponse20027 response = api.getCustomersByAttributes(body, pageSize, skip, sandbox); // TODO: test validations } @@ -2008,7 +2026,7 @@ public void getDashboardStatisticsTest() throws ApiException { OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; String subledgerId = null; - InlineResponse20016 response = api.getDashboardStatistics(loyaltyProgramId, rangeStart, rangeEnd, subledgerId); + InlineResponse20017 response = api.getDashboardStatistics(loyaltyProgramId, rangeStart, rangeEnd, subledgerId); // TODO: test validations } @@ -2028,7 +2046,24 @@ public void getEventTypesTest() throws ApiException { Long pageSize = null; Long skip = null; String sort = null; - InlineResponse20040 response = api.getEventTypes(name, includeOldVersions, pageSize, skip, sort); + InlineResponse20041 response = api.getEventTypes(name, includeOldVersions, pageSize, skip, sort); + + // TODO: test validations + } + + /** + * Get experiment in Application + * + * Retrieve a given experiment associated with an Application. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getExperimentTest() throws ApiException { + Long applicationId = null; + Long experimentId = null; + Experiment response = api.getExperiment(applicationId, experimentId); // TODO: test validations } @@ -2048,7 +2083,7 @@ public void getExportsTest() throws ApiException { BigDecimal applicationId = null; Long campaignId = null; String entity = null; - InlineResponse20043 response = api.getExports(pageSize, skip, applicationId, campaignId, entity); + InlineResponse20044 response = api.getExports(pageSize, skip, applicationId, campaignId, entity); // TODO: test validations } @@ -2089,7 +2124,7 @@ public void getLoyaltyCardTransactionLogsTest() throws ApiException { String subledgerId = null; List customerSessionIDs = null; List transactionUUIDs = null; - InlineResponse20019 response = api.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs); + InlineResponse20020 response = api.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, customerSessionIDs, transactionUUIDs); // TODO: test validations } @@ -2111,7 +2146,7 @@ public void getLoyaltyCardsTest() throws ApiException { String identifier = null; Long profileId = null; String batchId = null; - InlineResponse20018 response = api.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); + InlineResponse20019 response = api.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); // TODO: test validations } @@ -2216,7 +2251,7 @@ public void getLoyaltyProgramTransactionsTest() throws ApiException { Long pageSize = null; Long skip = null; Boolean awaitsActivation = null; - InlineResponse20017 response = api.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, awaitsActivation); + InlineResponse20018 response = api.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, customerSessionIDs, transactionUUIDs, startDate, endDate, pageSize, skip, awaitsActivation); // TODO: test validations } @@ -2231,7 +2266,7 @@ public void getLoyaltyProgramTransactionsTest() throws ApiException { */ @Test public void getLoyaltyProgramsTest() throws ApiException { - InlineResponse20015 response = api.getLoyaltyPrograms(); + InlineResponse20016 response = api.getLoyaltyPrograms(); // TODO: test validations } @@ -2407,7 +2442,7 @@ public void getUsersTest() throws ApiException { Long pageSize = null; Long skip = null; String sort = null; - InlineResponse20041 response = api.getUsers(pageSize, skip, sort); + InlineResponse20042 response = api.getUsers(pageSize, skip, sort); // TODO: test validations } @@ -2446,7 +2481,7 @@ public void getWebhooksTest() throws ApiException { String visibility = null; Long outgoingIntegrationsTypeId = null; String title = null; - InlineResponse20039 response = api.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); + InlineResponse20040 response = api.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); // TODO: test validations } @@ -2562,7 +2597,7 @@ public void importCollectionTest() throws ApiException { /** * Import coupons * - * 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 recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `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). + * 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. Must be at least 3 characters long. We recommend using alphanumeric characters. There is no maximum length but limiting the code to 30 characters ensures it is fully readable in the Campaign Manager. The code should be unique unless you set `skipDuplicates` to `true`. - `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 recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `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). * * @throws ApiException * if the Api call fails @@ -2581,7 +2616,7 @@ public void importCouponsTest() throws ApiException { /** * 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. The identifiers should be separated with a semicolon (;). **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` + * 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. The identifiers should be separated with a semicolon (;). - `attributes` (optional): A JSON object that contains the loyalty card's custom attributes and their values. These attributes must be created and connected to this loyalty program before they can be assigned to the cards through this endpoint. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids,attributes 123-456-789AT,active,Alexa001;UserA,\"{\"\"my_attribute\"\": \"\"10_off\"\"}\" ``` * * @throws ApiException * if the Api call fails @@ -2696,7 +2731,7 @@ public void listAccountCollectionsTest() throws ApiException { String sort = null; Boolean withTotalResultSize = null; String name = null; - InlineResponse20020 response = api.listAccountCollections(pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20021 response = api.listAccountCollections(pageSize, skip, sort, withTotalResultSize, name); // TODO: test validations } @@ -2716,7 +2751,7 @@ public void listAchievementsTest() throws ApiException { Long pageSize = null; Long skip = null; String title = null; - InlineResponse20048 response = api.listAchievements(applicationId, campaignId, pageSize, skip, title); + InlineResponse20049 response = api.listAchievements(applicationId, campaignId, pageSize, skip, title); // TODO: test validations } @@ -2731,7 +2766,7 @@ public void listAchievementsTest() throws ApiException { */ @Test public void listAllRolesV2Test() throws ApiException { - InlineResponse20044 response = api.listAllRolesV2(); + InlineResponse20045 response = api.listAllRolesV2(); // TODO: test validations } @@ -2750,7 +2785,7 @@ public void listCampaignStoreBudgetLimitsTest() throws ApiException { Long campaignId = null; String action = null; String period = null; - InlineResponse20046 response = api.listCampaignStoreBudgetLimits(applicationId, campaignId, action, period); + InlineResponse20047 response = api.listCampaignStoreBudgetLimits(applicationId, campaignId, action, period); // TODO: test validations } @@ -2771,7 +2806,7 @@ public void listCatalogItemsTest() throws ApiException { Boolean withTotalResultSize = null; List sku = null; List productNames = null; - InlineResponse20037 response = api.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); + InlineResponse20038 response = api.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); // TODO: test validations } @@ -2793,7 +2828,7 @@ public void listCollectionsTest() throws ApiException { String sort = null; Boolean withTotalResultSize = null; String name = null; - InlineResponse20020 response = api.listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20021 response = api.listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); // TODO: test validations } @@ -2814,7 +2849,26 @@ public void listCollectionsInApplicationTest() throws ApiException { String sort = null; Boolean withTotalResultSize = null; String name = null; - InlineResponse20020 response = api.listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20021 response = api.listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name); + + // TODO: test validations + } + + /** + * List experiments + * + * Get a list of experiments per application. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listExperimentsTest() throws ApiException { + Long applicationId = null; + Long pageSize = null; + Long skip = null; + String sort = null; + InlineResponse20015 response = api.listExperiments(applicationId, pageSize, skip, sort); // TODO: test validations } @@ -2838,7 +2892,7 @@ public void listStoresTest() throws ApiException { String name = null; String integrationId = null; String query = null; - InlineResponse20045 response = api.listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query); + InlineResponse20046 response = api.listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query); // TODO: test validations } @@ -3203,7 +3257,7 @@ public void searchCouponsAdvancedWithoutTotalCountTest() throws ApiException { public void summarizeCampaignStoreBudgetTest() throws ApiException { Long applicationId = null; Long campaignId = null; - InlineResponse20047 response = api.summarizeCampaignStoreBudget(applicationId, campaignId); + InlineResponse20048 response = api.summarizeCampaignStoreBudget(applicationId, campaignId); // TODO: test validations } @@ -3371,9 +3425,9 @@ public void updateCouponBatchTest() throws ApiException { } /** - * Update loyalty card status + * Update loyalty card * - * Update the status of the given loyalty card. A card can be _active_ or _inactive_. + * Update the details of a specific loyalty card. You can set the card's status to `active` or `inactive` through this endpoint. At least one of `status` or `attributes` must be provided. * * @throws ApiException * if the Api call fails @@ -3382,7 +3436,7 @@ public void updateCouponBatchTest() throws ApiException { public void updateLoyaltyCardTest() throws ApiException { Long loyaltyProgramId = null; String loyaltyCardId = null; - UpdateLoyaltyCard body = null; + UpdateLoyaltyCardRequest body = null; LoyaltyCard response = api.updateLoyaltyCard(loyaltyProgramId, loyaltyCardId, body); // TODO: test validations diff --git a/src/test/java/one/talon/model/BestPriorPriceRequestTest.java b/src/test/java/one/talon/model/BestPriorPriceRequestTest.java index 4d49ae2e..a0cc3b77 100644 --- a/src/test/java/one/talon/model/BestPriorPriceRequestTest.java +++ b/src/test/java/one/talon/model/BestPriorPriceRequestTest.java @@ -76,6 +76,14 @@ public void strictEndDateTest() { // TODO: test strictEndDate } + /** + * Test the property 'timeframeEndDateType' + */ + @Test + public void timeframeEndDateTypeTest() { + // TODO: test timeframeEndDateType + } + /** * Test the property 'target' */ diff --git a/src/test/java/one/talon/model/BestPriorPriceTest.java b/src/test/java/one/talon/model/BestPriorPriceTest.java index 24aa2bcd..e074d4c9 100644 --- a/src/test/java/one/talon/model/BestPriorPriceTest.java +++ b/src/test/java/one/talon/model/BestPriorPriceTest.java @@ -43,6 +43,14 @@ public void testBestPriorPrice() { // TODO: test BestPriorPrice } + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + /** * Test the property 'sku' */ diff --git a/src/test/java/one/talon/model/BlueprintTest.java b/src/test/java/one/talon/model/BlueprintTest.java new file mode 100644 index 00000000..311d9128 --- /dev/null +++ b/src/test/java/one/talon/model/BlueprintTest.java @@ -0,0 +1,152 @@ +/* + * 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.CartItemFilterTemplate; +import one.talon.model.CatalogRule; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for Blueprint + */ +public class BlueprintTest { + private final Blueprint model = new Blueprint(); + + /** + * Model tests for Blueprint + */ + @Test + public void testBlueprint() { + // TODO: test Blueprint + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'category' + */ + @Test + public void categoryTest() { + // TODO: test category + } + + /** + * Test the property 'source' + */ + @Test + public void sourceTest() { + // TODO: test source + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + + /** + * Test the property 'cartItemFilters' + */ + @Test + public void cartItemFiltersTest() { + // TODO: test cartItemFilters + } + + /** + * Test the property 'created' + */ + @Test + public void createdTest() { + // TODO: test created + } + + /** + * Test the property 'createdBy' + */ + @Test + public void createdByTest() { + // TODO: test createdBy + } + + /** + * Test the property 'modified' + */ + @Test + public void modifiedTest() { + // TODO: test modified + } + + /** + * Test the property 'modifiedBy' + */ + @Test + public void modifiedByTest() { + // TODO: test modifiedBy + } + +} diff --git a/src/test/java/one/talon/model/CampaignCollectionEditedNotificationItemTest.java b/src/test/java/one/talon/model/CampaignCollectionEditedNotificationItemTest.java index c3d6af1e..6e0cd714 100644 --- a/src/test/java/one/talon/model/CampaignCollectionEditedNotificationItemTest.java +++ b/src/test/java/one/talon/model/CampaignCollectionEditedNotificationItemTest.java @@ -21,8 +21,11 @@ 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.Campaign; import one.talon.model.CollectionWithoutPayload; +import one.talon.model.PlaceholderDetails; import one.talon.model.Ruleset; import org.junit.Assert; import org.junit.Ignore; @@ -67,6 +70,14 @@ public void rulesetTest() { // TODO: test ruleset } + /** + * Test the property 'placeholders' + */ + @Test + public void placeholdersTest() { + // TODO: test placeholders + } + /** * Test the property 'collection' */ diff --git a/src/test/java/one/talon/model/CampaignCreatedNotificationItemTest.java b/src/test/java/one/talon/model/CampaignCreatedNotificationItemTest.java index 8becb8b4..68366940 100644 --- a/src/test/java/one/talon/model/CampaignCreatedNotificationItemTest.java +++ b/src/test/java/one/talon/model/CampaignCreatedNotificationItemTest.java @@ -21,8 +21,11 @@ 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.Campaign; import one.talon.model.CampaignEvaluationPosition; +import one.talon.model.PlaceholderDetails; import one.talon.model.Ruleset; import org.junit.Assert; import org.junit.Ignore; @@ -67,6 +70,14 @@ public void rulesetTest() { // TODO: test ruleset } + /** + * Test the property 'placeholders' + */ + @Test + public void placeholdersTest() { + // TODO: test placeholders + } + /** * Test the property 'evaluationPosition' */ diff --git a/src/test/java/one/talon/model/CampaignEditedNotificationItemTest.java b/src/test/java/one/talon/model/CampaignEditedNotificationItemTest.java index b79bd48f..16113520 100644 --- a/src/test/java/one/talon/model/CampaignEditedNotificationItemTest.java +++ b/src/test/java/one/talon/model/CampaignEditedNotificationItemTest.java @@ -21,7 +21,10 @@ 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.Campaign; +import one.talon.model.PlaceholderDetails; import one.talon.model.Ruleset; import org.junit.Assert; import org.junit.Ignore; @@ -74,4 +77,12 @@ public void rulesetTest() { // TODO: test ruleset } + /** + * Test the property 'placeholders' + */ + @Test + public void placeholdersTest() { + // TODO: test placeholders + } + } diff --git a/src/test/java/one/talon/model/CampaignRulesetChangedNotificationItemTest.java b/src/test/java/one/talon/model/CampaignRulesetChangedNotificationItemTest.java index 180bcc3b..0834991c 100644 --- a/src/test/java/one/talon/model/CampaignRulesetChangedNotificationItemTest.java +++ b/src/test/java/one/talon/model/CampaignRulesetChangedNotificationItemTest.java @@ -21,7 +21,10 @@ 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.Campaign; +import one.talon.model.PlaceholderDetails; import one.talon.model.Ruleset; import org.junit.Assert; import org.junit.Ignore; @@ -66,6 +69,14 @@ public void oldRulesetTest() { // TODO: test oldRuleset } + /** + * Test the property 'oldPlaceholders' + */ + @Test + public void oldPlaceholdersTest() { + // TODO: test oldPlaceholders + } + /** * Test the property 'ruleset' */ @@ -74,4 +85,12 @@ public void rulesetTest() { // TODO: test ruleset } + /** + * Test the property 'placeholders' + */ + @Test + public void placeholdersTest() { + // TODO: test placeholders + } + } diff --git a/src/test/java/one/talon/model/CampaignStateChangedNotificationItemTest.java b/src/test/java/one/talon/model/CampaignStateChangedNotificationItemTest.java index 1c64177d..ad2887dd 100644 --- a/src/test/java/one/talon/model/CampaignStateChangedNotificationItemTest.java +++ b/src/test/java/one/talon/model/CampaignStateChangedNotificationItemTest.java @@ -21,7 +21,10 @@ 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.Campaign; +import one.talon.model.PlaceholderDetails; import one.talon.model.Ruleset; import org.junit.Assert; import org.junit.Ignore; @@ -82,4 +85,12 @@ public void rulesetTest() { // TODO: test ruleset } + /** + * Test the property 'placeholders' + */ + @Test + public void placeholdersTest() { + // TODO: test placeholders + } + } diff --git a/src/test/java/one/talon/model/CouponWithApplicationTest.java b/src/test/java/one/talon/model/CouponWithApplicationTest.java new file mode 100644 index 00000000..1b929dd1 --- /dev/null +++ b/src/test/java/one/talon/model/CouponWithApplicationTest.java @@ -0,0 +1,240 @@ +/* + * 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 java.util.ArrayList; +import java.util.List; +import one.talon.model.LimitConfig; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CouponWithApplication + */ +public class CouponWithApplicationTest { + private final CouponWithApplication model = new CouponWithApplication(); + + /** + * Model tests for CouponWithApplication + */ + @Test + public void testCouponWithApplication() { + // TODO: test CouponWithApplication + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'created' + */ + @Test + public void createdTest() { + // TODO: test created + } + + /** + * Test the property 'campaignId' + */ + @Test + public void campaignIdTest() { + // TODO: test campaignId + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'usageLimit' + */ + @Test + public void usageLimitTest() { + // TODO: test usageLimit + } + + /** + * Test the property 'discountLimit' + */ + @Test + public void discountLimitTest() { + // TODO: test discountLimit + } + + /** + * Test the property 'reservationLimit' + */ + @Test + public void reservationLimitTest() { + // TODO: test reservationLimit + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'expiryDate' + */ + @Test + public void expiryDateTest() { + // TODO: test expiryDate + } + + /** + * Test the property 'limits' + */ + @Test + public void limitsTest() { + // TODO: test limits + } + + /** + * Test the property 'usageCounter' + */ + @Test + public void usageCounterTest() { + // TODO: test usageCounter + } + + /** + * Test the property 'discountCounter' + */ + @Test + public void discountCounterTest() { + // TODO: test discountCounter + } + + /** + * Test the property 'discountRemainder' + */ + @Test + public void discountRemainderTest() { + // TODO: test discountRemainder + } + + /** + * Test the property 'reservationCounter' + */ + @Test + public void reservationCounterTest() { + // TODO: test reservationCounter + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'referralId' + */ + @Test + public void referralIdTest() { + // TODO: test referralId + } + + /** + * Test the property 'recipientIntegrationId' + */ + @Test + public void recipientIntegrationIdTest() { + // TODO: test recipientIntegrationId + } + + /** + * Test the property 'importId' + */ + @Test + public void importIdTest() { + // TODO: test importId + } + + /** + * Test the property 'reservation' + */ + @Test + public void reservationTest() { + // TODO: test reservation + } + + /** + * Test the property 'batchId' + */ + @Test + public void batchIdTest() { + // TODO: test batchId + } + + /** + * Test the property 'isReservationMandatory' + */ + @Test + public void isReservationMandatoryTest() { + // TODO: test isReservationMandatory + } + + /** + * Test the property 'implicitlyReserved' + */ + @Test + public void implicitlyReservedTest() { + // TODO: test implicitlyReserved + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'applicationName' + */ + @Test + public void applicationNameTest() { + // TODO: test applicationName + } + +} diff --git a/src/test/java/one/talon/model/CustomerProfileIntegrationRequestV2Test.java b/src/test/java/one/talon/model/CustomerProfileIntegrationRequestV2Test.java index b9e60c9f..b3ea0962 100644 --- a/src/test/java/one/talon/model/CustomerProfileIntegrationRequestV2Test.java +++ b/src/test/java/one/talon/model/CustomerProfileIntegrationRequestV2Test.java @@ -60,19 +60,19 @@ public void evaluableCampaignIdsTest() { } /** - * Test the property 'audiencesChanges' + * Test the property 'responseContent' */ @Test - public void audiencesChangesTest() { - // TODO: test audiencesChanges + public void responseContentTest() { + // TODO: test responseContent } /** - * Test the property 'responseContent' + * Test the property 'audiencesChanges' */ @Test - public void responseContentTest() { - // TODO: test responseContent + public void audiencesChangesTest() { + // TODO: test audiencesChanges } } diff --git a/src/test/java/one/talon/model/EventAttributesEntityTest.java b/src/test/java/one/talon/model/EventAttributesEntityTest.java new file mode 100644 index 00000000..cb1b2532 --- /dev/null +++ b/src/test/java/one/talon/model/EventAttributesEntityTest.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 EventAttributesEntity + */ +public class EventAttributesEntityTest { + private final EventAttributesEntity model = new EventAttributesEntity(); + + /** + * Model tests for EventAttributesEntity + */ + @Test + public void testEventAttributesEntity() { + // TODO: test EventAttributesEntity + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + +} diff --git a/src/test/java/one/talon/model/ExperimentCampaignCopyTest.java b/src/test/java/one/talon/model/ExperimentCampaignCopyTest.java new file mode 100644 index 00000000..946ca9e9 --- /dev/null +++ b/src/test/java/one/talon/model/ExperimentCampaignCopyTest.java @@ -0,0 +1,94 @@ +/* + * 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.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExperimentCampaignCopy + */ +public class ExperimentCampaignCopyTest { + private final ExperimentCampaignCopy model = new ExperimentCampaignCopy(); + + /** + * Model tests for ExperimentCampaignCopy + */ + @Test + public void testExperimentCampaignCopy() { + // TODO: test ExperimentCampaignCopy + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * 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 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'evaluationGroupId' + */ + @Test + public void evaluationGroupIdTest() { + // TODO: test evaluationGroupId + } + +} diff --git a/src/test/java/one/talon/model/ExperimentCopyExperimentTest.java b/src/test/java/one/talon/model/ExperimentCopyExperimentTest.java new file mode 100644 index 00000000..fd777108 --- /dev/null +++ b/src/test/java/one/talon/model/ExperimentCopyExperimentTest.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 one.talon.model.ExperimentCampaignCopy; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExperimentCopyExperiment + */ +public class ExperimentCopyExperimentTest { + private final ExperimentCopyExperiment model = new ExperimentCopyExperiment(); + + /** + * Model tests for ExperimentCopyExperiment + */ + @Test + public void testExperimentCopyExperiment() { + // TODO: test ExperimentCopyExperiment + } + + /** + * Test the property 'isVariantAssignmentExternal' + */ + @Test + public void isVariantAssignmentExternalTest() { + // TODO: test isVariantAssignmentExternal + } + + /** + * Test the property 'campaign' + */ + @Test + public void campaignTest() { + // TODO: test campaign + } + +} diff --git a/src/test/java/one/talon/model/ExperimentCopyTest.java b/src/test/java/one/talon/model/ExperimentCopyTest.java new file mode 100644 index 00000000..1fd46c99 --- /dev/null +++ b/src/test/java/one/talon/model/ExperimentCopyTest.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 one.talon.model.ExperimentCopyExperiment; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExperimentCopy + */ +public class ExperimentCopyTest { + private final ExperimentCopy model = new ExperimentCopy(); + + /** + * Model tests for ExperimentCopy + */ + @Test + public void testExperimentCopy() { + // TODO: test ExperimentCopy + } + + /** + * Test the property 'targetApplicationId' + */ + @Test + public void targetApplicationIdTest() { + // TODO: test targetApplicationId + } + + /** + * Test the property 'experiment' + */ + @Test + public void experimentTest() { + // TODO: test experiment + } + +} diff --git a/src/test/java/one/talon/model/HistoryTest.java b/src/test/java/one/talon/model/HistoryTest.java new file mode 100644 index 00000000..26e84570 --- /dev/null +++ b/src/test/java/one/talon/model/HistoryTest.java @@ -0,0 +1,94 @@ +/* + * 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.BestPriorPriceMetadata; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for History + */ +public class HistoryTest { + private final History model = new History(); + + /** + * Model tests for History + */ + @Test + public void testHistory() { + // TODO: test History + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'observedAt' + */ + @Test + public void observedAtTest() { + // TODO: test observedAt + } + + /** + * Test the property 'contextId' + */ + @Test + public void contextIdTest() { + // TODO: test contextId + } + + /** + * Test the property 'price' + */ + @Test + public void priceTest() { + // TODO: test price + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } + +} diff --git a/src/test/java/one/talon/model/InlineResponse20015Test.java b/src/test/java/one/talon/model/InlineResponse20015Test.java index 05e5858a..e15735d3 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.LoyaltyProgram; +import one.talon.model.Experiment; 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 2b84d445..70678f51 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.LoyaltyDashboardData; +import one.talon.model.LoyaltyProgram; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20017Test.java b/src/test/java/one/talon/model/InlineResponse20017Test.java index 7fff3c74..884e746e 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.LoyaltyProgramTransaction; +import one.talon.model.LoyaltyDashboardData; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -44,11 +44,11 @@ public void testInlineResponse20017() { } /** - * 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/InlineResponse20018Test.java b/src/test/java/one/talon/model/InlineResponse20018Test.java index 43e09822..0d60bb28 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.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/InlineResponse20019Test.java b/src/test/java/one/talon/model/InlineResponse20019Test.java index 8fe779ac..db747fc9 100644 --- a/src/test/java/one/talon/model/InlineResponse20019Test.java +++ b/src/test/java/one/talon/model/InlineResponse20019Test.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/InlineResponse20020Test.java b/src/test/java/one/talon/model/InlineResponse20020Test.java index 4df530d2..991fb6cb 100644 --- a/src/test/java/one/talon/model/InlineResponse20020Test.java +++ b/src/test/java/one/talon/model/InlineResponse20020Test.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/InlineResponse20021Test.java b/src/test/java/one/talon/model/InlineResponse20021Test.java index 3d0f8955..00174402 100644 --- a/src/test/java/one/talon/model/InlineResponse20021Test.java +++ b/src/test/java/one/talon/model/InlineResponse20021Test.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/InlineResponse20022Test.java b/src/test/java/one/talon/model/InlineResponse20022Test.java index 32f5e81e..793c53f9 100644 --- a/src/test/java/one/talon/model/InlineResponse20022Test.java +++ b/src/test/java/one/talon/model/InlineResponse20022Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AccessLogEntry; +import one.talon.model.CollectionItem; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20023Test.java b/src/test/java/one/talon/model/InlineResponse20023Test.java index 3fc630e7..47a085f5 100644 --- a/src/test/java/one/talon/model/InlineResponse20023Test.java +++ b/src/test/java/one/talon/model/InlineResponse20023Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CampaignAnalytics; +import one.talon.model.AccessLogEntry; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -44,11 +44,11 @@ public void testInlineResponse20023() { } /** - * 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/InlineResponse20024Test.java b/src/test/java/one/talon/model/InlineResponse20024Test.java index d404ae3c..410381fe 100644 --- a/src/test/java/one/talon/model/InlineResponse20024Test.java +++ b/src/test/java/one/talon/model/InlineResponse20024Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.ApplicationCustomer; +import one.talon.model.CampaignAnalytics; 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/InlineResponse20025Test.java b/src/test/java/one/talon/model/InlineResponse20025Test.java index 9cba5385..0fd72bcc 100644 --- a/src/test/java/one/talon/model/InlineResponse20025Test.java +++ b/src/test/java/one/talon/model/InlineResponse20025Test.java @@ -44,19 +44,19 @@ public void testInlineResponse20025() { } /** - * Test the property 'hasMore' + * Test the property 'totalResultSize' */ @Test - public void hasMoreTest() { - // TODO: test hasMore + public void totalResultSizeTest() { + // TODO: test totalResultSize } /** - * 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/InlineResponse20026Test.java b/src/test/java/one/talon/model/InlineResponse20026Test.java index 1b840b8c..ec896260 100644 --- a/src/test/java/one/talon/model/InlineResponse20026Test.java +++ b/src/test/java/one/talon/model/InlineResponse20026Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CustomerProfile; +import one.talon.model.ApplicationCustomer; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20027Test.java b/src/test/java/one/talon/model/InlineResponse20027Test.java index bf7999cb..20c41fe3 100644 --- a/src/test/java/one/talon/model/InlineResponse20027Test.java +++ b/src/test/java/one/talon/model/InlineResponse20027Test.java @@ -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/InlineResponse20028Test.java b/src/test/java/one/talon/model/InlineResponse20028Test.java index 641283d2..0c7ba04a 100644 --- a/src/test/java/one/talon/model/InlineResponse20028Test.java +++ b/src/test/java/one/talon/model/InlineResponse20028Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CustomerActivityReport; +import one.talon.model.CustomerProfile; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20029Test.java b/src/test/java/one/talon/model/InlineResponse20029Test.java index 08ed4ba9..9230cc88 100644 --- a/src/test/java/one/talon/model/InlineResponse20029Test.java +++ b/src/test/java/one/talon/model/InlineResponse20029Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.ApplicationSession; +import one.talon.model.CustomerActivityReport; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20030Test.java b/src/test/java/one/talon/model/InlineResponse20030Test.java index 3650f12d..4396c598 100644 --- a/src/test/java/one/talon/model/InlineResponse20030Test.java +++ b/src/test/java/one/talon/model/InlineResponse20030Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.ApplicationEvent; +import one.talon.model.ApplicationSession; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20031Test.java b/src/test/java/one/talon/model/InlineResponse20031Test.java index 07693623..6983eaf4 100644 --- a/src/test/java/one/talon/model/InlineResponse20031Test.java +++ b/src/test/java/one/talon/model/InlineResponse20031Test.java @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import one.talon.model.ApplicationEvent; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,11 +44,11 @@ public void testInlineResponse20031() { } /** - * 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/InlineResponse20032Test.java b/src/test/java/one/talon/model/InlineResponse20032Test.java index 6d0af80d..3ebf2164 100644 --- a/src/test/java/one/talon/model/InlineResponse20032Test.java +++ b/src/test/java/one/talon/model/InlineResponse20032Test.java @@ -23,7 +23,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Audience; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,14 +42,6 @@ public void testInlineResponse20032() { // TODO: test InlineResponse20032 } - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - /** * Test the property 'totalResultSize' */ diff --git a/src/test/java/one/talon/model/InlineResponse20033Test.java b/src/test/java/one/talon/model/InlineResponse20033Test.java index 737e5fde..e66aed1b 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.AudienceAnalytics; +import one.talon.model.Audience; 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/InlineResponse20034Test.java b/src/test/java/one/talon/model/InlineResponse20034Test.java index 372566a8..1513c8a8 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.CustomerProfile; +import one.talon.model.AudienceAnalytics; 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 70f18c76..3ab69dd6 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.ApplicationReferee; +import one.talon.model.CustomerProfile; 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/InlineResponse20036Test.java b/src/test/java/one/talon/model/InlineResponse20036Test.java index ebb445d8..e73b2ba2 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.Attribute; +import one.talon.model.ApplicationReferee; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,6 +43,14 @@ public void testInlineResponse20036() { // TODO: test InlineResponse20036 } + /** + * Test the property 'hasMore' + */ + @Test + public void hasMoreTest() { + // TODO: test hasMore + } + /** * Test the property 'totalResultSize' */ diff --git a/src/test/java/one/talon/model/InlineResponse20037Test.java b/src/test/java/one/talon/model/InlineResponse20037Test.java index 250a0b20..248a7335 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.CatalogItem; +import one.talon.model.Attribute; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,14 +43,6 @@ public void testInlineResponse20037() { // TODO: test InlineResponse20037 } - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - /** * Test the property 'totalResultSize' */ diff --git a/src/test/java/one/talon/model/InlineResponse20038Test.java b/src/test/java/one/talon/model/InlineResponse20038Test.java index 81139b8c..469bb2ce 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.AccountAdditionalCost; +import one.talon.model.CatalogItem; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,6 +43,14 @@ public void testInlineResponse20038() { // TODO: test InlineResponse20038 } + /** + * Test the property 'hasMore' + */ + @Test + public void hasMoreTest() { + // TODO: test hasMore + } + /** * Test the property 'totalResultSize' */ diff --git a/src/test/java/one/talon/model/InlineResponse20039Test.java b/src/test/java/one/talon/model/InlineResponse20039Test.java index 072a767d..64930d12 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.WebhookWithOutgoingIntegrationDetails; +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/InlineResponse20040Test.java b/src/test/java/one/talon/model/InlineResponse20040Test.java index 1241e489..b0b0f722 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.EventType; +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/InlineResponse20041Test.java b/src/test/java/one/talon/model/InlineResponse20041Test.java index bfeed8f2..ac395a6d 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.User; +import one.talon.model.EventType; 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 ecc183c2..c19a07c4 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.Change; +import one.talon.model.User; 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/InlineResponse20043Test.java b/src/test/java/one/talon/model/InlineResponse20043Test.java index b1f70342..969ce102 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.Export; +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/InlineResponse20044Test.java b/src/test/java/one/talon/model/InlineResponse20044Test.java index 1ca99950..01fa46ed 100644 --- a/src/test/java/one/talon/model/InlineResponse20044Test.java +++ b/src/test/java/one/talon/model/InlineResponse20044Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.RoleV2; +import one.talon.model.Export; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20045Test.java b/src/test/java/one/talon/model/InlineResponse20045Test.java index 0c05afc5..aaa1011b 100644 --- a/src/test/java/one/talon/model/InlineResponse20045Test.java +++ b/src/test/java/one/talon/model/InlineResponse20045Test.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.RoleV2; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,14 +43,6 @@ public void testInlineResponse20045() { // TODO: test InlineResponse20045 } - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - /** * Test the property 'totalResultSize' */ diff --git a/src/test/java/one/talon/model/InlineResponse20046Test.java b/src/test/java/one/talon/model/InlineResponse20046Test.java index 6f70fcd1..17f88ce0 100644 --- a/src/test/java/one/talon/model/InlineResponse20046Test.java +++ b/src/test/java/one/talon/model/InlineResponse20046Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.ListCampaignStoreBudgets; +import one.talon.model.Store; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,6 +43,22 @@ public void testInlineResponse20046() { // TODO: test InlineResponse20046 } + /** + * 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' */ diff --git a/src/test/java/one/talon/model/InlineResponse20047Test.java b/src/test/java/one/talon/model/InlineResponse20047Test.java index b0ba3d18..7f36e63e 100644 --- a/src/test/java/one/talon/model/InlineResponse20047Test.java +++ b/src/test/java/one/talon/model/InlineResponse20047Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.SummaryCampaignStoreBudget; +import one.talon.model.ListCampaignStoreBudgets; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20048Test.java b/src/test/java/one/talon/model/InlineResponse20048Test.java index 95201e9d..75dcd1ca 100644 --- a/src/test/java/one/talon/model/InlineResponse20048Test.java +++ b/src/test/java/one/talon/model/InlineResponse20048Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Achievement; +import one.talon.model.SummaryCampaignStoreBudget; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,14 +43,6 @@ public void testInlineResponse20048() { // TODO: test InlineResponse20048 } - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - /** * Test the property 'data' */ diff --git a/src/test/java/one/talon/model/InlineResponse20049Test.java b/src/test/java/one/talon/model/InlineResponse20049Test.java index 8c431d4d..74b477dc 100644 --- a/src/test/java/one/talon/model/InlineResponse20049Test.java +++ b/src/test/java/one/talon/model/InlineResponse20049Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AchievementProgressWithDefinition; +import one.talon.model.Achievement; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/one/talon/model/InlineResponse20050Test.java b/src/test/java/one/talon/model/InlineResponse20050Test.java index 0e77ccbb..dcfda13e 100644 --- a/src/test/java/one/talon/model/InlineResponse20050Test.java +++ b/src/test/java/one/talon/model/InlineResponse20050Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.CouponFailureSummary; +import one.talon.model.AchievementProgressWithDefinition; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,6 +43,14 @@ public void testInlineResponse20050() { // TODO: test InlineResponse20050 } + /** + * Test the property 'hasMore' + */ + @Test + public void hasMoreTest() { + // TODO: test hasMore + } + /** * Test the property 'data' */ diff --git a/src/test/java/one/talon/model/InlineResponse20051Test.java b/src/test/java/one/talon/model/InlineResponse20051Test.java index cff4dce4..93d8d5e8 100644 --- a/src/test/java/one/talon/model/InlineResponse20051Test.java +++ b/src/test/java/one/talon/model/InlineResponse20051Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AchievementProgressWithDefinition; +import one.talon.model.CouponFailureSummary; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,14 +43,6 @@ public void testInlineResponse20051() { // TODO: test InlineResponse20051 } - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - /** * Test the property 'data' */ diff --git a/src/test/java/one/talon/model/IntegrationEventV2RequestTest.java b/src/test/java/one/talon/model/IntegrationEventV2RequestTest.java index b4bf8762..2c47e6f0 100644 --- a/src/test/java/one/talon/model/IntegrationEventV2RequestTest.java +++ b/src/test/java/one/talon/model/IntegrationEventV2RequestTest.java @@ -83,19 +83,19 @@ public void attributesTest() { } /** - * Test the property 'loyaltyCards' + * Test the property 'responseContent' */ @Test - public void loyaltyCardsTest() { - // TODO: test loyaltyCards + public void responseContentTest() { + // TODO: test responseContent } /** - * Test the property 'responseContent' + * Test the property 'loyaltyCards' */ @Test - public void responseContentTest() { - // TODO: test responseContent + public void loyaltyCardsTest() { + // TODO: test loyaltyCards } } diff --git a/src/test/java/one/talon/model/IntegrationEventV2ResponseTest.java b/src/test/java/one/talon/model/IntegrationEventV2ResponseTest.java new file mode 100644 index 00000000..07da70f8 --- /dev/null +++ b/src/test/java/one/talon/model/IntegrationEventV2ResponseTest.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 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.Campaign; +import one.talon.model.Coupon; +import one.talon.model.CustomerProfile; +import one.talon.model.Effect; +import one.talon.model.Event; +import one.talon.model.Giveaway; +import one.talon.model.Loyalty; +import one.talon.model.Referral; +import one.talon.model.RuleFailureReason; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for IntegrationEventV2Response + */ +public class IntegrationEventV2ResponseTest { + private final IntegrationEventV2Response model = new IntegrationEventV2Response(); + + /** + * Model tests for IntegrationEventV2Response + */ + @Test + public void testIntegrationEventV2Response() { + // TODO: test IntegrationEventV2Response + } + + /** + * Test the property 'customerProfile' + */ + @Test + public void customerProfileTest() { + // TODO: test customerProfile + } + + /** + * Test the property 'loyalty' + */ + @Test + public void loyaltyTest() { + // TODO: test loyalty + } + + /** + * Test the property 'triggeredCampaigns' + */ + @Test + public void triggeredCampaignsTest() { + // TODO: test triggeredCampaigns + } + + /** + * Test the property 'effects' + */ + @Test + public void effectsTest() { + // TODO: test effects + } + + /** + * Test the property 'ruleFailureReasons' + */ + @Test + public void ruleFailureReasonsTest() { + // TODO: test ruleFailureReasons + } + + /** + * Test the property 'createdCoupons' + */ + @Test + public void createdCouponsTest() { + // TODO: test createdCoupons + } + + /** + * Test the property 'createdReferrals' + */ + @Test + public void createdReferralsTest() { + // TODO: test createdReferrals + } + + /** + * Test the property 'awardedGiveaways' + */ + @Test + public void awardedGiveawaysTest() { + // TODO: test awardedGiveaways + } + + /** + * Test the property 'event' + */ + @Test + public void eventTest() { + // TODO: test event + } + +} diff --git a/src/test/java/one/talon/model/IntegrationEventV3ResponseTest.java b/src/test/java/one/talon/model/IntegrationEventV3ResponseTest.java index e9c7872f..82cd93ac 100644 --- a/src/test/java/one/talon/model/IntegrationEventV3ResponseTest.java +++ b/src/test/java/one/talon/model/IntegrationEventV3ResponseTest.java @@ -59,14 +59,6 @@ public void customerProfileTest() { // TODO: test customerProfile } - /** - * Test the property 'event' - */ - @Test - public void eventTest() { - // TODO: test event - } - /** * Test the property 'loyalty' */ @@ -83,6 +75,14 @@ public void triggeredCampaignsTest() { // TODO: test triggeredCampaigns } + /** + * Test the property 'effects' + */ + @Test + public void effectsTest() { + // TODO: test effects + } + /** * Test the property 'ruleFailureReasons' */ @@ -92,35 +92,35 @@ public void ruleFailureReasonsTest() { } /** - * Test the property 'awardedGiveaways' + * Test the property 'createdCoupons' */ @Test - public void awardedGiveawaysTest() { - // TODO: test awardedGiveaways + public void createdCouponsTest() { + // TODO: test createdCoupons } /** - * Test the property 'effects' + * Test the property 'createdReferrals' */ @Test - public void effectsTest() { - // TODO: test effects + public void createdReferralsTest() { + // TODO: test createdReferrals } /** - * Test the property 'createdCoupons' + * Test the property 'awardedGiveaways' */ @Test - public void createdCouponsTest() { - // TODO: test createdCoupons + public void awardedGiveawaysTest() { + // TODO: test awardedGiveaways } /** - * Test the property 'createdReferrals' + * Test the property 'advancedEvent' */ @Test - public void createdReferralsTest() { - // TODO: test createdReferrals + public void advancedEventTest() { + // TODO: test advancedEvent } } diff --git a/src/test/java/one/talon/model/IntegrationResponseTest.java b/src/test/java/one/talon/model/IntegrationResponseTest.java new file mode 100644 index 00000000..9d7e49e2 --- /dev/null +++ b/src/test/java/one/talon/model/IntegrationResponseTest.java @@ -0,0 +1,117 @@ +/* + * 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.Campaign; +import one.talon.model.Coupon; +import one.talon.model.CustomerProfile; +import one.talon.model.Effect; +import one.talon.model.Giveaway; +import one.talon.model.Loyalty; +import one.talon.model.Referral; +import one.talon.model.RuleFailureReason; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for IntegrationResponse + */ +public class IntegrationResponseTest { + private final IntegrationResponse model = new IntegrationResponse(); + + /** + * Model tests for IntegrationResponse + */ + @Test + public void testIntegrationResponse() { + // TODO: test IntegrationResponse + } + + /** + * Test the property 'customerProfile' + */ + @Test + public void customerProfileTest() { + // TODO: test customerProfile + } + + /** + * Test the property 'loyalty' + */ + @Test + public void loyaltyTest() { + // TODO: test loyalty + } + + /** + * Test the property 'triggeredCampaigns' + */ + @Test + public void triggeredCampaignsTest() { + // TODO: test triggeredCampaigns + } + + /** + * Test the property 'effects' + */ + @Test + public void effectsTest() { + // TODO: test effects + } + + /** + * Test the property 'ruleFailureReasons' + */ + @Test + public void ruleFailureReasonsTest() { + // TODO: test ruleFailureReasons + } + + /** + * Test the property 'createdCoupons' + */ + @Test + public void createdCouponsTest() { + // TODO: test createdCoupons + } + + /** + * Test the property 'createdReferrals' + */ + @Test + public void createdReferralsTest() { + // TODO: test createdReferrals + } + + /** + * Test the property 'awardedGiveaways' + */ + @Test + public void awardedGiveawaysTest() { + // TODO: test awardedGiveaways + } + +} diff --git a/src/test/java/one/talon/model/IntegrationStateV2Test.java b/src/test/java/one/talon/model/IntegrationStateV2Test.java index 3dba1adb..93485520 100644 --- a/src/test/java/one/talon/model/IntegrationStateV2Test.java +++ b/src/test/java/one/talon/model/IntegrationStateV2Test.java @@ -29,6 +29,7 @@ import one.talon.model.CustomerSessionV2; import one.talon.model.Effect; import one.talon.model.Event; +import one.talon.model.EventV3; import one.talon.model.Giveaway; import one.talon.model.IntegrationCoupon; import one.talon.model.InventoryReferral; @@ -55,14 +56,6 @@ public void testIntegrationStateV2() { // TODO: test IntegrationStateV2 } - /** - * Test the property 'customerSession' - */ - @Test - public void customerSessionTest() { - // TODO: test customerSession - } - /** * Test the property 'customerProfile' */ @@ -71,14 +64,6 @@ public void customerProfileTest() { // TODO: test customerProfile } - /** - * Test the property 'event' - */ - @Test - public void eventTest() { - // TODO: test event - } - /** * Test the property 'loyalty' */ @@ -87,22 +72,6 @@ public void loyaltyTest() { // TODO: test loyalty } - /** - * Test the property 'referral' - */ - @Test - public void referralTest() { - // TODO: test referral - } - - /** - * Test the property 'coupons' - */ - @Test - public void couponsTest() { - // TODO: test coupons - } - /** * Test the property 'triggeredCampaigns' */ @@ -151,6 +120,46 @@ public void awardedGiveawaysTest() { // TODO: test awardedGiveaways } + /** + * Test the property 'referral' + */ + @Test + public void referralTest() { + // TODO: test referral + } + + /** + * Test the property 'coupons' + */ + @Test + public void couponsTest() { + // TODO: test coupons + } + + /** + * Test the property 'event' + */ + @Test + public void eventTest() { + // TODO: test event + } + + /** + * Test the property 'advancedEvent' + */ + @Test + public void advancedEventTest() { + // TODO: test advancedEvent + } + + /** + * Test the property 'customerSession' + */ + @Test + public void customerSessionTest() { + // TODO: test customerSession + } + /** * Test the property '_return' */ diff --git a/src/test/java/one/talon/model/NewBlueprintTest.java b/src/test/java/one/talon/model/NewBlueprintTest.java new file mode 100644 index 00000000..a5a9e9fe --- /dev/null +++ b/src/test/java/one/talon/model/NewBlueprintTest.java @@ -0,0 +1,87 @@ +/* + * 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.CartItemFilterTemplate; +import one.talon.model.CatalogRule; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NewBlueprint + */ +public class NewBlueprintTest { + private final NewBlueprint model = new NewBlueprint(); + + /** + * Model tests for NewBlueprint + */ + @Test + public void testNewBlueprint() { + // TODO: test NewBlueprint + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'category' + */ + @Test + public void categoryTest() { + // TODO: test category + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + + /** + * Test the property 'cartItemFilters' + */ + @Test + public void cartItemFiltersTest() { + // TODO: test cartItemFilters + } + +} diff --git a/src/test/java/one/talon/model/NewExperimentTest.java b/src/test/java/one/talon/model/NewExperimentTest.java index f950bb4c..cb664e1e 100644 --- a/src/test/java/one/talon/model/NewExperimentTest.java +++ b/src/test/java/one/talon/model/NewExperimentTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import one.talon.model.NewCampaign; -import org.threeten.bp.OffsetDateTime; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -50,22 +49,6 @@ public void isVariantAssignmentExternalTest() { // TODO: test isVariantAssignmentExternal } - /** - * Test the property 'activated' - */ - @Test - public void activatedTest() { - // TODO: test activated - } - - /** - * Test the property 'state' - */ - @Test - public void stateTest() { - // TODO: test state - } - /** * Test the property 'campaign' */ diff --git a/src/test/java/one/talon/model/PlaceholderDetailsTest.java b/src/test/java/one/talon/model/PlaceholderDetailsTest.java new file mode 100644 index 00000000..4c88d580 --- /dev/null +++ b/src/test/java/one/talon/model/PlaceholderDetailsTest.java @@ -0,0 +1,69 @@ +/* + * 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 PlaceholderDetails + */ +public class PlaceholderDetailsTest { + private final PlaceholderDetails model = new PlaceholderDetails(); + + /** + * Model tests for PlaceholderDetails + */ + @Test + public void testPlaceholderDetails() { + // TODO: test PlaceholderDetails + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/src/test/java/one/talon/model/PriceHistoryRequestTest.java b/src/test/java/one/talon/model/PriceHistoryRequestTest.java new file mode 100644 index 00000000..31242fa9 --- /dev/null +++ b/src/test/java/one/talon/model/PriceHistoryRequestTest.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 PriceHistoryRequest + */ +public class PriceHistoryRequestTest { + private final PriceHistoryRequest model = new PriceHistoryRequest(); + + /** + * Model tests for PriceHistoryRequest + */ + @Test + public void testPriceHistoryRequest() { + // TODO: test PriceHistoryRequest + } + + /** + * Test the property 'sku' + */ + @Test + public void skuTest() { + // TODO: test sku + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } + +} diff --git a/src/test/java/one/talon/model/PriceHistoryResponseTest.java b/src/test/java/one/talon/model/PriceHistoryResponseTest.java new file mode 100644 index 00000000..51529dec --- /dev/null +++ b/src/test/java/one/talon/model/PriceHistoryResponseTest.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.History; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PriceHistoryResponse + */ +public class PriceHistoryResponseTest { + private final PriceHistoryResponse model = new PriceHistoryResponse(); + + /** + * Model tests for PriceHistoryResponse + */ + @Test + public void testPriceHistoryResponse() { + // TODO: test PriceHistoryResponse + } + + /** + * Test the property 'sku' + */ + @Test + public void skuTest() { + // TODO: test sku + } + + /** + * Test the property 'history' + */ + @Test + public void historyTest() { + // TODO: test history + } + +} diff --git a/src/test/java/one/talon/model/PrismaticEventPayloadCouponBasedNotificationsTest.java b/src/test/java/one/talon/model/PrismaticEventPayloadCouponBasedNotificationsTest.java index f42c327c..985d20aa 100644 --- a/src/test/java/one/talon/model/PrismaticEventPayloadCouponBasedNotificationsTest.java +++ b/src/test/java/one/talon/model/PrismaticEventPayloadCouponBasedNotificationsTest.java @@ -188,6 +188,14 @@ public void limitsTest() { // TODO: test limits } + /** + * Test the property 'publishedAt' + */ + @Test + public void publishedAtTest() { + // TODO: test publishedAt + } + /** * Test the property 'sourceOfEvent' */ diff --git a/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedNotificationTest.java b/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedNotificationTest.java new file mode 100644 index 00000000..c131727a --- /dev/null +++ b/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedNotificationTest.java @@ -0,0 +1,167 @@ +/* + * 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.PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PrismaticEventPayloadLoyaltyProfileBasedNotification + */ +public class PrismaticEventPayloadLoyaltyProfileBasedNotificationTest { + private final PrismaticEventPayloadLoyaltyProfileBasedNotification model = new PrismaticEventPayloadLoyaltyProfileBasedNotification(); + + /** + * Model tests for PrismaticEventPayloadLoyaltyProfileBasedNotification + */ + @Test + public void testPrismaticEventPayloadLoyaltyProfileBasedNotification() { + // TODO: test PrismaticEventPayloadLoyaltyProfileBasedNotification + } + + /** + * Test the property 'profileIntegrationID' + */ + @Test + public void profileIntegrationIDTest() { + // TODO: test profileIntegrationID + } + + /** + * Test the property 'loyaltyProgramID' + */ + @Test + public void loyaltyProgramIDTest() { + // TODO: test loyaltyProgramID + } + + /** + * Test the property 'subledgerID' + */ + @Test + public void subledgerIDTest() { + // TODO: test subledgerID + } + + /** + * Test the property 'sourceOfEvent' + */ + @Test + public void sourceOfEventTest() { + // TODO: test sourceOfEvent + } + + /** + * Test the property 'employeeName' + */ + @Test + public void employeeNameTest() { + // TODO: test employeeName + } + + /** + * Test the property 'userID' + */ + @Test + public void userIDTest() { + // TODO: test userID + } + + /** + * Test the property 'currentPoints' + */ + @Test + public void currentPointsTest() { + // TODO: test currentPoints + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'publishedAt' + */ + @Test + public void publishedAtTest() { + // TODO: test publishedAt + } + + /** + * Test the property 'currentTier' + */ + @Test + public void currentTierTest() { + // TODO: test currentTier + } + + /** + * Test the property 'oldTier' + */ + @Test + public void oldTierTest() { + // TODO: test oldTier + } + + /** + * Test the property 'tierExpirationDate' + */ + @Test + public void tierExpirationDateTest() { + // TODO: test tierExpirationDate + } + + /** + * Test the property 'timestampOfTierChange' + */ + @Test + public void timestampOfTierChangeTest() { + // TODO: test timestampOfTierChange + } + + /** + * Test the property 'pointsRequiredToTheNextTier' + */ + @Test + public void pointsRequiredToTheNextTierTest() { + // TODO: test pointsRequiredToTheNextTier + } + + /** + * Test the property 'nextTier' + */ + @Test + public void nextTierTest() { + // TODO: test nextTier + } + +} diff --git a/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationActionTest.java b/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationActionTest.java new file mode 100644 index 00000000..1aaca241 --- /dev/null +++ b/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationActionTest.java @@ -0,0 +1,84 @@ +/* + * 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 PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction + */ +public class PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationActionTest { + private final PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction model = new PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction(); + + /** + * Model tests for PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction + */ + @Test + public void testPrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction() { + // TODO: test PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction + } + + /** + * Test the property 'amount' + */ + @Test + public void amountTest() { + // TODO: test amount + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'operation' + */ + @Test + public void operationTest() { + // TODO: test operation + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'expiryDate' + */ + @Test + public void expiryDateTest() { + // TODO: test expiryDate + } + +} diff --git a/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationTest.java b/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationTest.java new file mode 100644 index 00000000..1ebeef92 --- /dev/null +++ b/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationTest.java @@ -0,0 +1,119 @@ +/* + * 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.PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationAction; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification + */ +public class PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotificationTest { + private final PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification model = new PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification(); + + /** + * Model tests for PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification + */ + @Test + public void testPrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification() { + // TODO: test PrismaticEventPayloadLoyaltyProfileBasedPointsChangedNotification + } + + /** + * Test the property 'profileIntegrationID' + */ + @Test + public void profileIntegrationIDTest() { + // TODO: test profileIntegrationID + } + + /** + * Test the property 'loyaltyProgramID' + */ + @Test + public void loyaltyProgramIDTest() { + // TODO: test loyaltyProgramID + } + + /** + * Test the property 'subledgerID' + */ + @Test + public void subledgerIDTest() { + // TODO: test subledgerID + } + + /** + * Test the property 'sourceOfEvent' + */ + @Test + public void sourceOfEventTest() { + // TODO: test sourceOfEvent + } + + /** + * Test the property 'employeeName' + */ + @Test + public void employeeNameTest() { + // TODO: test employeeName + } + + /** + * Test the property 'userID' + */ + @Test + public void userIDTest() { + // TODO: test userID + } + + /** + * Test the property 'currentPoints' + */ + @Test + public void currentPointsTest() { + // TODO: test currentPoints + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'publishedAt' + */ + @Test + public void publishedAtTest() { + // TODO: test publishedAt + } + +} diff --git a/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotificationTest.java b/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotificationTest.java new file mode 100644 index 00000000..16b72ae8 --- /dev/null +++ b/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotificationTest.java @@ -0,0 +1,124 @@ +/* + * 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 PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification + */ +public class PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotificationTest { + private final PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification model = new PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification(); + + /** + * Model tests for PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification + */ + @Test + public void testPrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification() { + // TODO: test PrismaticEventPayloadLoyaltyProfileBasedTierDowngradeNotification + } + + /** + * Test the property 'profileIntegrationID' + */ + @Test + public void profileIntegrationIDTest() { + // TODO: test profileIntegrationID + } + + /** + * Test the property 'loyaltyProgramID' + */ + @Test + public void loyaltyProgramIDTest() { + // TODO: test loyaltyProgramID + } + + /** + * Test the property 'subledgerID' + */ + @Test + public void subledgerIDTest() { + // TODO: test subledgerID + } + + /** + * Test the property 'sourceOfEvent' + */ + @Test + public void sourceOfEventTest() { + // TODO: test sourceOfEvent + } + + /** + * Test the property 'currentTier' + */ + @Test + public void currentTierTest() { + // TODO: test currentTier + } + + /** + * Test the property 'currentPoints' + */ + @Test + public void currentPointsTest() { + // TODO: test currentPoints + } + + /** + * Test the property 'oldTier' + */ + @Test + public void oldTierTest() { + // TODO: test oldTier + } + + /** + * Test the property 'tierExpirationDate' + */ + @Test + public void tierExpirationDateTest() { + // TODO: test tierExpirationDate + } + + /** + * Test the property 'timestampOfTierChange' + */ + @Test + public void timestampOfTierChangeTest() { + // TODO: test timestampOfTierChange + } + + /** + * Test the property 'publishedAt' + */ + @Test + public void publishedAtTest() { + // TODO: test publishedAt + } + +} diff --git a/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotificationTest.java b/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotificationTest.java new file mode 100644 index 00000000..65069dfd --- /dev/null +++ b/src/test/java/one/talon/model/PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotificationTest.java @@ -0,0 +1,140 @@ +/* + * 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 PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification + */ +public class PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotificationTest { + private final PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification model = new PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification(); + + /** + * Model tests for PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification + */ + @Test + public void testPrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification() { + // TODO: test PrismaticEventPayloadLoyaltyProfileBasedTierUpgradeNotification + } + + /** + * Test the property 'profileIntegrationID' + */ + @Test + public void profileIntegrationIDTest() { + // TODO: test profileIntegrationID + } + + /** + * Test the property 'loyaltyProgramID' + */ + @Test + public void loyaltyProgramIDTest() { + // TODO: test loyaltyProgramID + } + + /** + * Test the property 'subledgerID' + */ + @Test + public void subledgerIDTest() { + // TODO: test subledgerID + } + + /** + * Test the property 'sourceOfEvent' + */ + @Test + public void sourceOfEventTest() { + // TODO: test sourceOfEvent + } + + /** + * Test the property 'currentTier' + */ + @Test + public void currentTierTest() { + // TODO: test currentTier + } + + /** + * Test the property 'currentPoints' + */ + @Test + public void currentPointsTest() { + // TODO: test currentPoints + } + + /** + * Test the property 'oldTier' + */ + @Test + public void oldTierTest() { + // TODO: test oldTier + } + + /** + * Test the property 'pointsRequiredToTheNextTier' + */ + @Test + public void pointsRequiredToTheNextTierTest() { + // TODO: test pointsRequiredToTheNextTier + } + + /** + * Test the property 'nextTier' + */ + @Test + public void nextTierTest() { + // TODO: test nextTier + } + + /** + * Test the property 'tierExpirationDate' + */ + @Test + public void tierExpirationDateTest() { + // TODO: test tierExpirationDate + } + + /** + * Test the property 'timestampOfTierChange' + */ + @Test + public void timestampOfTierChangeTest() { + // TODO: test timestampOfTierChange + } + + /** + * Test the property 'publishedAt' + */ + @Test + public void publishedAtTest() { + // TODO: test publishedAt + } + +} diff --git a/src/test/java/one/talon/model/PrismaticEventRecordTest.java b/src/test/java/one/talon/model/PrismaticEventRecordTest.java new file mode 100644 index 00000000..f69b4b0d --- /dev/null +++ b/src/test/java/one/talon/model/PrismaticEventRecordTest.java @@ -0,0 +1,108 @@ +/* + * 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 PrismaticEventRecord + */ +public class PrismaticEventRecordTest { + private final PrismaticEventRecord model = new PrismaticEventRecord(); + + /** + * Model tests for PrismaticEventRecord + */ + @Test + public void testPrismaticEventRecord() { + // TODO: test PrismaticEventRecord + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'flowId' + */ + @Test + public void flowIdTest() { + // TODO: test flowId + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventData' + */ + @Test + public void eventDataTest() { + // TODO: test eventData + } + + /** + * Test the property 'publishedAt' + */ + @Test + public void publishedAtTest() { + // TODO: test publishedAt + } + + /** + * Test the property 'processedAt' + */ + @Test + public void processedAtTest() { + // TODO: test processedAt + } + + /** + * Test the property 'processAfter' + */ + @Test + public void processAfterTest() { + // TODO: test processAfter + } + + /** + * Test the property 'retry' + */ + @Test + public void retryTest() { + // TODO: test retry + } + +} diff --git a/src/test/java/one/talon/model/PrismaticFlowConfigResponseTest.java b/src/test/java/one/talon/model/PrismaticFlowConfigResponseTest.java new file mode 100644 index 00000000..4d8a004d --- /dev/null +++ b/src/test/java/one/talon/model/PrismaticFlowConfigResponseTest.java @@ -0,0 +1,67 @@ +/* + * 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 PrismaticFlowConfigResponse + */ +public class PrismaticFlowConfigResponseTest { + private final PrismaticFlowConfigResponse model = new PrismaticFlowConfigResponse(); + + /** + * Model tests for PrismaticFlowConfigResponse + */ + @Test + public void testPrismaticFlowConfigResponse() { + // TODO: test PrismaticFlowConfigResponse + } + + /** + * Test the property 'workerCount' + */ + @Test + public void workerCountTest() { + // TODO: test workerCount + } + + /** + * Test the property 'maxEventsPerMessage' + */ + @Test + public void maxEventsPerMessageTest() { + // TODO: test maxEventsPerMessage + } + + /** + * Test the property 'maxRetries' + */ + @Test + public void maxRetriesTest() { + // TODO: test maxRetries + } + +} diff --git a/src/test/java/one/talon/model/PrismaticFlowResponseTest.java b/src/test/java/one/talon/model/PrismaticFlowResponseTest.java new file mode 100644 index 00000000..bd9db48e --- /dev/null +++ b/src/test/java/one/talon/model/PrismaticFlowResponseTest.java @@ -0,0 +1,84 @@ +/* + * 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.PrismaticFlowConfigResponse; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PrismaticFlowResponse + */ +public class PrismaticFlowResponseTest { + private final PrismaticFlowResponse model = new PrismaticFlowResponse(); + + /** + * Model tests for PrismaticFlowResponse + */ + @Test + public void testPrismaticFlowResponse() { + // TODO: test PrismaticFlowResponse + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'applicationID' + */ + @Test + public void applicationIDTest() { + // TODO: test applicationID + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'prismaticFlowUrl' + */ + @Test + public void prismaticFlowUrlTest() { + // TODO: test prismaticFlowUrl + } + + /** + * Test the property 'config' + */ + @Test + public void configTest() { + // TODO: test config + } + +} diff --git a/src/test/java/one/talon/model/PrismaticPaginatedEventPayloadTest.java b/src/test/java/one/talon/model/PrismaticPaginatedEventPayloadTest.java index 95448c83..0b0230d8 100644 --- a/src/test/java/one/talon/model/PrismaticPaginatedEventPayloadTest.java +++ b/src/test/java/one/talon/model/PrismaticPaginatedEventPayloadTest.java @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import org.threeten.bp.OffsetDateTime; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -50,6 +51,14 @@ public void totalResultSizeTest() { // TODO: test totalResultSize } + /** + * Test the property 'batchedAt' + */ + @Test + public void batchedAtTest() { + // TODO: test batchedAt + } + /** * Test the property 'eventType' */ diff --git a/src/test/java/one/talon/model/PromoteExperimentTest.java b/src/test/java/one/talon/model/PromoteExperimentTest.java new file mode 100644 index 00000000..6917de4a --- /dev/null +++ b/src/test/java/one/talon/model/PromoteExperimentTest.java @@ -0,0 +1,76 @@ +/* + * 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.ExperimentCampaignCopy; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PromoteExperiment + */ +public class PromoteExperimentTest { + private final PromoteExperiment model = new PromoteExperiment(); + + /** + * Model tests for PromoteExperiment + */ + @Test + public void testPromoteExperiment() { + // TODO: test PromoteExperiment + } + + /** + * Test the property 'targetApplicationId' + */ + @Test + public void targetApplicationIdTest() { + // TODO: test targetApplicationId + } + + /** + * Test the property 'variantId' + */ + @Test + public void variantIdTest() { + // TODO: test variantId + } + + /** + * Test the property 'disableExperiment' + */ + @Test + public void disableExperimentTest() { + // TODO: test disableExperiment + } + + /** + * Test the property 'campaign' + */ + @Test + public void campaignTest() { + // TODO: test campaign + } + +} diff --git a/src/test/java/one/talon/model/ResponseContentObjectTest.java b/src/test/java/one/talon/model/ResponseContentObjectTest.java new file mode 100644 index 00000000..408a0afd --- /dev/null +++ b/src/test/java/one/talon/model/ResponseContentObjectTest.java @@ -0,0 +1,53 @@ +/* + * 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 ResponseContentObject + */ +public class ResponseContentObjectTest { + private final ResponseContentObject model = new ResponseContentObject(); + + /** + * Model tests for ResponseContentObject + */ + @Test + public void testResponseContentObject() { + // TODO: test ResponseContentObject + } + + /** + * Test the property 'responseContent' + */ + @Test + public void responseContentTest() { + // TODO: test responseContent + } + +} diff --git a/src/test/java/one/talon/model/UpdateBlueprintTest.java b/src/test/java/one/talon/model/UpdateBlueprintTest.java new file mode 100644 index 00000000..5afa3540 --- /dev/null +++ b/src/test/java/one/talon/model/UpdateBlueprintTest.java @@ -0,0 +1,87 @@ +/* + * 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.CartItemFilterTemplate; +import one.talon.model.CatalogRule; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for UpdateBlueprint + */ +public class UpdateBlueprintTest { + private final UpdateBlueprint model = new UpdateBlueprint(); + + /** + * Model tests for UpdateBlueprint + */ + @Test + public void testUpdateBlueprint() { + // TODO: test UpdateBlueprint + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'category' + */ + @Test + public void categoryTest() { + // TODO: test category + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + + /** + * Test the property 'cartItemFilters' + */ + @Test + public void cartItemFiltersTest() { + // TODO: test cartItemFilters + } + +} diff --git a/src/test/java/one/talon/model/UpdateExperimentVariantNameTest.java b/src/test/java/one/talon/model/UpdateExperimentVariantNameTest.java new file mode 100644 index 00000000..2e6efabc --- /dev/null +++ b/src/test/java/one/talon/model/UpdateExperimentVariantNameTest.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 UpdateExperimentVariantName + */ +public class UpdateExperimentVariantNameTest { + private final UpdateExperimentVariantName model = new UpdateExperimentVariantName(); + + /** + * Model tests for UpdateExperimentVariantName + */ + @Test + public void testUpdateExperimentVariantName() { + // TODO: test UpdateExperimentVariantName + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/one/talon/model/UpdateLoyaltyCardRequestTest.java b/src/test/java/one/talon/model/UpdateLoyaltyCardRequestTest.java new file mode 100644 index 00000000..4fdd2744 --- /dev/null +++ b/src/test/java/one/talon/model/UpdateLoyaltyCardRequestTest.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 UpdateLoyaltyCardRequest + */ +public class UpdateLoyaltyCardRequestTest { + private final UpdateLoyaltyCardRequest model = new UpdateLoyaltyCardRequest(); + + /** + * Model tests for UpdateLoyaltyCardRequest + */ + @Test + public void testUpdateLoyaltyCardRequest() { + // TODO: test UpdateLoyaltyCardRequest + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +}